hermes - 💡(How to fix) Fix Telegram clarify choices should include full numbered text when buttons truncate [2 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

Telegram clarify choices are currently rendered only as inline button labels. For long choices, Telegram mobile cuts/truncates the button text, so the user cannot read the full question/answer options before choosing.

Observed by Neal in Telegram with a clarify prompt offering four long choices: the inline buttons were cut off, making the full options unreadable.

Environment

  • Platform: Telegram gateway
  • UI: Telegram mobile inline keyboard buttons
  • Scenario: clarify with long multiple-choice answers

Actual behavior

Button labels are cut/truncated, so Neal cannot read the full answer options. The code also intentionally truncates labels around 60 chars in gateway/platforms/telegram.py::send_clarify, which avoids Telegram label limits but leaves no full-text copy in the chat body.

Expected behavior

The message body should include the full numbered options in readable text, while buttons remain available as shortcuts. Alternatively, the adapter can auto-short button labels (for example 1, 2, 3, 4, Other) and always put the full option text in the body.

Repro

  1. Start Hermes gateway with Telegram enabled.
  2. Trigger a clarify call with 4 long choices.
  3. Observe that Telegram inline keyboard choices are cut/truncated and the full options are not readable in the message body.

Recommended fix

For Telegram clarify prompts with choices:

  • Render the question plus a full numbered list in the message body, e.g. 1. <full choice text> through 4. <full choice text>.
  • Use short inline keyboard labels such as 1, 2, 3, 4 (or very short summaries) to avoid mobile Telegram truncation.
  • Keep the ✏️ Other (type answer) path / freeform text capture unchanged.
  • Preserve HTML escaping / parse mode behavior and callback data length safety.

Acceptance criteria

  • Telegram clarify renders full option text in the chat body.
  • Buttons use short labels that work on mobile Telegram.
  • Works with 4 long choices on mobile Telegram without losing readability.
  • No loss of typed Other/freeform option behavior.

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…

FAQ

Expected behavior

The message body should include the full numbered options in readable text, while buttons remain available as shortcuts. Alternatively, the adapter can auto-short button labels (for example 1, 2, 3, 4, Other) and always put the full option text in the body.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING