Disable link previews in Telegram messages #53
Labels
No labels
epic
in-review
ready-for-agent
ready-for-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
weiwen/evie#53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Disable web page (embedded link) previews on Telegram messages sent by Evie.
Why
Messages containing URLs currently expand into large link-preview cards in the chat, adding visual noise to conversational output.
Where
Both send paths in
src/telegram/view.rsbuild requests without any link-preview option:ViewOp::Send→bot.send_message(...)(src/telegram/view.rs:174)ViewOp::Edit→bot.edit_message_text(...)(src/telegram/view.rs:159)Both need the preview disabled so it applies to the initial send and every subsequent streaming edit.
Suggested fix
Set link preview options to disabled on both requests, e.g. teloxide's
.link_preview_options(LinkPreviewOptions { is_disabled: true, ..Default::default() })(or.disable_web_page_preview(true)if that's the version in use).