Update to TDLib 1.8.67

This commit is contained in:
c0re100 2026-08-29 16:02:50 +08:00
parent 4dfe20c5c8
commit 4e279fb246
No known key found for this signature in database
GPG key ID: 7C3B3004FE745AAF
4 changed files with 1922 additions and 107 deletions

View file

@ -3187,6 +3187,93 @@ func (client *Client) SetPinnedSavedMessagesTopics(req *SetPinnedSavedMessagesTo
return UnmarshalOk(result.Data)
}
type LoadCommunityFullInfoRequest struct {
// Community identifier
CommunityId int64 `json:"community_id"`
}
// Returns full information about a community. The data will be sent through update.
func (client *Client) LoadCommunityFullInfo(req *LoadCommunityFullInfoRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "loadCommunityFullInfo",
},
Data: map[string]interface{}{
"community_id": req.CommunityId,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
type CreateCommunityRequest struct {
// Name of the new community
Name string `json:"name"`
// Identifier of the chat in the community; only chats with owned bots and owned basic group, supergroup and channel chats are allowed; basic group chats will be automatically upgraded to supergroup chats
ChatId int64 `json:"chat_id"`
// Pass true if the chat will be visible only to administrators of the community
IsChatHidden bool `json:"is_chat_hidden"`
}
// Creates a new community for the given chat. Returns identifier of the created community
func (client *Client) CreateCommunity(req *CreateCommunityRequest) (*CommunityId, error) {
result, err := client.Send(Request{
meta: meta{
Type: "createCommunity",
},
Data: map[string]interface{}{
"name": req.Name,
"chat_id": req.ChatId,
"is_chat_hidden": req.IsChatHidden,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalCommunityId(result.Data)
}
type SetCommunityNameRequest struct {
// Identifier of the community
CommunityId int64 `json:"community_id"`
// New name of the community
Name string `json:"name"`
}
// Changes name of the given community; requires can_change_info administrator right in the community
func (client *Client) SetCommunityName(req *SetCommunityNameRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "setCommunityName",
},
Data: map[string]interface{}{
"community_id": req.CommunityId,
"name": req.Name,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
type GetGroupsInCommonRequest struct {
// User identifier
UserId int64 `json:"user_id"`
@ -5589,15 +5676,19 @@ type SendEphemeralMessageRequest struct {
ReceiverUserId int64 `json:"receiver_user_id"`
// Identifier of the callback query which triggered the message; for bots only
CallbackQueryId JsonInt64 `json:"callback_query_id"`
// Pass true if the ephemeral message must replace the message from which the callback query originated; for bots only
ReplaceCallbackQueryMessage bool `json:"replace_callback_query_message"`
// Information about the message to be replied; pass null if none. The message can be an incoming ephemeral message
ReplyTo InputMessageReplyTo `json:"reply_to"`
// Pass true if the content of the message must be protected from forwarding and saving; for bots only
ProtectContent bool `json:"protect_content"`
// Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates
SendingId int32 `json:"sending_id"`
// Pass true to get a fake message instead of actually sending them
OnlyPreview bool `json:"only_preview"`
// Markup for replying to the message; pass null if none; for bots only
ReplyMarkup ReplyMarkup `json:"reply_markup"`
// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote, inputMessageLocation, inputMessageVenue, inputMessageContact
// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote, inputMessageLocation, inputMessageVenue, inputMessageContact
InputMessageContent InputMessageContent `json:"input_message_content"`
}
@ -5612,7 +5703,9 @@ func (client *Client) SendEphemeralMessage(req *SendEphemeralMessageRequest) (*M
"topic_id": req.TopicId,
"receiver_user_id": req.ReceiverUserId,
"callback_query_id": req.CallbackQueryId,
"replace_callback_query_message": req.ReplaceCallbackQueryMessage,
"reply_to": req.ReplyTo,
"protect_content": req.ProtectContent,
"sending_id": req.SendingId,
"only_preview": req.OnlyPreview,
"reply_markup": req.ReplyMarkup,
@ -5705,7 +5798,7 @@ type DeleteEphemeralMessageRequest struct {
ChatId int64 `json:"chat_id"`
// Identifier of the user who received the message
ReceiverUserId int64 `json:"receiver_user_id"`
// Identifiers of the message to be deleted
// Identifier of the message to be deleted
EphemeralMessageId int32 `json:"ephemeral_message_id"`
}
@ -6175,11 +6268,11 @@ type EditEphemeralMessageRequest struct {
EphemeralMessageId int32 `json:"ephemeral_message_id"`
// The new message reply markup; pass null if none
ReplyMarkup ReplyMarkup `json:"reply_markup"`
// New content of the message; pass null to edit only reply markup. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote
// New content of the message; pass null to edit only reply markup. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote
InputMessageContent InputMessageContent `json:"input_message_content"`
}
// Edits the text, caption or reply markup of an ephemeral message sent by the bot; for bots only
// Edits the text, media, or reply markup of an ephemeral message sent by the bot; for bots only
func (client *Client) EditEphemeralMessage(req *EditEphemeralMessageRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
@ -6204,6 +6297,82 @@ func (client *Client) EditEphemeralMessage(req *EditEphemeralMessageRequest) (*O
return UnmarshalOk(result.Data)
}
type EditEphemeralMessageCaptionRequest struct {
// The chat the message belongs to
ChatId int64 `json:"chat_id"`
// Identifier of the user who received the message
ReceiverUserId int64 `json:"receiver_user_id"`
// Identifier of the ephemeral message
EphemeralMessageId int32 `json:"ephemeral_message_id"`
// The new message reply markup; pass null if none
ReplyMarkup ReplyMarkup `json:"reply_markup"`
// New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters
Caption *FormattedText `json:"caption"`
// Pass true to show the caption above the media; otherwise, the caption will be shown below the media. May be true only for animation, photo, and video messages
ShowCaptionAboveMedia bool `json:"show_caption_above_media"`
}
// Edits the caption and reply markup of an ephemeral message sent by the bot; for bots only
func (client *Client) EditEphemeralMessageCaption(req *EditEphemeralMessageCaptionRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "editEphemeralMessageCaption",
},
Data: map[string]interface{}{
"chat_id": req.ChatId,
"receiver_user_id": req.ReceiverUserId,
"ephemeral_message_id": req.EphemeralMessageId,
"reply_markup": req.ReplyMarkup,
"caption": req.Caption,
"show_caption_above_media": req.ShowCaptionAboveMedia,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
type EditCallbackQueryMessageRequest struct {
// Identifier of the callback query
CallbackQueryId JsonInt64 `json:"callback_query_id"`
// Pass true if the content of the message must be protected from forwarding and saving
ProtectContent bool `json:"protect_content"`
// The new message reply markup; pass null if none
ReplyMarkup ReplyMarkup `json:"reply_markup"`
// New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote
InputMessageContent InputMessageContent `json:"input_message_content"`
}
// Edits the message from which a callback query has originated with an ephemeral message; for bots only
func (client *Client) EditCallbackQueryMessage(req *EditCallbackQueryMessageRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "editCallbackQueryMessage",
},
Data: map[string]interface{}{
"callback_query_id": req.CallbackQueryId,
"protect_content": req.ProtectContent,
"reply_markup": req.ReplyMarkup,
"input_message_content": req.InputMessageContent,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
type EditMessageSchedulingStateRequest struct {
// The chat the message belongs to
ChatId int64 `json:"chat_id"`
@ -6236,6 +6405,35 @@ func (client *Client) EditMessageSchedulingState(req *EditMessageSchedulingState
return UnmarshalOk(result.Data)
}
type DeleteMessageEphemeralContentRequest struct {
// The chat the message belongs to
ChatId int64 `json:"chat_id"`
// Identifier of the message
MessageId int64 `json:"message_id"`
}
// Removes message ephemeral content and reverts message state to the original
func (client *Client) DeleteMessageEphemeralContent(req *DeleteMessageEphemeralContentRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "deleteMessageEphemeralContent",
},
Data: map[string]interface{}{
"chat_id": req.ChatId,
"message_id": req.MessageId,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
type SetMessageFactCheckRequest struct {
// The channel chat the message belongs to
ChatId int64 `json:"chat_id"`
@ -7289,7 +7487,7 @@ type ReaddQuickReplyShortcutMessagesRequest struct {
MessageIds []int64 `json:"message_ids"`
}
// Re-adds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. If a message is re-added, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be readded, null will be returned instead of the message
// Re-adds quick reply messages which failed to add. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. If a message is re-added, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-added, null will be returned instead of the message
func (client *Client) ReaddQuickReplyShortcutMessages(req *ReaddQuickReplyShortcutMessagesRequest) (*QuickReplyMessages, error) {
result, err := client.Send(Request{
meta: meta{
@ -7343,6 +7541,148 @@ func (client *Client) EditQuickReplyMessage(req *EditQuickReplyMessageRequest) (
return UnmarshalOk(result.Data)
}
type LoadChatWelcomeMessagesRequest struct {
// The identifier of the chat
ChatId int64 `json:"chat_id"`
}
// Loads welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. The loaded messages will be sent through updateChatWelcomeMessages
func (client *Client) LoadChatWelcomeMessages(req *LoadChatWelcomeMessagesRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "loadChatWelcomeMessages",
},
Data: map[string]interface{}{
"chat_id": req.ChatId,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
type AddChatWelcomeMessageRequest struct {
// The identifier of the chat
ChatId int64 `json:"chat_id"`
// The content of the message to be sent. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote, inputMessageLocation, inputMessageVenue, inputMessageContact
InputMessageContent InputMessageContent `json:"input_message_content"`
}
// Adds a message to the list of welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat. There can be up to getOption("welcome_message_count_max") welcome messages in a chat
func (client *Client) AddChatWelcomeMessage(req *AddChatWelcomeMessageRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "addChatWelcomeMessage",
},
Data: map[string]interface{}{
"chat_id": req.ChatId,
"input_message_content": req.InputMessageContent,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
type EditChatWelcomeMessageRequest struct {
// The identifier of the chat
ChatId int64 `json:"chat_id"`
// The identifier of the welcome message
WelcomeMessageId int32 `json:"welcome_message_id"`
// New content of the message. Must be one of the following types: inputMessageText, inputMessageAnimation, inputMessageAudio, inputMessageDocument, inputMessagePhoto, inputMessageRichMessage, inputMessageSticker, inputMessageVideo, inputMessageVideoNote, inputMessageVoiceNote
InputMessageContent InputMessageContent `json:"input_message_content"`
}
// Edits a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat
func (client *Client) EditChatWelcomeMessage(req *EditChatWelcomeMessageRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "editChatWelcomeMessage",
},
Data: map[string]interface{}{
"chat_id": req.ChatId,
"welcome_message_id": req.WelcomeMessageId,
"input_message_content": req.InputMessageContent,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
type DeleteChatWelcomeMessageRequest struct {
// The identifier of the chat
ChatId int64 `json:"chat_id"`
// The identifier of the welcome message
WelcomeMessageId int32 `json:"welcome_message_id"`
}
// Deletes a welcome message of a chat; requires can_send_welcome_messages administrator right in the chat
func (client *Client) DeleteChatWelcomeMessage(req *DeleteChatWelcomeMessageRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "deleteChatWelcomeMessage",
},
Data: map[string]interface{}{
"chat_id": req.ChatId,
"welcome_message_id": req.WelcomeMessageId,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
type DeleteAllChatWelcomeMessagesRequest struct {
// The identifier of the chat
ChatId int64 `json:"chat_id"`
}
// Deletes all welcome messages of a chat; requires can_send_welcome_messages administrator right in the chat
func (client *Client) DeleteAllChatWelcomeMessages(req *DeleteAllChatWelcomeMessagesRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "deleteAllChatWelcomeMessages",
},
Data: map[string]interface{}{
"chat_id": req.ChatId,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
// Returns the list of custom emoji, which can be used as forum topic icon by all users
func (client *Client) GetForumTopicDefaultIcons() (*Stickers, error) {
result, err := client.Send(Request{
@ -10440,6 +10780,10 @@ type SendTextMessageDraftRequest struct {
ForumTopicId int32 `json:"forum_topic_id"`
// Unique identifier of the draft
DraftId JsonInt64 `json:"draft_id"`
// Pass true to show the user a button to stop further drafts
CanStop bool `json:"can_stop"`
// Pass true to keep the current draft when the user stops further generation
KeepOnStop bool `json:"keep_on_stop"`
// Draft text of the message; pass null to show a "Thinking..." placeholder
Text *FormattedText `json:"text"`
}
@ -10454,6 +10798,8 @@ func (client *Client) SendTextMessageDraft(req *SendTextMessageDraftRequest) (*O
"chat_id": req.ChatId,
"forum_topic_id": req.ForumTopicId,
"draft_id": req.DraftId,
"can_stop": req.CanStop,
"keep_on_stop": req.KeepOnStop,
"text": req.Text,
},
})
@ -10475,6 +10821,10 @@ type SendRichMessageDraftRequest struct {
ForumTopicId int32 `json:"forum_topic_id"`
// Unique identifier of the draft
DraftId JsonInt64 `json:"draft_id"`
// Pass true to show the user a button to stop further drafts
CanStop bool `json:"can_stop"`
// Pass true to keep the current draft when the user stops further generation
KeepOnStop bool `json:"keep_on_stop"`
// Draft of the message; file upload isn't supported
Message *InputRichMessage `json:"message"`
}
@ -10489,6 +10839,8 @@ func (client *Client) SendRichMessageDraft(req *SendRichMessageDraftRequest) (*O
"chat_id": req.ChatId,
"forum_topic_id": req.ForumTopicId,
"draft_id": req.DraftId,
"can_stop": req.CanStop,
"keep_on_stop": req.KeepOnStop,
"message": req.Message,
},
})
@ -10503,6 +10855,38 @@ func (client *Client) SendRichMessageDraft(req *SendRichMessageDraftRequest) (*O
return UnmarshalOk(result.Data)
}
type StopPendingMessageRequest struct {
// Identifier of the chat with the bot
ChatId int64 `json:"chat_id"`
// Identifier of the topic in which the action is performed; pass null if none
TopicId MessageTopic `json:"topic_id"`
// Unique identifier of the message draft within the message thread
DraftId JsonInt64 `json:"draft_id"`
}
// Stops a pending message generation by a bot
func (client *Client) StopPendingMessage(req *StopPendingMessageRequest) (*Ok, error) {
result, err := client.Send(Request{
meta: meta{
Type: "stopPendingMessage",
},
Data: map[string]interface{}{
"chat_id": req.ChatId,
"topic_id": req.TopicId,
"draft_id": req.DraftId,
},
})
if err != nil {
return nil, err
}
if result.Type == "error" {
return nil, buildResponseError(result.Data)
}
return UnmarshalOk(result.Data)
}
type OpenChatRequest struct {
// Chat identifier
ChatId int64 `json:"chat_id"`
@ -12448,7 +12832,7 @@ type SetChatDraftMessageRequest struct {
ChatId int64 `json:"chat_id"`
// Topic in which the draft will be changed; pass null to change the draft for the chat itself
TopicId MessageTopic `json:"topic_id"`
// New draft message; pass null to remove the draft. All files in draft message content must be of the type inputFileLocal. Media thumbnails and captions are ignored
// New draft message; pass null to remove the draft
DraftMessage *DraftMessage `json:"draft_message"`
}
@ -13083,7 +13467,7 @@ type AddChatMembersRequest struct {
UserIds []int64 `json:"user_ids"`
}
// Adds multiple new members to a chat; requires can_invite_users member right. Currently, this method is only available for supergroups and channels. This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Returns information about members that weren't added
// Adds multiple new members to a chat; requires can_invite_users member right. Currently, this method is available only in supergroups and channels. This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Returns information about members that weren't added
func (client *Client) AddChatMembers(req *AddChatMembersRequest) (*FailedToAddMembers, error) {
result, err := client.Send(Request{
meta: meta{
@ -13140,7 +13524,7 @@ func (client *Client) SetChatMemberStatus(req *SetChatMemberStatusRequest) (*Ok,
type SetChatMemberTagRequest struct {
// Chat identifier
ChatId int64 `json:"chat_id"`
// Identifier of the user, which tag is changed. Chats can't have member tags
// Identifier of the user whose tag is changed. Chats can't have member tags
UserId int64 `json:"user_id"`
// The new tag of the member in the chat; 0-16 characters without emoji
Tag string `json:"tag"`
@ -16125,7 +16509,7 @@ type EditChatInviteLinkRequest struct {
CreatesJoinRequest bool `json:"creates_join_request"`
}
// Edits a non-primary invite link for a chat. Available for basic groups, supergroups, and channels. If the link creates a subscription, then expiration_date, member_limit and creates_join_request must not be used. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links
// Edits a non-primary invite link for a chat. Available in basic groups, supergroups, and channels. If the link creates a subscription, then expiration_date, member_limit and creates_join_request must not be used. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links
func (client *Client) EditChatInviteLink(req *EditChatInviteLinkRequest) (*ChatInviteLink, error) {
result, err := client.Send(Request{
meta: meta{
@ -16324,7 +16708,7 @@ type RevokeChatInviteLinkRequest struct {
InviteLink string `json:"invite_link"`
}
// Revokes invite link for a chat. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links. If a primary link is revoked, then additionally to the revoked link returns new primary link
// Revokes invite link for a chat. Available in basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links. If a primary link is revoked, then additionally to the revoked link returns new primary link
func (client *Client) RevokeChatInviteLink(req *RevokeChatInviteLinkRequest) (*ChatInviteLinks, error) {
result, err := client.Send(Request{
meta: meta{
@ -23306,7 +23690,7 @@ type GetChatEventLogRequest struct {
UserIds []int64 `json:"user_ids"`
}
// Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only for supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id)
// Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only in supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i.e., in order of decreasing event_id)
func (client *Client) GetChatEventLog(req *GetChatEventLogRequest) (*ChatEvents, error) {
result, err := client.Send(Request{
meta: meta{
@ -24181,6 +24565,10 @@ type SendResoldGiftRequest struct {
OwnerId MessageSender `json:"owner_id"`
// The price that the user agreed to pay for the gift
Price GiftResalePrice `json:"price"`
// Text to show along with the gift; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed. Must be empty if the receiver enabled paid messages and the price of the gift is less than the price of a paid message to the user
Text *FormattedText `json:"text"`
// Pass true to show gift text and sender only to the gift receiver; otherwise, everyone will be able to see them
IsPrivate bool `json:"is_private"`
}
// Sends an upgraded gift that is available for resale to another user or channel chat; gifts already owned by the current user must be transferred using transferGift and can't be passed to the method
@ -24193,6 +24581,8 @@ func (client *Client) SendResoldGift(req *SendResoldGiftRequest) (GiftResaleResu
"gift_name": req.GiftName,
"owner_id": req.OwnerId,
"price": req.Price,
"text": req.Text,
"is_private": req.IsPrivate,
},
})
if err != nil {
@ -24508,7 +24898,7 @@ func (client *Client) GetUpgradedGiftsPromotionalAnimation() (*Animation, error)
type SetGiftResalePriceRequest struct {
// Identifier of the unique gift
ReceivedGiftId string `json:"received_gift_id"`
// The new price for the unique gift; pass null to disallow gift resale. The current user will receive getOption("gift_resale_star_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for the gift if the gift price is in Telegram Stars or getOption("gift_resale_ton_earnings_per_mille") TON Grams for each 1000 Grams paid for the gift if the gift price is in Grams
// The new price for the unique gift; pass null to disallow gift resale. The current user will receive getOption("gift_resale_star_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for the gift if the gift price is in Telegram Stars or getOption("gift_resale_gram_earnings_per_mille") TON Grams for each 1000 Grams paid for the gift if the gift price is in Grams
Price GiftResalePrice `json:"price"`
}
@ -28184,7 +28574,7 @@ func (client *Client) ApplyPremiumGiftCode(req *ApplyPremiumGiftCodeRequest) (*O
}
type GiftPremiumWithStarsRequest struct {
// Identifier of the user which will receive Telegram Premium
// Identifier of the user who will receive Telegram Premium
UserId int64 `json:"user_id"`
// The number of Telegram Stars to pay for subscription
StarCount int64 `json:"star_count"`
@ -30027,6 +30417,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
case TypeUpdateMessageContent:
return UnmarshalUpdateMessageContent(result.Data)
case TypeUpdateMessageEphemeralContent:
return UnmarshalUpdateMessageEphemeralContent(result.Data)
case TypeUpdateMessageEdited:
return UnmarshalUpdateMessageEdited(result.Data)
@ -30162,6 +30555,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
case TypeUpdateChatHasScheduledMessages:
return UnmarshalUpdateChatHasScheduledMessages(result.Data)
case TypeUpdateChatHasWelcomeMessages:
return UnmarshalUpdateChatHasWelcomeMessages(result.Data)
case TypeUpdateChatFolders:
return UnmarshalUpdateChatFolders(result.Data)
@ -30192,6 +30588,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
case TypeUpdateQuickReplyShortcutMessages:
return UnmarshalUpdateQuickReplyShortcutMessages(result.Data)
case TypeUpdateChatWelcomeMessages:
return UnmarshalUpdateChatWelcomeMessages(result.Data)
case TypeUpdateForumTopicInfo:
return UnmarshalUpdateForumTopicInfo(result.Data)
@ -30225,6 +30624,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
case TypeUpdatePendingMessage:
return UnmarshalUpdatePendingMessage(result.Data)
case TypeUpdateStopMessageDraft:
return UnmarshalUpdateStopMessageDraft(result.Data)
case TypeUpdateCommunity:
return UnmarshalUpdateCommunity(result.Data)
@ -30252,6 +30654,9 @@ func (client *Client) TestUseUpdate() (Update, error) {
case TypeUpdateSupergroupFullInfo:
return UnmarshalUpdateSupergroupFullInfo(result.Data)
case TypeUpdateCommunityFullInfo:
return UnmarshalUpdateCommunityFullInfo(result.Data)
case TypeUpdateServiceNotification:
return UnmarshalUpdateServiceNotification(result.Data)

File diff suppressed because it is too large Load diff

View file

@ -2835,6 +2835,9 @@ func UnmarshalDraftMessageContent(data json.RawMessage) (DraftMessageContent, er
case TypeDraftMessageContentRichMessage:
return UnmarshalDraftMessageContentRichMessage(data)
case TypeDraftMessageContentInputRichMessage:
return UnmarshalDraftMessageContentInputRichMessage(data)
case TypeDraftMessageContentVideoNote:
return UnmarshalDraftMessageContentVideoNote(data)
@ -3106,6 +3109,9 @@ func UnmarshalButtonStyle(data json.RawMessage) (ButtonStyle, error) {
case TypeButtonStyleSuccess:
return UnmarshalButtonStyleSuccess(data)
case TypeButtonStyleLink:
return UnmarshalButtonStyleLink(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
@ -3216,6 +3222,9 @@ func UnmarshalInlineKeyboardButtonType(data json.RawMessage) (InlineKeyboardButt
case TypeInlineKeyboardButtonTypeCopyText:
return UnmarshalInlineKeyboardButtonTypeCopyText(data)
case TypeInlineKeyboardButtonTypeDisabled:
return UnmarshalInlineKeyboardButtonTypeDisabled(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
@ -3501,6 +3510,9 @@ func UnmarshalRichText(data json.RawMessage) (RichText, error) {
case TypeRichTextMathematicalExpression:
return UnmarshalRichTextMathematicalExpression(data)
case TypeRichTextButton:
return UnmarshalRichTextButton(data)
case TypeRichTextDiff:
return UnmarshalRichTextDiff(data)
@ -3669,6 +3681,9 @@ func UnmarshalPageBlock(data json.RawMessage) (PageBlock, error) {
case TypePageBlockBlockQuote:
return UnmarshalPageBlockBlockQuote(data)
case TypePageBlockExpandableBlockQuote:
return UnmarshalPageBlockExpandableBlockQuote(data)
case TypePageBlockPullQuote:
return UnmarshalPageBlockPullQuote(data)
@ -3678,6 +3693,9 @@ func UnmarshalPageBlock(data json.RawMessage) (PageBlock, error) {
case TypePageBlockAudio:
return UnmarshalPageBlockAudio(data)
case TypePageBlockDocument:
return UnmarshalPageBlockDocument(data)
case TypePageBlockPhoto:
return UnmarshalPageBlockPhoto(data)
@ -3717,6 +3735,12 @@ func UnmarshalPageBlock(data json.RawMessage) (PageBlock, error) {
case TypePageBlockMap:
return UnmarshalPageBlockMap(data)
case TypePageBlockButtonRow:
return UnmarshalPageBlockButtonRow(data)
case TypePageBlockUnsupported:
return UnmarshalPageBlockUnsupported(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
@ -4693,6 +4717,9 @@ func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
case TypeMessageChatJoinByRequest:
return UnmarshalMessageChatJoinByRequest(data)
case TypeMessageChatJoinFromCommunity:
return UnmarshalMessageChatJoinFromCommunity(data)
case TypeMessageChatDeleteMember:
return UnmarshalMessageChatDeleteMember(data)
@ -4783,8 +4810,8 @@ func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
case TypeMessageGiftedStars:
return UnmarshalMessageGiftedStars(data)
case TypeMessageGiftedTon:
return UnmarshalMessageGiftedTon(data)
case TypeMessageGiftedGrams:
return UnmarshalMessageGiftedGrams(data)
case TypeMessageGiveawayPrizeStars:
return UnmarshalMessageGiveawayPrizeStars(data)
@ -5287,6 +5314,9 @@ func UnmarshalInputPageBlock(data json.RawMessage) (InputPageBlock, error) {
case TypeInputPageBlockBlockQuote:
return UnmarshalInputPageBlockBlockQuote(data)
case TypeInputPageBlockExpandableBlockQuote:
return UnmarshalInputPageBlockExpandableBlockQuote(data)
case TypeInputPageBlockPullQuote:
return UnmarshalInputPageBlockPullQuote(data)
@ -5296,6 +5326,9 @@ func UnmarshalInputPageBlock(data json.RawMessage) (InputPageBlock, error) {
case TypeInputPageBlockAudio:
return UnmarshalInputPageBlockAudio(data)
case TypeInputPageBlockDocument:
return UnmarshalInputPageBlockDocument(data)
case TypeInputPageBlockPhoto:
return UnmarshalInputPageBlockPhoto(data)
@ -5320,6 +5353,9 @@ func UnmarshalInputPageBlock(data json.RawMessage) (InputPageBlock, error) {
case TypeInputPageBlockMap:
return UnmarshalInputPageBlockMap(data)
case TypeInputPageBlockButtonRow:
return UnmarshalInputPageBlockButtonRow(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
@ -5539,6 +5575,9 @@ func UnmarshalSearchMessagesChatTypeFilter(data json.RawMessage) (SearchMessages
case TypeSearchMessagesChatTypeFilterChannel:
return UnmarshalSearchMessagesChatTypeFilterChannel(data)
case TypeSearchMessagesChatTypeFilterCommunity:
return UnmarshalSearchMessagesChatTypeFilterCommunity(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
@ -10224,6 +10263,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
case TypeUpdateMessageContent:
return UnmarshalUpdateMessageContent(data)
case TypeUpdateMessageEphemeralContent:
return UnmarshalUpdateMessageEphemeralContent(data)
case TypeUpdateMessageEdited:
return UnmarshalUpdateMessageEdited(data)
@ -10359,6 +10401,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
case TypeUpdateChatHasScheduledMessages:
return UnmarshalUpdateChatHasScheduledMessages(data)
case TypeUpdateChatHasWelcomeMessages:
return UnmarshalUpdateChatHasWelcomeMessages(data)
case TypeUpdateChatFolders:
return UnmarshalUpdateChatFolders(data)
@ -10389,6 +10434,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
case TypeUpdateQuickReplyShortcutMessages:
return UnmarshalUpdateQuickReplyShortcutMessages(data)
case TypeUpdateChatWelcomeMessages:
return UnmarshalUpdateChatWelcomeMessages(data)
case TypeUpdateForumTopicInfo:
return UnmarshalUpdateForumTopicInfo(data)
@ -10422,6 +10470,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
case TypeUpdatePendingMessage:
return UnmarshalUpdatePendingMessage(data)
case TypeUpdateStopMessageDraft:
return UnmarshalUpdateStopMessageDraft(data)
case TypeUpdateCommunity:
return UnmarshalUpdateCommunity(data)
@ -10449,6 +10500,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
case TypeUpdateSupergroupFullInfo:
return UnmarshalUpdateSupergroupFullInfo(data)
case TypeUpdateCommunityFullInfo:
return UnmarshalUpdateCommunityFullInfo(data)
case TypeUpdateServiceNotification:
return UnmarshalUpdateServiceNotification(data)
@ -13854,6 +13908,14 @@ func UnmarshalProfileAccentColor(data json.RawMessage) (*ProfileAccentColor, err
return &resp, err
}
func UnmarshalCommunityId(data json.RawMessage) (*CommunityId, error) {
var resp CommunityId
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalCommunityPermissions(data json.RawMessage) (*CommunityPermissions, error) {
var resp CommunityPermissions
@ -13918,6 +13980,22 @@ func UnmarshalCommunity(data json.RawMessage) (*Community, error) {
return &resp, err
}
func UnmarshalCommunityChat(data json.RawMessage) (*CommunityChat, error) {
var resp CommunityChat
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalCommunityFullInfo(data json.RawMessage) (*CommunityFullInfo, error) {
var resp CommunityFullInfo
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUserRating(data json.RawMessage) (*UserRating, error) {
var resp UserRating
@ -14878,6 +14956,14 @@ func UnmarshalFactCheck(data json.RawMessage) (*FactCheck, error) {
return &resp, err
}
func UnmarshalEphemeralMessageContent(data json.RawMessage) (*EphemeralMessageContent, error) {
var resp EphemeralMessageContent
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalMessage(data json.RawMessage) (*Message, error) {
var resp Message
@ -15270,6 +15356,14 @@ func UnmarshalDraftMessageContentRichMessage(data json.RawMessage) (*DraftMessag
return &resp, err
}
func UnmarshalDraftMessageContentInputRichMessage(data json.RawMessage) (*DraftMessageContentInputRichMessage, error) {
var resp DraftMessageContentInputRichMessage
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalDraftMessageContentVideoNote(data json.RawMessage) (*DraftMessageContentVideoNote, error) {
var resp DraftMessageContentVideoNote
@ -15654,6 +15748,14 @@ func UnmarshalButtonStyleSuccess(data json.RawMessage) (*ButtonStyleSuccess, err
return &resp, err
}
func UnmarshalButtonStyleLink(data json.RawMessage) (*ButtonStyleLink, error) {
var resp ButtonStyleLink
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalKeyboardButtonTypeText(data json.RawMessage) (*KeyboardButtonTypeText, error) {
var resp KeyboardButtonTypeText
@ -15806,6 +15908,14 @@ func UnmarshalInlineKeyboardButtonTypeCopyText(data json.RawMessage) (*InlineKey
return &resp, err
}
func UnmarshalInlineKeyboardButtonTypeDisabled(data json.RawMessage) (*InlineKeyboardButtonTypeDisabled, error) {
var resp InlineKeyboardButtonTypeDisabled
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalKeyboardButtonSourceMessage(data json.RawMessage) (*KeyboardButtonSourceMessage, error) {
var resp KeyboardButtonSourceMessage
@ -16030,6 +16140,14 @@ func UnmarshalThemeSettings(data json.RawMessage) (*ThemeSettings, error) {
return &resp, err
}
func UnmarshalInlineButton(data json.RawMessage) (*InlineButton, error) {
var resp InlineButton
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalRichTextPlain(data json.RawMessage) (*RichTextPlain, error) {
var resp RichTextPlain
@ -16214,6 +16332,14 @@ func UnmarshalRichTextMathematicalExpression(data json.RawMessage) (*RichTextMat
return &resp, err
}
func UnmarshalRichTextButton(data json.RawMessage) (*RichTextButton, error) {
var resp RichTextButton
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalRichTextDiff(data json.RawMessage) (*RichTextDiff, error) {
var resp RichTextDiff
@ -16478,6 +16604,14 @@ func UnmarshalPageBlockBlockQuote(data json.RawMessage) (*PageBlockBlockQuote, e
return &resp, err
}
func UnmarshalPageBlockExpandableBlockQuote(data json.RawMessage) (*PageBlockExpandableBlockQuote, error) {
var resp PageBlockExpandableBlockQuote
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPageBlockPullQuote(data json.RawMessage) (*PageBlockPullQuote, error) {
var resp PageBlockPullQuote
@ -16502,6 +16636,14 @@ func UnmarshalPageBlockAudio(data json.RawMessage) (*PageBlockAudio, error) {
return &resp, err
}
func UnmarshalPageBlockDocument(data json.RawMessage) (*PageBlockDocument, error) {
var resp PageBlockDocument
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPageBlockPhoto(data json.RawMessage) (*PageBlockPhoto, error) {
var resp PageBlockPhoto
@ -16606,6 +16748,22 @@ func UnmarshalPageBlockMap(data json.RawMessage) (*PageBlockMap, error) {
return &resp, err
}
func UnmarshalPageBlockButtonRow(data json.RawMessage) (*PageBlockButtonRow, error) {
var resp PageBlockButtonRow
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPageBlockUnsupported(data json.RawMessage) (*PageBlockUnsupported, error) {
var resp PageBlockUnsupported
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalWebPageInstantView(data json.RawMessage) (*WebPageInstantView, error) {
var resp WebPageInstantView
@ -18310,6 +18468,14 @@ func UnmarshalMessageChatJoinByRequest(data json.RawMessage) (*MessageChatJoinBy
return &resp, err
}
func UnmarshalMessageChatJoinFromCommunity(data json.RawMessage) (*MessageChatJoinFromCommunity, error) {
var resp MessageChatJoinFromCommunity
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalMessageChatDeleteMember(data json.RawMessage) (*MessageChatDeleteMember, error) {
var resp MessageChatDeleteMember
@ -18550,8 +18716,8 @@ func UnmarshalMessageGiftedStars(data json.RawMessage) (*MessageGiftedStars, err
return &resp, err
}
func UnmarshalMessageGiftedTon(data json.RawMessage) (*MessageGiftedTon, error) {
var resp MessageGiftedTon
func UnmarshalMessageGiftedGrams(data json.RawMessage) (*MessageGiftedGrams, error) {
var resp MessageGiftedGrams
err := json.Unmarshal(data, &resp)
@ -19318,6 +19484,14 @@ func UnmarshalInputPageBlockBlockQuote(data json.RawMessage) (*InputPageBlockBlo
return &resp, err
}
func UnmarshalInputPageBlockExpandableBlockQuote(data json.RawMessage) (*InputPageBlockExpandableBlockQuote, error) {
var resp InputPageBlockExpandableBlockQuote
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalInputPageBlockPullQuote(data json.RawMessage) (*InputPageBlockPullQuote, error) {
var resp InputPageBlockPullQuote
@ -19342,6 +19516,14 @@ func UnmarshalInputPageBlockAudio(data json.RawMessage) (*InputPageBlockAudio, e
return &resp, err
}
func UnmarshalInputPageBlockDocument(data json.RawMessage) (*InputPageBlockDocument, error) {
var resp InputPageBlockDocument
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalInputPageBlockPhoto(data json.RawMessage) (*InputPageBlockPhoto, error) {
var resp InputPageBlockPhoto
@ -19406,6 +19588,14 @@ func UnmarshalInputPageBlockMap(data json.RawMessage) (*InputPageBlockMap, error
return &resp, err
}
func UnmarshalInputPageBlockButtonRow(data json.RawMessage) (*InputPageBlockButtonRow, error) {
var resp InputPageBlockButtonRow
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalInputMessageText(data json.RawMessage) (*InputMessageText, error) {
var resp InputMessageText
@ -19782,6 +19972,14 @@ func UnmarshalSearchMessagesChatTypeFilterChannel(data json.RawMessage) (*Search
return &resp, err
}
func UnmarshalSearchMessagesChatTypeFilterCommunity(data json.RawMessage) (*SearchMessagesChatTypeFilterCommunity, error) {
var resp SearchMessagesChatTypeFilterCommunity
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalSearchChatTypeFilterBot(data json.RawMessage) (*SearchChatTypeFilterBot, error) {
var resp SearchChatTypeFilterBot
@ -20518,6 +20716,14 @@ func UnmarshalQuickReplyShortcut(data json.RawMessage) (*QuickReplyShortcut, err
return &resp, err
}
func UnmarshalWelcomeMessage(data json.RawMessage) (*WelcomeMessage, error) {
var resp WelcomeMessage
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPublicForwardMessage(data json.RawMessage) (*PublicForwardMessage, error) {
var resp PublicForwardMessage
@ -26550,6 +26756,14 @@ func UnmarshalUpdateMessageContent(data json.RawMessage) (*UpdateMessageContent,
return &resp, err
}
func UnmarshalUpdateMessageEphemeralContent(data json.RawMessage) (*UpdateMessageEphemeralContent, error) {
var resp UpdateMessageEphemeralContent
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateMessageEdited(data json.RawMessage) (*UpdateMessageEdited, error) {
var resp UpdateMessageEdited
@ -26910,6 +27124,14 @@ func UnmarshalUpdateChatHasScheduledMessages(data json.RawMessage) (*UpdateChatH
return &resp, err
}
func UnmarshalUpdateChatHasWelcomeMessages(data json.RawMessage) (*UpdateChatHasWelcomeMessages, error) {
var resp UpdateChatHasWelcomeMessages
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateChatFolders(data json.RawMessage) (*UpdateChatFolders, error) {
var resp UpdateChatFolders
@ -26990,6 +27212,14 @@ func UnmarshalUpdateQuickReplyShortcutMessages(data json.RawMessage) (*UpdateQui
return &resp, err
}
func UnmarshalUpdateChatWelcomeMessages(data json.RawMessage) (*UpdateChatWelcomeMessages, error) {
var resp UpdateChatWelcomeMessages
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateForumTopicInfo(data json.RawMessage) (*UpdateForumTopicInfo, error) {
var resp UpdateForumTopicInfo
@ -27078,6 +27308,14 @@ func UnmarshalUpdatePendingMessage(data json.RawMessage) (*UpdatePendingMessage,
return &resp, err
}
func UnmarshalUpdateStopMessageDraft(data json.RawMessage) (*UpdateStopMessageDraft, error) {
var resp UpdateStopMessageDraft
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateCommunity(data json.RawMessage) (*UpdateCommunity, error) {
var resp UpdateCommunity
@ -27150,6 +27388,14 @@ func UnmarshalUpdateSupergroupFullInfo(data json.RawMessage) (*UpdateSupergroupF
return &resp, err
}
func UnmarshalUpdateCommunityFullInfo(data json.RawMessage) (*UpdateCommunityFullInfo, error) {
var resp UpdateCommunityFullInfo
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateServiceNotification(data json.RawMessage) (*UpdateServiceNotification, error) {
var resp UpdateServiceNotification
@ -29235,6 +29481,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeProfileAccentColor:
return UnmarshalProfileAccentColor(data)
case TypeCommunityId:
return UnmarshalCommunityId(data)
case TypeCommunityPermissions:
return UnmarshalCommunityPermissions(data)
@ -29259,6 +29508,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeCommunity:
return UnmarshalCommunity(data)
case TypeCommunityChat:
return UnmarshalCommunityChat(data)
case TypeCommunityFullInfo:
return UnmarshalCommunityFullInfo(data)
case TypeUserRating:
return UnmarshalUserRating(data)
@ -29619,6 +29874,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeFactCheck:
return UnmarshalFactCheck(data)
case TypeEphemeralMessageContent:
return UnmarshalEphemeralMessageContent(data)
case TypeMessage:
return UnmarshalMessage(data)
@ -29766,6 +30024,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeDraftMessageContentRichMessage:
return UnmarshalDraftMessageContentRichMessage(data)
case TypeDraftMessageContentInputRichMessage:
return UnmarshalDraftMessageContentInputRichMessage(data)
case TypeDraftMessageContentVideoNote:
return UnmarshalDraftMessageContentVideoNote(data)
@ -29910,6 +30171,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeButtonStyleSuccess:
return UnmarshalButtonStyleSuccess(data)
case TypeButtonStyleLink:
return UnmarshalButtonStyleLink(data)
case TypeKeyboardButtonTypeText:
return UnmarshalKeyboardButtonTypeText(data)
@ -29967,6 +30231,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeInlineKeyboardButtonTypeCopyText:
return UnmarshalInlineKeyboardButtonTypeCopyText(data)
case TypeInlineKeyboardButtonTypeDisabled:
return UnmarshalInlineKeyboardButtonTypeDisabled(data)
case TypeKeyboardButtonSourceMessage:
return UnmarshalKeyboardButtonSourceMessage(data)
@ -30051,6 +30318,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeThemeSettings:
return UnmarshalThemeSettings(data)
case TypeInlineButton:
return UnmarshalInlineButton(data)
case TypeRichTextPlain:
return UnmarshalRichTextPlain(data)
@ -30120,6 +30390,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeRichTextMathematicalExpression:
return UnmarshalRichTextMathematicalExpression(data)
case TypeRichTextButton:
return UnmarshalRichTextButton(data)
case TypeRichTextDiff:
return UnmarshalRichTextDiff(data)
@ -30219,6 +30492,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypePageBlockBlockQuote:
return UnmarshalPageBlockBlockQuote(data)
case TypePageBlockExpandableBlockQuote:
return UnmarshalPageBlockExpandableBlockQuote(data)
case TypePageBlockPullQuote:
return UnmarshalPageBlockPullQuote(data)
@ -30228,6 +30504,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypePageBlockAudio:
return UnmarshalPageBlockAudio(data)
case TypePageBlockDocument:
return UnmarshalPageBlockDocument(data)
case TypePageBlockPhoto:
return UnmarshalPageBlockPhoto(data)
@ -30267,6 +30546,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypePageBlockMap:
return UnmarshalPageBlockMap(data)
case TypePageBlockButtonRow:
return UnmarshalPageBlockButtonRow(data)
case TypePageBlockUnsupported:
return UnmarshalPageBlockUnsupported(data)
case TypeWebPageInstantView:
return UnmarshalWebPageInstantView(data)
@ -30906,6 +31191,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeMessageChatJoinByRequest:
return UnmarshalMessageChatJoinByRequest(data)
case TypeMessageChatJoinFromCommunity:
return UnmarshalMessageChatJoinFromCommunity(data)
case TypeMessageChatDeleteMember:
return UnmarshalMessageChatDeleteMember(data)
@ -30996,8 +31284,8 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeMessageGiftedStars:
return UnmarshalMessageGiftedStars(data)
case TypeMessageGiftedTon:
return UnmarshalMessageGiftedTon(data)
case TypeMessageGiftedGrams:
return UnmarshalMessageGiftedGrams(data)
case TypeMessageGiveawayPrizeStars:
return UnmarshalMessageGiveawayPrizeStars(data)
@ -31284,6 +31572,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeInputPageBlockBlockQuote:
return UnmarshalInputPageBlockBlockQuote(data)
case TypeInputPageBlockExpandableBlockQuote:
return UnmarshalInputPageBlockExpandableBlockQuote(data)
case TypeInputPageBlockPullQuote:
return UnmarshalInputPageBlockPullQuote(data)
@ -31293,6 +31584,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeInputPageBlockAudio:
return UnmarshalInputPageBlockAudio(data)
case TypeInputPageBlockDocument:
return UnmarshalInputPageBlockDocument(data)
case TypeInputPageBlockPhoto:
return UnmarshalInputPageBlockPhoto(data)
@ -31317,6 +31611,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeInputPageBlockMap:
return UnmarshalInputPageBlockMap(data)
case TypeInputPageBlockButtonRow:
return UnmarshalInputPageBlockButtonRow(data)
case TypeInputMessageText:
return UnmarshalInputMessageText(data)
@ -31458,6 +31755,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeSearchMessagesChatTypeFilterChannel:
return UnmarshalSearchMessagesChatTypeFilterChannel(data)
case TypeSearchMessagesChatTypeFilterCommunity:
return UnmarshalSearchMessagesChatTypeFilterCommunity(data)
case TypeSearchChatTypeFilterBot:
return UnmarshalSearchChatTypeFilterBot(data)
@ -31734,6 +32034,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeQuickReplyShortcut:
return UnmarshalQuickReplyShortcut(data)
case TypeWelcomeMessage:
return UnmarshalWelcomeMessage(data)
case TypePublicForwardMessage:
return UnmarshalPublicForwardMessage(data)
@ -33996,6 +34299,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeUpdateMessageContent:
return UnmarshalUpdateMessageContent(data)
case TypeUpdateMessageEphemeralContent:
return UnmarshalUpdateMessageEphemeralContent(data)
case TypeUpdateMessageEdited:
return UnmarshalUpdateMessageEdited(data)
@ -34131,6 +34437,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeUpdateChatHasScheduledMessages:
return UnmarshalUpdateChatHasScheduledMessages(data)
case TypeUpdateChatHasWelcomeMessages:
return UnmarshalUpdateChatHasWelcomeMessages(data)
case TypeUpdateChatFolders:
return UnmarshalUpdateChatFolders(data)
@ -34161,6 +34470,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeUpdateQuickReplyShortcutMessages:
return UnmarshalUpdateQuickReplyShortcutMessages(data)
case TypeUpdateChatWelcomeMessages:
return UnmarshalUpdateChatWelcomeMessages(data)
case TypeUpdateForumTopicInfo:
return UnmarshalUpdateForumTopicInfo(data)
@ -34194,6 +34506,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeUpdatePendingMessage:
return UnmarshalUpdatePendingMessage(data)
case TypeUpdateStopMessageDraft:
return UnmarshalUpdateStopMessageDraft(data)
case TypeUpdateCommunity:
return UnmarshalUpdateCommunity(data)
@ -34221,6 +34536,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeUpdateSupergroupFullInfo:
return UnmarshalUpdateSupergroupFullInfo(data)
case TypeUpdateCommunityFullInfo:
return UnmarshalUpdateCommunityFullInfo(data)
case TypeUpdateServiceNotification:
return UnmarshalUpdateServiceNotification(data)