You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ConversationHandler with async handler callbacks and timeout, the timeout may trigger falsely. This is the case, when the callback returns CH.END, which currently the timeout callback doesn't know.
This can be solved by making CH._trigger_timeout check if the current conversations state as follows:
When using
ConversationHandler
with async handler callbacks and timeout, the timeout may trigger falsely. This is the case, when the callback returnsCH.END
, which currently the timeout callback doesn't know.This can be solved by making
CH._trigger_timeout
check if the current conversations state as follows:This will still fail, if the promise is not yet done, when the timeout triggers but
Also when looking at the code I noticed that we don't handle nested conversations in
CH._trigger_timeout
, so that's a good opportunity to fix that …The text was updated successfully, but these errors were encountered: