mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
Update to TDLib 1.8.6
This commit is contained in:
parent
0b0467fbb7
commit
3b10777734
4 changed files with 1689 additions and 322 deletions
|
|
@ -50,6 +50,43 @@ func UnmarshalListOfAuthenticationCodeType(dataList []json.RawMessage) ([]Authen
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalEmailAddressAuthentication(data json.RawMessage) (EmailAddressAuthentication, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeEmailAddressAuthenticationCode:
|
||||
return UnmarshalEmailAddressAuthenticationCode(data)
|
||||
|
||||
case TypeEmailAddressAuthenticationAppleId:
|
||||
return UnmarshalEmailAddressAuthenticationAppleId(data)
|
||||
|
||||
case TypeEmailAddressAuthenticationGoogleId:
|
||||
return UnmarshalEmailAddressAuthenticationGoogleId(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfEmailAddressAuthentication(dataList []json.RawMessage) ([]EmailAddressAuthentication, error) {
|
||||
list := []EmailAddressAuthentication{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalEmailAddressAuthentication(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalAuthorizationState(data json.RawMessage) (AuthorizationState, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -62,12 +99,15 @@ func UnmarshalAuthorizationState(data json.RawMessage) (AuthorizationState, erro
|
|||
case TypeAuthorizationStateWaitTdlibParameters:
|
||||
return UnmarshalAuthorizationStateWaitTdlibParameters(data)
|
||||
|
||||
case TypeAuthorizationStateWaitEncryptionKey:
|
||||
return UnmarshalAuthorizationStateWaitEncryptionKey(data)
|
||||
|
||||
case TypeAuthorizationStateWaitPhoneNumber:
|
||||
return UnmarshalAuthorizationStateWaitPhoneNumber(data)
|
||||
|
||||
case TypeAuthorizationStateWaitEmailAddress:
|
||||
return UnmarshalAuthorizationStateWaitEmailAddress(data)
|
||||
|
||||
case TypeAuthorizationStateWaitEmailCode:
|
||||
return UnmarshalAuthorizationStateWaitEmailCode(data)
|
||||
|
||||
case TypeAuthorizationStateWaitCode:
|
||||
return UnmarshalAuthorizationStateWaitCode(data)
|
||||
|
||||
|
|
@ -686,6 +726,40 @@ func UnmarshalListOfMessageForwardOrigin(dataList []json.RawMessage) ([]MessageF
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalReactionType(data json.RawMessage) (ReactionType, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeReactionTypeEmoji:
|
||||
return UnmarshalReactionTypeEmoji(data)
|
||||
|
||||
case TypeReactionTypeCustomEmoji:
|
||||
return UnmarshalReactionTypeCustomEmoji(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfReactionType(dataList []json.RawMessage) ([]ReactionType, error) {
|
||||
list := []ReactionType{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalReactionType(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalMessageSendingState(data json.RawMessage) (MessageSendingState, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -868,6 +942,40 @@ func UnmarshalListOfChatSource(dataList []json.RawMessage) ([]ChatSource, error)
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalChatAvailableReactions(data json.RawMessage) (ChatAvailableReactions, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeChatAvailableReactionsAll:
|
||||
return UnmarshalChatAvailableReactionsAll(data)
|
||||
|
||||
case TypeChatAvailableReactionsSome:
|
||||
return UnmarshalChatAvailableReactionsSome(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfChatAvailableReactions(dataList []json.RawMessage) ([]ChatAvailableReactions, error) {
|
||||
list := []ChatAvailableReactions{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalChatAvailableReactions(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalPublicChatType(data json.RawMessage) (PublicChatType, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -3114,6 +3222,9 @@ func UnmarshalPremiumFeature(data json.RawMessage) (PremiumFeature, error) {
|
|||
case TypePremiumFeatureProfileBadge:
|
||||
return UnmarshalPremiumFeatureProfileBadge(data)
|
||||
|
||||
case TypePremiumFeatureEmojiStatus:
|
||||
return UnmarshalPremiumFeatureEmojiStatus(data)
|
||||
|
||||
case TypePremiumFeatureAnimatedProfilePhoto:
|
||||
return UnmarshalPremiumFeatureAnimatedProfilePhoto(data)
|
||||
|
||||
|
|
@ -4180,6 +4291,9 @@ func UnmarshalInternalLinkType(data json.RawMessage) (InternalLinkType, error) {
|
|||
case TypeInternalLinkTypeGame:
|
||||
return UnmarshalInternalLinkTypeGame(data)
|
||||
|
||||
case TypeInternalLinkTypeInstantView:
|
||||
return UnmarshalInternalLinkTypeInstantView(data)
|
||||
|
||||
case TypeInternalLinkTypeInvoice:
|
||||
return UnmarshalInternalLinkTypeInvoice(data)
|
||||
|
||||
|
|
@ -5088,8 +5202,11 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
|
|||
case TypeUpdateWebAppMessageSent:
|
||||
return UnmarshalUpdateWebAppMessageSent(data)
|
||||
|
||||
case TypeUpdateReactions:
|
||||
return UnmarshalUpdateReactions(data)
|
||||
case TypeUpdateActiveEmojiReactions:
|
||||
return UnmarshalUpdateActiveEmojiReactions(data)
|
||||
|
||||
case TypeUpdateDefaultReactionType:
|
||||
return UnmarshalUpdateDefaultReactionType(data)
|
||||
|
||||
case TypeUpdateDiceEmojis:
|
||||
return UnmarshalUpdateDiceEmojis(data)
|
||||
|
|
@ -5211,14 +5328,6 @@ func UnmarshalOk(data json.RawMessage) (*Ok, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalTdlibParameters(data json.RawMessage) (*TdlibParameters, error) {
|
||||
var resp TdlibParameters
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalAuthenticationCodeTypeTelegramMessage(data json.RawMessage) (*AuthenticationCodeTypeTelegramMessage, error) {
|
||||
var resp AuthenticationCodeTypeTelegramMessage
|
||||
|
||||
|
|
@ -5275,6 +5384,30 @@ func UnmarshalEmailAddressAuthenticationCodeInfo(data json.RawMessage) (*EmailAd
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalEmailAddressAuthenticationCode(data json.RawMessage) (*EmailAddressAuthenticationCode, error) {
|
||||
var resp EmailAddressAuthenticationCode
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalEmailAddressAuthenticationAppleId(data json.RawMessage) (*EmailAddressAuthenticationAppleId, error) {
|
||||
var resp EmailAddressAuthenticationAppleId
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalEmailAddressAuthenticationGoogleId(data json.RawMessage) (*EmailAddressAuthenticationGoogleId, error) {
|
||||
var resp EmailAddressAuthenticationGoogleId
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalTextEntity(data json.RawMessage) (*TextEntity, error) {
|
||||
var resp TextEntity
|
||||
|
||||
|
|
@ -5315,16 +5448,24 @@ func UnmarshalAuthorizationStateWaitTdlibParameters(data json.RawMessage) (*Auth
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalAuthorizationStateWaitEncryptionKey(data json.RawMessage) (*AuthorizationStateWaitEncryptionKey, error) {
|
||||
var resp AuthorizationStateWaitEncryptionKey
|
||||
func UnmarshalAuthorizationStateWaitPhoneNumber(data json.RawMessage) (*AuthorizationStateWaitPhoneNumber, error) {
|
||||
var resp AuthorizationStateWaitPhoneNumber
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalAuthorizationStateWaitPhoneNumber(data json.RawMessage) (*AuthorizationStateWaitPhoneNumber, error) {
|
||||
var resp AuthorizationStateWaitPhoneNumber
|
||||
func UnmarshalAuthorizationStateWaitEmailAddress(data json.RawMessage) (*AuthorizationStateWaitEmailAddress, error) {
|
||||
var resp AuthorizationStateWaitEmailAddress
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalAuthorizationStateWaitEmailCode(data json.RawMessage) (*AuthorizationStateWaitEmailCode, error) {
|
||||
var resp AuthorizationStateWaitEmailCode
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
|
|
@ -5443,6 +5584,14 @@ func UnmarshalFile(data json.RawMessage) (*File, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalFiles(data json.RawMessage) (*Files, error) {
|
||||
var resp Files
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalInputFileId(data json.RawMessage) (*InputFileId, error) {
|
||||
var resp InputFileId
|
||||
|
||||
|
|
@ -5931,8 +6080,24 @@ func UnmarshalChatAdministratorRights(data json.RawMessage) (*ChatAdministratorR
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumGiftOption(data json.RawMessage) (*PremiumGiftOption, error) {
|
||||
var resp PremiumGiftOption
|
||||
func UnmarshalPremiumPaymentOption(data json.RawMessage) (*PremiumPaymentOption, error) {
|
||||
var resp PremiumPaymentOption
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalEmojiStatus(data json.RawMessage) (*EmojiStatus, error) {
|
||||
var resp EmojiStatus
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalEmojiStatuses(data json.RawMessage) (*EmojiStatuses, error) {
|
||||
var resp EmojiStatuses
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
|
|
@ -6379,6 +6544,22 @@ func UnmarshalMessageForwardOriginMessageImport(data json.RawMessage) (*MessageF
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalReactionTypeEmoji(data json.RawMessage) (*ReactionTypeEmoji, error) {
|
||||
var resp ReactionTypeEmoji
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalReactionTypeCustomEmoji(data json.RawMessage) (*ReactionTypeCustomEmoji, error) {
|
||||
var resp ReactionTypeCustomEmoji
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalMessageForwardInfo(data json.RawMessage) (*MessageForwardInfo, error) {
|
||||
var resp MessageForwardInfo
|
||||
|
||||
|
|
@ -6691,6 +6872,22 @@ func UnmarshalChatPosition(data json.RawMessage) (*ChatPosition, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatAvailableReactionsAll(data json.RawMessage) (*ChatAvailableReactionsAll, error) {
|
||||
var resp ChatAvailableReactionsAll
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatAvailableReactionsSome(data json.RawMessage) (*ChatAvailableReactionsSome, error) {
|
||||
var resp ChatAvailableReactionsSome
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalVideoChat(data json.RawMessage) (*VideoChat, error) {
|
||||
var resp VideoChat
|
||||
|
||||
|
|
@ -9699,8 +9896,8 @@ func UnmarshalAvailableReactions(data json.RawMessage) (*AvailableReactions, err
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalReaction(data json.RawMessage) (*Reaction, error) {
|
||||
var resp Reaction
|
||||
func UnmarshalEmojiReaction(data json.RawMessage) (*EmojiReaction, error) {
|
||||
var resp EmojiReaction
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
|
|
@ -10571,6 +10768,14 @@ func UnmarshalPremiumFeatureProfileBadge(data json.RawMessage) (*PremiumFeatureP
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumFeatureEmojiStatus(data json.RawMessage) (*PremiumFeatureEmojiStatus, error) {
|
||||
var resp PremiumFeatureEmojiStatus
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPremiumFeatureAnimatedProfilePhoto(data json.RawMessage) (*PremiumFeatureAnimatedProfilePhoto, error) {
|
||||
var resp PremiumFeatureAnimatedProfilePhoto
|
||||
|
||||
|
|
@ -11939,6 +12144,14 @@ func UnmarshalInternalLinkTypeGame(data json.RawMessage) (*InternalLinkTypeGame,
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalInternalLinkTypeInstantView(data json.RawMessage) (*InternalLinkTypeInstantView, error) {
|
||||
var resp InternalLinkTypeInstantView
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalInternalLinkTypeInvoice(data json.RawMessage) (*InternalLinkTypeInvoice, error) {
|
||||
var resp InternalLinkTypeInvoice
|
||||
|
||||
|
|
@ -13547,8 +13760,16 @@ func UnmarshalUpdateWebAppMessageSent(data json.RawMessage) (*UpdateWebAppMessag
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpdateReactions(data json.RawMessage) (*UpdateReactions, error) {
|
||||
var resp UpdateReactions
|
||||
func UnmarshalUpdateActiveEmojiReactions(data json.RawMessage) (*UpdateActiveEmojiReactions, error) {
|
||||
var resp UpdateActiveEmojiReactions
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpdateDefaultReactionType(data json.RawMessage) (*UpdateDefaultReactionType, error) {
|
||||
var resp UpdateDefaultReactionType
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
|
|
@ -13731,6 +13952,14 @@ func UnmarshalLogTags(data json.RawMessage) (*LogTags, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUserSupportInfo(data json.RawMessage) (*UserSupportInfo, error) {
|
||||
var resp UserSupportInfo
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalTestInt(data json.RawMessage) (*TestInt, error) {
|
||||
var resp TestInt
|
||||
|
||||
|
|
@ -13802,9 +14031,6 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeOk:
|
||||
return UnmarshalOk(data)
|
||||
|
||||
case TypeTdlibParameters:
|
||||
return UnmarshalTdlibParameters(data)
|
||||
|
||||
case TypeAuthenticationCodeTypeTelegramMessage:
|
||||
return UnmarshalAuthenticationCodeTypeTelegramMessage(data)
|
||||
|
||||
|
|
@ -13826,6 +14052,15 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeEmailAddressAuthenticationCodeInfo:
|
||||
return UnmarshalEmailAddressAuthenticationCodeInfo(data)
|
||||
|
||||
case TypeEmailAddressAuthenticationCode:
|
||||
return UnmarshalEmailAddressAuthenticationCode(data)
|
||||
|
||||
case TypeEmailAddressAuthenticationAppleId:
|
||||
return UnmarshalEmailAddressAuthenticationAppleId(data)
|
||||
|
||||
case TypeEmailAddressAuthenticationGoogleId:
|
||||
return UnmarshalEmailAddressAuthenticationGoogleId(data)
|
||||
|
||||
case TypeTextEntity:
|
||||
return UnmarshalTextEntity(data)
|
||||
|
||||
|
|
@ -13841,12 +14076,15 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeAuthorizationStateWaitTdlibParameters:
|
||||
return UnmarshalAuthorizationStateWaitTdlibParameters(data)
|
||||
|
||||
case TypeAuthorizationStateWaitEncryptionKey:
|
||||
return UnmarshalAuthorizationStateWaitEncryptionKey(data)
|
||||
|
||||
case TypeAuthorizationStateWaitPhoneNumber:
|
||||
return UnmarshalAuthorizationStateWaitPhoneNumber(data)
|
||||
|
||||
case TypeAuthorizationStateWaitEmailAddress:
|
||||
return UnmarshalAuthorizationStateWaitEmailAddress(data)
|
||||
|
||||
case TypeAuthorizationStateWaitEmailCode:
|
||||
return UnmarshalAuthorizationStateWaitEmailCode(data)
|
||||
|
||||
case TypeAuthorizationStateWaitCode:
|
||||
return UnmarshalAuthorizationStateWaitCode(data)
|
||||
|
||||
|
|
@ -13889,6 +14127,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeFile:
|
||||
return UnmarshalFile(data)
|
||||
|
||||
case TypeFiles:
|
||||
return UnmarshalFiles(data)
|
||||
|
||||
case TypeInputFileId:
|
||||
return UnmarshalInputFileId(data)
|
||||
|
||||
|
|
@ -14072,8 +14313,14 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeChatAdministratorRights:
|
||||
return UnmarshalChatAdministratorRights(data)
|
||||
|
||||
case TypePremiumGiftOption:
|
||||
return UnmarshalPremiumGiftOption(data)
|
||||
case TypePremiumPaymentOption:
|
||||
return UnmarshalPremiumPaymentOption(data)
|
||||
|
||||
case TypeEmojiStatus:
|
||||
return UnmarshalEmojiStatus(data)
|
||||
|
||||
case TypeEmojiStatuses:
|
||||
return UnmarshalEmojiStatuses(data)
|
||||
|
||||
case TypeUser:
|
||||
return UnmarshalUser(data)
|
||||
|
|
@ -14240,6 +14487,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeMessageForwardOriginMessageImport:
|
||||
return UnmarshalMessageForwardOriginMessageImport(data)
|
||||
|
||||
case TypeReactionTypeEmoji:
|
||||
return UnmarshalReactionTypeEmoji(data)
|
||||
|
||||
case TypeReactionTypeCustomEmoji:
|
||||
return UnmarshalReactionTypeCustomEmoji(data)
|
||||
|
||||
case TypeMessageForwardInfo:
|
||||
return UnmarshalMessageForwardInfo(data)
|
||||
|
||||
|
|
@ -14357,6 +14610,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeChatPosition:
|
||||
return UnmarshalChatPosition(data)
|
||||
|
||||
case TypeChatAvailableReactionsAll:
|
||||
return UnmarshalChatAvailableReactionsAll(data)
|
||||
|
||||
case TypeChatAvailableReactionsSome:
|
||||
return UnmarshalChatAvailableReactionsSome(data)
|
||||
|
||||
case TypeVideoChat:
|
||||
return UnmarshalVideoChat(data)
|
||||
|
||||
|
|
@ -15485,8 +15744,8 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeAvailableReactions:
|
||||
return UnmarshalAvailableReactions(data)
|
||||
|
||||
case TypeReaction:
|
||||
return UnmarshalReaction(data)
|
||||
case TypeEmojiReaction:
|
||||
return UnmarshalEmojiReaction(data)
|
||||
|
||||
case TypeAnimations:
|
||||
return UnmarshalAnimations(data)
|
||||
|
|
@ -15812,6 +16071,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypePremiumFeatureProfileBadge:
|
||||
return UnmarshalPremiumFeatureProfileBadge(data)
|
||||
|
||||
case TypePremiumFeatureEmojiStatus:
|
||||
return UnmarshalPremiumFeatureEmojiStatus(data)
|
||||
|
||||
case TypePremiumFeatureAnimatedProfilePhoto:
|
||||
return UnmarshalPremiumFeatureAnimatedProfilePhoto(data)
|
||||
|
||||
|
|
@ -16325,6 +16587,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeInternalLinkTypeGame:
|
||||
return UnmarshalInternalLinkTypeGame(data)
|
||||
|
||||
case TypeInternalLinkTypeInstantView:
|
||||
return UnmarshalInternalLinkTypeInstantView(data)
|
||||
|
||||
case TypeInternalLinkTypeInvoice:
|
||||
return UnmarshalInternalLinkTypeInvoice(data)
|
||||
|
||||
|
|
@ -16928,8 +17193,11 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeUpdateWebAppMessageSent:
|
||||
return UnmarshalUpdateWebAppMessageSent(data)
|
||||
|
||||
case TypeUpdateReactions:
|
||||
return UnmarshalUpdateReactions(data)
|
||||
case TypeUpdateActiveEmojiReactions:
|
||||
return UnmarshalUpdateActiveEmojiReactions(data)
|
||||
|
||||
case TypeUpdateDefaultReactionType:
|
||||
return UnmarshalUpdateDefaultReactionType(data)
|
||||
|
||||
case TypeUpdateDiceEmojis:
|
||||
return UnmarshalUpdateDiceEmojis(data)
|
||||
|
|
@ -16997,6 +17265,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeLogTags:
|
||||
return UnmarshalLogTags(data)
|
||||
|
||||
case TypeUserSupportInfo:
|
||||
return UnmarshalUserSupportInfo(data)
|
||||
|
||||
case TypeTestInt:
|
||||
return UnmarshalTestInt(data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue