aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/main.py b/main.py
index 8e1566a..322e771 100644
--- a/main.py
+++ b/main.py
@@ -1,6 +1,8 @@
1import asyncio 1import asyncio
2import logging 2import logging
3 3
4from aiogram.enums import UpdateType
5
4from handlers import router 6from handlers import router
5from shared import bot, dp 7from shared import bot, dp
6 8
@@ -8,4 +10,12 @@ logging.basicConfig(level=logging.INFO)
8 10
9dp.include_router(router) 11dp.include_router(router)
10 12
11asyncio.run(dp.start_polling(bot)) 13asyncio.run(
14 dp.start_polling(
15 bot,
16 allowed_updates=[
17 UpdateType.MESSAGE,
18 UpdateType.CALLBACK_QUERY,
19 ],
20 )
21)