diff options
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 12 |
1 files changed, 11 insertions, 1 deletions
| @@ -1,6 +1,8 @@ | |||
| 1 | import asyncio | 1 | import asyncio |
| 2 | import logging | 2 | import logging |
| 3 | 3 | ||
| 4 | from aiogram.enums import UpdateType | ||
| 5 | |||
| 4 | from handlers import router | 6 | from handlers import router |
| 5 | from shared import bot, dp | 7 | from shared import bot, dp |
| 6 | 8 | ||
| @@ -8,4 +10,12 @@ logging.basicConfig(level=logging.INFO) | |||
| 8 | 10 | ||
| 9 | dp.include_router(router) | 11 | dp.include_router(router) |
| 10 | 12 | ||
| 11 | asyncio.run(dp.start_polling(bot)) | 13 | asyncio.run( |
| 14 | dp.start_polling( | ||
| 15 | bot, | ||
| 16 | allowed_updates=[ | ||
| 17 | UpdateType.MESSAGE, | ||
| 18 | UpdateType.CALLBACK_QUERY, | ||
| 19 | ], | ||
| 20 | ) | ||
| 21 | ) | ||
