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:
Li Chuangbo 2024-07-16 11:28:34 +08:00
parent a3d6c1615e
commit c26577a462
No known key found for this signature in database
2 changed files with 9 additions and 4 deletions

1
CHANGES/1544.bugfix.rst Normal file
View file

@ -0,0 +1 @@
Fix inline query handlers to use bot's default link preview options. Fixes #1543