This commit is contained in:
RootShinobi 2025-02-14 16:52:15 +00:00 committed by GitHub
commit 431bf0baff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

1
CHANGES/1609.misc.rst Normal file
View file

@ -0,0 +1 @@
Fixed the order of handlers in the :class:`aiogram.fsm.scene.Scene`

View file

@ -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):