From ffee163d8206f0fb1315015e4c60248b68d459bc Mon Sep 17 00:00:00 2001 From: Tolmachev Igor Date: Mon, 23 Mar 2026 00:21:18 +0300 Subject: Add start, help and vpn_link commands --- main.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index 8e1566a..322e771 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,8 @@ import asyncio import logging +from aiogram.enums import UpdateType + from handlers import router from shared import bot, dp @@ -8,4 +10,12 @@ logging.basicConfig(level=logging.INFO) dp.include_router(router) -asyncio.run(dp.start_polling(bot)) +asyncio.run( + dp.start_polling( + bot, + allowed_updates=[ + UpdateType.MESSAGE, + UpdateType.CALLBACK_QUERY, + ], + ) +) -- cgit v1.3