I'm developing a telegram bot
I can detect and use texts from users (update.message.text
), what I want is, detect every command that user sends to bot.
is there a way to solve this?
答案 0 :(得分:0)
我找到了:
我只添加MessageHandler(Filters.command, kb_handler)
conv_handler = ConversationHandler(
entry_points=[CommandHandler('start', start),
MessageHandler(Filters.command, kb_handler)],
states={},
fallbacks=[]
)