Skip to content

Telegram: empty message sent when reply contains markdown tables #6652

@nydamon

Description

@nydamon

Bug Description

When a reply contains markdown tables and is moderately long (~2000+ chars), the message sent to Telegram can be empty, resulting in:

[telegram] sendMessage failed: Call to 'sendMessage' failed! (400: Bad Request: message text is empty)
[telegram] final reply failed: GrammyError: Call to 'sendMessage' failed! (400: Bad Request: message text is empty)

Reproduction

  1. Send a reply with markdown tables (using | for columns)
  2. Reply should be ~2000+ characters
  3. Message arrives empty to Telegram

Expected Behavior

Message should either:

  • Render correctly (tables converted to text)
  • Fall back to plain text if markdown fails
  • Never send empty message

Environment

  • OpenClaw version: 2026.1.30
  • Channel: Telegram
  • OS: Linux (Ubuntu on VPS)

Logs

2026-02-01T22:37:06.083Z [telegram] sendMessage failed: Call to 'sendMessage' failed! (400: Bad Request: message text is empty)

Workaround

Avoid markdown tables in Telegram replies; use bullet lists instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions