mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 21:03:43 +00:00
fix: wire telegram disableAudioPreflight config validation and precedence tests (#23067) (thanks @yangnim21029)
This commit is contained in:
@@ -394,7 +394,10 @@ export const buildTelegramMessageContext = async ({
|
||||
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
||||
|
||||
const disableAudioPreflight =
|
||||
firstDefined(topicConfig?.disableAudioPreflight, groupConfig?.disableAudioPreflight) === true;
|
||||
firstDefined(
|
||||
topicConfig?.disableAudioPreflight,
|
||||
(groupConfig as TelegramGroupConfig | undefined)?.disableAudioPreflight,
|
||||
) === true;
|
||||
|
||||
// Preflight audio transcription for mention detection in groups
|
||||
// This allows voice notes to be checked for mentions before being dropped
|
||||
|
||||
Reference in New Issue
Block a user