Alerting: Support Telegram image caption configuration - #129330
Open
zebrapurring wants to merge 2 commits into
Open
Alerting: Support Telegram image caption configuration#129330zebrapurring wants to merge 2 commits into
zebrapurring wants to merge 2 commits into
Conversation
Contributor
Signed commits reportAll 2 commits between |
zebrapurring
force-pushed
the
telegram-image-captions
branch
from
July 27, 2026 16:00
3d72c80 to
3a70085
Compare
Preserve the Telegram caption setting across contact point provisioning and exports. Update JSON, YAML, and HCL snapshots for the new field.
Add the opt-in Telegram image caption setting to the notifier metadata used by the alerting UI.
zebrapurring
force-pushed
the
telegram-image-captions
branch
from
July 27, 2026 16:04
3a70085 to
fe71620
Compare
Contributor
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update or ping for review. Thank you for your contributions! |
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.
What is this feature?
Adds an opt-in
send_message_as_captionsetting to Telegram contact points.When enabled, notifications containing exactly one screenshot and a message within Telegram's 1024-character caption limit are sent as a single photo with the alert text as its caption.
Notifications with no screenshot, multiple screenshots, or longer messages continue using the existing separate-message behavior.
Why do we need this feature?
Grafana currently sends Telegram alert text and its screenshot as separate messages. This makes alerts harder to scan and can separate the screenshot from its context in busy channels.
Using Telegram's native photo caption support keeps the alert text and screenshot together without truncating messages or changing existing behavior by default.
Who is this feature for?
Grafana Alerting users who send panel screenshots through Telegram contact points and want each alert and its screenshot delivered as one message.
Which issue(s) does this PR fix?:
Related to grafana/alerting#123
Historical context: #10631
Depends on grafana/alerting#642
Special notes for your reviewer:
The setting is disabled by default.
The combined delivery path is used only for one unique screenshot and a caption of at most 1024 Unicode characters. All other cases fall back to the existing delivery flow. Parse mode, protected content, silent notifications, and Telegram message thread IDs are preserved.
Please check that: