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:
parent
38bff65caf
commit
7993e1d1c9
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user