← Back to library

群聊成本控制实战:用 `disableAudioPreflight` 关闭 Telegram 语音预转写

问题/场景:需要 @提及时,群聊语音消息会触发预转写,活跃群里成本偏高。前置条件:使用 Telegram 群组/话题配置并启用 mention gating。实施步骤:1) 在 group/topic 配置开启 `disableAudioPreflight`;2) 保留文本 mention 检测;3) 观察命中率和成本变化;4) 对必要话题按白名单恢复预转写。关键配置:`channels.telegram.groups[].disableAudioPreflight`(或 topic 级同名字段)。验证方法:语音消息不再触发预转写,但文本 @ 触发行为保持。风险与边界:关闭后语音里的提及可能漏检。来源归因:PR #23067。

GITHUBDiscovered 2026-03-07Author yangnim21029
Prerequisites
  • Telegram group/topic routing is enabled with mention-required policy.
  • You can modify Telegram channel config and restart safely.
Steps
  1. Identify high-traffic groups where voice-note preflight transcription drives most token usage.
  2. Set `disableAudioPreflight: true` at group/topic level and redeploy gateway.
  3. Run A/B observation for 3-7 days on trigger quality (mentions caught) versus cost reduction.
  4. Re-enable preflight only for critical groups where voice-trigger misses are unacceptable.
Commands
openclaw gateway status
openclaw gateway restart
openclaw help
Verify

Voice-note traffic no longer triggers preflight transcription while text mention routing still works.

Caveats
  • Disabling preflight can miss voice-only mentions that were previously captured.
  • Per-topic mention behavior may vary by bot privacy settings(需验证).
Source attribution

This tip is aggregated from community/public sources and preserved with attribution.

Open original source ↗
Visit original post