mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
Update to TDLib 1.8.39
This commit is contained in:
parent
8454bd8c86
commit
4330cb2fa1
4 changed files with 325 additions and 417 deletions
|
|
@ -828,6 +828,9 @@ func UnmarshalStarTransactionPartner(data json.RawMessage) (StarTransactionPartn
|
|||
case TypeStarTransactionPartnerTelegramAds:
|
||||
return UnmarshalStarTransactionPartnerTelegramAds(data)
|
||||
|
||||
case TypeStarTransactionPartnerTelegramApi:
|
||||
return UnmarshalStarTransactionPartnerTelegramApi(data)
|
||||
|
||||
case TypeStarTransactionPartnerBot:
|
||||
return UnmarshalStarTransactionPartnerBot(data)
|
||||
|
||||
|
|
@ -1853,9 +1856,6 @@ func UnmarshalChatActionBar(data json.RawMessage) (ChatActionBar, error) {
|
|||
case TypeChatActionBarReportSpam:
|
||||
return UnmarshalChatActionBarReportSpam(data)
|
||||
|
||||
case TypeChatActionBarReportUnrelatedLocation:
|
||||
return UnmarshalChatActionBarReportUnrelatedLocation(data)
|
||||
|
||||
case TypeChatActionBarInviteMembers:
|
||||
return UnmarshalChatActionBarInviteMembers(data)
|
||||
|
||||
|
|
@ -3491,6 +3491,9 @@ func UnmarshalMessageSchedulingState(data json.RawMessage) (MessageSchedulingSta
|
|||
case TypeMessageSchedulingStateSendWhenOnline:
|
||||
return UnmarshalMessageSchedulingStateSendWhenOnline(data)
|
||||
|
||||
case TypeMessageSchedulingStateSendWhenVideoProcessed:
|
||||
return UnmarshalMessageSchedulingStateSendWhenVideoProcessed(data)
|
||||
|
||||
default:
|
||||
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
||||
}
|
||||
|
|
@ -5441,9 +5444,6 @@ func UnmarshalStorePaymentPurpose(data json.RawMessage) (StorePaymentPurpose, er
|
|||
case TypeStorePaymentPurposePremiumSubscription:
|
||||
return UnmarshalStorePaymentPurposePremiumSubscription(data)
|
||||
|
||||
case TypeStorePaymentPurposeGiftedPremium:
|
||||
return UnmarshalStorePaymentPurposeGiftedPremium(data)
|
||||
|
||||
case TypeStorePaymentPurposePremiumGiftCodes:
|
||||
return UnmarshalStorePaymentPurposePremiumGiftCodes(data)
|
||||
|
||||
|
|
@ -7713,6 +7713,9 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
|
|||
case TypeUpdateMessageLiveLocationViewed:
|
||||
return UnmarshalUpdateMessageLiveLocationViewed(data)
|
||||
|
||||
case TypeUpdateVideoPublished:
|
||||
return UnmarshalUpdateVideoPublished(data)
|
||||
|
||||
case TypeUpdateNewChat:
|
||||
return UnmarshalUpdateNewChat(data)
|
||||
|
||||
|
|
@ -8001,9 +8004,6 @@ func UnmarshalUpdate(data json.RawMessage) (Update, error) {
|
|||
case TypeUpdateTermsOfService:
|
||||
return UnmarshalUpdateTermsOfService(data)
|
||||
|
||||
case TypeUpdateUsersNearby:
|
||||
return UnmarshalUpdateUsersNearby(data)
|
||||
|
||||
case TypeUpdateUnconfirmedSession:
|
||||
return UnmarshalUpdateUnconfirmedSession(data)
|
||||
|
||||
|
|
@ -9532,6 +9532,14 @@ func UnmarshalStarTransactionPartnerTelegramAds(data json.RawMessage) (*StarTran
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStarTransactionPartnerTelegramApi(data json.RawMessage) (*StarTransactionPartnerTelegramApi, error) {
|
||||
var resp StarTransactionPartnerTelegramApi
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStarTransactionPartnerBot(data json.RawMessage) (*StarTransactionPartnerBot, error) {
|
||||
var resp StarTransactionPartnerBot
|
||||
|
||||
|
|
@ -11036,22 +11044,6 @@ func UnmarshalCreatedBasicGroupChat(data json.RawMessage) (*CreatedBasicGroupCha
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatNearby(data json.RawMessage) (*ChatNearby, error) {
|
||||
var resp ChatNearby
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatsNearby(data json.RawMessage) (*ChatsNearby, error) {
|
||||
var resp ChatsNearby
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalPublicChatTypeHasUsername(data json.RawMessage) (*PublicChatTypeHasUsername, error) {
|
||||
var resp PublicChatTypeHasUsername
|
||||
|
||||
|
|
@ -11076,14 +11068,6 @@ func UnmarshalChatActionBarReportSpam(data json.RawMessage) (*ChatActionBarRepor
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatActionBarReportUnrelatedLocation(data json.RawMessage) (*ChatActionBarReportUnrelatedLocation, error) {
|
||||
var resp ChatActionBarReportUnrelatedLocation
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalChatActionBarInviteMembers(data json.RawMessage) (*ChatActionBarInviteMembers, error) {
|
||||
var resp ChatActionBarInviteMembers
|
||||
|
||||
|
|
@ -13900,6 +13884,14 @@ func UnmarshalMessageSchedulingStateSendWhenOnline(data json.RawMessage) (*Messa
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalMessageSchedulingStateSendWhenVideoProcessed(data json.RawMessage) (*MessageSchedulingStateSendWhenVideoProcessed, error) {
|
||||
var resp MessageSchedulingStateSendWhenVideoProcessed
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalMessageSelfDestructTypeTimer(data json.RawMessage) (*MessageSelfDestructTypeTimer, error) {
|
||||
var resp MessageSelfDestructTypeTimer
|
||||
|
||||
|
|
@ -16908,14 +16900,6 @@ func UnmarshalStorePaymentPurposePremiumSubscription(data json.RawMessage) (*Sto
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStorePaymentPurposeGiftedPremium(data json.RawMessage) (*StorePaymentPurposeGiftedPremium, error) {
|
||||
var resp StorePaymentPurposeGiftedPremium
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalStorePaymentPurposePremiumGiftCodes(data json.RawMessage) (*StorePaymentPurposePremiumGiftCodes, error) {
|
||||
var resp StorePaymentPurposePremiumGiftCodes
|
||||
|
||||
|
|
@ -20036,6 +20020,14 @@ func UnmarshalUpdateMessageLiveLocationViewed(data json.RawMessage) (*UpdateMess
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpdateVideoPublished(data json.RawMessage) (*UpdateVideoPublished, error) {
|
||||
var resp UpdateVideoPublished
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpdateNewChat(data json.RawMessage) (*UpdateNewChat, error) {
|
||||
var resp UpdateNewChat
|
||||
|
||||
|
|
@ -20804,14 +20796,6 @@ func UnmarshalUpdateTermsOfService(data json.RawMessage) (*UpdateTermsOfService,
|
|||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpdateUsersNearby(data json.RawMessage) (*UpdateUsersNearby, error) {
|
||||
var resp UpdateUsersNearby
|
||||
|
||||
err := json.Unmarshal(data, &resp)
|
||||
|
||||
return &resp, err
|
||||
}
|
||||
|
||||
func UnmarshalUpdateUnconfirmedSession(data json.RawMessage) (*UpdateUnconfirmedSession, error) {
|
||||
var resp UpdateUnconfirmedSession
|
||||
|
||||
|
|
@ -21760,6 +21744,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeStarTransactionPartnerTelegramAds:
|
||||
return UnmarshalStarTransactionPartnerTelegramAds(data)
|
||||
|
||||
case TypeStarTransactionPartnerTelegramApi:
|
||||
return UnmarshalStarTransactionPartnerTelegramApi(data)
|
||||
|
||||
case TypeStarTransactionPartnerBot:
|
||||
return UnmarshalStarTransactionPartnerBot(data)
|
||||
|
||||
|
|
@ -22324,12 +22311,6 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeCreatedBasicGroupChat:
|
||||
return UnmarshalCreatedBasicGroupChat(data)
|
||||
|
||||
case TypeChatNearby:
|
||||
return UnmarshalChatNearby(data)
|
||||
|
||||
case TypeChatsNearby:
|
||||
return UnmarshalChatsNearby(data)
|
||||
|
||||
case TypePublicChatTypeHasUsername:
|
||||
return UnmarshalPublicChatTypeHasUsername(data)
|
||||
|
||||
|
|
@ -22339,9 +22320,6 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeChatActionBarReportSpam:
|
||||
return UnmarshalChatActionBarReportSpam(data)
|
||||
|
||||
case TypeChatActionBarReportUnrelatedLocation:
|
||||
return UnmarshalChatActionBarReportUnrelatedLocation(data)
|
||||
|
||||
case TypeChatActionBarInviteMembers:
|
||||
return UnmarshalChatActionBarInviteMembers(data)
|
||||
|
||||
|
|
@ -23398,6 +23376,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeMessageSchedulingStateSendWhenOnline:
|
||||
return UnmarshalMessageSchedulingStateSendWhenOnline(data)
|
||||
|
||||
case TypeMessageSchedulingStateSendWhenVideoProcessed:
|
||||
return UnmarshalMessageSchedulingStateSendWhenVideoProcessed(data)
|
||||
|
||||
case TypeMessageSelfDestructTypeTimer:
|
||||
return UnmarshalMessageSelfDestructTypeTimer(data)
|
||||
|
||||
|
|
@ -24526,9 +24507,6 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeStorePaymentPurposePremiumSubscription:
|
||||
return UnmarshalStorePaymentPurposePremiumSubscription(data)
|
||||
|
||||
case TypeStorePaymentPurposeGiftedPremium:
|
||||
return UnmarshalStorePaymentPurposeGiftedPremium(data)
|
||||
|
||||
case TypeStorePaymentPurposePremiumGiftCodes:
|
||||
return UnmarshalStorePaymentPurposePremiumGiftCodes(data)
|
||||
|
||||
|
|
@ -25699,6 +25677,9 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeUpdateMessageLiveLocationViewed:
|
||||
return UnmarshalUpdateMessageLiveLocationViewed(data)
|
||||
|
||||
case TypeUpdateVideoPublished:
|
||||
return UnmarshalUpdateVideoPublished(data)
|
||||
|
||||
case TypeUpdateNewChat:
|
||||
return UnmarshalUpdateNewChat(data)
|
||||
|
||||
|
|
@ -25987,9 +25968,6 @@ func UnmarshalType(data json.RawMessage) (Type, error) {
|
|||
case TypeUpdateTermsOfService:
|
||||
return UnmarshalUpdateTermsOfService(data)
|
||||
|
||||
case TypeUpdateUsersNearby:
|
||||
return UnmarshalUpdateUsersNearby(data)
|
||||
|
||||
case TypeUpdateUnconfirmedSession:
|
||||
return UnmarshalUpdateUnconfirmedSession(data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue