hermes - 💡(How to fix) Fix fix(gateway): Telegram sends voice + text as separate messages on auto-TTS [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

Bug description

When auto-TTS fires on Telegram (voice input with voice_only mode active), the gateway sends two separate messages:

  1. A native voice bubble (auto-TTS audio)
  2. A text message with the response content

Expected behaviour: one message — a voice bubble with the text as caption (similar to how Discord correctly sends only the voice).

Steps to reproduce

  1. Send a voice message to the Telegram bot
  2. Observe that both a voice bubble and a text message appear
  3. Compare with Discord where only a voice bubble appears

Platform

  • Telegram bot adapter
  • Auto-TTS enabled (voice.auto_tts: true in config)

Additional context

This is similar to Signal issue #8250 (fix(signal): preserve native TTS format and send single captioned audio reply). The Signal adapter has the same issue. The Telegram send_voice method supports captions, so the fix should make the auto-TTS path send the text as a caption on the voice message instead of as a separate text message.

Relevant code in base.py around line 2816-2844 — the auto-TTS path sends voice via play_tts() and then unconditionally sends text via _send_with_retry() regardless of whether voice was already sent.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING