Repository navigation
Add bot option to disable link previews in operator topics - #97
Merged
remdex merged 1 commit intoOct 26, 2026
Merged
Conversation
New per-bot checkbox "Disable link previews in topic messages" (lhc_telegram_bot.disable_link_preview, default 0). When it is set, every sendMessage to the bot's operators group gets link_preview_options.is_disabled, unless the caller already set a preview option. Visitor messages keep using the disable_link_preview attribute of the incoming webhook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mysubcult
added a commit
to mysubcult/telegram
that referenced
this pull request
Oct 24, 2026
Both PRs add a column to lhc_telegram_bot; this resolves the overlap so LiveHelperChat#99 merges cleanly after LiveHelperChat#97.
This was referenced Oct 24, 2026
mysubcult
added a commit
to mysubcult/telegram
that referenced
this pull request
Oct 26, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mysubcult
added a commit
to mysubcult/telegram
that referenced
this pull request
Oct 26, 2026
…perChat#98, LiveHelperChat#100, LiveHelperChat#101, LiveHelperChat#104 accepted upstream; fork already had them) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #93 (
disable_link_previewfor messages sent to visitors).Operators who work from Telegram group topics get a link preview card under every message with a URL (new chat notice with the referrer, visitor messages, bot replies). For support chats these cards mostly take space, so this adds a per-bot switch for the operators group.
lhc_telegram_bot.disable_link_preview, default0, added tostructure.json/install.sql).TelegramLiveHelperChatOperator::sendMessage()wrapsRequest::sendMessage()and addslink_preview_options.is_disabledwhen the bot of that group has the option on. Calls that already pass a preview option are left alone.Default is off, so nothing changes for existing installs.
🤖 Generated with Claude Code