Skip to content

Add disable_link_preview option for sent messages - #93

Merged
remdex merged 1 commit into
LiveHelperChat:masterfrom
mysubcult:feat/disable-link-preview
Oct 14, 2026
Merged

remdex merged 1 commit into
LiveHelperChat:masterfrom
mysubcult:feat/disable-link-preview

Conversation

@mysubcult

Copy link
Copy Markdown
Contributor

Split out of #92: only the link preview part, template-only (no PHP, no webhooks).

Changes

  • TelegramIntegration incoming webhook gets a new attribute disable_link_preview (default false).
  • Send REST API method: when the attribute is set, link_preview_options.is_disabled is added to the sendMessage body. If the attribute is missing (e.g. an existing installation that wasn't re-activated) nothing is added, so the request stays the same as before.
  • README: documented the attribute.

Testing

The same Send body is running in production on our Telegram bot with the attribute set to true (no previews) and false (previews shown).

🤖 Generated with Claude Code

New TelegramIntegration incoming webhook attribute `disable_link_preview`
(default `false`). When it is set, the `Send` REST API method adds
`link_preview_options.is_disabled` to the sendMessage body. If the attribute
is missing nothing is added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants