Skip to content

Commit d0b645b

Browse files
authored
Change handler priority
1 parent 91005dc commit d0b645b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

social/handlers_telegram/base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ def get_application():
2020
context_types = ContextTypes(context=CustomContext)
2121
app = Application.builder().token(settings.TELEGRAM_BOT_TOKEN).updater(None).context_types(context_types).build()
2222
logger.info("Telegram API initialized successfully")
23-
register_handlers(app)
23+
# Общие хэндлеры
2424
app.add_handler(CommandHandler(callback=send_help, command="help"))
25+
26+
# Хэндлеры конкретных чатов
27+
register_handlers(app)
28+
2529
return app
2630

2731

0 commit comments

Comments
 (0)