Skip to content
Discussion options

You must be logged in to vote

Hey!
An update will be handled by a maximum of only one handler per group (see application.add_handler). And since both the nested and parent conversations are added in the same group, then a one unique message update with (/cancel) will be handled by either the nested cancel handler or the parent one, not both.

Also, when the nested_registration_handler is cancelled, I want to cancel the account_handler.

An alternative from your current appraoch, is to clear the keys from user_data relevant to both conversations, in the nested /cancel handler.

In theory, such a construction won't work if there is more than one update in the queue,

TL;DR It can still work

By default a conversation sta…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BlizzardJedi
Comment options

Answer selected by BlizzardJedi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants