Change CommandHandler to MessageHandler for unknown.

This commit is contained in:
Ceda EI 2018-11-04 13:47:38 +05:30
parent 75eb985f94
commit 28d2dc4244
1 changed files with 4 additions and 4 deletions

8
bot.py
View File

@ -488,12 +488,12 @@ dispatcher.add_handler(cancel)
handler = MessageHandler(Filters.text, lambda x, y: message_handling(x, y, db))
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_handling(x, y, db))
dispatcher.add_handler(quest_handler)
unknown = MessageHandler(Filters.command, lambda x, y: message_handling(x, y,
db))
dispatcher.add_handler(unknown)
updater.start_polling()