Skip to content

Commit cda97bd

Browse files
Command processing logic
1 parent 674a966 commit cda97bd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

math_bot/logic.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,6 @@ def init_updater():
378378
conversation_handler = ConversationHandler(
379379
entry_points=[
380380
CommandHandler('start', handle_start),
381-
CommandHandler('help', handle_help),
382-
CommandHandler('examples', handle_examples),
383381
MessageHandler(Filters.all, handle_other_messages)
384382
],
385383
states={
@@ -419,6 +417,12 @@ def init_updater():
419417
CommandHandler('cancel', handle_cancel)
420418
]
421419
)
420+
dispatcher.add_handler(
421+
CommandHandler('help', handle_help)
422+
)
423+
dispatcher.add_handler(
424+
CommandHandler('examples', handle_examples)
425+
)
422426
dispatcher.add_handler(
423427
CommandHandler('simple_mode', handle_simple_mode)
424428
)

0 commit comments

Comments
 (0)