chore(api): regenerate from Telegram Bot API v10.2

Snapshot taken 2026-07-21. Notable shape change: ReplyParameters.MessageID
becomes optional (*int64) because Bot API 10.2 allows a reply to target
ephemeral_message_id instead. This breaks callers that set MessageID by value,
so examples/echo passes the address now.

New surface includes the ephemeral message methods, sendRichMessage with
InputRichMessageMedia, and the Community service messages.
This commit is contained in:
2026-07-21 22:52:20 +01:00
parent 5aabbe6151
commit 9c363f470a
9 changed files with 29069 additions and 1346 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ func handleEcho(c *dispatch.Context, m *api.Message) error {
_, err := api.SendMessage(c.Ctx, c.Bot, &api.SendMessageParams{
ChatID: api.ChatIDFromInt(m.Chat.ID),
Text: m.Text,
ReplyParameters: &api.ReplyParameters{MessageID: m.MessageID},
ReplyParameters: &api.ReplyParameters{MessageID: &m.MessageID},
})
return err
}