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

Asyncio.run back

This commit is contained in:
_run
2021-12-12 15:07:30 +05:00
parent 7588c9fb9f
commit e92946301f
19 changed files with 49 additions and 26 deletions

View File

@@ -8,4 +8,5 @@ async def make_some(message: telebot.types.ChatJoinRequest):
await bot.send_message(message.chat.id, 'I accepted a new user!')
await bot.approve_chat_join_request(message.chat.id, message.from_user.id)
bot.polling(skip_pending=True)
import asyncio
asyncio.run(bot.polling())