Skip to content

Add Telegram Bot API 10.3 support - #88

Merged
OvyFlash merged 7 commits into
masterfrom
bot-api-10-3
Aug 26, 2026
Merged

Add Telegram Bot API 10.3 support#88
OvyFlash merged 7 commits into
masterfrom
bot-api-10-3

Conversation

@OvyFlash

Copy link
Copy Markdown
Owner

Replace flat ephemeral send fields with EphemeralMessageParameters and add rich-message buttons/documents, draft stop controls, and related update types.

Reopened after reverting merge of #87 on master.

Test plan

  • go vet ./...
  • go test ./...
  • go test -race ./...
  • go test -tags=api_parity ./...

Made with Cursor

Replace flat ephemeral send fields with EphemeralMessageParameters and add rich-message buttons/documents, draft stop controls, and related update types.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add Telegram API field comments and align/style helpers on 10.3 types,
use EphemeralMessageParameters as a value with AddInterfaceNonZero to match
LinkPreviewOptions, gitignore .cursor agent config, and remove it from the tree.

Co-authored-by: Cursor <cursoragent@cursor.com>

@iamwavecut iamwavecut left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid 10.3 work. I ran the parity suite against the updated 10.3 api.json — passes clean, the EphemeralMessageParameters migration covers exactly the 14 methods the spec lists, and the negative leak test (unsupported methods must not emit it) is still in place. I pushed 6e23f38 to the branch: a gofumpt pass over the three misaligned struct fields, nothing else.

One thing needs fixing before merge: sendVideoNote / sendLocation / sendVenue / sendContact now swallow the BaseChat.params() error — details and suggestions inline. The rest of the inline notes are small: pointer-vs-value asymmetry on EditEphemeralMessageTextConfig.RichMessage, a typed-nil media guard on the ephemeral media edit, a docs line recommending HTTP URLs the spec forbids, and two test-coverage gaps.

Non-blocker, for the record: docs/examples still stop at 10.2 — nothing yet on draft stop (CanStop/KeepOnStop + handling stopped_message_generation), ReplaceCallbackQueryMessage, rich buttons/documents, or can_send_welcome_messages. Fine as a follow-up PR.

Comment thread configs.go
Comment thread configs.go
Comment thread configs.go
Comment thread configs.go
Comment thread configs.go Outdated
Comment thread configs.go Outdated
Comment thread docs/examples/bot-api-10.md Outdated
Comment thread bot_api_10_2_test.go Outdated
Comment thread bot_api_10_3_test.go Outdated
Comment thread bot_api_10_3_test.go Outdated
Comment thread configs.go
Comment thread configs.go
OvyFlash and others added 2 commits August 26, 2026 22:41
Co-authored-by: Valeriy Selitskiy <239034+iamwavecut@users.noreply.github.com>
@OvyFlash
OvyFlash merged commit 83c4ead into master Aug 26, 2026
2 checks passed
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.

2 participants