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

corrected setup middleware in async i18n middleware example

This commit is contained in:
abdullaev388 2022-02-21 20:08:03 +05:00
parent 38bff65caf
commit 7993e1d1c9

View File

@ -209,6 +209,6 @@ async def missed_message(message: types.Message):
if __name__ == '__main__': if __name__ == '__main__':
bot.middlewares.append(i18n) bot.setup_middleware(i18n)
bot.add_custom_filter(TextMatchFilter()) bot.add_custom_filter(TextMatchFilter())
asyncio.run(bot.infinity_polling()) asyncio.run(bot.infinity_polling())