mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge fe05e13868 into 6e81294685
This commit is contained in:
commit
431bf0baff
2 changed files with 3 additions and 1 deletions
1
CHANGES/1609.misc.rst
Normal file
1
CHANGES/1609.misc.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fixed the order of handlers in the :class:`aiogram.fsm.scene.Scene`
|
||||
|
|
@ -323,7 +323,8 @@ class Scene:
|
|||
if callback_query_without_state is None:
|
||||
callback_query_without_state = parent_scene_config.callback_query_without_state
|
||||
|
||||
for name, value in inspect.getmembers(cls):
|
||||
for name in dir(cls):
|
||||
value = getattr(cls, name)
|
||||
if scene_handlers := getattr(value, "__aiogram_handler__", None):
|
||||
handlers.extend(scene_handlers)
|
||||
if isinstance(value, ObserverDecorator):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue