mirror of
https://github.com/lukaszraczylo/go-telegram.git
synced 2026-07-22 22:58:41 +00:00
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:
@@ -33,6 +33,14 @@ const (
|
||||
BotCommandScopeTypeChatMember BotCommandScopeType = "chat_member"
|
||||
)
|
||||
|
||||
type BotSubscriptionUpdatedState string
|
||||
|
||||
const (
|
||||
BotSubscriptionUpdatedStateCanceled BotSubscriptionUpdatedState = "canceled"
|
||||
BotSubscriptionUpdatedStateActive BotSubscriptionUpdatedState = "active"
|
||||
BotSubscriptionUpdatedStateFailed BotSubscriptionUpdatedState = "failed"
|
||||
)
|
||||
|
||||
type ChatBoostSourceKind string
|
||||
|
||||
const (
|
||||
@@ -133,6 +141,12 @@ const (
|
||||
InputMediaTypeVideo InputMediaType = "video"
|
||||
)
|
||||
|
||||
type InputMediaVoiceNoteType string
|
||||
|
||||
const (
|
||||
InputMediaVoiceNoteTypeVoiceNote InputMediaVoiceNoteType = "voice_note"
|
||||
)
|
||||
|
||||
type InputPaidMediaType string
|
||||
|
||||
const (
|
||||
@@ -174,6 +188,32 @@ const (
|
||||
InputProfilePhotoTypeAnimated InputProfilePhotoType = "animated"
|
||||
)
|
||||
|
||||
type InputRichBlockType string
|
||||
|
||||
const (
|
||||
InputRichBlockTypeParagraph InputRichBlockType = "paragraph"
|
||||
InputRichBlockTypeHeading InputRichBlockType = "heading"
|
||||
InputRichBlockTypePre InputRichBlockType = "pre"
|
||||
InputRichBlockTypeFooter InputRichBlockType = "footer"
|
||||
InputRichBlockTypeDivider InputRichBlockType = "divider"
|
||||
InputRichBlockTypeMathematicalExpression InputRichBlockType = "mathematical_expression"
|
||||
InputRichBlockTypeAnchor InputRichBlockType = "anchor"
|
||||
InputRichBlockTypeList InputRichBlockType = "list"
|
||||
InputRichBlockTypeBlockquote InputRichBlockType = "blockquote"
|
||||
InputRichBlockTypePullquote InputRichBlockType = "pullquote"
|
||||
InputRichBlockTypeCollage InputRichBlockType = "collage"
|
||||
InputRichBlockTypeSlideshow InputRichBlockType = "slideshow"
|
||||
InputRichBlockTypeTable InputRichBlockType = "table"
|
||||
InputRichBlockTypeDetails InputRichBlockType = "details"
|
||||
InputRichBlockTypeMap InputRichBlockType = "map"
|
||||
InputRichBlockTypeAnimation InputRichBlockType = "animation"
|
||||
InputRichBlockTypeAudio InputRichBlockType = "audio"
|
||||
InputRichBlockTypePhoto InputRichBlockType = "photo"
|
||||
InputRichBlockTypeVideo InputRichBlockType = "video"
|
||||
InputRichBlockTypeVoiceNote InputRichBlockType = "voice_note"
|
||||
InputRichBlockTypeThinking InputRichBlockType = "thinking"
|
||||
)
|
||||
|
||||
type InputStickerFormat string
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user