Последовательные вызовы #1377
-
aiogram version3.x ProblemСтолкнулся с проблемой что после вызова good_result_menu, нужно сразу отправить "start menu", а подобного функционала нет. Possible solution@router.message(id='start_menu', SomeFilter()) @router.message(SomeAnotherFilter()) AlternativesNo response Code exampleNo response Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
What do you mean? The given example and wording are not clear, explain in more detail and, of course, in English. |
Beta Was this translation helpful? Give feedback.
-
Sure, i mean that it would be great if we can feed "fake" update. For example we need after "action_finish_menu" to send "start_menu". We can or run again function, or make a "fake" update with the same parameters. For example we had message with message_id=5, and we need to send 2 menus, finish action and send start menu, we are doing finish_action func, and then call start_menu with the same update, but calling another function |
Beta Was this translation helpful? Give feedback.
-
You can call function directly. Based on your example: @router.message(SomeAnotherFilter())
async def another_menu(some_dji):
await start_menu(some_dji) |
Beta Was this translation helpful? Give feedback.
You can call function directly.
Based on your example: