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
1 changed files with 1 additions and 1 deletions

View File

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