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

@ -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)