upd: async telebot

This commit is contained in:
2026-01-28 15:57:40 +03:00
parent 8499142e22
commit c8c9615f25

View File

@ -30,7 +30,7 @@ async def main() -> None:
# Start bot polling # Start bot polling
logger.info("Starting bot polling...") logger.info("Starting bot polling...")
await bot.infinity_polling(none_stop=True) await bot.polling(non_stop=True)
except KeyboardInterrupt: except KeyboardInterrupt:
logger.info("Bot stopped by user") logger.info("Bot stopped by user")
except Exception as e: except Exception as e: