1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

No asyncio.run()

This commit is contained in:
_run
2021-11-28 01:04:49 +05:00
parent d58336adcb
commit 411c7e915a
12 changed files with 22 additions and 30 deletions

View File

@@ -1,7 +1,6 @@
import telebot
from telebot import asyncio_filters
from telebot.async_telebot import AsyncTeleBot
import asyncio
bot = AsyncTeleBot('TOKEN')
@@ -72,4 +71,4 @@ bot.add_custom_filter(asyncio_filters.IsDigitFilter())
# set saving states into file.
bot.enable_saving_states() # you can delete this if you do not need to save states
asyncio.run(bot.polling())
bot.polling()