mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
Update to TDLib 1.8.42
This commit is contained in:
parent
58adcc4804
commit
626ffe1a7b
4 changed files with 1854 additions and 195 deletions
|
|
@ -693,6 +693,43 @@ func UnmarshalListOfStarSubscriptionType(dataList []json.RawMessage) ([]StarSubs
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalAffiliateType(data json.RawMessage) (AffiliateType, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeAffiliateTypeCurrentUser:
|
||||
return UnmarshalAffiliateTypeCurrentUser(data)
|
||||
|
||||
case TypeAffiliateTypeBot:
|
||||
return UnmarshalAffiliateTypeBot(data)
|
||||
|
||||
case TypeAffiliateTypeChannel:
|
||||
return UnmarshalAffiliateTypeChannel(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfAffiliateType(dataList []json.RawMessage) ([]AffiliateType, error) {
|
||||
list := []AffiliateType{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalAffiliateType(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalAffiliateProgramSortOrder(data json.RawMessage) (AffiliateProgramSortOrder, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -730,6 +767,40 @@ func UnmarshalListOfAffiliateProgramSortOrder(dataList []json.RawMessage) ([]Aff
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalSentGift(data json.RawMessage) (SentGift, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeSentGiftRegular:
|
||||
return UnmarshalSentGiftRegular(data)
|
||||
|
||||
case TypeSentGiftUpgraded:
|
||||
return UnmarshalSentGiftUpgraded(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfSentGift(dataList []json.RawMessage) ([]SentGift, error) {
|
||||
list := []SentGift{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalSentGift(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalStarTransactionDirection(data json.RawMessage) (StarTransactionDirection, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -833,9 +904,15 @@ func UnmarshalStarTransactionType(data json.RawMessage) (StarTransactionType, er
|
|||
case TypeStarTransactionTypeGiftPurchase:
|
||||
return UnmarshalStarTransactionTypeGiftPurchase(data)
|
||||
|
||||
case TypeStarTransactionTypeGiftTransfer:
|
||||
return UnmarshalStarTransactionTypeGiftTransfer(data)
|
||||
|
||||
case TypeStarTransactionTypeGiftSale:
|
||||
return UnmarshalStarTransactionTypeGiftSale(data)
|
||||
|
||||
case TypeStarTransactionTypeGiftUpgrade:
|
||||
return UnmarshalStarTransactionTypeGiftUpgrade(data)
|
||||
|
||||
case TypeStarTransactionTypeChannelPaidReactionSend:
|
||||
return UnmarshalStarTransactionTypeChannelPaidReactionSend(data)
|
||||
|
||||
|
|
@ -3341,6 +3418,12 @@ func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
|
|||
case TypeMessageGift:
|
||||
return UnmarshalMessageGift(data)
|
||||
|
||||
case TypeMessageUpgradedGift:
|
||||
return UnmarshalMessageUpgradedGift(data)
|
||||
|
||||
case TypeMessageRefundedUpgradedGift:
|
||||
return UnmarshalMessageRefundedUpgradedGift(data)
|
||||
|
||||
case TypeMessageContactRegistered:
|
||||
return UnmarshalMessageContactRegistered(data)
|
||||
|
||||
|
|
@ -3753,6 +3836,43 @@ func UnmarshalListOfSearchMessagesFilter(dataList []json.RawMessage) ([]SearchMe
|
|||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalSearchMessagesChatTypeFilter(data json.RawMessage) (SearchMessagesChatTypeFilter, error) {
|
||||
var meta meta
|
||||
|
||||
err := json.Unmarshal(data, &meta)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch meta.Type {
|
||||
case TypeSearchMessagesChatTypeFilterPrivate:
|
||||
return UnmarshalSearchMessagesChatTypeFilterPrivate(data)
|
||||
|
||||
case TypeSearchMessagesChatTypeFilterGroup:
|
||||
return UnmarshalSearchMessagesChatTypeFilterGroup(data)
|
||||
|
||||
case TypeSearchMessagesChatTypeFilterChannel:
|
||||
return UnmarshalSearchMessagesChatTypeFilterChannel(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
}
|
||||
|
||||
func UnmarshalListOfSearchMessagesChatTypeFilter(dataList []json.RawMessage) ([]SearchMessagesChatTypeFilter, error) {
|
||||
list := []SearchMessagesChatTypeFilter{}
|
||||
|
||||
for _, data := range dataList {
|
||||
entity, err := UnmarshalSearchMessagesChatTypeFilter(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
list = append(list, entity)
|
||||
}
|
||||
|
||||
return list, nil
|
||||
}
|
||||
|
||||
func UnmarshalChatAction(data json.RawMessage) (ChatAction, error) {
|
||||
var meta meta
|
||||
|
||||
|
|
@ -4346,6 +4466,9 @@ func UnmarshalCallDiscardReason(data json.RawMessage) (CallDiscardReason, error)
|
|||
case TypeCallDiscardReasonHungUp:
|
||||
return UnmarshalCallDiscardReasonHungUp(data)
|
||||
|
||||
case TypeCallDiscardReasonAllowGroupCall:
|
||||
return UnmarshalCallDiscardReasonAllowGroupCall(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
|
|
@ -6081,6 +6204,9 @@ func UnmarshalPushMessageContent(data json.RawMessage) (PushMessageContent, erro
|
|||
case TypePushMessageContentGift:
|
||||
return UnmarshalPushMessageContentGift(data)
|
||||
|
||||
case TypePushMessageContentUpgradedGift:
|
||||
return UnmarshalPushMessageContentUpgradedGift(data)
|
||||
|
||||
case TypePushMessageContentScreenshotTaken:
|
||||
return UnmarshalPushMessageContentScreenshotTaken(data)
|
||||
|
||||
|
|
@ -7333,6 +7459,9 @@ func UnmarshalSuggestedAction(data json.RawMessage) (SuggestedAction, error) {
|
|||
case TypeSuggestedActionSetBirthdate:
|
||||
return UnmarshalSuggestedActionSetBirthdate(data)
|
||||
|
||||
case TypeSuggestedActionSetProfilePhoto:
|
||||
return UnmarshalSuggestedActionSetProfilePhoto(data)
|
||||
|
||||
case TypeSuggestedActionExtendPremium:
|
||||
return UnmarshalSuggestedActionExtendPremium(data)
|
||||
|
||||
|
|
@ -9078,6 +9207,30 @@ func UnmarshalBotMenuButton(data json.RawMessage) (*BotMenuButton, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalBotVerificationParameters(data json.RawMessage) (*BotVerificationParameters, error) {
|
||||
var resp BotVerificationParameters
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalBotVerification(data json.RawMessage) (*BotVerification, error) {
|
||||
var resp BotVerification
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalVerificationStatus(data json.RawMessage) (*VerificationStatus, error) {
|
||||
var resp VerificationStatus
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatLocation(data json.RawMessage) (*ChatLocation, error) {
|
||||
var resp ChatLocation
|
||||
|
||||
|
|
@ -9382,6 +9535,30 @@ func UnmarshalStarSubscriptions(data json.RawMessage) (*StarSubscriptions, error
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalAffiliateTypeCurrentUser(data json.RawMessage) (*AffiliateTypeCurrentUser, error) {
|
||||
var resp AffiliateTypeCurrentUser
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalAffiliateTypeBot(data json.RawMessage) (*AffiliateTypeBot, error) {
|
||||
var resp AffiliateTypeBot
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalAffiliateTypeChannel(data json.RawMessage) (*AffiliateTypeChannel, error) {
|
||||
var resp AffiliateTypeChannel
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalAffiliateProgramSortOrderProfitability(data json.RawMessage) (*AffiliateProgramSortOrderProfitability, error) {
|
||||
var resp AffiliateProgramSortOrderProfitability
|
||||
|
||||
|
|
@ -9446,16 +9623,16 @@ func UnmarshalFoundAffiliatePrograms(data json.RawMessage) (*FoundAffiliateProgr
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatAffiliateProgram(data json.RawMessage) (*ChatAffiliateProgram, error) {
|
||||
var resp ChatAffiliateProgram
|
||||
func UnmarshalConnectedAffiliateProgram(data json.RawMessage) (*ConnectedAffiliateProgram, error) {
|
||||
var resp ConnectedAffiliateProgram
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatAffiliatePrograms(data json.RawMessage) (*ChatAffiliatePrograms, error) {
|
||||
var resp ChatAffiliatePrograms
|
||||
func UnmarshalConnectedAffiliatePrograms(data json.RawMessage) (*ConnectedAffiliatePrograms, error) {
|
||||
var resp ConnectedAffiliatePrograms
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
|
|
@ -9550,6 +9727,38 @@ func UnmarshalStarGiveawayPaymentOptions(data json.RawMessage) (*StarGiveawayPay
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpgradedGiftModel(data json.RawMessage) (*UpgradedGiftModel, error) {
|
||||
var resp UpgradedGiftModel
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpgradedGiftSymbol(data json.RawMessage) (*UpgradedGiftSymbol, error) {
|
||||
var resp UpgradedGiftSymbol
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpgradedGiftBackdrop(data json.RawMessage) (*UpgradedGiftBackdrop, error) {
|
||||
var resp UpgradedGiftBackdrop
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpgradedGiftOriginalDetails(data json.RawMessage) (*UpgradedGiftOriginalDetails, error) {
|
||||
var resp UpgradedGiftOriginalDetails
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalGift(data json.RawMessage) (*Gift, error) {
|
||||
var resp Gift
|
||||
|
||||
|
|
@ -9566,6 +9775,38 @@ func UnmarshalGifts(data json.RawMessage) (*Gifts, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpgradedGift(data json.RawMessage) (*UpgradedGift, error) {
|
||||
var resp UpgradedGift
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpgradeGiftResult(data json.RawMessage) (*UpgradeGiftResult, error) {
|
||||
var resp UpgradeGiftResult
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalSentGiftRegular(data json.RawMessage) (*SentGiftRegular, error) {
|
||||
var resp SentGiftRegular
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalSentGiftUpgraded(data json.RawMessage) (*SentGiftUpgraded, error) {
|
||||
var resp SentGiftUpgraded
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUserGift(data json.RawMessage) (*UserGift, error) {
|
||||
var resp UserGift
|
||||
|
||||
|
|
@ -9582,6 +9823,14 @@ func UnmarshalUserGifts(data json.RawMessage) (*UserGifts, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalGiftUpgradePreview(data json.RawMessage) (*GiftUpgradePreview, error) {
|
||||
var resp GiftUpgradePreview
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStarTransactionDirectionIncoming(data json.RawMessage) (*StarTransactionDirectionIncoming, error) {
|
||||
var resp StarTransactionDirectionIncoming
|
||||
|
||||
|
|
@ -9758,6 +10007,14 @@ func UnmarshalStarTransactionTypeGiftPurchase(data json.RawMessage) (*StarTransa
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStarTransactionTypeGiftTransfer(data json.RawMessage) (*StarTransactionTypeGiftTransfer, error) {
|
||||
var resp StarTransactionTypeGiftTransfer
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStarTransactionTypeGiftSale(data json.RawMessage) (*StarTransactionTypeGiftSale, error) {
|
||||
var resp StarTransactionTypeGiftSale
|
||||
|
||||
|
|
@ -9766,6 +10023,14 @@ func UnmarshalStarTransactionTypeGiftSale(data json.RawMessage) (*StarTransactio
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStarTransactionTypeGiftUpgrade(data json.RawMessage) (*StarTransactionTypeGiftUpgrade, error) {
|
||||
var resp StarTransactionTypeGiftUpgrade
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStarTransactionTypeChannelPaidReactionSend(data json.RawMessage) (*StarTransactionTypeChannelPaidReactionSend, error) {
|
||||
var resp StarTransactionTypeChannelPaidReactionSend
|
||||
|
||||
|
|
@ -11054,6 +11319,14 @@ func UnmarshalChatFolderIcon(data json.RawMessage) (*ChatFolderIcon, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatFolderName(data json.RawMessage) (*ChatFolderName, error) {
|
||||
var resp ChatFolderName
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatFolder(data json.RawMessage) (*ChatFolder, error) {
|
||||
var resp ChatFolder
|
||||
|
||||
|
|
@ -13838,6 +14111,22 @@ func UnmarshalMessageGift(data json.RawMessage) (*MessageGift, error) {
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalMessageUpgradedGift(data json.RawMessage) (*MessageUpgradedGift, error) {
|
||||
var resp MessageUpgradedGift
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalMessageRefundedUpgradedGift(data json.RawMessage) (*MessageRefundedUpgradedGift, error) {
|
||||
var resp MessageRefundedUpgradedGift
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalMessageContactRegistered(data json.RawMessage) (*MessageContactRegistered, error) {
|
||||
var resp MessageContactRegistered
|
||||
|
||||
|
|
@ -14478,6 +14767,30 @@ func UnmarshalSearchMessagesFilterPinned(data json.RawMessage) (*SearchMessagesF
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalSearchMessagesChatTypeFilterPrivate(data json.RawMessage) (*SearchMessagesChatTypeFilterPrivate, error) {
|
||||
var resp SearchMessagesChatTypeFilterPrivate
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalSearchMessagesChatTypeFilterGroup(data json.RawMessage) (*SearchMessagesChatTypeFilterGroup, error) {
|
||||
var resp SearchMessagesChatTypeFilterGroup
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalSearchMessagesChatTypeFilterChannel(data json.RawMessage) (*SearchMessagesChatTypeFilterChannel, error) {
|
||||
var resp SearchMessagesChatTypeFilterChannel
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatActionTyping(data json.RawMessage) (*ChatActionTyping, error) {
|
||||
var resp ChatActionTyping
|
||||
|
||||
|
|
@ -15318,6 +15631,14 @@ func UnmarshalCallDiscardReasonHungUp(data json.RawMessage) (*CallDiscardReasonH
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalCallDiscardReasonAllowGroupCall(data json.RawMessage) (*CallDiscardReasonAllowGroupCall, error) {
|
||||
var resp CallDiscardReasonAllowGroupCall
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalCallProtocol(data json.RawMessage) (*CallProtocol, error) {
|
||||
var resp CallProtocol
|
||||
|
||||
|
|
@ -17838,6 +18159,14 @@ func UnmarshalPushMessageContentGift(data json.RawMessage) (*PushMessageContentG
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPushMessageContentUpgradedGift(data json.RawMessage) (*PushMessageContentUpgradedGift, error) {
|
||||
var resp PushMessageContentUpgradedGift
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPushMessageContentScreenshotTaken(data json.RawMessage) (*PushMessageContentScreenshotTaken, error) {
|
||||
var resp PushMessageContentScreenshotTaken
|
||||
|
||||
|
|
@ -19814,6 +20143,14 @@ func UnmarshalSuggestedActionSetBirthdate(data json.RawMessage) (*SuggestedActio
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalSuggestedActionSetProfilePhoto(data json.RawMessage) (*SuggestedActionSetProfilePhoto, error) {
|
||||
var resp SuggestedActionSetProfilePhoto
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalSuggestedActionExtendPremium(data json.RawMessage) (*SuggestedActionExtendPremium, error) {
|
||||
var resp SuggestedActionExtendPremium
|
||||
|
||||
|
|
@ -21895,6 +22232,15 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeBotMenuButton:
|
||||
return UnmarshalBotMenuButton(data)
|
||||
|
||||
case TypeBotVerificationParameters:
|
||||
return UnmarshalBotVerificationParameters(data)
|
||||
|
||||
case TypeBotVerification:
|
||||
return UnmarshalBotVerification(data)
|
||||
|
||||
case TypeVerificationStatus:
|
||||
return UnmarshalVerificationStatus(data)
|
||||
|
||||
case TypeChatLocation:
|
||||
return UnmarshalChatLocation(data)
|
||||
|
||||
|
|
@ -22009,6 +22355,15 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeStarSubscriptions:
|
||||
return UnmarshalStarSubscriptions(data)
|
||||
|
||||
case TypeAffiliateTypeCurrentUser:
|
||||
return UnmarshalAffiliateTypeCurrentUser(data)
|
||||
|
||||
case TypeAffiliateTypeBot:
|
||||
return UnmarshalAffiliateTypeBot(data)
|
||||
|
||||
case TypeAffiliateTypeChannel:
|
||||
return UnmarshalAffiliateTypeChannel(data)
|
||||
|
||||
case TypeAffiliateProgramSortOrderProfitability:
|
||||
return UnmarshalAffiliateProgramSortOrderProfitability(data)
|
||||
|
||||
|
|
@ -22033,11 +22388,11 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeFoundAffiliatePrograms:
|
||||
return UnmarshalFoundAffiliatePrograms(data)
|
||||
|
||||
case TypeChatAffiliateProgram:
|
||||
return UnmarshalChatAffiliateProgram(data)
|
||||
case TypeConnectedAffiliateProgram:
|
||||
return UnmarshalConnectedAffiliateProgram(data)
|
||||
|
||||
case TypeChatAffiliatePrograms:
|
||||
return UnmarshalChatAffiliatePrograms(data)
|
||||
case TypeConnectedAffiliatePrograms:
|
||||
return UnmarshalConnectedAffiliatePrograms(data)
|
||||
|
||||
case TypeProductInfo:
|
||||
return UnmarshalProductInfo(data)
|
||||
|
|
@ -22072,18 +22427,45 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeStarGiveawayPaymentOptions:
|
||||
return UnmarshalStarGiveawayPaymentOptions(data)
|
||||
|
||||
case TypeUpgradedGiftModel:
|
||||
return UnmarshalUpgradedGiftModel(data)
|
||||
|
||||
case TypeUpgradedGiftSymbol:
|
||||
return UnmarshalUpgradedGiftSymbol(data)
|
||||
|
||||
case TypeUpgradedGiftBackdrop:
|
||||
return UnmarshalUpgradedGiftBackdrop(data)
|
||||
|
||||
case TypeUpgradedGiftOriginalDetails:
|
||||
return UnmarshalUpgradedGiftOriginalDetails(data)
|
||||
|
||||
case TypeGift:
|
||||
return UnmarshalGift(data)
|
||||
|
||||
case TypeGifts:
|
||||
return UnmarshalGifts(data)
|
||||
|
||||
case TypeUpgradedGift:
|
||||
return UnmarshalUpgradedGift(data)
|
||||
|
||||
case TypeUpgradeGiftResult:
|
||||
return UnmarshalUpgradeGiftResult(data)
|
||||
|
||||
case TypeSentGiftRegular:
|
||||
return UnmarshalSentGiftRegular(data)
|
||||
|
||||
case TypeSentGiftUpgraded:
|
||||
return UnmarshalSentGiftUpgraded(data)
|
||||
|
||||
case TypeUserGift:
|
||||
return UnmarshalUserGift(data)
|
||||
|
||||
case TypeUserGifts:
|
||||
return UnmarshalUserGifts(data)
|
||||
|
||||
case TypeGiftUpgradePreview:
|
||||
return UnmarshalGiftUpgradePreview(data)
|
||||
|
||||
case TypeStarTransactionDirectionIncoming:
|
||||
return UnmarshalStarTransactionDirectionIncoming(data)
|
||||
|
||||
|
|
@ -22150,9 +22532,15 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeStarTransactionTypeGiftPurchase:
|
||||
return UnmarshalStarTransactionTypeGiftPurchase(data)
|
||||
|
||||
case TypeStarTransactionTypeGiftTransfer:
|
||||
return UnmarshalStarTransactionTypeGiftTransfer(data)
|
||||
|
||||
case TypeStarTransactionTypeGiftSale:
|
||||
return UnmarshalStarTransactionTypeGiftSale(data)
|
||||
|
||||
case TypeStarTransactionTypeGiftUpgrade:
|
||||
return UnmarshalStarTransactionTypeGiftUpgrade(data)
|
||||
|
||||
case TypeStarTransactionTypeChannelPaidReactionSend:
|
||||
return UnmarshalStarTransactionTypeChannelPaidReactionSend(data)
|
||||
|
||||
|
|
@ -22636,6 +23024,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeChatFolderIcon:
|
||||
return UnmarshalChatFolderIcon(data)
|
||||
|
||||
case TypeChatFolderName:
|
||||
return UnmarshalChatFolderName(data)
|
||||
|
||||
case TypeChatFolder:
|
||||
return UnmarshalChatFolder(data)
|
||||
|
||||
|
|
@ -23680,6 +24071,12 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeMessageGift:
|
||||
return UnmarshalMessageGift(data)
|
||||
|
||||
case TypeMessageUpgradedGift:
|
||||
return UnmarshalMessageUpgradedGift(data)
|
||||
|
||||
case TypeMessageRefundedUpgradedGift:
|
||||
return UnmarshalMessageRefundedUpgradedGift(data)
|
||||
|
||||
case TypeMessageContactRegistered:
|
||||
return UnmarshalMessageContactRegistered(data)
|
||||
|
||||
|
|
@ -23920,6 +24317,15 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeSearchMessagesFilterPinned:
|
||||
return UnmarshalSearchMessagesFilterPinned(data)
|
||||
|
||||
case TypeSearchMessagesChatTypeFilterPrivate:
|
||||
return UnmarshalSearchMessagesChatTypeFilterPrivate(data)
|
||||
|
||||
case TypeSearchMessagesChatTypeFilterGroup:
|
||||
return UnmarshalSearchMessagesChatTypeFilterGroup(data)
|
||||
|
||||
case TypeSearchMessagesChatTypeFilterChannel:
|
||||
return UnmarshalSearchMessagesChatTypeFilterChannel(data)
|
||||
|
||||
case TypeChatActionTyping:
|
||||
return UnmarshalChatActionTyping(data)
|
||||
|
||||
|
|
@ -24235,6 +24641,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeCallDiscardReasonHungUp:
|
||||
return UnmarshalCallDiscardReasonHungUp(data)
|
||||
|
||||
case TypeCallDiscardReasonAllowGroupCall:
|
||||
return UnmarshalCallDiscardReasonAllowGroupCall(data)
|
||||
|
||||
case TypeCallProtocol:
|
||||
return UnmarshalCallProtocol(data)
|
||||
|
||||
|
|
@ -25180,6 +25589,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypePushMessageContentGift:
|
||||
return UnmarshalPushMessageContentGift(data)
|
||||
|
||||
case TypePushMessageContentUpgradedGift:
|
||||
return UnmarshalPushMessageContentUpgradedGift(data)
|
||||
|
||||
case TypePushMessageContentScreenshotTaken:
|
||||
return UnmarshalPushMessageContentScreenshotTaken(data)
|
||||
|
||||
|
|
@ -25921,6 +26333,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeSuggestedActionSetBirthdate:
|
||||
return UnmarshalSuggestedActionSetBirthdate(data)
|
||||
|
||||
case TypeSuggestedActionSetProfilePhoto:
|
||||
return UnmarshalSuggestedActionSetProfilePhoto(data)
|
||||
|
||||
case TypeSuggestedActionExtendPremium:
|
||||
return UnmarshalSuggestedActionExtendPremium(data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue