Skip to content
Discussion options

You must be logged in to vote
    application.add_handler(conv_handler, group=0)
    application.add_handler(CommandHandler("command0", command0_handler), group=1)

When the two handlers are registered with separate groups, it basically allows a single update (the one with /command0 for example) to be handled multiple times; twice in this case.

update with /command0 -> conv_hander -> no match for STATE1 -> match for fallback -> fallback is called
if there are other handlers registered with different group(s), continue, otherwise update processing ends. we continue:
update with /command0 -> CommandHandler -> match -> command0_hander is called

this would just relief you from doing await context.update_queue.put(update) i…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
10 replies
@BlizzardJedi
Comment options

@aelkheir
Comment options

@BlizzardJedi
Comment options

@aelkheir
Comment options

Answer selected by BlizzardJedi
@BlizzardJedi
Comment options

Comment options

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

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