Skip to content

Help with logic in routers #1240

Answered by JrooTJunior
xahys asked this question in Q&A
Aug 1, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

It looks like you're trying to pull an owl onto a globe - trying to use routers registering mechanist just like FSM, so, please, read the docs about FSM: https://docs.aiogram.dev/en/dev-3.x/dispatcher/finite_state_machine/index.html

Note that you should'nt register any handler or router after you start receiveng of the incoming events. All handlers in routers tree should be registered when you construct the application.

Replies: 2 comments 2 replies

Comment options

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

Comment options

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

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