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

@@ -4,7 +4,6 @@
# It echoes any incoming text messages.
from telebot.async_telebot import AsyncTeleBot
import asyncio
bot = AsyncTeleBot('TOKEN')
@@ -24,4 +23,4 @@ async def echo_message(message):
await bot.reply_to(message, message.text)
asyncio.run(bot.polling())
bot.polling()