feat(telegram): add disableAudioPreflight config for groups and topics#23067
Merged
steipete merged 2 commits intoopenclaw:mainfrom Mar 2, 2026
Merged
Conversation
|
This pull request has been automatically marked as stale due to inactivity. |
1156030 to
b142cc3
Compare
Contributor
|
Landed via temp rebase onto main.
Thanks @yangnim21029! |
dawi369
pushed a commit
to dawi369/davis
that referenced
this pull request
Mar 3, 2026
…ence tests (openclaw#23067) (thanks @yangnim21029)
OWALabuy
pushed a commit
to kcinzgg/openclaw
that referenced
this pull request
Mar 4, 2026
…ence tests (openclaw#23067) (thanks @yangnim21029)
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
…ence tests (openclaw#23067) (thanks @yangnim21029)
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.
Summary
Add a
disableAudioPreflightconfiguration option for Telegram groups and topics.Currently, OpenClaw automatically transcribes voice notes in groups where a mention is required to detect if the bot was addressed. This can lead to unintended API costs in busy groups. This PR allows bot owners to opt-out of this behavior.
Changes
disableAudioPreflight?: booleantoTelegramTopicConfigandTelegramGroupConfiginsrc/config/types.telegram.ts.buildTelegramMessageContextinsrc/telegram/bot-message-context.tsto skip preflight transcription ifdisableAudioPreflightis set totrue.src/telegram/bot-message-context.audio-transcript.test.tsto verify that transcription is skipped when the flag is enabled.Verification
pnpm test src/telegram/bot-message-context.audio-transcript.test.ts- PASStranscribeFirstAudiois not called when the config is active.Greptile Summary
Added
disableAudioPreflightconfiguration option for Telegram groups and topics to allow bot owners to opt-out of automatic voice-note transcription for mention detection, preventing unintended API costs in busy groups.TelegramTopicConfigandTelegramGroupConfiginsrc/config/types.telegram.ts:179andsrc/config/types.telegram.ts:200buildTelegramMessageContextto skip preflight transcription when flag is enabled using existingfirstDefinedpattern for config resolutionConfidence Score: 5/5
Last reviewed commit: 1156030
(2/5) Greptile learns from your feedback when you react with thumbs up/down!