Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.3.1 #459

Merged
merged 6 commits into from
Jan 12, 2025
Merged

2.3.1 #459

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ For more details see [documentation](https://aiogram-dialog.readthedocs.io) and
* Stateful widgets: `Checkbox`, `Multiselect`, `Counter`, `TextInput`. They record user actions and allow you to retrieve this data later.
* Multiple buttons layouts including simple grouping (`Group`, `Column`), page scrolling (`ScrollingGroup`), repeating of same buttons for list of data (`ListGroup`).
* Sending media (like photo or video) with fileid caching and handling switching to/from message with no media.
* Different rules of transitions between windows/dialogs like keeping only one dialog on top of stack or force sending enw message instead of updating one.
* Different rules of transitions between windows/dialogs like keeping only one dialog on top of stack or force sending new message instead of updating one.
* Offline HTML-preview for messages and transitions diagram. They can be used to check all states without emulating real use cases or exported for demonstration purposes.


Expand Down
3 changes: 2 additions & 1 deletion src/aiogram_dialog/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from aiogram_dialog.dialog import Dialog
from aiogram_dialog.widgets.kbd import Cancel, Keyboard, Start
from aiogram_dialog.widgets.link_preview import LinkPreview
from aiogram_dialog.widgets.text import Const, Jinja, Text
from aiogram_dialog.window import Window

Expand Down Expand Up @@ -37,12 +38,12 @@ def about_dialog():
"{% endfor %}"
"",
),
LinkPreview(is_disabled=True),
Cancel(Const("Ok")),
getter=metadata_getter,
preview_data=metadata_getter,
state=AiogramDialogStates.ABOUT,
parse_mode="html",
disable_web_page_preview=True,
),
)

Expand Down
6 changes: 3 additions & 3 deletions src/aiogram_dialog/context/intent_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,11 @@ async def process_callback_query(
event: CallbackQuery,
data: dict,
):
event_context = event_context_from_callback(event)
data[EVENT_CONTEXT_KEY] = event_context

if "event_chat" not in data:
return await handler(event, data)

event_context = event_context_from_callback(event)
data[EVENT_CONTEXT_KEY] = event_context
original_data = event.data
if event.data:
intent_id, callback_data = remove_intent_id(event.data)
Expand Down
Loading