Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
944e473fac | ||
|
|
f4ffa40263 |
@@ -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)
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
import asyncio
|
||||
import os
|
||||
|
||||
import flanautils
|
||||
|
||||
os.environ |= flanautils.find_environment_variables('../.env')
|
||||
|
||||
import asyncio
|
||||
|
||||
from flanabot.bots.flana_tele_bot import FlanaTeleBot
|
||||
|
||||
|
||||
async def main():
|
||||
os.environ |= flanautils.find_environment_variables('../.env')
|
||||
|
||||
flana_tele_bot = FlanaTeleBot()
|
||||
|
||||
await asyncio.gather(
|
||||
|
||||
Reference in New Issue
Block a user