mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix: use default preview options for inline queries
Improve `link_preview_options` parameter in `InputTextMessageContent` class:
- Add default value `Default("link_preview")`
- Change default key from `disable_web_page_preview` to `link_preview_is_disabled` to match `DefaultBotProperties` definition
This allows inline query handlers to use bot's default link preview options.
This commit is contained in:
parent
a3d6c1615e
commit
c26577a462
2 changed files with 9 additions and 4 deletions
1
CHANGES/1544.bugfix.rst
Normal file
1
CHANGES/1544.bugfix.rst
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fix inline query handlers to use bot's default link preview options. Fixes #1543
|
||||
Loading…
Add table
Add a link
Reference in a new issue