Fix send scraping message when inline

This commit is contained in:
AlberLC
2022-01-15 05:54:06 +01:00
parent 296f0d625d
commit f4ffa40263

View File

@@ -312,7 +312,7 @@ class FlanaBot(MultiBot, ABC):
return_exceptions=True
)
if self.is_bot_mentioned(message) or not message.chat.is_group:
if not message.is_inline and (self.is_bot_mentioned(message) or not message.chat.is_group):
while not results.done():
if constants.SCRAPING_MESSAGE_WAITING_TIME <= time.perf_counter() - start_time:
bot_state_message = await self.send(random.choice(constants.SCRAPING_PHRASES), message)