We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91005dc commit d0b645bCopy full SHA for d0b645b
1 file changed
social/handlers_telegram/base.py
@@ -20,8 +20,12 @@ def get_application():
20
context_types = ContextTypes(context=CustomContext)
21
app = Application.builder().token(settings.TELEGRAM_BOT_TOKEN).updater(None).context_types(context_types).build()
22
logger.info("Telegram API initialized successfully")
23
- register_handlers(app)
+ # Общие хэндлеры
24
app.add_handler(CommandHandler(callback=send_help, command="help"))
25
+
26
+ # Хэндлеры конкретных чатов
27
+ register_handlers(app)
28
29
return app
30
31
0 commit comments