Change CommandHandler to MessageHandler for unknown.

This commit is contained in:
2018-11-04 13:47:38 +05:30
parent 75eb985f94
commit 28d2dc4244
+4 -4
View File
@@ -488,12 +488,12 @@ dispatcher.add_handler(cancel)
handler = MessageHandler(Filters.text, lambda x, y: message_handling(x, y, db)) handler = MessageHandler(Filters.text, lambda x, y: message_handling(x, y, db))
dispatcher.add_handler(handler) dispatcher.add_handler(handler)
unknown = CommandHandler(Filters.command, lambda x, y: message_handling(x, y,
db))
dispatcher.add_handler(unknown)
quest_handler = RegexHandler(r"/[Ss]?[Qq]_\d+", lambda x, y: quest_handler = RegexHandler(r"/[Ss]?[Qq]_\d+", lambda x, y:
quest_handling(x, y, db)) quest_handling(x, y, db))
dispatcher.add_handler(quest_handler) dispatcher.add_handler(quest_handler)
unknown = MessageHandler(Filters.command, lambda x, y: message_handling(x, y,
db))
dispatcher.add_handler(unknown)
updater.start_polling() updater.start_polling()