- Notifications
You must be signed in to change notification settings - Fork5.7k
Closed
Description
What kind of feature are you missing? Where do you notice a shortcoming of PTB?
I have now experienced the most frustrating side effect caused byConversationHandler.END
being set to -1.
I had aCH
state key which was set to -1 and my entry point returned that state.
it caused theCH
to exit (-1 is alsoEND
) right after my entry point which confused me.
here is an MWE which explains it better than I can with words:
https://pastebin.com/bk8MhwiX
to reproduce:
/start
pick any button - expected to continue the conversation, but instead the bot doesn't respond
Describe the solution you'd like
I thought maybe PTB can warn if -1 is set inConversationHandler.states
so nobody else has to experience it too :)
AFAIK there's no harm doing so because setting a state key to -1 is useless, it'll never get triggered
Describe alternatives you've considered
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels