Replies: 2 comments 2 replies
-
If you don't want the CH to handle it, dont add it to the fallbacks? |
Beta Was this translation helpful? Give feedback.
-
Put handlers in different groups do not solve task of closing conversation, when top level command typed. Found a solution to add "return ConversationHandler.END" to every top level commands and put it to fallback. If command typed without conversation it rise no error, if user inside conversation type top level command, it handled and close conversation. Is such pattern Ok?
P.S. By the way, is it Ok to create handlers each time it needed? I mean "CommandHandler("bd", bday)" here in 2 places? or better to save to variable? |
Beta Was this translation helpful? Give feedback.
-
Hi, there
When user inside ConversationHandler and enter some command which outside, its obviously not handled. For example after "/bug" command user text "/start" and "unknown_command" triggered. How to forward it to start handler?
P.S. groups not suitable because of logic, its just piece of code.
Beta Was this translation helpful? Give feedback.
All reactions