Update to TDLib 1.8.56

This commit is contained in:
c0re100 2025-10-16 00:27:32 +08:00
parent 926224f707
commit 4597e26403
No known key found for this signature in database
GPG key ID: 7C3B3004FE745AAF
4 changed files with 1280 additions and 354 deletions

View file

@ -1013,6 +1013,9 @@ func UnmarshalUpgradedGiftOrigin(data json.RawMessage) (UpgradedGiftOrigin, erro
case TypeUpgradedGiftOriginResale:
return UnmarshalUpgradedGiftOriginResale(data)
case TypeUpgradedGiftOriginBlockchain:
return UnmarshalUpgradedGiftOriginBlockchain(data)
case TypeUpgradedGiftOriginPrepaidUpgrade:
return UnmarshalUpgradedGiftOriginPrepaidUpgrade(data)
@ -1283,6 +1286,9 @@ func UnmarshalStarTransactionType(data json.RawMessage) (StarTransactionType, er
case TypeStarTransactionTypeGiftTransfer:
return UnmarshalStarTransactionTypeGiftTransfer(data)
case TypeStarTransactionTypeGiftOriginalDetailsDrop:
return UnmarshalStarTransactionTypeGiftOriginalDetailsDrop(data)
case TypeStarTransactionTypeGiftSale:
return UnmarshalStarTransactionTypeGiftSale(data)
@ -1962,6 +1968,9 @@ func UnmarshalMessageTopic(data json.RawMessage) (MessageTopic, error) {
}
switch meta.Type {
case TypeMessageTopicThread:
return UnmarshalMessageTopicThread(data)
case TypeMessageTopicForum:
return UnmarshalMessageTopicForum(data)
@ -4003,6 +4012,9 @@ func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
case TypeMessageSuggestProfilePhoto:
return UnmarshalMessageSuggestProfilePhoto(data)
case TypeMessageSuggestBirthdate:
return UnmarshalMessageSuggestBirthdate(data)
case TypeMessageCustomServiceAction:
return UnmarshalMessageCustomServiceAction(data)
@ -7164,6 +7176,9 @@ func UnmarshalPushMessageContent(data json.RawMessage) (PushMessageContent, erro
case TypePushMessageContentSuggestProfilePhoto:
return UnmarshalPushMessageContentSuggestProfilePhoto(data)
case TypePushMessageContentSuggestBirthdate:
return UnmarshalPushMessageContentSuggestBirthdate(data)
case TypePushMessageContentProximityAlertTriggered:
return UnmarshalPushMessageContentProximityAlertTriggered(data)
@ -9021,6 +9036,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
case TypeUpdateChatAction:
return UnmarshalUpdateChatAction(data)
case TypeUpdatePendingTextMessage:
return UnmarshalUpdatePendingTextMessage(data)
case TypeUpdateUserStatus:
return UnmarshalUpdateUserStatus(data)
@ -9090,6 +9108,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
case TypeUpdateGroupCallVerificationState:
return UnmarshalUpdateGroupCallVerificationState(data)
case TypeUpdateGroupCallNewMessage:
return UnmarshalUpdateGroupCallNewMessage(data)
case TypeUpdateNewCallSignalingData:
return UnmarshalUpdateNewCallSignalingData(data)
@ -11031,6 +11052,14 @@ func UnmarshalUpgradedGiftOriginResale(data json.RawMessage) (*UpgradedGiftOrigi
return &resp, err
}
func UnmarshalUpgradedGiftOriginBlockchain(data json.RawMessage) (*UpgradedGiftOriginBlockchain, error) {
var resp UpgradedGiftOriginBlockchain
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpgradedGiftOriginPrepaidUpgrade(data json.RawMessage) (*UpgradedGiftOriginPrepaidUpgrade, error) {
var resp UpgradedGiftOriginPrepaidUpgrade
@ -11079,6 +11108,14 @@ func UnmarshalUpgradedGiftOriginalDetails(data json.RawMessage) (*UpgradedGiftOr
return &resp, err
}
func UnmarshalUpgradedGiftColors(data json.RawMessage) (*UpgradedGiftColors, error) {
var resp UpgradedGiftColors
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalGift(data json.RawMessage) (*Gift, error) {
var resp Gift
@ -11127,6 +11164,14 @@ func UnmarshalAvailableGifts(data json.RawMessage) (*AvailableGifts, error) {
return &resp, err
}
func UnmarshalGiftUpgradePrice(data json.RawMessage) (*GiftUpgradePrice, error) {
var resp GiftUpgradePrice
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpgradedGiftAttributeIdModel(data json.RawMessage) (*UpgradedGiftAttributeIdModel, error) {
var resp UpgradedGiftAttributeIdModel
@ -11455,6 +11500,14 @@ func UnmarshalStarTransactionTypeGiftTransfer(data json.RawMessage) (*StarTransa
return &resp, err
}
func UnmarshalStarTransactionTypeGiftOriginalDetailsDrop(data json.RawMessage) (*StarTransactionTypeGiftOriginalDetailsDrop, error) {
var resp StarTransactionTypeGiftOriginalDetailsDrop
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalStarTransactionTypeGiftSale(data json.RawMessage) (*StarTransactionTypeGiftSale, error) {
var resp StarTransactionTypeGiftSale
@ -12495,6 +12548,14 @@ func UnmarshalUnreadReaction(data json.RawMessage) (*UnreadReaction, error) {
return &resp, err
}
func UnmarshalMessageTopicThread(data json.RawMessage) (*MessageTopicThread, error) {
var resp MessageTopicThread
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalMessageTopicForum(data json.RawMessage) (*MessageTopicForum, error) {
var resp MessageTopicForum
@ -15839,6 +15900,14 @@ func UnmarshalMessageSuggestProfilePhoto(data json.RawMessage) (*MessageSuggestP
return &resp, err
}
func UnmarshalMessageSuggestBirthdate(data json.RawMessage) (*MessageSuggestBirthdate, error) {
var resp MessageSuggestBirthdate
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalMessageCustomServiceAction(data json.RawMessage) (*MessageCustomServiceAction, error) {
var resp MessageCustomServiceAction
@ -18063,6 +18132,14 @@ func UnmarshalDiceStickersSlotMachine(data json.RawMessage) (*DiceStickersSlotMa
return &resp, err
}
func UnmarshalImportedContact(data json.RawMessage) (*ImportedContact, error) {
var resp ImportedContact
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalImportedContacts(data json.RawMessage) (*ImportedContacts, error) {
var resp ImportedContacts
@ -20495,6 +20572,14 @@ func UnmarshalPushMessageContentSuggestProfilePhoto(data json.RawMessage) (*Push
return &resp, err
}
func UnmarshalPushMessageContentSuggestBirthdate(data json.RawMessage) (*PushMessageContentSuggestBirthdate, error) {
var resp PushMessageContentSuggestBirthdate
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPushMessageContentProximityAlertTriggered(data json.RawMessage) (*PushMessageContentProximityAlertTriggered, error) {
var resp PushMessageContentProximityAlertTriggered
@ -23479,6 +23564,14 @@ func UnmarshalUpdateChatAction(data json.RawMessage) (*UpdateChatAction, error)
return &resp, err
}
func UnmarshalUpdatePendingTextMessage(data json.RawMessage) (*UpdatePendingTextMessage, error) {
var resp UpdatePendingTextMessage
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateUserStatus(data json.RawMessage) (*UpdateUserStatus, error) {
var resp UpdateUserStatus
@ -23663,6 +23756,14 @@ func UnmarshalUpdateGroupCallVerificationState(data json.RawMessage) (*UpdateGro
return &resp, err
}
func UnmarshalUpdateGroupCallNewMessage(data json.RawMessage) (*UpdateGroupCallNewMessage, error) {
var resp UpdateGroupCallNewMessage
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateNewCallSignalingData(data json.RawMessage) (*UpdateNewCallSignalingData, error) {
var resp UpdateNewCallSignalingData
@ -24979,6 +25080,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeUpgradedGiftOriginResale:
return UnmarshalUpgradedGiftOriginResale(data)
case TypeUpgradedGiftOriginBlockchain:
return UnmarshalUpgradedGiftOriginBlockchain(data)
case TypeUpgradedGiftOriginPrepaidUpgrade:
return UnmarshalUpgradedGiftOriginPrepaidUpgrade(data)
@ -24997,6 +25101,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeUpgradedGiftOriginalDetails:
return UnmarshalUpgradedGiftOriginalDetails(data)
case TypeUpgradedGiftColors:
return UnmarshalUpgradedGiftColors(data)
case TypeGift:
return UnmarshalGift(data)
@ -25015,6 +25122,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeAvailableGifts:
return UnmarshalAvailableGifts(data)
case TypeGiftUpgradePrice:
return UnmarshalGiftUpgradePrice(data)
case TypeUpgradedGiftAttributeIdModel:
return UnmarshalUpgradedGiftAttributeIdModel(data)
@ -25138,6 +25248,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeStarTransactionTypeGiftTransfer:
return UnmarshalStarTransactionTypeGiftTransfer(data)
case TypeStarTransactionTypeGiftOriginalDetailsDrop:
return UnmarshalStarTransactionTypeGiftOriginalDetailsDrop(data)
case TypeStarTransactionTypeGiftSale:
return UnmarshalStarTransactionTypeGiftSale(data)
@ -25528,6 +25641,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeUnreadReaction:
return UnmarshalUnreadReaction(data)
case TypeMessageTopicThread:
return UnmarshalMessageTopicThread(data)
case TypeMessageTopicForum:
return UnmarshalMessageTopicForum(data)
@ -26782,6 +26898,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeMessageSuggestProfilePhoto:
return UnmarshalMessageSuggestProfilePhoto(data)
case TypeMessageSuggestBirthdate:
return UnmarshalMessageSuggestBirthdate(data)
case TypeMessageCustomServiceAction:
return UnmarshalMessageCustomServiceAction(data)
@ -27616,6 +27735,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeDiceStickersSlotMachine:
return UnmarshalDiceStickersSlotMachine(data)
case TypeImportedContact:
return UnmarshalImportedContact(data)
case TypeImportedContacts:
return UnmarshalImportedContacts(data)
@ -28528,6 +28650,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypePushMessageContentSuggestProfilePhoto:
return UnmarshalPushMessageContentSuggestProfilePhoto(data)
case TypePushMessageContentSuggestBirthdate:
return UnmarshalPushMessageContentSuggestBirthdate(data)
case TypePushMessageContentProximityAlertTriggered:
return UnmarshalPushMessageContentProximityAlertTriggered(data)
@ -29647,6 +29772,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeUpdateChatAction:
return UnmarshalUpdateChatAction(data)
case TypeUpdatePendingTextMessage:
return UnmarshalUpdatePendingTextMessage(data)
case TypeUpdateUserStatus:
return UnmarshalUpdateUserStatus(data)
@ -29716,6 +29844,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
case TypeUpdateGroupCallVerificationState:
return UnmarshalUpdateGroupCallVerificationState(data)
case TypeUpdateGroupCallNewMessage:
return UnmarshalUpdateGroupCallNewMessage(data)
case TypeUpdateNewCallSignalingData:
return UnmarshalUpdateNewCallSignalingData(data)