Skip to content

Telegram Rich Messages for agent answers - #7

Open
aeshef wants to merge 1 commit into
mainfrom
cursor/telegram-rich-messages-6cf2
Open

Telegram Rich Messages for agent answers#7
aeshef wants to merge 1 commit into
mainfrom
cursor/telegram-rich-messages-6cf2

Conversation

@aeshef

@aeshef aeshef commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Wire Bot API 10.1+ sendRichMessage / sendRichMessageDraft (raw methods, aiogram-compatible).
  • Agent answers keep markdown and render as rich GFM (headings, tables, lists); plain fallback if Telegram rejects.
  • Config: telegram.rich_messages / rich_max_chars in platform.yaml.
  • Prompt nudge for structured markdown in host answers.

Test plan

  • unit tests for rich transport + finalize path
  • ask the bot a structured question and confirm rich formatting in Telegram

Send final replies via sendRichMessage (GFM markdown) with plain-text
fallback; stream with sendRichMessageDraft when available. Config flag
telegram.rich_messages; nudge host prompt toward structured markdown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant