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

Merge pull request #1475 from coder2020official/master

Fix
This commit is contained in:
Badiboy 2022-03-08 22:53:55 +03:00 committed by GitHub
commit ace28983b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -31,4 +31,4 @@ async def my_chat_m(message: types.ChatMemberUpdated):
async def delall(message: types.Message):
await bot.delete_message(message.chat.id,message.message_id)
import asyncio
asyncio.run(bot.polling())
asyncio.run(bot.polling(allowed_updates=util.update_types))

View File

@ -318,7 +318,7 @@ class AsyncTeleBot:
except Exception as e:
handler_error = e
if not middleware:
if not middlewares:
if self.exception_handler:
return self.exception_handler.handle(e)
logging.error(str(e))