Skip to content

Commit

Permalink
Change handler priority
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakovri authored Aug 16, 2023
1 parent 91005dc commit d0b645b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion social/handlers_telegram/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ def get_application():
context_types = ContextTypes(context=CustomContext)
app = Application.builder().token(settings.TELEGRAM_BOT_TOKEN).updater(None).context_types(context_types).build()
logger.info("Telegram API initialized successfully")
register_handlers(app)
# Общие хэндлеры
app.add_handler(CommandHandler(callback=send_help, command="help"))

# Хэндлеры конкретных чатов
register_handlers(app)

return app


Expand Down

0 comments on commit d0b645b

Please sign in to comment.