fix: align extension plugin and docs with new replyToMode default

Update the Telegram extension channel plugin fallback and documentation
to reflect the new "off" default, as flagged by Greptile review.
This commit is contained in:
Pejman Pour-Moezzi
2026-02-13 22:11:55 -08:00
committed by Vignesh
parent ad96c126ed
commit c17a109daa
2 changed files with 4 additions and 4 deletions

View File

@@ -412,9 +412,9 @@ curl "https://api.telegram.org/bot<bot_token>/getUpdates"
`channels.telegram.replyToMode` controls handling:
- `first` (default)
- `off` (default)
- `first`
- `all`
- `off`
</Accordion>
@@ -694,7 +694,7 @@ Primary reference:
- `channels.telegram.groups.<id>.topics.<threadId>.requireMention`: per-topic mention gating override.
- `channels.telegram.capabilities.inlineButtons`: `off | dm | group | all | allowlist` (default: allowlist).
- `channels.telegram.accounts.<account>.capabilities.inlineButtons`: per-account override.
- `channels.telegram.replyToMode`: `off | first | all` (default: `first`).
- `channels.telegram.replyToMode`: `off | first | all` (default: `off`).
- `channels.telegram.textChunkLimit`: outbound chunk size (chars).
- `channels.telegram.chunkMode`: `length` (default) or `newline` to split on blank lines (paragraph boundaries) before length chunking.
- `channels.telegram.linkPreview`: toggle link previews for outbound messages (default: true).

View File

@@ -178,7 +178,7 @@ export const telegramPlugin: ChannelPlugin<ResolvedTelegramAccount, TelegramProb
resolveToolPolicy: resolveTelegramGroupToolPolicy,
},
threading: {
resolveReplyToMode: ({ cfg }) => cfg.channels?.telegram?.replyToMode ?? "first",
resolveReplyToMode: ({ cfg }) => cfg.channels?.telegram?.replyToMode ?? "off",
},
messaging: {
normalizeTarget: normalizeTelegramMessagingTarget,