Skip to content

Add Telegram rich message helpers#7

Draft
yashau wants to merge 1 commit into
eekstunt:mainfrom
yashau:codex/rich-messages
Draft

Add Telegram rich message helpers#7
yashau wants to merge 1 commit into
eekstunt:mainfrom
yashau:codex/rich-messages

Conversation

@yashau

@yashau yashau commented Jun 16, 2026

Copy link
Copy Markdown

Summary

  • Add Bot API 10.1 InputRichMessage and InputRichMessageContent payload helpers aligned with Telegram's documented html, markdown, is_rtl, skip_entity_detection, and rich_message fields.
  • Add Richify, RichifyMarkdown, RichifyHTML, ConvertToRichHTML, rich payload options, validation, and Bot API 10.1 limit constants.
  • Cover the documented rich Markdown and rich HTML surfaces in tests, including media blocks, tables, footnotes, formulas, details, collages, slideshows, maps, and the draft-only <tg-thinking> block.

Docs reference: https://core.telegram.org/bots/api#rich-message-formatting-options

Verification

  • go test ./...
  • go vet ./...
  • git diff --check
  • CGO_ENABLED=1 go test -race ./... could not run locally because this Windows environment has no C compiler on PATH: cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%

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