Skip to content

Commit

Permalink
Merge pull request #459 from Tishka17/develop
Browse files Browse the repository at this point in the history
2.3.1
  • Loading branch information
Tishka17 authored Jan 12, 2025
2 parents 3066b5f + 7f37105 commit 5217d22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
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

0 comments on commit 5217d22

Please sign in to comment.