upd: async telebot
This commit is contained in:
@ -30,7 +30,7 @@ async def main() -> None:
|
||||
|
||||
# Start bot polling
|
||||
logger.info("Starting bot polling...")
|
||||
await bot.infinity_polling(none_stop=True)
|
||||
await bot.polling(non_stop=True)
|
||||
except KeyboardInterrupt:
|
||||
logger.info("Bot stopped by user")
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user