mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
31734 lines
840 KiB
Go
Executable file
31734 lines
840 KiB
Go
Executable file
// AUTOGENERATED
|
|
|
|
package client
|
|
|
|
import (
|
|
"encoding/json"
|
|
"fmt"
|
|
)
|
|
|
|
func UnmarshalAuthenticationCodeType(data json.RawMessage) (AuthenticationCodeType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeAuthenticationCodeTypeTelegramMessage:
|
|
return UnmarshalAuthenticationCodeTypeTelegramMessage(data)
|
|
|
|
case TypeAuthenticationCodeTypeSms:
|
|
return UnmarshalAuthenticationCodeTypeSms(data)
|
|
|
|
case TypeAuthenticationCodeTypeSmsWord:
|
|
return UnmarshalAuthenticationCodeTypeSmsWord(data)
|
|
|
|
case TypeAuthenticationCodeTypeSmsPhrase:
|
|
return UnmarshalAuthenticationCodeTypeSmsPhrase(data)
|
|
|
|
case TypeAuthenticationCodeTypeCall:
|
|
return UnmarshalAuthenticationCodeTypeCall(data)
|
|
|
|
case TypeAuthenticationCodeTypeFlashCall:
|
|
return UnmarshalAuthenticationCodeTypeFlashCall(data)
|
|
|
|
case TypeAuthenticationCodeTypeMissedCall:
|
|
return UnmarshalAuthenticationCodeTypeMissedCall(data)
|
|
|
|
case TypeAuthenticationCodeTypeFragment:
|
|
return UnmarshalAuthenticationCodeTypeFragment(data)
|
|
|
|
case TypeAuthenticationCodeTypeFirebaseAndroid:
|
|
return UnmarshalAuthenticationCodeTypeFirebaseAndroid(data)
|
|
|
|
case TypeAuthenticationCodeTypeFirebaseIos:
|
|
return UnmarshalAuthenticationCodeTypeFirebaseIos(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfAuthenticationCodeType(dataList []json.RawMessage) ([]AuthenticationCodeType, error) {
|
|
list := []AuthenticationCodeType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalAuthenticationCodeType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
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 UnmarshalEmailAddressResetState(data json.RawMessage) (EmailAddressResetState, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeEmailAddressResetStateAvailable:
|
|
return UnmarshalEmailAddressResetStateAvailable(data)
|
|
|
|
case TypeEmailAddressResetStatePending:
|
|
return UnmarshalEmailAddressResetStatePending(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfEmailAddressResetState(dataList []json.RawMessage) ([]EmailAddressResetState, error) {
|
|
list := []EmailAddressResetState{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalEmailAddressResetState(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalAuthorizationState(data json.RawMessage) (AuthorizationState, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeAuthorizationStateWaitTdlibParameters:
|
|
return UnmarshalAuthorizationStateWaitTdlibParameters(data)
|
|
|
|
case TypeAuthorizationStateWaitPhoneNumber:
|
|
return UnmarshalAuthorizationStateWaitPhoneNumber(data)
|
|
|
|
case TypeAuthorizationStateWaitPremiumPurchase:
|
|
return UnmarshalAuthorizationStateWaitPremiumPurchase(data)
|
|
|
|
case TypeAuthorizationStateWaitEmailAddress:
|
|
return UnmarshalAuthorizationStateWaitEmailAddress(data)
|
|
|
|
case TypeAuthorizationStateWaitEmailCode:
|
|
return UnmarshalAuthorizationStateWaitEmailCode(data)
|
|
|
|
case TypeAuthorizationStateWaitCode:
|
|
return UnmarshalAuthorizationStateWaitCode(data)
|
|
|
|
case TypeAuthorizationStateWaitOtherDeviceConfirmation:
|
|
return UnmarshalAuthorizationStateWaitOtherDeviceConfirmation(data)
|
|
|
|
case TypeAuthorizationStateWaitRegistration:
|
|
return UnmarshalAuthorizationStateWaitRegistration(data)
|
|
|
|
case TypeAuthorizationStateWaitPassword:
|
|
return UnmarshalAuthorizationStateWaitPassword(data)
|
|
|
|
case TypeAuthorizationStateReady:
|
|
return UnmarshalAuthorizationStateReady(data)
|
|
|
|
case TypeAuthorizationStateLoggingOut:
|
|
return UnmarshalAuthorizationStateLoggingOut(data)
|
|
|
|
case TypeAuthorizationStateClosing:
|
|
return UnmarshalAuthorizationStateClosing(data)
|
|
|
|
case TypeAuthorizationStateClosed:
|
|
return UnmarshalAuthorizationStateClosed(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfAuthorizationState(dataList []json.RawMessage) ([]AuthorizationState, error) {
|
|
list := []AuthorizationState{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalAuthorizationState(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalFirebaseDeviceVerificationParameters(data json.RawMessage) (FirebaseDeviceVerificationParameters, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeFirebaseDeviceVerificationParametersSafetyNet:
|
|
return UnmarshalFirebaseDeviceVerificationParametersSafetyNet(data)
|
|
|
|
case TypeFirebaseDeviceVerificationParametersPlayIntegrity:
|
|
return UnmarshalFirebaseDeviceVerificationParametersPlayIntegrity(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfFirebaseDeviceVerificationParameters(dataList []json.RawMessage) ([]FirebaseDeviceVerificationParameters, error) {
|
|
list := []FirebaseDeviceVerificationParameters{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalFirebaseDeviceVerificationParameters(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputFile(data json.RawMessage) (InputFile, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputFileId:
|
|
return UnmarshalInputFileId(data)
|
|
|
|
case TypeInputFileRemote:
|
|
return UnmarshalInputFileRemote(data)
|
|
|
|
case TypeInputFileLocal:
|
|
return UnmarshalInputFileLocal(data)
|
|
|
|
case TypeInputFileGenerated:
|
|
return UnmarshalInputFileGenerated(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputFile(dataList []json.RawMessage) ([]InputFile, error) {
|
|
list := []InputFile{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputFile(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalThumbnailFormat(data json.RawMessage) (ThumbnailFormat, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeThumbnailFormatJpeg:
|
|
return UnmarshalThumbnailFormatJpeg(data)
|
|
|
|
case TypeThumbnailFormatGif:
|
|
return UnmarshalThumbnailFormatGif(data)
|
|
|
|
case TypeThumbnailFormatMpeg4:
|
|
return UnmarshalThumbnailFormatMpeg4(data)
|
|
|
|
case TypeThumbnailFormatPng:
|
|
return UnmarshalThumbnailFormatPng(data)
|
|
|
|
case TypeThumbnailFormatTgs:
|
|
return UnmarshalThumbnailFormatTgs(data)
|
|
|
|
case TypeThumbnailFormatWebm:
|
|
return UnmarshalThumbnailFormatWebm(data)
|
|
|
|
case TypeThumbnailFormatWebp:
|
|
return UnmarshalThumbnailFormatWebp(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfThumbnailFormat(dataList []json.RawMessage) ([]ThumbnailFormat, error) {
|
|
list := []ThumbnailFormat{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalThumbnailFormat(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMaskPoint(data json.RawMessage) (MaskPoint, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMaskPointForehead:
|
|
return UnmarshalMaskPointForehead(data)
|
|
|
|
case TypeMaskPointEyes:
|
|
return UnmarshalMaskPointEyes(data)
|
|
|
|
case TypeMaskPointMouth:
|
|
return UnmarshalMaskPointMouth(data)
|
|
|
|
case TypeMaskPointChin:
|
|
return UnmarshalMaskPointChin(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMaskPoint(dataList []json.RawMessage) ([]MaskPoint, error) {
|
|
list := []MaskPoint{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMaskPoint(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStickerFormat(data json.RawMessage) (StickerFormat, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStickerFormatWebp:
|
|
return UnmarshalStickerFormatWebp(data)
|
|
|
|
case TypeStickerFormatTgs:
|
|
return UnmarshalStickerFormatTgs(data)
|
|
|
|
case TypeStickerFormatWebm:
|
|
return UnmarshalStickerFormatWebm(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStickerFormat(dataList []json.RawMessage) ([]StickerFormat, error) {
|
|
list := []StickerFormat{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStickerFormat(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStickerType(data json.RawMessage) (StickerType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStickerTypeRegular:
|
|
return UnmarshalStickerTypeRegular(data)
|
|
|
|
case TypeStickerTypeMask:
|
|
return UnmarshalStickerTypeMask(data)
|
|
|
|
case TypeStickerTypeCustomEmoji:
|
|
return UnmarshalStickerTypeCustomEmoji(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStickerType(dataList []json.RawMessage) ([]StickerType, error) {
|
|
list := []StickerType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStickerType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStickerFullType(data json.RawMessage) (StickerFullType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStickerFullTypeRegular:
|
|
return UnmarshalStickerFullTypeRegular(data)
|
|
|
|
case TypeStickerFullTypeMask:
|
|
return UnmarshalStickerFullTypeMask(data)
|
|
|
|
case TypeStickerFullTypeCustomEmoji:
|
|
return UnmarshalStickerFullTypeCustomEmoji(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStickerFullType(dataList []json.RawMessage) ([]StickerFullType, error) {
|
|
list := []StickerFullType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStickerFullType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPollType(data json.RawMessage) (PollType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePollTypeRegular:
|
|
return UnmarshalPollTypeRegular(data)
|
|
|
|
case TypePollTypeQuiz:
|
|
return UnmarshalPollTypeQuiz(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPollType(dataList []json.RawMessage) ([]PollType, error) {
|
|
list := []PollType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPollType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalProfileTab(data json.RawMessage) (ProfileTab, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeProfileTabPosts:
|
|
return UnmarshalProfileTabPosts(data)
|
|
|
|
case TypeProfileTabGifts:
|
|
return UnmarshalProfileTabGifts(data)
|
|
|
|
case TypeProfileTabMedia:
|
|
return UnmarshalProfileTabMedia(data)
|
|
|
|
case TypeProfileTabFiles:
|
|
return UnmarshalProfileTabFiles(data)
|
|
|
|
case TypeProfileTabLinks:
|
|
return UnmarshalProfileTabLinks(data)
|
|
|
|
case TypeProfileTabMusic:
|
|
return UnmarshalProfileTabMusic(data)
|
|
|
|
case TypeProfileTabVoice:
|
|
return UnmarshalProfileTabVoice(data)
|
|
|
|
case TypeProfileTabGifs:
|
|
return UnmarshalProfileTabGifs(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfProfileTab(dataList []json.RawMessage) ([]ProfileTab, error) {
|
|
list := []ProfileTab{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalProfileTab(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalUserType(data json.RawMessage) (UserType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeUserTypeRegular:
|
|
return UnmarshalUserTypeRegular(data)
|
|
|
|
case TypeUserTypeDeleted:
|
|
return UnmarshalUserTypeDeleted(data)
|
|
|
|
case TypeUserTypeBot:
|
|
return UnmarshalUserTypeBot(data)
|
|
|
|
case TypeUserTypeUnknown:
|
|
return UnmarshalUserTypeUnknown(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfUserType(dataList []json.RawMessage) ([]UserType, error) {
|
|
list := []UserType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalUserType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalBusinessAwayMessageSchedule(data json.RawMessage) (BusinessAwayMessageSchedule, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeBusinessAwayMessageScheduleAlways:
|
|
return UnmarshalBusinessAwayMessageScheduleAlways(data)
|
|
|
|
case TypeBusinessAwayMessageScheduleOutsideOfOpeningHours:
|
|
return UnmarshalBusinessAwayMessageScheduleOutsideOfOpeningHours(data)
|
|
|
|
case TypeBusinessAwayMessageScheduleCustom:
|
|
return UnmarshalBusinessAwayMessageScheduleCustom(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfBusinessAwayMessageSchedule(dataList []json.RawMessage) ([]BusinessAwayMessageSchedule, error) {
|
|
list := []BusinessAwayMessageSchedule{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalBusinessAwayMessageSchedule(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatPhotoStickerType(data json.RawMessage) (ChatPhotoStickerType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatPhotoStickerTypeRegularOrMask:
|
|
return UnmarshalChatPhotoStickerTypeRegularOrMask(data)
|
|
|
|
case TypeChatPhotoStickerTypeCustomEmoji:
|
|
return UnmarshalChatPhotoStickerTypeCustomEmoji(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatPhotoStickerType(dataList []json.RawMessage) ([]ChatPhotoStickerType, error) {
|
|
list := []ChatPhotoStickerType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatPhotoStickerType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputChatPhoto(data json.RawMessage) (InputChatPhoto, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputChatPhotoPrevious:
|
|
return UnmarshalInputChatPhotoPrevious(data)
|
|
|
|
case TypeInputChatPhotoStatic:
|
|
return UnmarshalInputChatPhotoStatic(data)
|
|
|
|
case TypeInputChatPhotoAnimation:
|
|
return UnmarshalInputChatPhotoAnimation(data)
|
|
|
|
case TypeInputChatPhotoSticker:
|
|
return UnmarshalInputChatPhotoSticker(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputChatPhoto(dataList []json.RawMessage) ([]InputChatPhoto, error) {
|
|
list := []InputChatPhoto{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputChatPhoto(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalGiftResalePrice(data json.RawMessage) (GiftResalePrice, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeGiftResalePriceStar:
|
|
return UnmarshalGiftResalePriceStar(data)
|
|
|
|
case TypeGiftResalePriceTon:
|
|
return UnmarshalGiftResalePriceTon(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfGiftResalePrice(dataList []json.RawMessage) ([]GiftResalePrice, error) {
|
|
list := []GiftResalePrice{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalGiftResalePrice(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalGiftPurchaseOfferState(data json.RawMessage) (GiftPurchaseOfferState, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeGiftPurchaseOfferStatePending:
|
|
return UnmarshalGiftPurchaseOfferStatePending(data)
|
|
|
|
case TypeGiftPurchaseOfferStateAccepted:
|
|
return UnmarshalGiftPurchaseOfferStateAccepted(data)
|
|
|
|
case TypeGiftPurchaseOfferStateRejected:
|
|
return UnmarshalGiftPurchaseOfferStateRejected(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfGiftPurchaseOfferState(dataList []json.RawMessage) ([]GiftPurchaseOfferState, error) {
|
|
list := []GiftPurchaseOfferState{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalGiftPurchaseOfferState(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalSuggestedPostPrice(data json.RawMessage) (SuggestedPostPrice, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeSuggestedPostPriceStar:
|
|
return UnmarshalSuggestedPostPriceStar(data)
|
|
|
|
case TypeSuggestedPostPriceTon:
|
|
return UnmarshalSuggestedPostPriceTon(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfSuggestedPostPrice(dataList []json.RawMessage) ([]SuggestedPostPrice, error) {
|
|
list := []SuggestedPostPrice{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalSuggestedPostPrice(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalSuggestedPostState(data json.RawMessage) (SuggestedPostState, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeSuggestedPostStatePending:
|
|
return UnmarshalSuggestedPostStatePending(data)
|
|
|
|
case TypeSuggestedPostStateApproved:
|
|
return UnmarshalSuggestedPostStateApproved(data)
|
|
|
|
case TypeSuggestedPostStateDeclined:
|
|
return UnmarshalSuggestedPostStateDeclined(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfSuggestedPostState(dataList []json.RawMessage) ([]SuggestedPostState, error) {
|
|
list := []SuggestedPostState{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalSuggestedPostState(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalSuggestedPostRefundReason(data json.RawMessage) (SuggestedPostRefundReason, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeSuggestedPostRefundReasonPostDeleted:
|
|
return UnmarshalSuggestedPostRefundReasonPostDeleted(data)
|
|
|
|
case TypeSuggestedPostRefundReasonPaymentRefunded:
|
|
return UnmarshalSuggestedPostRefundReasonPaymentRefunded(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfSuggestedPostRefundReason(dataList []json.RawMessage) ([]SuggestedPostRefundReason, error) {
|
|
list := []SuggestedPostRefundReason{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalSuggestedPostRefundReason(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStarSubscriptionType(data json.RawMessage) (StarSubscriptionType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStarSubscriptionTypeChannel:
|
|
return UnmarshalStarSubscriptionTypeChannel(data)
|
|
|
|
case TypeStarSubscriptionTypeBot:
|
|
return UnmarshalStarSubscriptionTypeBot(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStarSubscriptionType(dataList []json.RawMessage) ([]StarSubscriptionType, error) {
|
|
list := []StarSubscriptionType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStarSubscriptionType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeAffiliateProgramSortOrderProfitability:
|
|
return UnmarshalAffiliateProgramSortOrderProfitability(data)
|
|
|
|
case TypeAffiliateProgramSortOrderCreationDate:
|
|
return UnmarshalAffiliateProgramSortOrderCreationDate(data)
|
|
|
|
case TypeAffiliateProgramSortOrderRevenue:
|
|
return UnmarshalAffiliateProgramSortOrderRevenue(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfAffiliateProgramSortOrder(dataList []json.RawMessage) ([]AffiliateProgramSortOrder, error) {
|
|
list := []AffiliateProgramSortOrder{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalAffiliateProgramSortOrder(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCanSendGiftResult(data json.RawMessage) (CanSendGiftResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCanSendGiftResultOk:
|
|
return UnmarshalCanSendGiftResultOk(data)
|
|
|
|
case TypeCanSendGiftResultFail:
|
|
return UnmarshalCanSendGiftResultFail(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCanSendGiftResult(dataList []json.RawMessage) ([]CanSendGiftResult, error) {
|
|
list := []CanSendGiftResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCanSendGiftResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftOrigin(data json.RawMessage) (UpgradedGiftOrigin, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeUpgradedGiftOriginUpgrade:
|
|
return UnmarshalUpgradedGiftOriginUpgrade(data)
|
|
|
|
case TypeUpgradedGiftOriginTransfer:
|
|
return UnmarshalUpgradedGiftOriginTransfer(data)
|
|
|
|
case TypeUpgradedGiftOriginResale:
|
|
return UnmarshalUpgradedGiftOriginResale(data)
|
|
|
|
case TypeUpgradedGiftOriginBlockchain:
|
|
return UnmarshalUpgradedGiftOriginBlockchain(data)
|
|
|
|
case TypeUpgradedGiftOriginPrepaidUpgrade:
|
|
return UnmarshalUpgradedGiftOriginPrepaidUpgrade(data)
|
|
|
|
case TypeUpgradedGiftOriginOffer:
|
|
return UnmarshalUpgradedGiftOriginOffer(data)
|
|
|
|
case TypeUpgradedGiftOriginCraft:
|
|
return UnmarshalUpgradedGiftOriginCraft(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfUpgradedGiftOrigin(dataList []json.RawMessage) ([]UpgradedGiftOrigin, error) {
|
|
list := []UpgradedGiftOrigin{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalUpgradedGiftOrigin(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftAttributeRarity(data json.RawMessage) (UpgradedGiftAttributeRarity, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeUpgradedGiftAttributeRarityPerMille:
|
|
return UnmarshalUpgradedGiftAttributeRarityPerMille(data)
|
|
|
|
case TypeUpgradedGiftAttributeRarityUncommon:
|
|
return UnmarshalUpgradedGiftAttributeRarityUncommon(data)
|
|
|
|
case TypeUpgradedGiftAttributeRarityRare:
|
|
return UnmarshalUpgradedGiftAttributeRarityRare(data)
|
|
|
|
case TypeUpgradedGiftAttributeRarityEpic:
|
|
return UnmarshalUpgradedGiftAttributeRarityEpic(data)
|
|
|
|
case TypeUpgradedGiftAttributeRarityLegendary:
|
|
return UnmarshalUpgradedGiftAttributeRarityLegendary(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfUpgradedGiftAttributeRarity(dataList []json.RawMessage) ([]UpgradedGiftAttributeRarity, error) {
|
|
list := []UpgradedGiftAttributeRarity{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalUpgradedGiftAttributeRarity(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCraftGiftResult(data json.RawMessage) (CraftGiftResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCraftGiftResultSuccess:
|
|
return UnmarshalCraftGiftResultSuccess(data)
|
|
|
|
case TypeCraftGiftResultTooEarly:
|
|
return UnmarshalCraftGiftResultTooEarly(data)
|
|
|
|
case TypeCraftGiftResultInvalidGift:
|
|
return UnmarshalCraftGiftResultInvalidGift(data)
|
|
|
|
case TypeCraftGiftResultFail:
|
|
return UnmarshalCraftGiftResultFail(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCraftGiftResult(dataList []json.RawMessage) ([]CraftGiftResult, error) {
|
|
list := []CraftGiftResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCraftGiftResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftAttributeId(data json.RawMessage) (UpgradedGiftAttributeId, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeUpgradedGiftAttributeIdModel:
|
|
return UnmarshalUpgradedGiftAttributeIdModel(data)
|
|
|
|
case TypeUpgradedGiftAttributeIdSymbol:
|
|
return UnmarshalUpgradedGiftAttributeIdSymbol(data)
|
|
|
|
case TypeUpgradedGiftAttributeIdBackdrop:
|
|
return UnmarshalUpgradedGiftAttributeIdBackdrop(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfUpgradedGiftAttributeId(dataList []json.RawMessage) ([]UpgradedGiftAttributeId, error) {
|
|
list := []UpgradedGiftAttributeId{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalUpgradedGiftAttributeId(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalGiftForResaleOrder(data json.RawMessage) (GiftForResaleOrder, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeGiftForResaleOrderPrice:
|
|
return UnmarshalGiftForResaleOrderPrice(data)
|
|
|
|
case TypeGiftForResaleOrderPriceChangeDate:
|
|
return UnmarshalGiftForResaleOrderPriceChangeDate(data)
|
|
|
|
case TypeGiftForResaleOrderNumber:
|
|
return UnmarshalGiftForResaleOrderNumber(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfGiftForResaleOrder(dataList []json.RawMessage) ([]GiftForResaleOrder, error) {
|
|
list := []GiftForResaleOrder{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalGiftForResaleOrder(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalGiftResaleResult(data json.RawMessage) (GiftResaleResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeGiftResaleResultOk:
|
|
return UnmarshalGiftResaleResultOk(data)
|
|
|
|
case TypeGiftResaleResultPriceIncreased:
|
|
return UnmarshalGiftResaleResultPriceIncreased(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfGiftResaleResult(dataList []json.RawMessage) ([]GiftResaleResult, error) {
|
|
list := []GiftResaleResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalGiftResaleResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
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 UnmarshalAuctionState(data json.RawMessage) (AuctionState, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeAuctionStateActive:
|
|
return UnmarshalAuctionStateActive(data)
|
|
|
|
case TypeAuctionStateFinished:
|
|
return UnmarshalAuctionStateFinished(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfAuctionState(dataList []json.RawMessage) ([]AuctionState, error) {
|
|
list := []AuctionState{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalAuctionState(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalTransactionDirection(data json.RawMessage) (TransactionDirection, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeTransactionDirectionIncoming:
|
|
return UnmarshalTransactionDirectionIncoming(data)
|
|
|
|
case TypeTransactionDirectionOutgoing:
|
|
return UnmarshalTransactionDirectionOutgoing(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfTransactionDirection(dataList []json.RawMessage) ([]TransactionDirection, error) {
|
|
list := []TransactionDirection{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalTransactionDirection(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStarTransactionType(data json.RawMessage) (StarTransactionType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStarTransactionTypePremiumBotDeposit:
|
|
return UnmarshalStarTransactionTypePremiumBotDeposit(data)
|
|
|
|
case TypeStarTransactionTypeAppStoreDeposit:
|
|
return UnmarshalStarTransactionTypeAppStoreDeposit(data)
|
|
|
|
case TypeStarTransactionTypeGooglePlayDeposit:
|
|
return UnmarshalStarTransactionTypeGooglePlayDeposit(data)
|
|
|
|
case TypeStarTransactionTypeFragmentDeposit:
|
|
return UnmarshalStarTransactionTypeFragmentDeposit(data)
|
|
|
|
case TypeStarTransactionTypeUserDeposit:
|
|
return UnmarshalStarTransactionTypeUserDeposit(data)
|
|
|
|
case TypeStarTransactionTypeGiveawayDeposit:
|
|
return UnmarshalStarTransactionTypeGiveawayDeposit(data)
|
|
|
|
case TypeStarTransactionTypeFragmentWithdrawal:
|
|
return UnmarshalStarTransactionTypeFragmentWithdrawal(data)
|
|
|
|
case TypeStarTransactionTypeTelegramAdsWithdrawal:
|
|
return UnmarshalStarTransactionTypeTelegramAdsWithdrawal(data)
|
|
|
|
case TypeStarTransactionTypeTelegramApiUsage:
|
|
return UnmarshalStarTransactionTypeTelegramApiUsage(data)
|
|
|
|
case TypeStarTransactionTypeBotPaidMediaPurchase:
|
|
return UnmarshalStarTransactionTypeBotPaidMediaPurchase(data)
|
|
|
|
case TypeStarTransactionTypeBotPaidMediaSale:
|
|
return UnmarshalStarTransactionTypeBotPaidMediaSale(data)
|
|
|
|
case TypeStarTransactionTypeChannelPaidMediaPurchase:
|
|
return UnmarshalStarTransactionTypeChannelPaidMediaPurchase(data)
|
|
|
|
case TypeStarTransactionTypeChannelPaidMediaSale:
|
|
return UnmarshalStarTransactionTypeChannelPaidMediaSale(data)
|
|
|
|
case TypeStarTransactionTypeBotInvoicePurchase:
|
|
return UnmarshalStarTransactionTypeBotInvoicePurchase(data)
|
|
|
|
case TypeStarTransactionTypeBotInvoiceSale:
|
|
return UnmarshalStarTransactionTypeBotInvoiceSale(data)
|
|
|
|
case TypeStarTransactionTypeBotSubscriptionPurchase:
|
|
return UnmarshalStarTransactionTypeBotSubscriptionPurchase(data)
|
|
|
|
case TypeStarTransactionTypeBotSubscriptionSale:
|
|
return UnmarshalStarTransactionTypeBotSubscriptionSale(data)
|
|
|
|
case TypeStarTransactionTypeChannelSubscriptionPurchase:
|
|
return UnmarshalStarTransactionTypeChannelSubscriptionPurchase(data)
|
|
|
|
case TypeStarTransactionTypeChannelSubscriptionSale:
|
|
return UnmarshalStarTransactionTypeChannelSubscriptionSale(data)
|
|
|
|
case TypeStarTransactionTypeGiftAuctionBid:
|
|
return UnmarshalStarTransactionTypeGiftAuctionBid(data)
|
|
|
|
case TypeStarTransactionTypeGiftPurchase:
|
|
return UnmarshalStarTransactionTypeGiftPurchase(data)
|
|
|
|
case TypeStarTransactionTypeGiftPurchaseOffer:
|
|
return UnmarshalStarTransactionTypeGiftPurchaseOffer(data)
|
|
|
|
case TypeStarTransactionTypeGiftTransfer:
|
|
return UnmarshalStarTransactionTypeGiftTransfer(data)
|
|
|
|
case TypeStarTransactionTypeGiftOriginalDetailsDrop:
|
|
return UnmarshalStarTransactionTypeGiftOriginalDetailsDrop(data)
|
|
|
|
case TypeStarTransactionTypeGiftSale:
|
|
return UnmarshalStarTransactionTypeGiftSale(data)
|
|
|
|
case TypeStarTransactionTypeGiftUpgrade:
|
|
return UnmarshalStarTransactionTypeGiftUpgrade(data)
|
|
|
|
case TypeStarTransactionTypeGiftUpgradePurchase:
|
|
return UnmarshalStarTransactionTypeGiftUpgradePurchase(data)
|
|
|
|
case TypeStarTransactionTypeUpgradedGiftPurchase:
|
|
return UnmarshalStarTransactionTypeUpgradedGiftPurchase(data)
|
|
|
|
case TypeStarTransactionTypeUpgradedGiftSale:
|
|
return UnmarshalStarTransactionTypeUpgradedGiftSale(data)
|
|
|
|
case TypeStarTransactionTypeChannelPaidReactionSend:
|
|
return UnmarshalStarTransactionTypeChannelPaidReactionSend(data)
|
|
|
|
case TypeStarTransactionTypeChannelPaidReactionReceive:
|
|
return UnmarshalStarTransactionTypeChannelPaidReactionReceive(data)
|
|
|
|
case TypeStarTransactionTypeAffiliateProgramCommission:
|
|
return UnmarshalStarTransactionTypeAffiliateProgramCommission(data)
|
|
|
|
case TypeStarTransactionTypePaidMessageSend:
|
|
return UnmarshalStarTransactionTypePaidMessageSend(data)
|
|
|
|
case TypeStarTransactionTypePaidMessageReceive:
|
|
return UnmarshalStarTransactionTypePaidMessageReceive(data)
|
|
|
|
case TypeStarTransactionTypePaidGroupCallMessageSend:
|
|
return UnmarshalStarTransactionTypePaidGroupCallMessageSend(data)
|
|
|
|
case TypeStarTransactionTypePaidGroupCallMessageReceive:
|
|
return UnmarshalStarTransactionTypePaidGroupCallMessageReceive(data)
|
|
|
|
case TypeStarTransactionTypePaidGroupCallReactionSend:
|
|
return UnmarshalStarTransactionTypePaidGroupCallReactionSend(data)
|
|
|
|
case TypeStarTransactionTypePaidGroupCallReactionReceive:
|
|
return UnmarshalStarTransactionTypePaidGroupCallReactionReceive(data)
|
|
|
|
case TypeStarTransactionTypeSuggestedPostPaymentSend:
|
|
return UnmarshalStarTransactionTypeSuggestedPostPaymentSend(data)
|
|
|
|
case TypeStarTransactionTypeSuggestedPostPaymentReceive:
|
|
return UnmarshalStarTransactionTypeSuggestedPostPaymentReceive(data)
|
|
|
|
case TypeStarTransactionTypePremiumPurchase:
|
|
return UnmarshalStarTransactionTypePremiumPurchase(data)
|
|
|
|
case TypeStarTransactionTypeBusinessBotTransferSend:
|
|
return UnmarshalStarTransactionTypeBusinessBotTransferSend(data)
|
|
|
|
case TypeStarTransactionTypeBusinessBotTransferReceive:
|
|
return UnmarshalStarTransactionTypeBusinessBotTransferReceive(data)
|
|
|
|
case TypeStarTransactionTypePublicPostSearch:
|
|
return UnmarshalStarTransactionTypePublicPostSearch(data)
|
|
|
|
case TypeStarTransactionTypeUnsupported:
|
|
return UnmarshalStarTransactionTypeUnsupported(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStarTransactionType(dataList []json.RawMessage) ([]StarTransactionType, error) {
|
|
list := []StarTransactionType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStarTransactionType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalTonTransactionType(data json.RawMessage) (TonTransactionType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeTonTransactionTypeFragmentDeposit:
|
|
return UnmarshalTonTransactionTypeFragmentDeposit(data)
|
|
|
|
case TypeTonTransactionTypeFragmentWithdrawal:
|
|
return UnmarshalTonTransactionTypeFragmentWithdrawal(data)
|
|
|
|
case TypeTonTransactionTypeSuggestedPostPayment:
|
|
return UnmarshalTonTransactionTypeSuggestedPostPayment(data)
|
|
|
|
case TypeTonTransactionTypeGiftPurchaseOffer:
|
|
return UnmarshalTonTransactionTypeGiftPurchaseOffer(data)
|
|
|
|
case TypeTonTransactionTypeUpgradedGiftPurchase:
|
|
return UnmarshalTonTransactionTypeUpgradedGiftPurchase(data)
|
|
|
|
case TypeTonTransactionTypeUpgradedGiftSale:
|
|
return UnmarshalTonTransactionTypeUpgradedGiftSale(data)
|
|
|
|
case TypeTonTransactionTypeStakeDiceStake:
|
|
return UnmarshalTonTransactionTypeStakeDiceStake(data)
|
|
|
|
case TypeTonTransactionTypeStakeDicePayout:
|
|
return UnmarshalTonTransactionTypeStakeDicePayout(data)
|
|
|
|
case TypeTonTransactionTypeUnsupported:
|
|
return UnmarshalTonTransactionTypeUnsupported(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfTonTransactionType(dataList []json.RawMessage) ([]TonTransactionType, error) {
|
|
list := []TonTransactionType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalTonTransactionType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalActiveStoryState(data json.RawMessage) (ActiveStoryState, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeActiveStoryStateLive:
|
|
return UnmarshalActiveStoryStateLive(data)
|
|
|
|
case TypeActiveStoryStateUnread:
|
|
return UnmarshalActiveStoryStateUnread(data)
|
|
|
|
case TypeActiveStoryStateRead:
|
|
return UnmarshalActiveStoryStateRead(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfActiveStoryState(dataList []json.RawMessage) ([]ActiveStoryState, error) {
|
|
list := []ActiveStoryState{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalActiveStoryState(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalGiveawayParticipantStatus(data json.RawMessage) (GiveawayParticipantStatus, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeGiveawayParticipantStatusEligible:
|
|
return UnmarshalGiveawayParticipantStatusEligible(data)
|
|
|
|
case TypeGiveawayParticipantStatusParticipating:
|
|
return UnmarshalGiveawayParticipantStatusParticipating(data)
|
|
|
|
case TypeGiveawayParticipantStatusAlreadyWasMember:
|
|
return UnmarshalGiveawayParticipantStatusAlreadyWasMember(data)
|
|
|
|
case TypeGiveawayParticipantStatusAdministrator:
|
|
return UnmarshalGiveawayParticipantStatusAdministrator(data)
|
|
|
|
case TypeGiveawayParticipantStatusDisallowedCountry:
|
|
return UnmarshalGiveawayParticipantStatusDisallowedCountry(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfGiveawayParticipantStatus(dataList []json.RawMessage) ([]GiveawayParticipantStatus, error) {
|
|
list := []GiveawayParticipantStatus{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalGiveawayParticipantStatus(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalGiveawayInfo(data json.RawMessage) (GiveawayInfo, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeGiveawayInfoOngoing:
|
|
return UnmarshalGiveawayInfoOngoing(data)
|
|
|
|
case TypeGiveawayInfoCompleted:
|
|
return UnmarshalGiveawayInfoCompleted(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfGiveawayInfo(dataList []json.RawMessage) ([]GiveawayInfo, error) {
|
|
list := []GiveawayInfo{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalGiveawayInfo(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalGiveawayPrize(data json.RawMessage) (GiveawayPrize, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeGiveawayPrizePremium:
|
|
return UnmarshalGiveawayPrizePremium(data)
|
|
|
|
case TypeGiveawayPrizeStars:
|
|
return UnmarshalGiveawayPrizeStars(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfGiveawayPrize(dataList []json.RawMessage) ([]GiveawayPrize, error) {
|
|
list := []GiveawayPrize{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalGiveawayPrize(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalEmojiStatusType(data json.RawMessage) (EmojiStatusType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeEmojiStatusTypeCustomEmoji:
|
|
return UnmarshalEmojiStatusTypeCustomEmoji(data)
|
|
|
|
case TypeEmojiStatusTypeUpgradedGift:
|
|
return UnmarshalEmojiStatusTypeUpgradedGift(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfEmojiStatusType(dataList []json.RawMessage) ([]EmojiStatusType, error) {
|
|
list := []EmojiStatusType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalEmojiStatusType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatMemberStatus(data json.RawMessage) (ChatMemberStatus, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatMemberStatusCreator:
|
|
return UnmarshalChatMemberStatusCreator(data)
|
|
|
|
case TypeChatMemberStatusAdministrator:
|
|
return UnmarshalChatMemberStatusAdministrator(data)
|
|
|
|
case TypeChatMemberStatusMember:
|
|
return UnmarshalChatMemberStatusMember(data)
|
|
|
|
case TypeChatMemberStatusRestricted:
|
|
return UnmarshalChatMemberStatusRestricted(data)
|
|
|
|
case TypeChatMemberStatusLeft:
|
|
return UnmarshalChatMemberStatusLeft(data)
|
|
|
|
case TypeChatMemberStatusBanned:
|
|
return UnmarshalChatMemberStatusBanned(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatMemberStatus(dataList []json.RawMessage) ([]ChatMemberStatus, error) {
|
|
list := []ChatMemberStatus{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatMemberStatus(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatMembersFilter(data json.RawMessage) (ChatMembersFilter, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatMembersFilterContacts:
|
|
return UnmarshalChatMembersFilterContacts(data)
|
|
|
|
case TypeChatMembersFilterAdministrators:
|
|
return UnmarshalChatMembersFilterAdministrators(data)
|
|
|
|
case TypeChatMembersFilterMembers:
|
|
return UnmarshalChatMembersFilterMembers(data)
|
|
|
|
case TypeChatMembersFilterMention:
|
|
return UnmarshalChatMembersFilterMention(data)
|
|
|
|
case TypeChatMembersFilterRestricted:
|
|
return UnmarshalChatMembersFilterRestricted(data)
|
|
|
|
case TypeChatMembersFilterBanned:
|
|
return UnmarshalChatMembersFilterBanned(data)
|
|
|
|
case TypeChatMembersFilterBots:
|
|
return UnmarshalChatMembersFilterBots(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatMembersFilter(dataList []json.RawMessage) ([]ChatMembersFilter, error) {
|
|
list := []ChatMembersFilter{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatMembersFilter(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalSupergroupMembersFilter(data json.RawMessage) (SupergroupMembersFilter, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeSupergroupMembersFilterRecent:
|
|
return UnmarshalSupergroupMembersFilterRecent(data)
|
|
|
|
case TypeSupergroupMembersFilterContacts:
|
|
return UnmarshalSupergroupMembersFilterContacts(data)
|
|
|
|
case TypeSupergroupMembersFilterAdministrators:
|
|
return UnmarshalSupergroupMembersFilterAdministrators(data)
|
|
|
|
case TypeSupergroupMembersFilterSearch:
|
|
return UnmarshalSupergroupMembersFilterSearch(data)
|
|
|
|
case TypeSupergroupMembersFilterRestricted:
|
|
return UnmarshalSupergroupMembersFilterRestricted(data)
|
|
|
|
case TypeSupergroupMembersFilterBanned:
|
|
return UnmarshalSupergroupMembersFilterBanned(data)
|
|
|
|
case TypeSupergroupMembersFilterMention:
|
|
return UnmarshalSupergroupMembersFilterMention(data)
|
|
|
|
case TypeSupergroupMembersFilterBots:
|
|
return UnmarshalSupergroupMembersFilterBots(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfSupergroupMembersFilter(dataList []json.RawMessage) ([]SupergroupMembersFilter, error) {
|
|
list := []SupergroupMembersFilter{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalSupergroupMembersFilter(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInviteLinkChatType(data json.RawMessage) (InviteLinkChatType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInviteLinkChatTypeBasicGroup:
|
|
return UnmarshalInviteLinkChatTypeBasicGroup(data)
|
|
|
|
case TypeInviteLinkChatTypeSupergroup:
|
|
return UnmarshalInviteLinkChatTypeSupergroup(data)
|
|
|
|
case TypeInviteLinkChatTypeChannel:
|
|
return UnmarshalInviteLinkChatTypeChannel(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInviteLinkChatType(dataList []json.RawMessage) ([]InviteLinkChatType, error) {
|
|
list := []InviteLinkChatType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInviteLinkChatType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalSecretChatState(data json.RawMessage) (SecretChatState, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeSecretChatStatePending:
|
|
return UnmarshalSecretChatStatePending(data)
|
|
|
|
case TypeSecretChatStateReady:
|
|
return UnmarshalSecretChatStateReady(data)
|
|
|
|
case TypeSecretChatStateClosed:
|
|
return UnmarshalSecretChatStateClosed(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfSecretChatState(dataList []json.RawMessage) ([]SecretChatState, error) {
|
|
list := []SecretChatState{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalSecretChatState(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMessageSender(data json.RawMessage) (MessageSender, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMessageSenderUser:
|
|
return UnmarshalMessageSenderUser(data)
|
|
|
|
case TypeMessageSenderChat:
|
|
return UnmarshalMessageSenderChat(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMessageSender(dataList []json.RawMessage) ([]MessageSender, error) {
|
|
list := []MessageSender{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMessageSender(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMessageReadDate(data json.RawMessage) (MessageReadDate, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMessageReadDateRead:
|
|
return UnmarshalMessageReadDateRead(data)
|
|
|
|
case TypeMessageReadDateUnread:
|
|
return UnmarshalMessageReadDateUnread(data)
|
|
|
|
case TypeMessageReadDateTooOld:
|
|
return UnmarshalMessageReadDateTooOld(data)
|
|
|
|
case TypeMessageReadDateUserPrivacyRestricted:
|
|
return UnmarshalMessageReadDateUserPrivacyRestricted(data)
|
|
|
|
case TypeMessageReadDateMyPrivacyRestricted:
|
|
return UnmarshalMessageReadDateMyPrivacyRestricted(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMessageReadDate(dataList []json.RawMessage) ([]MessageReadDate, error) {
|
|
list := []MessageReadDate{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMessageReadDate(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMessageOrigin(data json.RawMessage) (MessageOrigin, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMessageOriginUser:
|
|
return UnmarshalMessageOriginUser(data)
|
|
|
|
case TypeMessageOriginHiddenUser:
|
|
return UnmarshalMessageOriginHiddenUser(data)
|
|
|
|
case TypeMessageOriginChat:
|
|
return UnmarshalMessageOriginChat(data)
|
|
|
|
case TypeMessageOriginChannel:
|
|
return UnmarshalMessageOriginChannel(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMessageOrigin(dataList []json.RawMessage) ([]MessageOrigin, error) {
|
|
list := []MessageOrigin{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMessageOrigin(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
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)
|
|
|
|
case TypeReactionTypePaid:
|
|
return UnmarshalReactionTypePaid(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 UnmarshalPaidReactionType(data json.RawMessage) (PaidReactionType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePaidReactionTypeRegular:
|
|
return UnmarshalPaidReactionTypeRegular(data)
|
|
|
|
case TypePaidReactionTypeAnonymous:
|
|
return UnmarshalPaidReactionTypeAnonymous(data)
|
|
|
|
case TypePaidReactionTypeChat:
|
|
return UnmarshalPaidReactionTypeChat(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPaidReactionType(dataList []json.RawMessage) ([]PaidReactionType, error) {
|
|
list := []PaidReactionType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPaidReactionType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMessageTopic(data json.RawMessage) (MessageTopic, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMessageTopicThread:
|
|
return UnmarshalMessageTopicThread(data)
|
|
|
|
case TypeMessageTopicForum:
|
|
return UnmarshalMessageTopicForum(data)
|
|
|
|
case TypeMessageTopicDirectMessages:
|
|
return UnmarshalMessageTopicDirectMessages(data)
|
|
|
|
case TypeMessageTopicSavedMessages:
|
|
return UnmarshalMessageTopicSavedMessages(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMessageTopic(dataList []json.RawMessage) ([]MessageTopic, error) {
|
|
list := []MessageTopic{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMessageTopic(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMessageEffectType(data json.RawMessage) (MessageEffectType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMessageEffectTypeEmojiReaction:
|
|
return UnmarshalMessageEffectTypeEmojiReaction(data)
|
|
|
|
case TypeMessageEffectTypePremiumSticker:
|
|
return UnmarshalMessageEffectTypePremiumSticker(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMessageEffectType(dataList []json.RawMessage) ([]MessageEffectType, error) {
|
|
list := []MessageEffectType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMessageEffectType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMessageSendingState(data json.RawMessage) (MessageSendingState, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMessageSendingStatePending:
|
|
return UnmarshalMessageSendingStatePending(data)
|
|
|
|
case TypeMessageSendingStateFailed:
|
|
return UnmarshalMessageSendingStateFailed(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMessageSendingState(dataList []json.RawMessage) ([]MessageSendingState, error) {
|
|
list := []MessageSendingState{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMessageSendingState(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMessageReplyTo(data json.RawMessage) (MessageReplyTo, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMessageReplyToMessage:
|
|
return UnmarshalMessageReplyToMessage(data)
|
|
|
|
case TypeMessageReplyToStory:
|
|
return UnmarshalMessageReplyToStory(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMessageReplyTo(dataList []json.RawMessage) ([]MessageReplyTo, error) {
|
|
list := []MessageReplyTo{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMessageReplyTo(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputMessageReplyTo(data json.RawMessage) (InputMessageReplyTo, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputMessageReplyToMessage:
|
|
return UnmarshalInputMessageReplyToMessage(data)
|
|
|
|
case TypeInputMessageReplyToExternalMessage:
|
|
return UnmarshalInputMessageReplyToExternalMessage(data)
|
|
|
|
case TypeInputMessageReplyToStory:
|
|
return UnmarshalInputMessageReplyToStory(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputMessageReplyTo(dataList []json.RawMessage) ([]InputMessageReplyTo, error) {
|
|
list := []InputMessageReplyTo{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputMessageReplyTo(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMessageSource(data json.RawMessage) (MessageSource, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMessageSourceChatHistory:
|
|
return UnmarshalMessageSourceChatHistory(data)
|
|
|
|
case TypeMessageSourceMessageThreadHistory:
|
|
return UnmarshalMessageSourceMessageThreadHistory(data)
|
|
|
|
case TypeMessageSourceForumTopicHistory:
|
|
return UnmarshalMessageSourceForumTopicHistory(data)
|
|
|
|
case TypeMessageSourceDirectMessagesChatTopicHistory:
|
|
return UnmarshalMessageSourceDirectMessagesChatTopicHistory(data)
|
|
|
|
case TypeMessageSourceHistoryPreview:
|
|
return UnmarshalMessageSourceHistoryPreview(data)
|
|
|
|
case TypeMessageSourceChatList:
|
|
return UnmarshalMessageSourceChatList(data)
|
|
|
|
case TypeMessageSourceSearch:
|
|
return UnmarshalMessageSourceSearch(data)
|
|
|
|
case TypeMessageSourceChatEventLog:
|
|
return UnmarshalMessageSourceChatEventLog(data)
|
|
|
|
case TypeMessageSourceNotification:
|
|
return UnmarshalMessageSourceNotification(data)
|
|
|
|
case TypeMessageSourceScreenshot:
|
|
return UnmarshalMessageSourceScreenshot(data)
|
|
|
|
case TypeMessageSourceOther:
|
|
return UnmarshalMessageSourceOther(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMessageSource(dataList []json.RawMessage) ([]MessageSource, error) {
|
|
list := []MessageSource{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMessageSource(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalReportSponsoredResult(data json.RawMessage) (ReportSponsoredResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeReportSponsoredResultOk:
|
|
return UnmarshalReportSponsoredResultOk(data)
|
|
|
|
case TypeReportSponsoredResultFailed:
|
|
return UnmarshalReportSponsoredResultFailed(data)
|
|
|
|
case TypeReportSponsoredResultOptionRequired:
|
|
return UnmarshalReportSponsoredResultOptionRequired(data)
|
|
|
|
case TypeReportSponsoredResultAdsHidden:
|
|
return UnmarshalReportSponsoredResultAdsHidden(data)
|
|
|
|
case TypeReportSponsoredResultPremiumRequired:
|
|
return UnmarshalReportSponsoredResultPremiumRequired(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfReportSponsoredResult(dataList []json.RawMessage) ([]ReportSponsoredResult, error) {
|
|
list := []ReportSponsoredResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalReportSponsoredResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalNotificationSettingsScope(data json.RawMessage) (NotificationSettingsScope, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeNotificationSettingsScopePrivateChats:
|
|
return UnmarshalNotificationSettingsScopePrivateChats(data)
|
|
|
|
case TypeNotificationSettingsScopeGroupChats:
|
|
return UnmarshalNotificationSettingsScopeGroupChats(data)
|
|
|
|
case TypeNotificationSettingsScopeChannelChats:
|
|
return UnmarshalNotificationSettingsScopeChannelChats(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfNotificationSettingsScope(dataList []json.RawMessage) ([]NotificationSettingsScope, error) {
|
|
list := []NotificationSettingsScope{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalNotificationSettingsScope(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalReactionNotificationSource(data json.RawMessage) (ReactionNotificationSource, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeReactionNotificationSourceNone:
|
|
return UnmarshalReactionNotificationSourceNone(data)
|
|
|
|
case TypeReactionNotificationSourceContacts:
|
|
return UnmarshalReactionNotificationSourceContacts(data)
|
|
|
|
case TypeReactionNotificationSourceAll:
|
|
return UnmarshalReactionNotificationSourceAll(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfReactionNotificationSource(dataList []json.RawMessage) ([]ReactionNotificationSource, error) {
|
|
list := []ReactionNotificationSource{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalReactionNotificationSource(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatType(data json.RawMessage) (ChatType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatTypePrivate:
|
|
return UnmarshalChatTypePrivate(data)
|
|
|
|
case TypeChatTypeBasicGroup:
|
|
return UnmarshalChatTypeBasicGroup(data)
|
|
|
|
case TypeChatTypeSupergroup:
|
|
return UnmarshalChatTypeSupergroup(data)
|
|
|
|
case TypeChatTypeSecret:
|
|
return UnmarshalChatTypeSecret(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatType(dataList []json.RawMessage) ([]ChatType, error) {
|
|
list := []ChatType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatList(data json.RawMessage) (ChatList, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatListMain:
|
|
return UnmarshalChatListMain(data)
|
|
|
|
case TypeChatListArchive:
|
|
return UnmarshalChatListArchive(data)
|
|
|
|
case TypeChatListFolder:
|
|
return UnmarshalChatListFolder(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatList(dataList []json.RawMessage) ([]ChatList, error) {
|
|
list := []ChatList{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatList(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatSource(data json.RawMessage) (ChatSource, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatSourceMtprotoProxy:
|
|
return UnmarshalChatSourceMtprotoProxy(data)
|
|
|
|
case TypeChatSourcePublicServiceAnnouncement:
|
|
return UnmarshalChatSourcePublicServiceAnnouncement(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatSource(dataList []json.RawMessage) ([]ChatSource, error) {
|
|
list := []ChatSource{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatSource(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePublicChatTypeHasUsername:
|
|
return UnmarshalPublicChatTypeHasUsername(data)
|
|
|
|
case TypePublicChatTypeIsLocationBased:
|
|
return UnmarshalPublicChatTypeIsLocationBased(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPublicChatType(dataList []json.RawMessage) ([]PublicChatType, error) {
|
|
list := []PublicChatType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPublicChatType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatActionBar(data json.RawMessage) (ChatActionBar, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatActionBarReportSpam:
|
|
return UnmarshalChatActionBarReportSpam(data)
|
|
|
|
case TypeChatActionBarInviteMembers:
|
|
return UnmarshalChatActionBarInviteMembers(data)
|
|
|
|
case TypeChatActionBarReportAddBlock:
|
|
return UnmarshalChatActionBarReportAddBlock(data)
|
|
|
|
case TypeChatActionBarAddContact:
|
|
return UnmarshalChatActionBarAddContact(data)
|
|
|
|
case TypeChatActionBarSharePhoneNumber:
|
|
return UnmarshalChatActionBarSharePhoneNumber(data)
|
|
|
|
case TypeChatActionBarJoinRequest:
|
|
return UnmarshalChatActionBarJoinRequest(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatActionBar(dataList []json.RawMessage) ([]ChatActionBar, error) {
|
|
list := []ChatActionBar{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatActionBar(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalButtonStyle(data json.RawMessage) (ButtonStyle, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeButtonStyleDefault:
|
|
return UnmarshalButtonStyleDefault(data)
|
|
|
|
case TypeButtonStylePrimary:
|
|
return UnmarshalButtonStylePrimary(data)
|
|
|
|
case TypeButtonStyleDanger:
|
|
return UnmarshalButtonStyleDanger(data)
|
|
|
|
case TypeButtonStyleSuccess:
|
|
return UnmarshalButtonStyleSuccess(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfButtonStyle(dataList []json.RawMessage) ([]ButtonStyle, error) {
|
|
list := []ButtonStyle{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalButtonStyle(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalKeyboardButtonType(data json.RawMessage) (KeyboardButtonType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeKeyboardButtonTypeText:
|
|
return UnmarshalKeyboardButtonTypeText(data)
|
|
|
|
case TypeKeyboardButtonTypeRequestPhoneNumber:
|
|
return UnmarshalKeyboardButtonTypeRequestPhoneNumber(data)
|
|
|
|
case TypeKeyboardButtonTypeRequestLocation:
|
|
return UnmarshalKeyboardButtonTypeRequestLocation(data)
|
|
|
|
case TypeKeyboardButtonTypeRequestPoll:
|
|
return UnmarshalKeyboardButtonTypeRequestPoll(data)
|
|
|
|
case TypeKeyboardButtonTypeRequestUsers:
|
|
return UnmarshalKeyboardButtonTypeRequestUsers(data)
|
|
|
|
case TypeKeyboardButtonTypeRequestChat:
|
|
return UnmarshalKeyboardButtonTypeRequestChat(data)
|
|
|
|
case TypeKeyboardButtonTypeWebApp:
|
|
return UnmarshalKeyboardButtonTypeWebApp(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfKeyboardButtonType(dataList []json.RawMessage) ([]KeyboardButtonType, error) {
|
|
list := []KeyboardButtonType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalKeyboardButtonType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInlineKeyboardButtonType(data json.RawMessage) (InlineKeyboardButtonType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInlineKeyboardButtonTypeUrl:
|
|
return UnmarshalInlineKeyboardButtonTypeUrl(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeLoginUrl:
|
|
return UnmarshalInlineKeyboardButtonTypeLoginUrl(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeWebApp:
|
|
return UnmarshalInlineKeyboardButtonTypeWebApp(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeCallback:
|
|
return UnmarshalInlineKeyboardButtonTypeCallback(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeCallbackWithPassword:
|
|
return UnmarshalInlineKeyboardButtonTypeCallbackWithPassword(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeCallbackGame:
|
|
return UnmarshalInlineKeyboardButtonTypeCallbackGame(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeSwitchInline:
|
|
return UnmarshalInlineKeyboardButtonTypeSwitchInline(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeBuy:
|
|
return UnmarshalInlineKeyboardButtonTypeBuy(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeUser:
|
|
return UnmarshalInlineKeyboardButtonTypeUser(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeCopyText:
|
|
return UnmarshalInlineKeyboardButtonTypeCopyText(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInlineKeyboardButtonType(dataList []json.RawMessage) ([]InlineKeyboardButtonType, error) {
|
|
list := []InlineKeyboardButtonType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInlineKeyboardButtonType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalReplyMarkup(data json.RawMessage) (ReplyMarkup, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeReplyMarkupRemoveKeyboard:
|
|
return UnmarshalReplyMarkupRemoveKeyboard(data)
|
|
|
|
case TypeReplyMarkupForceReply:
|
|
return UnmarshalReplyMarkupForceReply(data)
|
|
|
|
case TypeReplyMarkupShowKeyboard:
|
|
return UnmarshalReplyMarkupShowKeyboard(data)
|
|
|
|
case TypeReplyMarkupInlineKeyboard:
|
|
return UnmarshalReplyMarkupInlineKeyboard(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfReplyMarkup(dataList []json.RawMessage) ([]ReplyMarkup, error) {
|
|
list := []ReplyMarkup{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalReplyMarkup(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalLoginUrlInfo(data json.RawMessage) (LoginUrlInfo, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeLoginUrlInfoOpen:
|
|
return UnmarshalLoginUrlInfoOpen(data)
|
|
|
|
case TypeLoginUrlInfoRequestConfirmation:
|
|
return UnmarshalLoginUrlInfoRequestConfirmation(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfLoginUrlInfo(dataList []json.RawMessage) ([]LoginUrlInfo, error) {
|
|
list := []LoginUrlInfo{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalLoginUrlInfo(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalWebAppOpenMode(data json.RawMessage) (WebAppOpenMode, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeWebAppOpenModeCompact:
|
|
return UnmarshalWebAppOpenModeCompact(data)
|
|
|
|
case TypeWebAppOpenModeFullSize:
|
|
return UnmarshalWebAppOpenModeFullSize(data)
|
|
|
|
case TypeWebAppOpenModeFullScreen:
|
|
return UnmarshalWebAppOpenModeFullScreen(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfWebAppOpenMode(dataList []json.RawMessage) ([]WebAppOpenMode, error) {
|
|
list := []WebAppOpenMode{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalWebAppOpenMode(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalSavedMessagesTopicType(data json.RawMessage) (SavedMessagesTopicType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeSavedMessagesTopicTypeMyNotes:
|
|
return UnmarshalSavedMessagesTopicTypeMyNotes(data)
|
|
|
|
case TypeSavedMessagesTopicTypeAuthorHidden:
|
|
return UnmarshalSavedMessagesTopicTypeAuthorHidden(data)
|
|
|
|
case TypeSavedMessagesTopicTypeSavedFromChat:
|
|
return UnmarshalSavedMessagesTopicTypeSavedFromChat(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfSavedMessagesTopicType(dataList []json.RawMessage) ([]SavedMessagesTopicType, error) {
|
|
list := []SavedMessagesTopicType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalSavedMessagesTopicType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalBuiltInTheme(data json.RawMessage) (BuiltInTheme, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeBuiltInThemeClassic:
|
|
return UnmarshalBuiltInThemeClassic(data)
|
|
|
|
case TypeBuiltInThemeDay:
|
|
return UnmarshalBuiltInThemeDay(data)
|
|
|
|
case TypeBuiltInThemeNight:
|
|
return UnmarshalBuiltInThemeNight(data)
|
|
|
|
case TypeBuiltInThemeTinted:
|
|
return UnmarshalBuiltInThemeTinted(data)
|
|
|
|
case TypeBuiltInThemeArctic:
|
|
return UnmarshalBuiltInThemeArctic(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfBuiltInTheme(dataList []json.RawMessage) ([]BuiltInTheme, error) {
|
|
list := []BuiltInTheme{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalBuiltInTheme(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalRichText(data json.RawMessage) (RichText, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeRichTextPlain:
|
|
return UnmarshalRichTextPlain(data)
|
|
|
|
case TypeRichTextBold:
|
|
return UnmarshalRichTextBold(data)
|
|
|
|
case TypeRichTextItalic:
|
|
return UnmarshalRichTextItalic(data)
|
|
|
|
case TypeRichTextUnderline:
|
|
return UnmarshalRichTextUnderline(data)
|
|
|
|
case TypeRichTextStrikethrough:
|
|
return UnmarshalRichTextStrikethrough(data)
|
|
|
|
case TypeRichTextFixed:
|
|
return UnmarshalRichTextFixed(data)
|
|
|
|
case TypeRichTextUrl:
|
|
return UnmarshalRichTextUrl(data)
|
|
|
|
case TypeRichTextEmailAddress:
|
|
return UnmarshalRichTextEmailAddress(data)
|
|
|
|
case TypeRichTextSubscript:
|
|
return UnmarshalRichTextSubscript(data)
|
|
|
|
case TypeRichTextSuperscript:
|
|
return UnmarshalRichTextSuperscript(data)
|
|
|
|
case TypeRichTextMarked:
|
|
return UnmarshalRichTextMarked(data)
|
|
|
|
case TypeRichTextPhoneNumber:
|
|
return UnmarshalRichTextPhoneNumber(data)
|
|
|
|
case TypeRichTextIcon:
|
|
return UnmarshalRichTextIcon(data)
|
|
|
|
case TypeRichTextReference:
|
|
return UnmarshalRichTextReference(data)
|
|
|
|
case TypeRichTextAnchor:
|
|
return UnmarshalRichTextAnchor(data)
|
|
|
|
case TypeRichTextAnchorLink:
|
|
return UnmarshalRichTextAnchorLink(data)
|
|
|
|
case TypeRichTexts:
|
|
return UnmarshalRichTexts(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfRichText(dataList []json.RawMessage) ([]RichText, error) {
|
|
list := []RichText{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalRichText(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPageBlockHorizontalAlignment(data json.RawMessage) (PageBlockHorizontalAlignment, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePageBlockHorizontalAlignmentLeft:
|
|
return UnmarshalPageBlockHorizontalAlignmentLeft(data)
|
|
|
|
case TypePageBlockHorizontalAlignmentCenter:
|
|
return UnmarshalPageBlockHorizontalAlignmentCenter(data)
|
|
|
|
case TypePageBlockHorizontalAlignmentRight:
|
|
return UnmarshalPageBlockHorizontalAlignmentRight(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPageBlockHorizontalAlignment(dataList []json.RawMessage) ([]PageBlockHorizontalAlignment, error) {
|
|
list := []PageBlockHorizontalAlignment{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPageBlockHorizontalAlignment(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPageBlockVerticalAlignment(data json.RawMessage) (PageBlockVerticalAlignment, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePageBlockVerticalAlignmentTop:
|
|
return UnmarshalPageBlockVerticalAlignmentTop(data)
|
|
|
|
case TypePageBlockVerticalAlignmentMiddle:
|
|
return UnmarshalPageBlockVerticalAlignmentMiddle(data)
|
|
|
|
case TypePageBlockVerticalAlignmentBottom:
|
|
return UnmarshalPageBlockVerticalAlignmentBottom(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPageBlockVerticalAlignment(dataList []json.RawMessage) ([]PageBlockVerticalAlignment, error) {
|
|
list := []PageBlockVerticalAlignment{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPageBlockVerticalAlignment(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPageBlock(data json.RawMessage) (PageBlock, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePageBlockTitle:
|
|
return UnmarshalPageBlockTitle(data)
|
|
|
|
case TypePageBlockSubtitle:
|
|
return UnmarshalPageBlockSubtitle(data)
|
|
|
|
case TypePageBlockAuthorDate:
|
|
return UnmarshalPageBlockAuthorDate(data)
|
|
|
|
case TypePageBlockHeader:
|
|
return UnmarshalPageBlockHeader(data)
|
|
|
|
case TypePageBlockSubheader:
|
|
return UnmarshalPageBlockSubheader(data)
|
|
|
|
case TypePageBlockKicker:
|
|
return UnmarshalPageBlockKicker(data)
|
|
|
|
case TypePageBlockParagraph:
|
|
return UnmarshalPageBlockParagraph(data)
|
|
|
|
case TypePageBlockPreformatted:
|
|
return UnmarshalPageBlockPreformatted(data)
|
|
|
|
case TypePageBlockFooter:
|
|
return UnmarshalPageBlockFooter(data)
|
|
|
|
case TypePageBlockDivider:
|
|
return UnmarshalPageBlockDivider(data)
|
|
|
|
case TypePageBlockAnchor:
|
|
return UnmarshalPageBlockAnchor(data)
|
|
|
|
case TypePageBlockList:
|
|
return UnmarshalPageBlockList(data)
|
|
|
|
case TypePageBlockBlockQuote:
|
|
return UnmarshalPageBlockBlockQuote(data)
|
|
|
|
case TypePageBlockPullQuote:
|
|
return UnmarshalPageBlockPullQuote(data)
|
|
|
|
case TypePageBlockAnimation:
|
|
return UnmarshalPageBlockAnimation(data)
|
|
|
|
case TypePageBlockAudio:
|
|
return UnmarshalPageBlockAudio(data)
|
|
|
|
case TypePageBlockPhoto:
|
|
return UnmarshalPageBlockPhoto(data)
|
|
|
|
case TypePageBlockVideo:
|
|
return UnmarshalPageBlockVideo(data)
|
|
|
|
case TypePageBlockVoiceNote:
|
|
return UnmarshalPageBlockVoiceNote(data)
|
|
|
|
case TypePageBlockCover:
|
|
return UnmarshalPageBlockCover(data)
|
|
|
|
case TypePageBlockEmbedded:
|
|
return UnmarshalPageBlockEmbedded(data)
|
|
|
|
case TypePageBlockEmbeddedPost:
|
|
return UnmarshalPageBlockEmbeddedPost(data)
|
|
|
|
case TypePageBlockCollage:
|
|
return UnmarshalPageBlockCollage(data)
|
|
|
|
case TypePageBlockSlideshow:
|
|
return UnmarshalPageBlockSlideshow(data)
|
|
|
|
case TypePageBlockChatLink:
|
|
return UnmarshalPageBlockChatLink(data)
|
|
|
|
case TypePageBlockTable:
|
|
return UnmarshalPageBlockTable(data)
|
|
|
|
case TypePageBlockDetails:
|
|
return UnmarshalPageBlockDetails(data)
|
|
|
|
case TypePageBlockRelatedArticles:
|
|
return UnmarshalPageBlockRelatedArticles(data)
|
|
|
|
case TypePageBlockMap:
|
|
return UnmarshalPageBlockMap(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPageBlock(dataList []json.RawMessage) ([]PageBlock, error) {
|
|
list := []PageBlock{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPageBlock(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalLinkPreviewAlbumMedia(data json.RawMessage) (LinkPreviewAlbumMedia, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeLinkPreviewAlbumMediaPhoto:
|
|
return UnmarshalLinkPreviewAlbumMediaPhoto(data)
|
|
|
|
case TypeLinkPreviewAlbumMediaVideo:
|
|
return UnmarshalLinkPreviewAlbumMediaVideo(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfLinkPreviewAlbumMedia(dataList []json.RawMessage) ([]LinkPreviewAlbumMedia, error) {
|
|
list := []LinkPreviewAlbumMedia{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalLinkPreviewAlbumMedia(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalLinkPreviewType(data json.RawMessage) (LinkPreviewType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeLinkPreviewTypeAlbum:
|
|
return UnmarshalLinkPreviewTypeAlbum(data)
|
|
|
|
case TypeLinkPreviewTypeAnimation:
|
|
return UnmarshalLinkPreviewTypeAnimation(data)
|
|
|
|
case TypeLinkPreviewTypeApp:
|
|
return UnmarshalLinkPreviewTypeApp(data)
|
|
|
|
case TypeLinkPreviewTypeArticle:
|
|
return UnmarshalLinkPreviewTypeArticle(data)
|
|
|
|
case TypeLinkPreviewTypeAudio:
|
|
return UnmarshalLinkPreviewTypeAudio(data)
|
|
|
|
case TypeLinkPreviewTypeBackground:
|
|
return UnmarshalLinkPreviewTypeBackground(data)
|
|
|
|
case TypeLinkPreviewTypeChannelBoost:
|
|
return UnmarshalLinkPreviewTypeChannelBoost(data)
|
|
|
|
case TypeLinkPreviewTypeChat:
|
|
return UnmarshalLinkPreviewTypeChat(data)
|
|
|
|
case TypeLinkPreviewTypeDirectMessagesChat:
|
|
return UnmarshalLinkPreviewTypeDirectMessagesChat(data)
|
|
|
|
case TypeLinkPreviewTypeDocument:
|
|
return UnmarshalLinkPreviewTypeDocument(data)
|
|
|
|
case TypeLinkPreviewTypeEmbeddedAnimationPlayer:
|
|
return UnmarshalLinkPreviewTypeEmbeddedAnimationPlayer(data)
|
|
|
|
case TypeLinkPreviewTypeEmbeddedAudioPlayer:
|
|
return UnmarshalLinkPreviewTypeEmbeddedAudioPlayer(data)
|
|
|
|
case TypeLinkPreviewTypeEmbeddedVideoPlayer:
|
|
return UnmarshalLinkPreviewTypeEmbeddedVideoPlayer(data)
|
|
|
|
case TypeLinkPreviewTypeExternalAudio:
|
|
return UnmarshalLinkPreviewTypeExternalAudio(data)
|
|
|
|
case TypeLinkPreviewTypeExternalVideo:
|
|
return UnmarshalLinkPreviewTypeExternalVideo(data)
|
|
|
|
case TypeLinkPreviewTypeGiftAuction:
|
|
return UnmarshalLinkPreviewTypeGiftAuction(data)
|
|
|
|
case TypeLinkPreviewTypeGiftCollection:
|
|
return UnmarshalLinkPreviewTypeGiftCollection(data)
|
|
|
|
case TypeLinkPreviewTypeGroupCall:
|
|
return UnmarshalLinkPreviewTypeGroupCall(data)
|
|
|
|
case TypeLinkPreviewTypeInvoice:
|
|
return UnmarshalLinkPreviewTypeInvoice(data)
|
|
|
|
case TypeLinkPreviewTypeLiveStory:
|
|
return UnmarshalLinkPreviewTypeLiveStory(data)
|
|
|
|
case TypeLinkPreviewTypeMessage:
|
|
return UnmarshalLinkPreviewTypeMessage(data)
|
|
|
|
case TypeLinkPreviewTypePhoto:
|
|
return UnmarshalLinkPreviewTypePhoto(data)
|
|
|
|
case TypeLinkPreviewTypePremiumGiftCode:
|
|
return UnmarshalLinkPreviewTypePremiumGiftCode(data)
|
|
|
|
case TypeLinkPreviewTypeShareableChatFolder:
|
|
return UnmarshalLinkPreviewTypeShareableChatFolder(data)
|
|
|
|
case TypeLinkPreviewTypeSticker:
|
|
return UnmarshalLinkPreviewTypeSticker(data)
|
|
|
|
case TypeLinkPreviewTypeStickerSet:
|
|
return UnmarshalLinkPreviewTypeStickerSet(data)
|
|
|
|
case TypeLinkPreviewTypeStory:
|
|
return UnmarshalLinkPreviewTypeStory(data)
|
|
|
|
case TypeLinkPreviewTypeStoryAlbum:
|
|
return UnmarshalLinkPreviewTypeStoryAlbum(data)
|
|
|
|
case TypeLinkPreviewTypeSupergroupBoost:
|
|
return UnmarshalLinkPreviewTypeSupergroupBoost(data)
|
|
|
|
case TypeLinkPreviewTypeTheme:
|
|
return UnmarshalLinkPreviewTypeTheme(data)
|
|
|
|
case TypeLinkPreviewTypeUnsupported:
|
|
return UnmarshalLinkPreviewTypeUnsupported(data)
|
|
|
|
case TypeLinkPreviewTypeUpgradedGift:
|
|
return UnmarshalLinkPreviewTypeUpgradedGift(data)
|
|
|
|
case TypeLinkPreviewTypeUser:
|
|
return UnmarshalLinkPreviewTypeUser(data)
|
|
|
|
case TypeLinkPreviewTypeVideo:
|
|
return UnmarshalLinkPreviewTypeVideo(data)
|
|
|
|
case TypeLinkPreviewTypeVideoChat:
|
|
return UnmarshalLinkPreviewTypeVideoChat(data)
|
|
|
|
case TypeLinkPreviewTypeVideoNote:
|
|
return UnmarshalLinkPreviewTypeVideoNote(data)
|
|
|
|
case TypeLinkPreviewTypeVoiceNote:
|
|
return UnmarshalLinkPreviewTypeVoiceNote(data)
|
|
|
|
case TypeLinkPreviewTypeWebApp:
|
|
return UnmarshalLinkPreviewTypeWebApp(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfLinkPreviewType(dataList []json.RawMessage) ([]LinkPreviewType, error) {
|
|
list := []LinkPreviewType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalLinkPreviewType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCollectibleItemType(data json.RawMessage) (CollectibleItemType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCollectibleItemTypeUsername:
|
|
return UnmarshalCollectibleItemTypeUsername(data)
|
|
|
|
case TypeCollectibleItemTypePhoneNumber:
|
|
return UnmarshalCollectibleItemTypePhoneNumber(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCollectibleItemType(dataList []json.RawMessage) ([]CollectibleItemType, error) {
|
|
list := []CollectibleItemType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCollectibleItemType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputCredentials(data json.RawMessage) (InputCredentials, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputCredentialsSaved:
|
|
return UnmarshalInputCredentialsSaved(data)
|
|
|
|
case TypeInputCredentialsNew:
|
|
return UnmarshalInputCredentialsNew(data)
|
|
|
|
case TypeInputCredentialsApplePay:
|
|
return UnmarshalInputCredentialsApplePay(data)
|
|
|
|
case TypeInputCredentialsGooglePay:
|
|
return UnmarshalInputCredentialsGooglePay(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputCredentials(dataList []json.RawMessage) ([]InputCredentials, error) {
|
|
list := []InputCredentials{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputCredentials(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPaymentProvider(data json.RawMessage) (PaymentProvider, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePaymentProviderSmartGlocal:
|
|
return UnmarshalPaymentProviderSmartGlocal(data)
|
|
|
|
case TypePaymentProviderStripe:
|
|
return UnmarshalPaymentProviderStripe(data)
|
|
|
|
case TypePaymentProviderOther:
|
|
return UnmarshalPaymentProviderOther(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPaymentProvider(dataList []json.RawMessage) ([]PaymentProvider, error) {
|
|
list := []PaymentProvider{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPaymentProvider(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPaymentFormType(data json.RawMessage) (PaymentFormType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePaymentFormTypeRegular:
|
|
return UnmarshalPaymentFormTypeRegular(data)
|
|
|
|
case TypePaymentFormTypeStars:
|
|
return UnmarshalPaymentFormTypeStars(data)
|
|
|
|
case TypePaymentFormTypeStarSubscription:
|
|
return UnmarshalPaymentFormTypeStarSubscription(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPaymentFormType(dataList []json.RawMessage) ([]PaymentFormType, error) {
|
|
list := []PaymentFormType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPaymentFormType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPaymentReceiptType(data json.RawMessage) (PaymentReceiptType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePaymentReceiptTypeRegular:
|
|
return UnmarshalPaymentReceiptTypeRegular(data)
|
|
|
|
case TypePaymentReceiptTypeStars:
|
|
return UnmarshalPaymentReceiptTypeStars(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPaymentReceiptType(dataList []json.RawMessage) ([]PaymentReceiptType, error) {
|
|
list := []PaymentReceiptType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPaymentReceiptType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputInvoice(data json.RawMessage) (InputInvoice, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputInvoiceMessage:
|
|
return UnmarshalInputInvoiceMessage(data)
|
|
|
|
case TypeInputInvoiceName:
|
|
return UnmarshalInputInvoiceName(data)
|
|
|
|
case TypeInputInvoiceTelegram:
|
|
return UnmarshalInputInvoiceTelegram(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputInvoice(dataList []json.RawMessage) ([]InputInvoice, error) {
|
|
list := []InputInvoice{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputInvoice(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPaidMedia(data json.RawMessage) (PaidMedia, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePaidMediaPreview:
|
|
return UnmarshalPaidMediaPreview(data)
|
|
|
|
case TypePaidMediaPhoto:
|
|
return UnmarshalPaidMediaPhoto(data)
|
|
|
|
case TypePaidMediaVideo:
|
|
return UnmarshalPaidMediaVideo(data)
|
|
|
|
case TypePaidMediaUnsupported:
|
|
return UnmarshalPaidMediaUnsupported(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPaidMedia(dataList []json.RawMessage) ([]PaidMedia, error) {
|
|
list := []PaidMedia{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPaidMedia(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPassportElementType(data json.RawMessage) (PassportElementType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePassportElementTypePersonalDetails:
|
|
return UnmarshalPassportElementTypePersonalDetails(data)
|
|
|
|
case TypePassportElementTypePassport:
|
|
return UnmarshalPassportElementTypePassport(data)
|
|
|
|
case TypePassportElementTypeDriverLicense:
|
|
return UnmarshalPassportElementTypeDriverLicense(data)
|
|
|
|
case TypePassportElementTypeIdentityCard:
|
|
return UnmarshalPassportElementTypeIdentityCard(data)
|
|
|
|
case TypePassportElementTypeInternalPassport:
|
|
return UnmarshalPassportElementTypeInternalPassport(data)
|
|
|
|
case TypePassportElementTypeAddress:
|
|
return UnmarshalPassportElementTypeAddress(data)
|
|
|
|
case TypePassportElementTypeUtilityBill:
|
|
return UnmarshalPassportElementTypeUtilityBill(data)
|
|
|
|
case TypePassportElementTypeBankStatement:
|
|
return UnmarshalPassportElementTypeBankStatement(data)
|
|
|
|
case TypePassportElementTypeRentalAgreement:
|
|
return UnmarshalPassportElementTypeRentalAgreement(data)
|
|
|
|
case TypePassportElementTypePassportRegistration:
|
|
return UnmarshalPassportElementTypePassportRegistration(data)
|
|
|
|
case TypePassportElementTypeTemporaryRegistration:
|
|
return UnmarshalPassportElementTypeTemporaryRegistration(data)
|
|
|
|
case TypePassportElementTypePhoneNumber:
|
|
return UnmarshalPassportElementTypePhoneNumber(data)
|
|
|
|
case TypePassportElementTypeEmailAddress:
|
|
return UnmarshalPassportElementTypeEmailAddress(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPassportElementType(dataList []json.RawMessage) ([]PassportElementType, error) {
|
|
list := []PassportElementType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPassportElementType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPassportElement(data json.RawMessage) (PassportElement, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePassportElementPersonalDetails:
|
|
return UnmarshalPassportElementPersonalDetails(data)
|
|
|
|
case TypePassportElementPassport:
|
|
return UnmarshalPassportElementPassport(data)
|
|
|
|
case TypePassportElementDriverLicense:
|
|
return UnmarshalPassportElementDriverLicense(data)
|
|
|
|
case TypePassportElementIdentityCard:
|
|
return UnmarshalPassportElementIdentityCard(data)
|
|
|
|
case TypePassportElementInternalPassport:
|
|
return UnmarshalPassportElementInternalPassport(data)
|
|
|
|
case TypePassportElementAddress:
|
|
return UnmarshalPassportElementAddress(data)
|
|
|
|
case TypePassportElementUtilityBill:
|
|
return UnmarshalPassportElementUtilityBill(data)
|
|
|
|
case TypePassportElementBankStatement:
|
|
return UnmarshalPassportElementBankStatement(data)
|
|
|
|
case TypePassportElementRentalAgreement:
|
|
return UnmarshalPassportElementRentalAgreement(data)
|
|
|
|
case TypePassportElementPassportRegistration:
|
|
return UnmarshalPassportElementPassportRegistration(data)
|
|
|
|
case TypePassportElementTemporaryRegistration:
|
|
return UnmarshalPassportElementTemporaryRegistration(data)
|
|
|
|
case TypePassportElementPhoneNumber:
|
|
return UnmarshalPassportElementPhoneNumber(data)
|
|
|
|
case TypePassportElementEmailAddress:
|
|
return UnmarshalPassportElementEmailAddress(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPassportElement(dataList []json.RawMessage) ([]PassportElement, error) {
|
|
list := []PassportElement{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPassportElement(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputPassportElement(data json.RawMessage) (InputPassportElement, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputPassportElementPersonalDetails:
|
|
return UnmarshalInputPassportElementPersonalDetails(data)
|
|
|
|
case TypeInputPassportElementPassport:
|
|
return UnmarshalInputPassportElementPassport(data)
|
|
|
|
case TypeInputPassportElementDriverLicense:
|
|
return UnmarshalInputPassportElementDriverLicense(data)
|
|
|
|
case TypeInputPassportElementIdentityCard:
|
|
return UnmarshalInputPassportElementIdentityCard(data)
|
|
|
|
case TypeInputPassportElementInternalPassport:
|
|
return UnmarshalInputPassportElementInternalPassport(data)
|
|
|
|
case TypeInputPassportElementAddress:
|
|
return UnmarshalInputPassportElementAddress(data)
|
|
|
|
case TypeInputPassportElementUtilityBill:
|
|
return UnmarshalInputPassportElementUtilityBill(data)
|
|
|
|
case TypeInputPassportElementBankStatement:
|
|
return UnmarshalInputPassportElementBankStatement(data)
|
|
|
|
case TypeInputPassportElementRentalAgreement:
|
|
return UnmarshalInputPassportElementRentalAgreement(data)
|
|
|
|
case TypeInputPassportElementPassportRegistration:
|
|
return UnmarshalInputPassportElementPassportRegistration(data)
|
|
|
|
case TypeInputPassportElementTemporaryRegistration:
|
|
return UnmarshalInputPassportElementTemporaryRegistration(data)
|
|
|
|
case TypeInputPassportElementPhoneNumber:
|
|
return UnmarshalInputPassportElementPhoneNumber(data)
|
|
|
|
case TypeInputPassportElementEmailAddress:
|
|
return UnmarshalInputPassportElementEmailAddress(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputPassportElement(dataList []json.RawMessage) ([]InputPassportElement, error) {
|
|
list := []InputPassportElement{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputPassportElement(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPassportElementErrorSource(data json.RawMessage) (PassportElementErrorSource, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePassportElementErrorSourceUnspecified:
|
|
return UnmarshalPassportElementErrorSourceUnspecified(data)
|
|
|
|
case TypePassportElementErrorSourceDataField:
|
|
return UnmarshalPassportElementErrorSourceDataField(data)
|
|
|
|
case TypePassportElementErrorSourceFrontSide:
|
|
return UnmarshalPassportElementErrorSourceFrontSide(data)
|
|
|
|
case TypePassportElementErrorSourceReverseSide:
|
|
return UnmarshalPassportElementErrorSourceReverseSide(data)
|
|
|
|
case TypePassportElementErrorSourceSelfie:
|
|
return UnmarshalPassportElementErrorSourceSelfie(data)
|
|
|
|
case TypePassportElementErrorSourceTranslationFile:
|
|
return UnmarshalPassportElementErrorSourceTranslationFile(data)
|
|
|
|
case TypePassportElementErrorSourceTranslationFiles:
|
|
return UnmarshalPassportElementErrorSourceTranslationFiles(data)
|
|
|
|
case TypePassportElementErrorSourceFile:
|
|
return UnmarshalPassportElementErrorSourceFile(data)
|
|
|
|
case TypePassportElementErrorSourceFiles:
|
|
return UnmarshalPassportElementErrorSourceFiles(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPassportElementErrorSource(dataList []json.RawMessage) ([]PassportElementErrorSource, error) {
|
|
list := []PassportElementErrorSource{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPassportElementErrorSource(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputPassportElementErrorSource(data json.RawMessage) (InputPassportElementErrorSource, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputPassportElementErrorSourceUnspecified:
|
|
return UnmarshalInputPassportElementErrorSourceUnspecified(data)
|
|
|
|
case TypeInputPassportElementErrorSourceDataField:
|
|
return UnmarshalInputPassportElementErrorSourceDataField(data)
|
|
|
|
case TypeInputPassportElementErrorSourceFrontSide:
|
|
return UnmarshalInputPassportElementErrorSourceFrontSide(data)
|
|
|
|
case TypeInputPassportElementErrorSourceReverseSide:
|
|
return UnmarshalInputPassportElementErrorSourceReverseSide(data)
|
|
|
|
case TypeInputPassportElementErrorSourceSelfie:
|
|
return UnmarshalInputPassportElementErrorSourceSelfie(data)
|
|
|
|
case TypeInputPassportElementErrorSourceTranslationFile:
|
|
return UnmarshalInputPassportElementErrorSourceTranslationFile(data)
|
|
|
|
case TypeInputPassportElementErrorSourceTranslationFiles:
|
|
return UnmarshalInputPassportElementErrorSourceTranslationFiles(data)
|
|
|
|
case TypeInputPassportElementErrorSourceFile:
|
|
return UnmarshalInputPassportElementErrorSourceFile(data)
|
|
|
|
case TypeInputPassportElementErrorSourceFiles:
|
|
return UnmarshalInputPassportElementErrorSourceFiles(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputPassportElementErrorSource(dataList []json.RawMessage) ([]InputPassportElementErrorSource, error) {
|
|
list := []InputPassportElementErrorSource{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputPassportElementErrorSource(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMessageText:
|
|
return UnmarshalMessageText(data)
|
|
|
|
case TypeMessageAnimation:
|
|
return UnmarshalMessageAnimation(data)
|
|
|
|
case TypeMessageAudio:
|
|
return UnmarshalMessageAudio(data)
|
|
|
|
case TypeMessageDocument:
|
|
return UnmarshalMessageDocument(data)
|
|
|
|
case TypeMessagePaidMedia:
|
|
return UnmarshalMessagePaidMedia(data)
|
|
|
|
case TypeMessagePhoto:
|
|
return UnmarshalMessagePhoto(data)
|
|
|
|
case TypeMessageSticker:
|
|
return UnmarshalMessageSticker(data)
|
|
|
|
case TypeMessageVideo:
|
|
return UnmarshalMessageVideo(data)
|
|
|
|
case TypeMessageVideoNote:
|
|
return UnmarshalMessageVideoNote(data)
|
|
|
|
case TypeMessageVoiceNote:
|
|
return UnmarshalMessageVoiceNote(data)
|
|
|
|
case TypeMessageExpiredPhoto:
|
|
return UnmarshalMessageExpiredPhoto(data)
|
|
|
|
case TypeMessageExpiredVideo:
|
|
return UnmarshalMessageExpiredVideo(data)
|
|
|
|
case TypeMessageExpiredVideoNote:
|
|
return UnmarshalMessageExpiredVideoNote(data)
|
|
|
|
case TypeMessageExpiredVoiceNote:
|
|
return UnmarshalMessageExpiredVoiceNote(data)
|
|
|
|
case TypeMessageLocation:
|
|
return UnmarshalMessageLocation(data)
|
|
|
|
case TypeMessageVenue:
|
|
return UnmarshalMessageVenue(data)
|
|
|
|
case TypeMessageContact:
|
|
return UnmarshalMessageContact(data)
|
|
|
|
case TypeMessageAnimatedEmoji:
|
|
return UnmarshalMessageAnimatedEmoji(data)
|
|
|
|
case TypeMessageDice:
|
|
return UnmarshalMessageDice(data)
|
|
|
|
case TypeMessageGame:
|
|
return UnmarshalMessageGame(data)
|
|
|
|
case TypeMessagePoll:
|
|
return UnmarshalMessagePoll(data)
|
|
|
|
case TypeMessageStakeDice:
|
|
return UnmarshalMessageStakeDice(data)
|
|
|
|
case TypeMessageStory:
|
|
return UnmarshalMessageStory(data)
|
|
|
|
case TypeMessageChecklist:
|
|
return UnmarshalMessageChecklist(data)
|
|
|
|
case TypeMessageInvoice:
|
|
return UnmarshalMessageInvoice(data)
|
|
|
|
case TypeMessageCall:
|
|
return UnmarshalMessageCall(data)
|
|
|
|
case TypeMessageGroupCall:
|
|
return UnmarshalMessageGroupCall(data)
|
|
|
|
case TypeMessageVideoChatScheduled:
|
|
return UnmarshalMessageVideoChatScheduled(data)
|
|
|
|
case TypeMessageVideoChatStarted:
|
|
return UnmarshalMessageVideoChatStarted(data)
|
|
|
|
case TypeMessageVideoChatEnded:
|
|
return UnmarshalMessageVideoChatEnded(data)
|
|
|
|
case TypeMessageInviteVideoChatParticipants:
|
|
return UnmarshalMessageInviteVideoChatParticipants(data)
|
|
|
|
case TypeMessageBasicGroupChatCreate:
|
|
return UnmarshalMessageBasicGroupChatCreate(data)
|
|
|
|
case TypeMessageSupergroupChatCreate:
|
|
return UnmarshalMessageSupergroupChatCreate(data)
|
|
|
|
case TypeMessageChatChangeTitle:
|
|
return UnmarshalMessageChatChangeTitle(data)
|
|
|
|
case TypeMessageChatChangePhoto:
|
|
return UnmarshalMessageChatChangePhoto(data)
|
|
|
|
case TypeMessageChatDeletePhoto:
|
|
return UnmarshalMessageChatDeletePhoto(data)
|
|
|
|
case TypeMessageChatOwnerLeft:
|
|
return UnmarshalMessageChatOwnerLeft(data)
|
|
|
|
case TypeMessageChatOwnerChanged:
|
|
return UnmarshalMessageChatOwnerChanged(data)
|
|
|
|
case TypeMessageChatAddMembers:
|
|
return UnmarshalMessageChatAddMembers(data)
|
|
|
|
case TypeMessageChatJoinByLink:
|
|
return UnmarshalMessageChatJoinByLink(data)
|
|
|
|
case TypeMessageChatJoinByRequest:
|
|
return UnmarshalMessageChatJoinByRequest(data)
|
|
|
|
case TypeMessageChatDeleteMember:
|
|
return UnmarshalMessageChatDeleteMember(data)
|
|
|
|
case TypeMessageChatUpgradeTo:
|
|
return UnmarshalMessageChatUpgradeTo(data)
|
|
|
|
case TypeMessageChatUpgradeFrom:
|
|
return UnmarshalMessageChatUpgradeFrom(data)
|
|
|
|
case TypeMessagePinMessage:
|
|
return UnmarshalMessagePinMessage(data)
|
|
|
|
case TypeMessageScreenshotTaken:
|
|
return UnmarshalMessageScreenshotTaken(data)
|
|
|
|
case TypeMessageChatSetBackground:
|
|
return UnmarshalMessageChatSetBackground(data)
|
|
|
|
case TypeMessageChatSetTheme:
|
|
return UnmarshalMessageChatSetTheme(data)
|
|
|
|
case TypeMessageChatSetMessageAutoDeleteTime:
|
|
return UnmarshalMessageChatSetMessageAutoDeleteTime(data)
|
|
|
|
case TypeMessageChatBoost:
|
|
return UnmarshalMessageChatBoost(data)
|
|
|
|
case TypeMessageForumTopicCreated:
|
|
return UnmarshalMessageForumTopicCreated(data)
|
|
|
|
case TypeMessageForumTopicEdited:
|
|
return UnmarshalMessageForumTopicEdited(data)
|
|
|
|
case TypeMessageForumTopicIsClosedToggled:
|
|
return UnmarshalMessageForumTopicIsClosedToggled(data)
|
|
|
|
case TypeMessageForumTopicIsHiddenToggled:
|
|
return UnmarshalMessageForumTopicIsHiddenToggled(data)
|
|
|
|
case TypeMessageSuggestProfilePhoto:
|
|
return UnmarshalMessageSuggestProfilePhoto(data)
|
|
|
|
case TypeMessageSuggestBirthdate:
|
|
return UnmarshalMessageSuggestBirthdate(data)
|
|
|
|
case TypeMessageCustomServiceAction:
|
|
return UnmarshalMessageCustomServiceAction(data)
|
|
|
|
case TypeMessageGameScore:
|
|
return UnmarshalMessageGameScore(data)
|
|
|
|
case TypeMessagePaymentSuccessful:
|
|
return UnmarshalMessagePaymentSuccessful(data)
|
|
|
|
case TypeMessagePaymentSuccessfulBot:
|
|
return UnmarshalMessagePaymentSuccessfulBot(data)
|
|
|
|
case TypeMessagePaymentRefunded:
|
|
return UnmarshalMessagePaymentRefunded(data)
|
|
|
|
case TypeMessageGiftedPremium:
|
|
return UnmarshalMessageGiftedPremium(data)
|
|
|
|
case TypeMessagePremiumGiftCode:
|
|
return UnmarshalMessagePremiumGiftCode(data)
|
|
|
|
case TypeMessageGiveawayCreated:
|
|
return UnmarshalMessageGiveawayCreated(data)
|
|
|
|
case TypeMessageGiveaway:
|
|
return UnmarshalMessageGiveaway(data)
|
|
|
|
case TypeMessageGiveawayCompleted:
|
|
return UnmarshalMessageGiveawayCompleted(data)
|
|
|
|
case TypeMessageGiveawayWinners:
|
|
return UnmarshalMessageGiveawayWinners(data)
|
|
|
|
case TypeMessageGiftedStars:
|
|
return UnmarshalMessageGiftedStars(data)
|
|
|
|
case TypeMessageGiftedTon:
|
|
return UnmarshalMessageGiftedTon(data)
|
|
|
|
case TypeMessageGiveawayPrizeStars:
|
|
return UnmarshalMessageGiveawayPrizeStars(data)
|
|
|
|
case TypeMessageGift:
|
|
return UnmarshalMessageGift(data)
|
|
|
|
case TypeMessageUpgradedGift:
|
|
return UnmarshalMessageUpgradedGift(data)
|
|
|
|
case TypeMessageRefundedUpgradedGift:
|
|
return UnmarshalMessageRefundedUpgradedGift(data)
|
|
|
|
case TypeMessageUpgradedGiftPurchaseOffer:
|
|
return UnmarshalMessageUpgradedGiftPurchaseOffer(data)
|
|
|
|
case TypeMessageUpgradedGiftPurchaseOfferRejected:
|
|
return UnmarshalMessageUpgradedGiftPurchaseOfferRejected(data)
|
|
|
|
case TypeMessagePaidMessagesRefunded:
|
|
return UnmarshalMessagePaidMessagesRefunded(data)
|
|
|
|
case TypeMessagePaidMessagePriceChanged:
|
|
return UnmarshalMessagePaidMessagePriceChanged(data)
|
|
|
|
case TypeMessageDirectMessagePriceChanged:
|
|
return UnmarshalMessageDirectMessagePriceChanged(data)
|
|
|
|
case TypeMessageChecklistTasksDone:
|
|
return UnmarshalMessageChecklistTasksDone(data)
|
|
|
|
case TypeMessageChecklistTasksAdded:
|
|
return UnmarshalMessageChecklistTasksAdded(data)
|
|
|
|
case TypeMessageSuggestedPostApprovalFailed:
|
|
return UnmarshalMessageSuggestedPostApprovalFailed(data)
|
|
|
|
case TypeMessageSuggestedPostApproved:
|
|
return UnmarshalMessageSuggestedPostApproved(data)
|
|
|
|
case TypeMessageSuggestedPostDeclined:
|
|
return UnmarshalMessageSuggestedPostDeclined(data)
|
|
|
|
case TypeMessageSuggestedPostPaid:
|
|
return UnmarshalMessageSuggestedPostPaid(data)
|
|
|
|
case TypeMessageSuggestedPostRefunded:
|
|
return UnmarshalMessageSuggestedPostRefunded(data)
|
|
|
|
case TypeMessageContactRegistered:
|
|
return UnmarshalMessageContactRegistered(data)
|
|
|
|
case TypeMessageUsersShared:
|
|
return UnmarshalMessageUsersShared(data)
|
|
|
|
case TypeMessageChatShared:
|
|
return UnmarshalMessageChatShared(data)
|
|
|
|
case TypeMessageBotWriteAccessAllowed:
|
|
return UnmarshalMessageBotWriteAccessAllowed(data)
|
|
|
|
case TypeMessageWebAppDataSent:
|
|
return UnmarshalMessageWebAppDataSent(data)
|
|
|
|
case TypeMessageWebAppDataReceived:
|
|
return UnmarshalMessageWebAppDataReceived(data)
|
|
|
|
case TypeMessagePassportDataSent:
|
|
return UnmarshalMessagePassportDataSent(data)
|
|
|
|
case TypeMessagePassportDataReceived:
|
|
return UnmarshalMessagePassportDataReceived(data)
|
|
|
|
case TypeMessageProximityAlertTriggered:
|
|
return UnmarshalMessageProximityAlertTriggered(data)
|
|
|
|
case TypeMessageUnsupported:
|
|
return UnmarshalMessageUnsupported(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMessageContent(dataList []json.RawMessage) ([]MessageContent, error) {
|
|
list := []MessageContent{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMessageContent(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalTextEntityType(data json.RawMessage) (TextEntityType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeTextEntityTypeMention:
|
|
return UnmarshalTextEntityTypeMention(data)
|
|
|
|
case TypeTextEntityTypeHashtag:
|
|
return UnmarshalTextEntityTypeHashtag(data)
|
|
|
|
case TypeTextEntityTypeCashtag:
|
|
return UnmarshalTextEntityTypeCashtag(data)
|
|
|
|
case TypeTextEntityTypeBotCommand:
|
|
return UnmarshalTextEntityTypeBotCommand(data)
|
|
|
|
case TypeTextEntityTypeUrl:
|
|
return UnmarshalTextEntityTypeUrl(data)
|
|
|
|
case TypeTextEntityTypeEmailAddress:
|
|
return UnmarshalTextEntityTypeEmailAddress(data)
|
|
|
|
case TypeTextEntityTypePhoneNumber:
|
|
return UnmarshalTextEntityTypePhoneNumber(data)
|
|
|
|
case TypeTextEntityTypeBankCardNumber:
|
|
return UnmarshalTextEntityTypeBankCardNumber(data)
|
|
|
|
case TypeTextEntityTypeBold:
|
|
return UnmarshalTextEntityTypeBold(data)
|
|
|
|
case TypeTextEntityTypeItalic:
|
|
return UnmarshalTextEntityTypeItalic(data)
|
|
|
|
case TypeTextEntityTypeUnderline:
|
|
return UnmarshalTextEntityTypeUnderline(data)
|
|
|
|
case TypeTextEntityTypeStrikethrough:
|
|
return UnmarshalTextEntityTypeStrikethrough(data)
|
|
|
|
case TypeTextEntityTypeSpoiler:
|
|
return UnmarshalTextEntityTypeSpoiler(data)
|
|
|
|
case TypeTextEntityTypeCode:
|
|
return UnmarshalTextEntityTypeCode(data)
|
|
|
|
case TypeTextEntityTypePre:
|
|
return UnmarshalTextEntityTypePre(data)
|
|
|
|
case TypeTextEntityTypePreCode:
|
|
return UnmarshalTextEntityTypePreCode(data)
|
|
|
|
case TypeTextEntityTypeBlockQuote:
|
|
return UnmarshalTextEntityTypeBlockQuote(data)
|
|
|
|
case TypeTextEntityTypeExpandableBlockQuote:
|
|
return UnmarshalTextEntityTypeExpandableBlockQuote(data)
|
|
|
|
case TypeTextEntityTypeTextUrl:
|
|
return UnmarshalTextEntityTypeTextUrl(data)
|
|
|
|
case TypeTextEntityTypeMentionName:
|
|
return UnmarshalTextEntityTypeMentionName(data)
|
|
|
|
case TypeTextEntityTypeCustomEmoji:
|
|
return UnmarshalTextEntityTypeCustomEmoji(data)
|
|
|
|
case TypeTextEntityTypeMediaTimestamp:
|
|
return UnmarshalTextEntityTypeMediaTimestamp(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfTextEntityType(dataList []json.RawMessage) ([]TextEntityType, error) {
|
|
list := []TextEntityType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalTextEntityType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputPaidMediaType(data json.RawMessage) (InputPaidMediaType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputPaidMediaTypePhoto:
|
|
return UnmarshalInputPaidMediaTypePhoto(data)
|
|
|
|
case TypeInputPaidMediaTypeVideo:
|
|
return UnmarshalInputPaidMediaTypeVideo(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputPaidMediaType(dataList []json.RawMessage) ([]InputPaidMediaType, error) {
|
|
list := []InputPaidMediaType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputPaidMediaType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMessageSchedulingState(data json.RawMessage) (MessageSchedulingState, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMessageSchedulingStateSendAtDate:
|
|
return UnmarshalMessageSchedulingStateSendAtDate(data)
|
|
|
|
case TypeMessageSchedulingStateSendWhenOnline:
|
|
return UnmarshalMessageSchedulingStateSendWhenOnline(data)
|
|
|
|
case TypeMessageSchedulingStateSendWhenVideoProcessed:
|
|
return UnmarshalMessageSchedulingStateSendWhenVideoProcessed(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMessageSchedulingState(dataList []json.RawMessage) ([]MessageSchedulingState, error) {
|
|
list := []MessageSchedulingState{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMessageSchedulingState(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMessageSelfDestructType(data json.RawMessage) (MessageSelfDestructType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMessageSelfDestructTypeTimer:
|
|
return UnmarshalMessageSelfDestructTypeTimer(data)
|
|
|
|
case TypeMessageSelfDestructTypeImmediately:
|
|
return UnmarshalMessageSelfDestructTypeImmediately(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMessageSelfDestructType(dataList []json.RawMessage) ([]MessageSelfDestructType, error) {
|
|
list := []MessageSelfDestructType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMessageSelfDestructType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputMessageContent(data json.RawMessage) (InputMessageContent, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputMessageText:
|
|
return UnmarshalInputMessageText(data)
|
|
|
|
case TypeInputMessageAnimation:
|
|
return UnmarshalInputMessageAnimation(data)
|
|
|
|
case TypeInputMessageAudio:
|
|
return UnmarshalInputMessageAudio(data)
|
|
|
|
case TypeInputMessageDocument:
|
|
return UnmarshalInputMessageDocument(data)
|
|
|
|
case TypeInputMessagePaidMedia:
|
|
return UnmarshalInputMessagePaidMedia(data)
|
|
|
|
case TypeInputMessagePhoto:
|
|
return UnmarshalInputMessagePhoto(data)
|
|
|
|
case TypeInputMessageSticker:
|
|
return UnmarshalInputMessageSticker(data)
|
|
|
|
case TypeInputMessageVideo:
|
|
return UnmarshalInputMessageVideo(data)
|
|
|
|
case TypeInputMessageVideoNote:
|
|
return UnmarshalInputMessageVideoNote(data)
|
|
|
|
case TypeInputMessageVoiceNote:
|
|
return UnmarshalInputMessageVoiceNote(data)
|
|
|
|
case TypeInputMessageLocation:
|
|
return UnmarshalInputMessageLocation(data)
|
|
|
|
case TypeInputMessageVenue:
|
|
return UnmarshalInputMessageVenue(data)
|
|
|
|
case TypeInputMessageContact:
|
|
return UnmarshalInputMessageContact(data)
|
|
|
|
case TypeInputMessageDice:
|
|
return UnmarshalInputMessageDice(data)
|
|
|
|
case TypeInputMessageGame:
|
|
return UnmarshalInputMessageGame(data)
|
|
|
|
case TypeInputMessageInvoice:
|
|
return UnmarshalInputMessageInvoice(data)
|
|
|
|
case TypeInputMessagePoll:
|
|
return UnmarshalInputMessagePoll(data)
|
|
|
|
case TypeInputMessageStakeDice:
|
|
return UnmarshalInputMessageStakeDice(data)
|
|
|
|
case TypeInputMessageStory:
|
|
return UnmarshalInputMessageStory(data)
|
|
|
|
case TypeInputMessageChecklist:
|
|
return UnmarshalInputMessageChecklist(data)
|
|
|
|
case TypeInputMessageForwarded:
|
|
return UnmarshalInputMessageForwarded(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputMessageContent(dataList []json.RawMessage) ([]InputMessageContent, error) {
|
|
list := []InputMessageContent{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputMessageContent(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilter(data json.RawMessage) (SearchMessagesFilter, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeSearchMessagesFilterEmpty:
|
|
return UnmarshalSearchMessagesFilterEmpty(data)
|
|
|
|
case TypeSearchMessagesFilterAnimation:
|
|
return UnmarshalSearchMessagesFilterAnimation(data)
|
|
|
|
case TypeSearchMessagesFilterAudio:
|
|
return UnmarshalSearchMessagesFilterAudio(data)
|
|
|
|
case TypeSearchMessagesFilterDocument:
|
|
return UnmarshalSearchMessagesFilterDocument(data)
|
|
|
|
case TypeSearchMessagesFilterPhoto:
|
|
return UnmarshalSearchMessagesFilterPhoto(data)
|
|
|
|
case TypeSearchMessagesFilterVideo:
|
|
return UnmarshalSearchMessagesFilterVideo(data)
|
|
|
|
case TypeSearchMessagesFilterVoiceNote:
|
|
return UnmarshalSearchMessagesFilterVoiceNote(data)
|
|
|
|
case TypeSearchMessagesFilterPhotoAndVideo:
|
|
return UnmarshalSearchMessagesFilterPhotoAndVideo(data)
|
|
|
|
case TypeSearchMessagesFilterUrl:
|
|
return UnmarshalSearchMessagesFilterUrl(data)
|
|
|
|
case TypeSearchMessagesFilterChatPhoto:
|
|
return UnmarshalSearchMessagesFilterChatPhoto(data)
|
|
|
|
case TypeSearchMessagesFilterVideoNote:
|
|
return UnmarshalSearchMessagesFilterVideoNote(data)
|
|
|
|
case TypeSearchMessagesFilterVoiceAndVideoNote:
|
|
return UnmarshalSearchMessagesFilterVoiceAndVideoNote(data)
|
|
|
|
case TypeSearchMessagesFilterMention:
|
|
return UnmarshalSearchMessagesFilterMention(data)
|
|
|
|
case TypeSearchMessagesFilterUnreadMention:
|
|
return UnmarshalSearchMessagesFilterUnreadMention(data)
|
|
|
|
case TypeSearchMessagesFilterUnreadReaction:
|
|
return UnmarshalSearchMessagesFilterUnreadReaction(data)
|
|
|
|
case TypeSearchMessagesFilterFailedToSend:
|
|
return UnmarshalSearchMessagesFilterFailedToSend(data)
|
|
|
|
case TypeSearchMessagesFilterPinned:
|
|
return UnmarshalSearchMessagesFilterPinned(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfSearchMessagesFilter(dataList []json.RawMessage) ([]SearchMessagesFilter, error) {
|
|
list := []SearchMessagesFilter{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalSearchMessagesFilter(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatActionTyping:
|
|
return UnmarshalChatActionTyping(data)
|
|
|
|
case TypeChatActionRecordingVideo:
|
|
return UnmarshalChatActionRecordingVideo(data)
|
|
|
|
case TypeChatActionUploadingVideo:
|
|
return UnmarshalChatActionUploadingVideo(data)
|
|
|
|
case TypeChatActionRecordingVoiceNote:
|
|
return UnmarshalChatActionRecordingVoiceNote(data)
|
|
|
|
case TypeChatActionUploadingVoiceNote:
|
|
return UnmarshalChatActionUploadingVoiceNote(data)
|
|
|
|
case TypeChatActionUploadingPhoto:
|
|
return UnmarshalChatActionUploadingPhoto(data)
|
|
|
|
case TypeChatActionUploadingDocument:
|
|
return UnmarshalChatActionUploadingDocument(data)
|
|
|
|
case TypeChatActionChoosingSticker:
|
|
return UnmarshalChatActionChoosingSticker(data)
|
|
|
|
case TypeChatActionChoosingLocation:
|
|
return UnmarshalChatActionChoosingLocation(data)
|
|
|
|
case TypeChatActionChoosingContact:
|
|
return UnmarshalChatActionChoosingContact(data)
|
|
|
|
case TypeChatActionStartPlayingGame:
|
|
return UnmarshalChatActionStartPlayingGame(data)
|
|
|
|
case TypeChatActionRecordingVideoNote:
|
|
return UnmarshalChatActionRecordingVideoNote(data)
|
|
|
|
case TypeChatActionUploadingVideoNote:
|
|
return UnmarshalChatActionUploadingVideoNote(data)
|
|
|
|
case TypeChatActionWatchingAnimations:
|
|
return UnmarshalChatActionWatchingAnimations(data)
|
|
|
|
case TypeChatActionCancel:
|
|
return UnmarshalChatActionCancel(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatAction(dataList []json.RawMessage) ([]ChatAction, error) {
|
|
list := []ChatAction{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatAction(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalUserStatus(data json.RawMessage) (UserStatus, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeUserStatusEmpty:
|
|
return UnmarshalUserStatusEmpty(data)
|
|
|
|
case TypeUserStatusOnline:
|
|
return UnmarshalUserStatusOnline(data)
|
|
|
|
case TypeUserStatusOffline:
|
|
return UnmarshalUserStatusOffline(data)
|
|
|
|
case TypeUserStatusRecently:
|
|
return UnmarshalUserStatusRecently(data)
|
|
|
|
case TypeUserStatusLastWeek:
|
|
return UnmarshalUserStatusLastWeek(data)
|
|
|
|
case TypeUserStatusLastMonth:
|
|
return UnmarshalUserStatusLastMonth(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfUserStatus(dataList []json.RawMessage) ([]UserStatus, error) {
|
|
list := []UserStatus{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalUserStatus(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalEmojiCategorySource(data json.RawMessage) (EmojiCategorySource, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeEmojiCategorySourceSearch:
|
|
return UnmarshalEmojiCategorySourceSearch(data)
|
|
|
|
case TypeEmojiCategorySourcePremium:
|
|
return UnmarshalEmojiCategorySourcePremium(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfEmojiCategorySource(dataList []json.RawMessage) ([]EmojiCategorySource, error) {
|
|
list := []EmojiCategorySource{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalEmojiCategorySource(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalEmojiCategoryType(data json.RawMessage) (EmojiCategoryType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeEmojiCategoryTypeDefault:
|
|
return UnmarshalEmojiCategoryTypeDefault(data)
|
|
|
|
case TypeEmojiCategoryTypeRegularStickers:
|
|
return UnmarshalEmojiCategoryTypeRegularStickers(data)
|
|
|
|
case TypeEmojiCategoryTypeEmojiStatus:
|
|
return UnmarshalEmojiCategoryTypeEmojiStatus(data)
|
|
|
|
case TypeEmojiCategoryTypeChatPhoto:
|
|
return UnmarshalEmojiCategoryTypeChatPhoto(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfEmojiCategoryType(dataList []json.RawMessage) ([]EmojiCategoryType, error) {
|
|
list := []EmojiCategoryType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalEmojiCategoryType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStoryAreaType(data json.RawMessage) (StoryAreaType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStoryAreaTypeLocation:
|
|
return UnmarshalStoryAreaTypeLocation(data)
|
|
|
|
case TypeStoryAreaTypeVenue:
|
|
return UnmarshalStoryAreaTypeVenue(data)
|
|
|
|
case TypeStoryAreaTypeSuggestedReaction:
|
|
return UnmarshalStoryAreaTypeSuggestedReaction(data)
|
|
|
|
case TypeStoryAreaTypeMessage:
|
|
return UnmarshalStoryAreaTypeMessage(data)
|
|
|
|
case TypeStoryAreaTypeLink:
|
|
return UnmarshalStoryAreaTypeLink(data)
|
|
|
|
case TypeStoryAreaTypeWeather:
|
|
return UnmarshalStoryAreaTypeWeather(data)
|
|
|
|
case TypeStoryAreaTypeUpgradedGift:
|
|
return UnmarshalStoryAreaTypeUpgradedGift(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStoryAreaType(dataList []json.RawMessage) ([]StoryAreaType, error) {
|
|
list := []StoryAreaType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStoryAreaType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputStoryAreaType(data json.RawMessage) (InputStoryAreaType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputStoryAreaTypeLocation:
|
|
return UnmarshalInputStoryAreaTypeLocation(data)
|
|
|
|
case TypeInputStoryAreaTypeFoundVenue:
|
|
return UnmarshalInputStoryAreaTypeFoundVenue(data)
|
|
|
|
case TypeInputStoryAreaTypePreviousVenue:
|
|
return UnmarshalInputStoryAreaTypePreviousVenue(data)
|
|
|
|
case TypeInputStoryAreaTypeSuggestedReaction:
|
|
return UnmarshalInputStoryAreaTypeSuggestedReaction(data)
|
|
|
|
case TypeInputStoryAreaTypeMessage:
|
|
return UnmarshalInputStoryAreaTypeMessage(data)
|
|
|
|
case TypeInputStoryAreaTypeLink:
|
|
return UnmarshalInputStoryAreaTypeLink(data)
|
|
|
|
case TypeInputStoryAreaTypeWeather:
|
|
return UnmarshalInputStoryAreaTypeWeather(data)
|
|
|
|
case TypeInputStoryAreaTypeUpgradedGift:
|
|
return UnmarshalInputStoryAreaTypeUpgradedGift(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputStoryAreaType(dataList []json.RawMessage) ([]InputStoryAreaType, error) {
|
|
list := []InputStoryAreaType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputStoryAreaType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStoryContentType(data json.RawMessage) (StoryContentType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStoryContentTypePhoto:
|
|
return UnmarshalStoryContentTypePhoto(data)
|
|
|
|
case TypeStoryContentTypeVideo:
|
|
return UnmarshalStoryContentTypeVideo(data)
|
|
|
|
case TypeStoryContentTypeLive:
|
|
return UnmarshalStoryContentTypeLive(data)
|
|
|
|
case TypeStoryContentTypeUnsupported:
|
|
return UnmarshalStoryContentTypeUnsupported(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStoryContentType(dataList []json.RawMessage) ([]StoryContentType, error) {
|
|
list := []StoryContentType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStoryContentType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStoryContent(data json.RawMessage) (StoryContent, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStoryContentPhoto:
|
|
return UnmarshalStoryContentPhoto(data)
|
|
|
|
case TypeStoryContentVideo:
|
|
return UnmarshalStoryContentVideo(data)
|
|
|
|
case TypeStoryContentLive:
|
|
return UnmarshalStoryContentLive(data)
|
|
|
|
case TypeStoryContentUnsupported:
|
|
return UnmarshalStoryContentUnsupported(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStoryContent(dataList []json.RawMessage) ([]StoryContent, error) {
|
|
list := []StoryContent{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStoryContent(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputStoryContent(data json.RawMessage) (InputStoryContent, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputStoryContentPhoto:
|
|
return UnmarshalInputStoryContentPhoto(data)
|
|
|
|
case TypeInputStoryContentVideo:
|
|
return UnmarshalInputStoryContentVideo(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputStoryContent(dataList []json.RawMessage) ([]InputStoryContent, error) {
|
|
list := []InputStoryContent{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputStoryContent(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStoryList(data json.RawMessage) (StoryList, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStoryListMain:
|
|
return UnmarshalStoryListMain(data)
|
|
|
|
case TypeStoryListArchive:
|
|
return UnmarshalStoryListArchive(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStoryList(dataList []json.RawMessage) ([]StoryList, error) {
|
|
list := []StoryList{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStoryList(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStoryOrigin(data json.RawMessage) (StoryOrigin, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStoryOriginPublicStory:
|
|
return UnmarshalStoryOriginPublicStory(data)
|
|
|
|
case TypeStoryOriginHiddenUser:
|
|
return UnmarshalStoryOriginHiddenUser(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStoryOrigin(dataList []json.RawMessage) ([]StoryOrigin, error) {
|
|
list := []StoryOrigin{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStoryOrigin(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStoryInteractionType(data json.RawMessage) (StoryInteractionType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStoryInteractionTypeView:
|
|
return UnmarshalStoryInteractionTypeView(data)
|
|
|
|
case TypeStoryInteractionTypeForward:
|
|
return UnmarshalStoryInteractionTypeForward(data)
|
|
|
|
case TypeStoryInteractionTypeRepost:
|
|
return UnmarshalStoryInteractionTypeRepost(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStoryInteractionType(dataList []json.RawMessage) ([]StoryInteractionType, error) {
|
|
list := []StoryInteractionType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStoryInteractionType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPublicForward(data json.RawMessage) (PublicForward, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePublicForwardMessage:
|
|
return UnmarshalPublicForwardMessage(data)
|
|
|
|
case TypePublicForwardStory:
|
|
return UnmarshalPublicForwardStory(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPublicForward(dataList []json.RawMessage) ([]PublicForward, error) {
|
|
list := []PublicForward{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPublicForward(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatBoostSource(data json.RawMessage) (ChatBoostSource, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatBoostSourceGiftCode:
|
|
return UnmarshalChatBoostSourceGiftCode(data)
|
|
|
|
case TypeChatBoostSourceGiveaway:
|
|
return UnmarshalChatBoostSourceGiveaway(data)
|
|
|
|
case TypeChatBoostSourcePremium:
|
|
return UnmarshalChatBoostSourcePremium(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatBoostSource(dataList []json.RawMessage) ([]ChatBoostSource, error) {
|
|
list := []ChatBoostSource{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatBoostSource(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalResendCodeReason(data json.RawMessage) (ResendCodeReason, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeResendCodeReasonUserRequest:
|
|
return UnmarshalResendCodeReasonUserRequest(data)
|
|
|
|
case TypeResendCodeReasonVerificationFailed:
|
|
return UnmarshalResendCodeReasonVerificationFailed(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfResendCodeReason(dataList []json.RawMessage) ([]ResendCodeReason, error) {
|
|
list := []ResendCodeReason{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalResendCodeReason(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCallDiscardReason(data json.RawMessage) (CallDiscardReason, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCallDiscardReasonEmpty:
|
|
return UnmarshalCallDiscardReasonEmpty(data)
|
|
|
|
case TypeCallDiscardReasonMissed:
|
|
return UnmarshalCallDiscardReasonMissed(data)
|
|
|
|
case TypeCallDiscardReasonDeclined:
|
|
return UnmarshalCallDiscardReasonDeclined(data)
|
|
|
|
case TypeCallDiscardReasonDisconnected:
|
|
return UnmarshalCallDiscardReasonDisconnected(data)
|
|
|
|
case TypeCallDiscardReasonHungUp:
|
|
return UnmarshalCallDiscardReasonHungUp(data)
|
|
|
|
case TypeCallDiscardReasonUpgradeToGroupCall:
|
|
return UnmarshalCallDiscardReasonUpgradeToGroupCall(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCallDiscardReason(dataList []json.RawMessage) ([]CallDiscardReason, error) {
|
|
list := []CallDiscardReason{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCallDiscardReason(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCallServerType(data json.RawMessage) (CallServerType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCallServerTypeTelegramReflector:
|
|
return UnmarshalCallServerTypeTelegramReflector(data)
|
|
|
|
case TypeCallServerTypeWebrtc:
|
|
return UnmarshalCallServerTypeWebrtc(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCallServerType(dataList []json.RawMessage) ([]CallServerType, error) {
|
|
list := []CallServerType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCallServerType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCallState(data json.RawMessage) (CallState, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCallStatePending:
|
|
return UnmarshalCallStatePending(data)
|
|
|
|
case TypeCallStateExchangingKeys:
|
|
return UnmarshalCallStateExchangingKeys(data)
|
|
|
|
case TypeCallStateReady:
|
|
return UnmarshalCallStateReady(data)
|
|
|
|
case TypeCallStateHangingUp:
|
|
return UnmarshalCallStateHangingUp(data)
|
|
|
|
case TypeCallStateDiscarded:
|
|
return UnmarshalCallStateDiscarded(data)
|
|
|
|
case TypeCallStateError:
|
|
return UnmarshalCallStateError(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCallState(dataList []json.RawMessage) ([]CallState, error) {
|
|
list := []CallState{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCallState(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalGroupCallVideoQuality(data json.RawMessage) (GroupCallVideoQuality, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeGroupCallVideoQualityThumbnail:
|
|
return UnmarshalGroupCallVideoQualityThumbnail(data)
|
|
|
|
case TypeGroupCallVideoQualityMedium:
|
|
return UnmarshalGroupCallVideoQualityMedium(data)
|
|
|
|
case TypeGroupCallVideoQualityFull:
|
|
return UnmarshalGroupCallVideoQualityFull(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfGroupCallVideoQuality(dataList []json.RawMessage) ([]GroupCallVideoQuality, error) {
|
|
list := []GroupCallVideoQuality{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalGroupCallVideoQuality(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInviteGroupCallParticipantResult(data json.RawMessage) (InviteGroupCallParticipantResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInviteGroupCallParticipantResultUserPrivacyRestricted:
|
|
return UnmarshalInviteGroupCallParticipantResultUserPrivacyRestricted(data)
|
|
|
|
case TypeInviteGroupCallParticipantResultUserAlreadyParticipant:
|
|
return UnmarshalInviteGroupCallParticipantResultUserAlreadyParticipant(data)
|
|
|
|
case TypeInviteGroupCallParticipantResultUserWasBanned:
|
|
return UnmarshalInviteGroupCallParticipantResultUserWasBanned(data)
|
|
|
|
case TypeInviteGroupCallParticipantResultSuccess:
|
|
return UnmarshalInviteGroupCallParticipantResultSuccess(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInviteGroupCallParticipantResult(dataList []json.RawMessage) ([]InviteGroupCallParticipantResult, error) {
|
|
list := []InviteGroupCallParticipantResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInviteGroupCallParticipantResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalGroupCallDataChannel(data json.RawMessage) (GroupCallDataChannel, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeGroupCallDataChannelMain:
|
|
return UnmarshalGroupCallDataChannelMain(data)
|
|
|
|
case TypeGroupCallDataChannelScreenSharing:
|
|
return UnmarshalGroupCallDataChannelScreenSharing(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfGroupCallDataChannel(dataList []json.RawMessage) ([]GroupCallDataChannel, error) {
|
|
list := []GroupCallDataChannel{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalGroupCallDataChannel(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputGroupCall(data json.RawMessage) (InputGroupCall, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputGroupCallLink:
|
|
return UnmarshalInputGroupCallLink(data)
|
|
|
|
case TypeInputGroupCallMessage:
|
|
return UnmarshalInputGroupCallMessage(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputGroupCall(dataList []json.RawMessage) ([]InputGroupCall, error) {
|
|
list := []InputGroupCall{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputGroupCall(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCallProblem(data json.RawMessage) (CallProblem, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCallProblemEcho:
|
|
return UnmarshalCallProblemEcho(data)
|
|
|
|
case TypeCallProblemNoise:
|
|
return UnmarshalCallProblemNoise(data)
|
|
|
|
case TypeCallProblemInterruptions:
|
|
return UnmarshalCallProblemInterruptions(data)
|
|
|
|
case TypeCallProblemDistortedSpeech:
|
|
return UnmarshalCallProblemDistortedSpeech(data)
|
|
|
|
case TypeCallProblemSilentLocal:
|
|
return UnmarshalCallProblemSilentLocal(data)
|
|
|
|
case TypeCallProblemSilentRemote:
|
|
return UnmarshalCallProblemSilentRemote(data)
|
|
|
|
case TypeCallProblemDropped:
|
|
return UnmarshalCallProblemDropped(data)
|
|
|
|
case TypeCallProblemDistortedVideo:
|
|
return UnmarshalCallProblemDistortedVideo(data)
|
|
|
|
case TypeCallProblemPixelatedVideo:
|
|
return UnmarshalCallProblemPixelatedVideo(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCallProblem(dataList []json.RawMessage) ([]CallProblem, error) {
|
|
list := []CallProblem{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCallProblem(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalFirebaseAuthenticationSettings(data json.RawMessage) (FirebaseAuthenticationSettings, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeFirebaseAuthenticationSettingsAndroid:
|
|
return UnmarshalFirebaseAuthenticationSettingsAndroid(data)
|
|
|
|
case TypeFirebaseAuthenticationSettingsIos:
|
|
return UnmarshalFirebaseAuthenticationSettingsIos(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfFirebaseAuthenticationSettings(dataList []json.RawMessage) ([]FirebaseAuthenticationSettings, error) {
|
|
list := []FirebaseAuthenticationSettings{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalFirebaseAuthenticationSettings(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalReactionUnavailabilityReason(data json.RawMessage) (ReactionUnavailabilityReason, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeReactionUnavailabilityReasonAnonymousAdministrator:
|
|
return UnmarshalReactionUnavailabilityReasonAnonymousAdministrator(data)
|
|
|
|
case TypeReactionUnavailabilityReasonGuest:
|
|
return UnmarshalReactionUnavailabilityReasonGuest(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfReactionUnavailabilityReason(dataList []json.RawMessage) ([]ReactionUnavailabilityReason, error) {
|
|
list := []ReactionUnavailabilityReason{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalReactionUnavailabilityReason(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalDiceStickers(data json.RawMessage) (DiceStickers, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeDiceStickersRegular:
|
|
return UnmarshalDiceStickersRegular(data)
|
|
|
|
case TypeDiceStickersSlotMachine:
|
|
return UnmarshalDiceStickersSlotMachine(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfDiceStickers(dataList []json.RawMessage) ([]DiceStickers, error) {
|
|
list := []DiceStickers{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalDiceStickers(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalSpeechRecognitionResult(data json.RawMessage) (SpeechRecognitionResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeSpeechRecognitionResultPending:
|
|
return UnmarshalSpeechRecognitionResultPending(data)
|
|
|
|
case TypeSpeechRecognitionResultText:
|
|
return UnmarshalSpeechRecognitionResultText(data)
|
|
|
|
case TypeSpeechRecognitionResultError:
|
|
return UnmarshalSpeechRecognitionResultError(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfSpeechRecognitionResult(dataList []json.RawMessage) ([]SpeechRecognitionResult, error) {
|
|
list := []SpeechRecognitionResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalSpeechRecognitionResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalBotWriteAccessAllowReason(data json.RawMessage) (BotWriteAccessAllowReason, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeBotWriteAccessAllowReasonConnectedWebsite:
|
|
return UnmarshalBotWriteAccessAllowReasonConnectedWebsite(data)
|
|
|
|
case TypeBotWriteAccessAllowReasonAddedToAttachmentMenu:
|
|
return UnmarshalBotWriteAccessAllowReasonAddedToAttachmentMenu(data)
|
|
|
|
case TypeBotWriteAccessAllowReasonLaunchedWebApp:
|
|
return UnmarshalBotWriteAccessAllowReasonLaunchedWebApp(data)
|
|
|
|
case TypeBotWriteAccessAllowReasonAcceptedRequest:
|
|
return UnmarshalBotWriteAccessAllowReasonAcceptedRequest(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfBotWriteAccessAllowReason(dataList []json.RawMessage) ([]BotWriteAccessAllowReason, error) {
|
|
list := []BotWriteAccessAllowReason{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalBotWriteAccessAllowReason(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalTargetChat(data json.RawMessage) (TargetChat, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeTargetChatCurrent:
|
|
return UnmarshalTargetChatCurrent(data)
|
|
|
|
case TypeTargetChatChosen:
|
|
return UnmarshalTargetChatChosen(data)
|
|
|
|
case TypeTargetChatInternalLink:
|
|
return UnmarshalTargetChatInternalLink(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfTargetChat(dataList []json.RawMessage) ([]TargetChat, error) {
|
|
list := []TargetChat{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalTargetChat(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResult(data json.RawMessage) (InputInlineQueryResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputInlineQueryResultAnimation:
|
|
return UnmarshalInputInlineQueryResultAnimation(data)
|
|
|
|
case TypeInputInlineQueryResultArticle:
|
|
return UnmarshalInputInlineQueryResultArticle(data)
|
|
|
|
case TypeInputInlineQueryResultAudio:
|
|
return UnmarshalInputInlineQueryResultAudio(data)
|
|
|
|
case TypeInputInlineQueryResultContact:
|
|
return UnmarshalInputInlineQueryResultContact(data)
|
|
|
|
case TypeInputInlineQueryResultDocument:
|
|
return UnmarshalInputInlineQueryResultDocument(data)
|
|
|
|
case TypeInputInlineQueryResultGame:
|
|
return UnmarshalInputInlineQueryResultGame(data)
|
|
|
|
case TypeInputInlineQueryResultLocation:
|
|
return UnmarshalInputInlineQueryResultLocation(data)
|
|
|
|
case TypeInputInlineQueryResultPhoto:
|
|
return UnmarshalInputInlineQueryResultPhoto(data)
|
|
|
|
case TypeInputInlineQueryResultSticker:
|
|
return UnmarshalInputInlineQueryResultSticker(data)
|
|
|
|
case TypeInputInlineQueryResultVenue:
|
|
return UnmarshalInputInlineQueryResultVenue(data)
|
|
|
|
case TypeInputInlineQueryResultVideo:
|
|
return UnmarshalInputInlineQueryResultVideo(data)
|
|
|
|
case TypeInputInlineQueryResultVoiceNote:
|
|
return UnmarshalInputInlineQueryResultVoiceNote(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputInlineQueryResult(dataList []json.RawMessage) ([]InputInlineQueryResult, error) {
|
|
list := []InputInlineQueryResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputInlineQueryResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInlineQueryResult(data json.RawMessage) (InlineQueryResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInlineQueryResultArticle:
|
|
return UnmarshalInlineQueryResultArticle(data)
|
|
|
|
case TypeInlineQueryResultContact:
|
|
return UnmarshalInlineQueryResultContact(data)
|
|
|
|
case TypeInlineQueryResultLocation:
|
|
return UnmarshalInlineQueryResultLocation(data)
|
|
|
|
case TypeInlineQueryResultVenue:
|
|
return UnmarshalInlineQueryResultVenue(data)
|
|
|
|
case TypeInlineQueryResultGame:
|
|
return UnmarshalInlineQueryResultGame(data)
|
|
|
|
case TypeInlineQueryResultAnimation:
|
|
return UnmarshalInlineQueryResultAnimation(data)
|
|
|
|
case TypeInlineQueryResultAudio:
|
|
return UnmarshalInlineQueryResultAudio(data)
|
|
|
|
case TypeInlineQueryResultDocument:
|
|
return UnmarshalInlineQueryResultDocument(data)
|
|
|
|
case TypeInlineQueryResultPhoto:
|
|
return UnmarshalInlineQueryResultPhoto(data)
|
|
|
|
case TypeInlineQueryResultSticker:
|
|
return UnmarshalInlineQueryResultSticker(data)
|
|
|
|
case TypeInlineQueryResultVideo:
|
|
return UnmarshalInlineQueryResultVideo(data)
|
|
|
|
case TypeInlineQueryResultVoiceNote:
|
|
return UnmarshalInlineQueryResultVoiceNote(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInlineQueryResult(dataList []json.RawMessage) ([]InlineQueryResult, error) {
|
|
list := []InlineQueryResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInlineQueryResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultsButtonType(data json.RawMessage) (InlineQueryResultsButtonType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInlineQueryResultsButtonTypeStartBot:
|
|
return UnmarshalInlineQueryResultsButtonTypeStartBot(data)
|
|
|
|
case TypeInlineQueryResultsButtonTypeWebApp:
|
|
return UnmarshalInlineQueryResultsButtonTypeWebApp(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInlineQueryResultsButtonType(dataList []json.RawMessage) ([]InlineQueryResultsButtonType, error) {
|
|
list := []InlineQueryResultsButtonType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInlineQueryResultsButtonType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCallbackQueryPayload(data json.RawMessage) (CallbackQueryPayload, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCallbackQueryPayloadData:
|
|
return UnmarshalCallbackQueryPayloadData(data)
|
|
|
|
case TypeCallbackQueryPayloadDataWithPassword:
|
|
return UnmarshalCallbackQueryPayloadDataWithPassword(data)
|
|
|
|
case TypeCallbackQueryPayloadGame:
|
|
return UnmarshalCallbackQueryPayloadGame(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCallbackQueryPayload(dataList []json.RawMessage) ([]CallbackQueryPayload, error) {
|
|
list := []CallbackQueryPayload{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCallbackQueryPayload(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatEventAction(data json.RawMessage) (ChatEventAction, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatEventMessageEdited:
|
|
return UnmarshalChatEventMessageEdited(data)
|
|
|
|
case TypeChatEventMessageDeleted:
|
|
return UnmarshalChatEventMessageDeleted(data)
|
|
|
|
case TypeChatEventMessagePinned:
|
|
return UnmarshalChatEventMessagePinned(data)
|
|
|
|
case TypeChatEventMessageUnpinned:
|
|
return UnmarshalChatEventMessageUnpinned(data)
|
|
|
|
case TypeChatEventPollStopped:
|
|
return UnmarshalChatEventPollStopped(data)
|
|
|
|
case TypeChatEventMemberJoined:
|
|
return UnmarshalChatEventMemberJoined(data)
|
|
|
|
case TypeChatEventMemberJoinedByInviteLink:
|
|
return UnmarshalChatEventMemberJoinedByInviteLink(data)
|
|
|
|
case TypeChatEventMemberJoinedByRequest:
|
|
return UnmarshalChatEventMemberJoinedByRequest(data)
|
|
|
|
case TypeChatEventMemberInvited:
|
|
return UnmarshalChatEventMemberInvited(data)
|
|
|
|
case TypeChatEventMemberLeft:
|
|
return UnmarshalChatEventMemberLeft(data)
|
|
|
|
case TypeChatEventMemberPromoted:
|
|
return UnmarshalChatEventMemberPromoted(data)
|
|
|
|
case TypeChatEventMemberRestricted:
|
|
return UnmarshalChatEventMemberRestricted(data)
|
|
|
|
case TypeChatEventMemberSubscriptionExtended:
|
|
return UnmarshalChatEventMemberSubscriptionExtended(data)
|
|
|
|
case TypeChatEventAvailableReactionsChanged:
|
|
return UnmarshalChatEventAvailableReactionsChanged(data)
|
|
|
|
case TypeChatEventBackgroundChanged:
|
|
return UnmarshalChatEventBackgroundChanged(data)
|
|
|
|
case TypeChatEventDescriptionChanged:
|
|
return UnmarshalChatEventDescriptionChanged(data)
|
|
|
|
case TypeChatEventEmojiStatusChanged:
|
|
return UnmarshalChatEventEmojiStatusChanged(data)
|
|
|
|
case TypeChatEventLinkedChatChanged:
|
|
return UnmarshalChatEventLinkedChatChanged(data)
|
|
|
|
case TypeChatEventLocationChanged:
|
|
return UnmarshalChatEventLocationChanged(data)
|
|
|
|
case TypeChatEventMessageAutoDeleteTimeChanged:
|
|
return UnmarshalChatEventMessageAutoDeleteTimeChanged(data)
|
|
|
|
case TypeChatEventPermissionsChanged:
|
|
return UnmarshalChatEventPermissionsChanged(data)
|
|
|
|
case TypeChatEventPhotoChanged:
|
|
return UnmarshalChatEventPhotoChanged(data)
|
|
|
|
case TypeChatEventSlowModeDelayChanged:
|
|
return UnmarshalChatEventSlowModeDelayChanged(data)
|
|
|
|
case TypeChatEventStickerSetChanged:
|
|
return UnmarshalChatEventStickerSetChanged(data)
|
|
|
|
case TypeChatEventCustomEmojiStickerSetChanged:
|
|
return UnmarshalChatEventCustomEmojiStickerSetChanged(data)
|
|
|
|
case TypeChatEventTitleChanged:
|
|
return UnmarshalChatEventTitleChanged(data)
|
|
|
|
case TypeChatEventUsernameChanged:
|
|
return UnmarshalChatEventUsernameChanged(data)
|
|
|
|
case TypeChatEventActiveUsernamesChanged:
|
|
return UnmarshalChatEventActiveUsernamesChanged(data)
|
|
|
|
case TypeChatEventAccentColorChanged:
|
|
return UnmarshalChatEventAccentColorChanged(data)
|
|
|
|
case TypeChatEventProfileAccentColorChanged:
|
|
return UnmarshalChatEventProfileAccentColorChanged(data)
|
|
|
|
case TypeChatEventHasProtectedContentToggled:
|
|
return UnmarshalChatEventHasProtectedContentToggled(data)
|
|
|
|
case TypeChatEventInvitesToggled:
|
|
return UnmarshalChatEventInvitesToggled(data)
|
|
|
|
case TypeChatEventIsAllHistoryAvailableToggled:
|
|
return UnmarshalChatEventIsAllHistoryAvailableToggled(data)
|
|
|
|
case TypeChatEventHasAggressiveAntiSpamEnabledToggled:
|
|
return UnmarshalChatEventHasAggressiveAntiSpamEnabledToggled(data)
|
|
|
|
case TypeChatEventSignMessagesToggled:
|
|
return UnmarshalChatEventSignMessagesToggled(data)
|
|
|
|
case TypeChatEventShowMessageSenderToggled:
|
|
return UnmarshalChatEventShowMessageSenderToggled(data)
|
|
|
|
case TypeChatEventAutomaticTranslationToggled:
|
|
return UnmarshalChatEventAutomaticTranslationToggled(data)
|
|
|
|
case TypeChatEventInviteLinkEdited:
|
|
return UnmarshalChatEventInviteLinkEdited(data)
|
|
|
|
case TypeChatEventInviteLinkRevoked:
|
|
return UnmarshalChatEventInviteLinkRevoked(data)
|
|
|
|
case TypeChatEventInviteLinkDeleted:
|
|
return UnmarshalChatEventInviteLinkDeleted(data)
|
|
|
|
case TypeChatEventVideoChatCreated:
|
|
return UnmarshalChatEventVideoChatCreated(data)
|
|
|
|
case TypeChatEventVideoChatEnded:
|
|
return UnmarshalChatEventVideoChatEnded(data)
|
|
|
|
case TypeChatEventVideoChatMuteNewParticipantsToggled:
|
|
return UnmarshalChatEventVideoChatMuteNewParticipantsToggled(data)
|
|
|
|
case TypeChatEventVideoChatParticipantIsMutedToggled:
|
|
return UnmarshalChatEventVideoChatParticipantIsMutedToggled(data)
|
|
|
|
case TypeChatEventVideoChatParticipantVolumeLevelChanged:
|
|
return UnmarshalChatEventVideoChatParticipantVolumeLevelChanged(data)
|
|
|
|
case TypeChatEventIsForumToggled:
|
|
return UnmarshalChatEventIsForumToggled(data)
|
|
|
|
case TypeChatEventForumTopicCreated:
|
|
return UnmarshalChatEventForumTopicCreated(data)
|
|
|
|
case TypeChatEventForumTopicEdited:
|
|
return UnmarshalChatEventForumTopicEdited(data)
|
|
|
|
case TypeChatEventForumTopicToggleIsClosed:
|
|
return UnmarshalChatEventForumTopicToggleIsClosed(data)
|
|
|
|
case TypeChatEventForumTopicToggleIsHidden:
|
|
return UnmarshalChatEventForumTopicToggleIsHidden(data)
|
|
|
|
case TypeChatEventForumTopicDeleted:
|
|
return UnmarshalChatEventForumTopicDeleted(data)
|
|
|
|
case TypeChatEventForumTopicPinned:
|
|
return UnmarshalChatEventForumTopicPinned(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatEventAction(dataList []json.RawMessage) ([]ChatEventAction, error) {
|
|
list := []ChatEventAction{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatEventAction(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalLanguagePackStringValue(data json.RawMessage) (LanguagePackStringValue, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeLanguagePackStringValueOrdinary:
|
|
return UnmarshalLanguagePackStringValueOrdinary(data)
|
|
|
|
case TypeLanguagePackStringValuePluralized:
|
|
return UnmarshalLanguagePackStringValuePluralized(data)
|
|
|
|
case TypeLanguagePackStringValueDeleted:
|
|
return UnmarshalLanguagePackStringValueDeleted(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfLanguagePackStringValue(dataList []json.RawMessage) ([]LanguagePackStringValue, error) {
|
|
list := []LanguagePackStringValue{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalLanguagePackStringValue(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPremiumLimitType(data json.RawMessage) (PremiumLimitType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePremiumLimitTypeSupergroupCount:
|
|
return UnmarshalPremiumLimitTypeSupergroupCount(data)
|
|
|
|
case TypePremiumLimitTypePinnedChatCount:
|
|
return UnmarshalPremiumLimitTypePinnedChatCount(data)
|
|
|
|
case TypePremiumLimitTypeCreatedPublicChatCount:
|
|
return UnmarshalPremiumLimitTypeCreatedPublicChatCount(data)
|
|
|
|
case TypePremiumLimitTypeSavedAnimationCount:
|
|
return UnmarshalPremiumLimitTypeSavedAnimationCount(data)
|
|
|
|
case TypePremiumLimitTypeFavoriteStickerCount:
|
|
return UnmarshalPremiumLimitTypeFavoriteStickerCount(data)
|
|
|
|
case TypePremiumLimitTypeChatFolderCount:
|
|
return UnmarshalPremiumLimitTypeChatFolderCount(data)
|
|
|
|
case TypePremiumLimitTypeChatFolderChosenChatCount:
|
|
return UnmarshalPremiumLimitTypeChatFolderChosenChatCount(data)
|
|
|
|
case TypePremiumLimitTypePinnedArchivedChatCount:
|
|
return UnmarshalPremiumLimitTypePinnedArchivedChatCount(data)
|
|
|
|
case TypePremiumLimitTypePinnedSavedMessagesTopicCount:
|
|
return UnmarshalPremiumLimitTypePinnedSavedMessagesTopicCount(data)
|
|
|
|
case TypePremiumLimitTypeCaptionLength:
|
|
return UnmarshalPremiumLimitTypeCaptionLength(data)
|
|
|
|
case TypePremiumLimitTypeBioLength:
|
|
return UnmarshalPremiumLimitTypeBioLength(data)
|
|
|
|
case TypePremiumLimitTypeChatFolderInviteLinkCount:
|
|
return UnmarshalPremiumLimitTypeChatFolderInviteLinkCount(data)
|
|
|
|
case TypePremiumLimitTypeShareableChatFolderCount:
|
|
return UnmarshalPremiumLimitTypeShareableChatFolderCount(data)
|
|
|
|
case TypePremiumLimitTypeActiveStoryCount:
|
|
return UnmarshalPremiumLimitTypeActiveStoryCount(data)
|
|
|
|
case TypePremiumLimitTypeWeeklyPostedStoryCount:
|
|
return UnmarshalPremiumLimitTypeWeeklyPostedStoryCount(data)
|
|
|
|
case TypePremiumLimitTypeMonthlyPostedStoryCount:
|
|
return UnmarshalPremiumLimitTypeMonthlyPostedStoryCount(data)
|
|
|
|
case TypePremiumLimitTypeStoryCaptionLength:
|
|
return UnmarshalPremiumLimitTypeStoryCaptionLength(data)
|
|
|
|
case TypePremiumLimitTypeStorySuggestedReactionAreaCount:
|
|
return UnmarshalPremiumLimitTypeStorySuggestedReactionAreaCount(data)
|
|
|
|
case TypePremiumLimitTypeSimilarChatCount:
|
|
return UnmarshalPremiumLimitTypeSimilarChatCount(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPremiumLimitType(dataList []json.RawMessage) ([]PremiumLimitType, error) {
|
|
list := []PremiumLimitType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPremiumLimitType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPremiumFeature(data json.RawMessage) (PremiumFeature, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePremiumFeatureIncreasedLimits:
|
|
return UnmarshalPremiumFeatureIncreasedLimits(data)
|
|
|
|
case TypePremiumFeatureIncreasedUploadFileSize:
|
|
return UnmarshalPremiumFeatureIncreasedUploadFileSize(data)
|
|
|
|
case TypePremiumFeatureImprovedDownloadSpeed:
|
|
return UnmarshalPremiumFeatureImprovedDownloadSpeed(data)
|
|
|
|
case TypePremiumFeatureVoiceRecognition:
|
|
return UnmarshalPremiumFeatureVoiceRecognition(data)
|
|
|
|
case TypePremiumFeatureDisabledAds:
|
|
return UnmarshalPremiumFeatureDisabledAds(data)
|
|
|
|
case TypePremiumFeatureUniqueReactions:
|
|
return UnmarshalPremiumFeatureUniqueReactions(data)
|
|
|
|
case TypePremiumFeatureUniqueStickers:
|
|
return UnmarshalPremiumFeatureUniqueStickers(data)
|
|
|
|
case TypePremiumFeatureCustomEmoji:
|
|
return UnmarshalPremiumFeatureCustomEmoji(data)
|
|
|
|
case TypePremiumFeatureAdvancedChatManagement:
|
|
return UnmarshalPremiumFeatureAdvancedChatManagement(data)
|
|
|
|
case TypePremiumFeatureProfileBadge:
|
|
return UnmarshalPremiumFeatureProfileBadge(data)
|
|
|
|
case TypePremiumFeatureEmojiStatus:
|
|
return UnmarshalPremiumFeatureEmojiStatus(data)
|
|
|
|
case TypePremiumFeatureAnimatedProfilePhoto:
|
|
return UnmarshalPremiumFeatureAnimatedProfilePhoto(data)
|
|
|
|
case TypePremiumFeatureForumTopicIcon:
|
|
return UnmarshalPremiumFeatureForumTopicIcon(data)
|
|
|
|
case TypePremiumFeatureAppIcons:
|
|
return UnmarshalPremiumFeatureAppIcons(data)
|
|
|
|
case TypePremiumFeatureRealTimeChatTranslation:
|
|
return UnmarshalPremiumFeatureRealTimeChatTranslation(data)
|
|
|
|
case TypePremiumFeatureUpgradedStories:
|
|
return UnmarshalPremiumFeatureUpgradedStories(data)
|
|
|
|
case TypePremiumFeatureChatBoost:
|
|
return UnmarshalPremiumFeatureChatBoost(data)
|
|
|
|
case TypePremiumFeatureAccentColor:
|
|
return UnmarshalPremiumFeatureAccentColor(data)
|
|
|
|
case TypePremiumFeatureBackgroundForBoth:
|
|
return UnmarshalPremiumFeatureBackgroundForBoth(data)
|
|
|
|
case TypePremiumFeatureSavedMessagesTags:
|
|
return UnmarshalPremiumFeatureSavedMessagesTags(data)
|
|
|
|
case TypePremiumFeatureMessagePrivacy:
|
|
return UnmarshalPremiumFeatureMessagePrivacy(data)
|
|
|
|
case TypePremiumFeatureLastSeenTimes:
|
|
return UnmarshalPremiumFeatureLastSeenTimes(data)
|
|
|
|
case TypePremiumFeatureBusiness:
|
|
return UnmarshalPremiumFeatureBusiness(data)
|
|
|
|
case TypePremiumFeatureMessageEffects:
|
|
return UnmarshalPremiumFeatureMessageEffects(data)
|
|
|
|
case TypePremiumFeatureChecklists:
|
|
return UnmarshalPremiumFeatureChecklists(data)
|
|
|
|
case TypePremiumFeaturePaidMessages:
|
|
return UnmarshalPremiumFeaturePaidMessages(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPremiumFeature(dataList []json.RawMessage) ([]PremiumFeature, error) {
|
|
list := []PremiumFeature{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPremiumFeature(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalBusinessFeature(data json.RawMessage) (BusinessFeature, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeBusinessFeatureLocation:
|
|
return UnmarshalBusinessFeatureLocation(data)
|
|
|
|
case TypeBusinessFeatureOpeningHours:
|
|
return UnmarshalBusinessFeatureOpeningHours(data)
|
|
|
|
case TypeBusinessFeatureQuickReplies:
|
|
return UnmarshalBusinessFeatureQuickReplies(data)
|
|
|
|
case TypeBusinessFeatureGreetingMessage:
|
|
return UnmarshalBusinessFeatureGreetingMessage(data)
|
|
|
|
case TypeBusinessFeatureAwayMessage:
|
|
return UnmarshalBusinessFeatureAwayMessage(data)
|
|
|
|
case TypeBusinessFeatureAccountLinks:
|
|
return UnmarshalBusinessFeatureAccountLinks(data)
|
|
|
|
case TypeBusinessFeatureStartPage:
|
|
return UnmarshalBusinessFeatureStartPage(data)
|
|
|
|
case TypeBusinessFeatureBots:
|
|
return UnmarshalBusinessFeatureBots(data)
|
|
|
|
case TypeBusinessFeatureEmojiStatus:
|
|
return UnmarshalBusinessFeatureEmojiStatus(data)
|
|
|
|
case TypeBusinessFeatureChatFolderTags:
|
|
return UnmarshalBusinessFeatureChatFolderTags(data)
|
|
|
|
case TypeBusinessFeatureUpgradedStories:
|
|
return UnmarshalBusinessFeatureUpgradedStories(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfBusinessFeature(dataList []json.RawMessage) ([]BusinessFeature, error) {
|
|
list := []BusinessFeature{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalBusinessFeature(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPremiumStoryFeature(data json.RawMessage) (PremiumStoryFeature, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePremiumStoryFeaturePriorityOrder:
|
|
return UnmarshalPremiumStoryFeaturePriorityOrder(data)
|
|
|
|
case TypePremiumStoryFeatureStealthMode:
|
|
return UnmarshalPremiumStoryFeatureStealthMode(data)
|
|
|
|
case TypePremiumStoryFeaturePermanentViewsHistory:
|
|
return UnmarshalPremiumStoryFeaturePermanentViewsHistory(data)
|
|
|
|
case TypePremiumStoryFeatureCustomExpirationDuration:
|
|
return UnmarshalPremiumStoryFeatureCustomExpirationDuration(data)
|
|
|
|
case TypePremiumStoryFeatureSaveStories:
|
|
return UnmarshalPremiumStoryFeatureSaveStories(data)
|
|
|
|
case TypePremiumStoryFeatureLinksAndFormatting:
|
|
return UnmarshalPremiumStoryFeatureLinksAndFormatting(data)
|
|
|
|
case TypePremiumStoryFeatureVideoQuality:
|
|
return UnmarshalPremiumStoryFeatureVideoQuality(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPremiumStoryFeature(dataList []json.RawMessage) ([]PremiumStoryFeature, error) {
|
|
list := []PremiumStoryFeature{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPremiumStoryFeature(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPremiumSource(data json.RawMessage) (PremiumSource, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePremiumSourceLimitExceeded:
|
|
return UnmarshalPremiumSourceLimitExceeded(data)
|
|
|
|
case TypePremiumSourceFeature:
|
|
return UnmarshalPremiumSourceFeature(data)
|
|
|
|
case TypePremiumSourceBusinessFeature:
|
|
return UnmarshalPremiumSourceBusinessFeature(data)
|
|
|
|
case TypePremiumSourceStoryFeature:
|
|
return UnmarshalPremiumSourceStoryFeature(data)
|
|
|
|
case TypePremiumSourceLink:
|
|
return UnmarshalPremiumSourceLink(data)
|
|
|
|
case TypePremiumSourceSettings:
|
|
return UnmarshalPremiumSourceSettings(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPremiumSource(dataList []json.RawMessage) ([]PremiumSource, error) {
|
|
list := []PremiumSource{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPremiumSource(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStorePaymentPurpose(data json.RawMessage) (StorePaymentPurpose, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStorePaymentPurposePremiumSubscription:
|
|
return UnmarshalStorePaymentPurposePremiumSubscription(data)
|
|
|
|
case TypeStorePaymentPurposePremiumGift:
|
|
return UnmarshalStorePaymentPurposePremiumGift(data)
|
|
|
|
case TypeStorePaymentPurposePremiumGiftCodes:
|
|
return UnmarshalStorePaymentPurposePremiumGiftCodes(data)
|
|
|
|
case TypeStorePaymentPurposePremiumGiveaway:
|
|
return UnmarshalStorePaymentPurposePremiumGiveaway(data)
|
|
|
|
case TypeStorePaymentPurposeStarGiveaway:
|
|
return UnmarshalStorePaymentPurposeStarGiveaway(data)
|
|
|
|
case TypeStorePaymentPurposeStars:
|
|
return UnmarshalStorePaymentPurposeStars(data)
|
|
|
|
case TypeStorePaymentPurposeGiftedStars:
|
|
return UnmarshalStorePaymentPurposeGiftedStars(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStorePaymentPurpose(dataList []json.RawMessage) ([]StorePaymentPurpose, error) {
|
|
list := []StorePaymentPurpose{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStorePaymentPurpose(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStoreTransaction(data json.RawMessage) (StoreTransaction, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStoreTransactionAppStore:
|
|
return UnmarshalStoreTransactionAppStore(data)
|
|
|
|
case TypeStoreTransactionGooglePlay:
|
|
return UnmarshalStoreTransactionGooglePlay(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStoreTransaction(dataList []json.RawMessage) ([]StoreTransaction, error) {
|
|
list := []StoreTransaction{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStoreTransaction(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalTelegramPaymentPurpose(data json.RawMessage) (TelegramPaymentPurpose, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeTelegramPaymentPurposePremiumGift:
|
|
return UnmarshalTelegramPaymentPurposePremiumGift(data)
|
|
|
|
case TypeTelegramPaymentPurposePremiumGiftCodes:
|
|
return UnmarshalTelegramPaymentPurposePremiumGiftCodes(data)
|
|
|
|
case TypeTelegramPaymentPurposePremiumGiveaway:
|
|
return UnmarshalTelegramPaymentPurposePremiumGiveaway(data)
|
|
|
|
case TypeTelegramPaymentPurposeStars:
|
|
return UnmarshalTelegramPaymentPurposeStars(data)
|
|
|
|
case TypeTelegramPaymentPurposeGiftedStars:
|
|
return UnmarshalTelegramPaymentPurposeGiftedStars(data)
|
|
|
|
case TypeTelegramPaymentPurposeStarGiveaway:
|
|
return UnmarshalTelegramPaymentPurposeStarGiveaway(data)
|
|
|
|
case TypeTelegramPaymentPurposeJoinChat:
|
|
return UnmarshalTelegramPaymentPurposeJoinChat(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfTelegramPaymentPurpose(dataList []json.RawMessage) ([]TelegramPaymentPurpose, error) {
|
|
list := []TelegramPaymentPurpose{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalTelegramPaymentPurpose(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalDeviceToken(data json.RawMessage) (DeviceToken, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeDeviceTokenFirebaseCloudMessaging:
|
|
return UnmarshalDeviceTokenFirebaseCloudMessaging(data)
|
|
|
|
case TypeDeviceTokenApplePush:
|
|
return UnmarshalDeviceTokenApplePush(data)
|
|
|
|
case TypeDeviceTokenApplePushVoIP:
|
|
return UnmarshalDeviceTokenApplePushVoIP(data)
|
|
|
|
case TypeDeviceTokenWindowsPush:
|
|
return UnmarshalDeviceTokenWindowsPush(data)
|
|
|
|
case TypeDeviceTokenMicrosoftPush:
|
|
return UnmarshalDeviceTokenMicrosoftPush(data)
|
|
|
|
case TypeDeviceTokenMicrosoftPushVoIP:
|
|
return UnmarshalDeviceTokenMicrosoftPushVoIP(data)
|
|
|
|
case TypeDeviceTokenWebPush:
|
|
return UnmarshalDeviceTokenWebPush(data)
|
|
|
|
case TypeDeviceTokenSimplePush:
|
|
return UnmarshalDeviceTokenSimplePush(data)
|
|
|
|
case TypeDeviceTokenUbuntuPush:
|
|
return UnmarshalDeviceTokenUbuntuPush(data)
|
|
|
|
case TypeDeviceTokenBlackBerryPush:
|
|
return UnmarshalDeviceTokenBlackBerryPush(data)
|
|
|
|
case TypeDeviceTokenTizenPush:
|
|
return UnmarshalDeviceTokenTizenPush(data)
|
|
|
|
case TypeDeviceTokenHuaweiPush:
|
|
return UnmarshalDeviceTokenHuaweiPush(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfDeviceToken(dataList []json.RawMessage) ([]DeviceToken, error) {
|
|
list := []DeviceToken{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalDeviceToken(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalBackgroundFill(data json.RawMessage) (BackgroundFill, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeBackgroundFillSolid:
|
|
return UnmarshalBackgroundFillSolid(data)
|
|
|
|
case TypeBackgroundFillGradient:
|
|
return UnmarshalBackgroundFillGradient(data)
|
|
|
|
case TypeBackgroundFillFreeformGradient:
|
|
return UnmarshalBackgroundFillFreeformGradient(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfBackgroundFill(dataList []json.RawMessage) ([]BackgroundFill, error) {
|
|
list := []BackgroundFill{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalBackgroundFill(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalBackgroundType(data json.RawMessage) (BackgroundType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeBackgroundTypeWallpaper:
|
|
return UnmarshalBackgroundTypeWallpaper(data)
|
|
|
|
case TypeBackgroundTypePattern:
|
|
return UnmarshalBackgroundTypePattern(data)
|
|
|
|
case TypeBackgroundTypeFill:
|
|
return UnmarshalBackgroundTypeFill(data)
|
|
|
|
case TypeBackgroundTypeChatTheme:
|
|
return UnmarshalBackgroundTypeChatTheme(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfBackgroundType(dataList []json.RawMessage) ([]BackgroundType, error) {
|
|
list := []BackgroundType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalBackgroundType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputBackground(data json.RawMessage) (InputBackground, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputBackgroundLocal:
|
|
return UnmarshalInputBackgroundLocal(data)
|
|
|
|
case TypeInputBackgroundRemote:
|
|
return UnmarshalInputBackgroundRemote(data)
|
|
|
|
case TypeInputBackgroundPrevious:
|
|
return UnmarshalInputBackgroundPrevious(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputBackground(dataList []json.RawMessage) ([]InputBackground, error) {
|
|
list := []InputBackground{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputBackground(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatTheme(data json.RawMessage) (ChatTheme, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatThemeEmoji:
|
|
return UnmarshalChatThemeEmoji(data)
|
|
|
|
case TypeChatThemeGift:
|
|
return UnmarshalChatThemeGift(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatTheme(dataList []json.RawMessage) ([]ChatTheme, error) {
|
|
list := []ChatTheme{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatTheme(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInputChatTheme(data json.RawMessage) (InputChatTheme, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInputChatThemeEmoji:
|
|
return UnmarshalInputChatThemeEmoji(data)
|
|
|
|
case TypeInputChatThemeGift:
|
|
return UnmarshalInputChatThemeGift(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInputChatTheme(dataList []json.RawMessage) ([]InputChatTheme, error) {
|
|
list := []InputChatTheme{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInputChatTheme(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCanPostStoryResult(data json.RawMessage) (CanPostStoryResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCanPostStoryResultOk:
|
|
return UnmarshalCanPostStoryResultOk(data)
|
|
|
|
case TypeCanPostStoryResultPremiumNeeded:
|
|
return UnmarshalCanPostStoryResultPremiumNeeded(data)
|
|
|
|
case TypeCanPostStoryResultBoostNeeded:
|
|
return UnmarshalCanPostStoryResultBoostNeeded(data)
|
|
|
|
case TypeCanPostStoryResultActiveStoryLimitExceeded:
|
|
return UnmarshalCanPostStoryResultActiveStoryLimitExceeded(data)
|
|
|
|
case TypeCanPostStoryResultWeeklyLimitExceeded:
|
|
return UnmarshalCanPostStoryResultWeeklyLimitExceeded(data)
|
|
|
|
case TypeCanPostStoryResultMonthlyLimitExceeded:
|
|
return UnmarshalCanPostStoryResultMonthlyLimitExceeded(data)
|
|
|
|
case TypeCanPostStoryResultLiveStoryIsActive:
|
|
return UnmarshalCanPostStoryResultLiveStoryIsActive(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCanPostStoryResult(dataList []json.RawMessage) ([]CanPostStoryResult, error) {
|
|
list := []CanPostStoryResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCanPostStoryResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStartLiveStoryResult(data json.RawMessage) (StartLiveStoryResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStartLiveStoryResultOk:
|
|
return UnmarshalStartLiveStoryResultOk(data)
|
|
|
|
case TypeStartLiveStoryResultFail:
|
|
return UnmarshalStartLiveStoryResultFail(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStartLiveStoryResult(dataList []json.RawMessage) ([]StartLiveStoryResult, error) {
|
|
list := []StartLiveStoryResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStartLiveStoryResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCanTransferOwnershipResult(data json.RawMessage) (CanTransferOwnershipResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCanTransferOwnershipResultOk:
|
|
return UnmarshalCanTransferOwnershipResultOk(data)
|
|
|
|
case TypeCanTransferOwnershipResultPasswordNeeded:
|
|
return UnmarshalCanTransferOwnershipResultPasswordNeeded(data)
|
|
|
|
case TypeCanTransferOwnershipResultPasswordTooFresh:
|
|
return UnmarshalCanTransferOwnershipResultPasswordTooFresh(data)
|
|
|
|
case TypeCanTransferOwnershipResultSessionTooFresh:
|
|
return UnmarshalCanTransferOwnershipResultSessionTooFresh(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCanTransferOwnershipResult(dataList []json.RawMessage) ([]CanTransferOwnershipResult, error) {
|
|
list := []CanTransferOwnershipResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCanTransferOwnershipResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCheckChatUsernameResult(data json.RawMessage) (CheckChatUsernameResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCheckChatUsernameResultOk:
|
|
return UnmarshalCheckChatUsernameResultOk(data)
|
|
|
|
case TypeCheckChatUsernameResultUsernameInvalid:
|
|
return UnmarshalCheckChatUsernameResultUsernameInvalid(data)
|
|
|
|
case TypeCheckChatUsernameResultUsernameOccupied:
|
|
return UnmarshalCheckChatUsernameResultUsernameOccupied(data)
|
|
|
|
case TypeCheckChatUsernameResultUsernamePurchasable:
|
|
return UnmarshalCheckChatUsernameResultUsernamePurchasable(data)
|
|
|
|
case TypeCheckChatUsernameResultPublicChatsTooMany:
|
|
return UnmarshalCheckChatUsernameResultPublicChatsTooMany(data)
|
|
|
|
case TypeCheckChatUsernameResultPublicGroupsUnavailable:
|
|
return UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCheckChatUsernameResult(dataList []json.RawMessage) ([]CheckChatUsernameResult, error) {
|
|
list := []CheckChatUsernameResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCheckChatUsernameResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCheckStickerSetNameResult(data json.RawMessage) (CheckStickerSetNameResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCheckStickerSetNameResultOk:
|
|
return UnmarshalCheckStickerSetNameResultOk(data)
|
|
|
|
case TypeCheckStickerSetNameResultNameInvalid:
|
|
return UnmarshalCheckStickerSetNameResultNameInvalid(data)
|
|
|
|
case TypeCheckStickerSetNameResultNameOccupied:
|
|
return UnmarshalCheckStickerSetNameResultNameOccupied(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCheckStickerSetNameResult(dataList []json.RawMessage) ([]CheckStickerSetNameResult, error) {
|
|
list := []CheckStickerSetNameResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCheckStickerSetNameResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalResetPasswordResult(data json.RawMessage) (ResetPasswordResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeResetPasswordResultOk:
|
|
return UnmarshalResetPasswordResultOk(data)
|
|
|
|
case TypeResetPasswordResultPending:
|
|
return UnmarshalResetPasswordResultPending(data)
|
|
|
|
case TypeResetPasswordResultDeclined:
|
|
return UnmarshalResetPasswordResultDeclined(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfResetPasswordResult(dataList []json.RawMessage) ([]ResetPasswordResult, error) {
|
|
list := []ResetPasswordResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalResetPasswordResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalMessageFileType(data json.RawMessage) (MessageFileType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeMessageFileTypePrivate:
|
|
return UnmarshalMessageFileTypePrivate(data)
|
|
|
|
case TypeMessageFileTypeGroup:
|
|
return UnmarshalMessageFileTypeGroup(data)
|
|
|
|
case TypeMessageFileTypeUnknown:
|
|
return UnmarshalMessageFileTypeUnknown(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfMessageFileType(dataList []json.RawMessage) ([]MessageFileType, error) {
|
|
list := []MessageFileType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalMessageFileType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPushMessageContent(data json.RawMessage) (PushMessageContent, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePushMessageContentHidden:
|
|
return UnmarshalPushMessageContentHidden(data)
|
|
|
|
case TypePushMessageContentAnimation:
|
|
return UnmarshalPushMessageContentAnimation(data)
|
|
|
|
case TypePushMessageContentAudio:
|
|
return UnmarshalPushMessageContentAudio(data)
|
|
|
|
case TypePushMessageContentContact:
|
|
return UnmarshalPushMessageContentContact(data)
|
|
|
|
case TypePushMessageContentContactRegistered:
|
|
return UnmarshalPushMessageContentContactRegistered(data)
|
|
|
|
case TypePushMessageContentDocument:
|
|
return UnmarshalPushMessageContentDocument(data)
|
|
|
|
case TypePushMessageContentGame:
|
|
return UnmarshalPushMessageContentGame(data)
|
|
|
|
case TypePushMessageContentGameScore:
|
|
return UnmarshalPushMessageContentGameScore(data)
|
|
|
|
case TypePushMessageContentInvoice:
|
|
return UnmarshalPushMessageContentInvoice(data)
|
|
|
|
case TypePushMessageContentLocation:
|
|
return UnmarshalPushMessageContentLocation(data)
|
|
|
|
case TypePushMessageContentPaidMedia:
|
|
return UnmarshalPushMessageContentPaidMedia(data)
|
|
|
|
case TypePushMessageContentPhoto:
|
|
return UnmarshalPushMessageContentPhoto(data)
|
|
|
|
case TypePushMessageContentPoll:
|
|
return UnmarshalPushMessageContentPoll(data)
|
|
|
|
case TypePushMessageContentPremiumGiftCode:
|
|
return UnmarshalPushMessageContentPremiumGiftCode(data)
|
|
|
|
case TypePushMessageContentGiveaway:
|
|
return UnmarshalPushMessageContentGiveaway(data)
|
|
|
|
case TypePushMessageContentGift:
|
|
return UnmarshalPushMessageContentGift(data)
|
|
|
|
case TypePushMessageContentUpgradedGift:
|
|
return UnmarshalPushMessageContentUpgradedGift(data)
|
|
|
|
case TypePushMessageContentScreenshotTaken:
|
|
return UnmarshalPushMessageContentScreenshotTaken(data)
|
|
|
|
case TypePushMessageContentSticker:
|
|
return UnmarshalPushMessageContentSticker(data)
|
|
|
|
case TypePushMessageContentStory:
|
|
return UnmarshalPushMessageContentStory(data)
|
|
|
|
case TypePushMessageContentText:
|
|
return UnmarshalPushMessageContentText(data)
|
|
|
|
case TypePushMessageContentChecklist:
|
|
return UnmarshalPushMessageContentChecklist(data)
|
|
|
|
case TypePushMessageContentVideo:
|
|
return UnmarshalPushMessageContentVideo(data)
|
|
|
|
case TypePushMessageContentVideoNote:
|
|
return UnmarshalPushMessageContentVideoNote(data)
|
|
|
|
case TypePushMessageContentVoiceNote:
|
|
return UnmarshalPushMessageContentVoiceNote(data)
|
|
|
|
case TypePushMessageContentBasicGroupChatCreate:
|
|
return UnmarshalPushMessageContentBasicGroupChatCreate(data)
|
|
|
|
case TypePushMessageContentVideoChatStarted:
|
|
return UnmarshalPushMessageContentVideoChatStarted(data)
|
|
|
|
case TypePushMessageContentVideoChatEnded:
|
|
return UnmarshalPushMessageContentVideoChatEnded(data)
|
|
|
|
case TypePushMessageContentInviteVideoChatParticipants:
|
|
return UnmarshalPushMessageContentInviteVideoChatParticipants(data)
|
|
|
|
case TypePushMessageContentChatAddMembers:
|
|
return UnmarshalPushMessageContentChatAddMembers(data)
|
|
|
|
case TypePushMessageContentChatChangePhoto:
|
|
return UnmarshalPushMessageContentChatChangePhoto(data)
|
|
|
|
case TypePushMessageContentChatChangeTitle:
|
|
return UnmarshalPushMessageContentChatChangeTitle(data)
|
|
|
|
case TypePushMessageContentChatSetBackground:
|
|
return UnmarshalPushMessageContentChatSetBackground(data)
|
|
|
|
case TypePushMessageContentChatSetTheme:
|
|
return UnmarshalPushMessageContentChatSetTheme(data)
|
|
|
|
case TypePushMessageContentChatDeleteMember:
|
|
return UnmarshalPushMessageContentChatDeleteMember(data)
|
|
|
|
case TypePushMessageContentChatJoinByLink:
|
|
return UnmarshalPushMessageContentChatJoinByLink(data)
|
|
|
|
case TypePushMessageContentChatJoinByRequest:
|
|
return UnmarshalPushMessageContentChatJoinByRequest(data)
|
|
|
|
case TypePushMessageContentRecurringPayment:
|
|
return UnmarshalPushMessageContentRecurringPayment(data)
|
|
|
|
case TypePushMessageContentSuggestProfilePhoto:
|
|
return UnmarshalPushMessageContentSuggestProfilePhoto(data)
|
|
|
|
case TypePushMessageContentSuggestBirthdate:
|
|
return UnmarshalPushMessageContentSuggestBirthdate(data)
|
|
|
|
case TypePushMessageContentProximityAlertTriggered:
|
|
return UnmarshalPushMessageContentProximityAlertTriggered(data)
|
|
|
|
case TypePushMessageContentChecklistTasksAdded:
|
|
return UnmarshalPushMessageContentChecklistTasksAdded(data)
|
|
|
|
case TypePushMessageContentChecklistTasksDone:
|
|
return UnmarshalPushMessageContentChecklistTasksDone(data)
|
|
|
|
case TypePushMessageContentMessageForwards:
|
|
return UnmarshalPushMessageContentMessageForwards(data)
|
|
|
|
case TypePushMessageContentMediaAlbum:
|
|
return UnmarshalPushMessageContentMediaAlbum(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPushMessageContent(dataList []json.RawMessage) ([]PushMessageContent, error) {
|
|
list := []PushMessageContent{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPushMessageContent(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalNotificationType(data json.RawMessage) (NotificationType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeNotificationTypeNewMessage:
|
|
return UnmarshalNotificationTypeNewMessage(data)
|
|
|
|
case TypeNotificationTypeNewSecretChat:
|
|
return UnmarshalNotificationTypeNewSecretChat(data)
|
|
|
|
case TypeNotificationTypeNewCall:
|
|
return UnmarshalNotificationTypeNewCall(data)
|
|
|
|
case TypeNotificationTypeNewPushMessage:
|
|
return UnmarshalNotificationTypeNewPushMessage(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfNotificationType(dataList []json.RawMessage) ([]NotificationType, error) {
|
|
list := []NotificationType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalNotificationType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalNotificationGroupType(data json.RawMessage) (NotificationGroupType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeNotificationGroupTypeMessages:
|
|
return UnmarshalNotificationGroupTypeMessages(data)
|
|
|
|
case TypeNotificationGroupTypeMentions:
|
|
return UnmarshalNotificationGroupTypeMentions(data)
|
|
|
|
case TypeNotificationGroupTypeSecretChat:
|
|
return UnmarshalNotificationGroupTypeSecretChat(data)
|
|
|
|
case TypeNotificationGroupTypeCalls:
|
|
return UnmarshalNotificationGroupTypeCalls(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfNotificationGroupType(dataList []json.RawMessage) ([]NotificationGroupType, error) {
|
|
list := []NotificationGroupType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalNotificationGroupType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalOptionValue(data json.RawMessage) (OptionValue, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeOptionValueBoolean:
|
|
return UnmarshalOptionValueBoolean(data)
|
|
|
|
case TypeOptionValueEmpty:
|
|
return UnmarshalOptionValueEmpty(data)
|
|
|
|
case TypeOptionValueInteger:
|
|
return UnmarshalOptionValueInteger(data)
|
|
|
|
case TypeOptionValueString:
|
|
return UnmarshalOptionValueString(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfOptionValue(dataList []json.RawMessage) ([]OptionValue, error) {
|
|
list := []OptionValue{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalOptionValue(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalJsonValue(data json.RawMessage) (JsonValue, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeJsonValueNull:
|
|
return UnmarshalJsonValueNull(data)
|
|
|
|
case TypeJsonValueBoolean:
|
|
return UnmarshalJsonValueBoolean(data)
|
|
|
|
case TypeJsonValueNumber:
|
|
return UnmarshalJsonValueNumber(data)
|
|
|
|
case TypeJsonValueString:
|
|
return UnmarshalJsonValueString(data)
|
|
|
|
case TypeJsonValueArray:
|
|
return UnmarshalJsonValueArray(data)
|
|
|
|
case TypeJsonValueObject:
|
|
return UnmarshalJsonValueObject(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfJsonValue(dataList []json.RawMessage) ([]JsonValue, error) {
|
|
list := []JsonValue{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalJsonValue(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStoryPrivacySettings(data json.RawMessage) (StoryPrivacySettings, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStoryPrivacySettingsEveryone:
|
|
return UnmarshalStoryPrivacySettingsEveryone(data)
|
|
|
|
case TypeStoryPrivacySettingsContacts:
|
|
return UnmarshalStoryPrivacySettingsContacts(data)
|
|
|
|
case TypeStoryPrivacySettingsCloseFriends:
|
|
return UnmarshalStoryPrivacySettingsCloseFriends(data)
|
|
|
|
case TypeStoryPrivacySettingsSelectedUsers:
|
|
return UnmarshalStoryPrivacySettingsSelectedUsers(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStoryPrivacySettings(dataList []json.RawMessage) ([]StoryPrivacySettings, error) {
|
|
list := []StoryPrivacySettings{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStoryPrivacySettings(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRule(data json.RawMessage) (UserPrivacySettingRule, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeUserPrivacySettingRuleAllowAll:
|
|
return UnmarshalUserPrivacySettingRuleAllowAll(data)
|
|
|
|
case TypeUserPrivacySettingRuleAllowContacts:
|
|
return UnmarshalUserPrivacySettingRuleAllowContacts(data)
|
|
|
|
case TypeUserPrivacySettingRuleAllowBots:
|
|
return UnmarshalUserPrivacySettingRuleAllowBots(data)
|
|
|
|
case TypeUserPrivacySettingRuleAllowPremiumUsers:
|
|
return UnmarshalUserPrivacySettingRuleAllowPremiumUsers(data)
|
|
|
|
case TypeUserPrivacySettingRuleAllowUsers:
|
|
return UnmarshalUserPrivacySettingRuleAllowUsers(data)
|
|
|
|
case TypeUserPrivacySettingRuleAllowChatMembers:
|
|
return UnmarshalUserPrivacySettingRuleAllowChatMembers(data)
|
|
|
|
case TypeUserPrivacySettingRuleRestrictAll:
|
|
return UnmarshalUserPrivacySettingRuleRestrictAll(data)
|
|
|
|
case TypeUserPrivacySettingRuleRestrictContacts:
|
|
return UnmarshalUserPrivacySettingRuleRestrictContacts(data)
|
|
|
|
case TypeUserPrivacySettingRuleRestrictBots:
|
|
return UnmarshalUserPrivacySettingRuleRestrictBots(data)
|
|
|
|
case TypeUserPrivacySettingRuleRestrictUsers:
|
|
return UnmarshalUserPrivacySettingRuleRestrictUsers(data)
|
|
|
|
case TypeUserPrivacySettingRuleRestrictChatMembers:
|
|
return UnmarshalUserPrivacySettingRuleRestrictChatMembers(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfUserPrivacySettingRule(dataList []json.RawMessage) ([]UserPrivacySettingRule, error) {
|
|
list := []UserPrivacySettingRule{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalUserPrivacySettingRule(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalUserPrivacySetting(data json.RawMessage) (UserPrivacySetting, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeUserPrivacySettingShowStatus:
|
|
return UnmarshalUserPrivacySettingShowStatus(data)
|
|
|
|
case TypeUserPrivacySettingShowProfilePhoto:
|
|
return UnmarshalUserPrivacySettingShowProfilePhoto(data)
|
|
|
|
case TypeUserPrivacySettingShowLinkInForwardedMessages:
|
|
return UnmarshalUserPrivacySettingShowLinkInForwardedMessages(data)
|
|
|
|
case TypeUserPrivacySettingShowPhoneNumber:
|
|
return UnmarshalUserPrivacySettingShowPhoneNumber(data)
|
|
|
|
case TypeUserPrivacySettingShowBio:
|
|
return UnmarshalUserPrivacySettingShowBio(data)
|
|
|
|
case TypeUserPrivacySettingShowBirthdate:
|
|
return UnmarshalUserPrivacySettingShowBirthdate(data)
|
|
|
|
case TypeUserPrivacySettingShowProfileAudio:
|
|
return UnmarshalUserPrivacySettingShowProfileAudio(data)
|
|
|
|
case TypeUserPrivacySettingAllowChatInvites:
|
|
return UnmarshalUserPrivacySettingAllowChatInvites(data)
|
|
|
|
case TypeUserPrivacySettingAllowCalls:
|
|
return UnmarshalUserPrivacySettingAllowCalls(data)
|
|
|
|
case TypeUserPrivacySettingAllowPeerToPeerCalls:
|
|
return UnmarshalUserPrivacySettingAllowPeerToPeerCalls(data)
|
|
|
|
case TypeUserPrivacySettingAllowFindingByPhoneNumber:
|
|
return UnmarshalUserPrivacySettingAllowFindingByPhoneNumber(data)
|
|
|
|
case TypeUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages:
|
|
return UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data)
|
|
|
|
case TypeUserPrivacySettingAutosaveGifts:
|
|
return UnmarshalUserPrivacySettingAutosaveGifts(data)
|
|
|
|
case TypeUserPrivacySettingAllowUnpaidMessages:
|
|
return UnmarshalUserPrivacySettingAllowUnpaidMessages(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfUserPrivacySetting(dataList []json.RawMessage) ([]UserPrivacySetting, error) {
|
|
list := []UserPrivacySetting{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalUserPrivacySetting(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalCanSendMessageToUserResult(data json.RawMessage) (CanSendMessageToUserResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeCanSendMessageToUserResultOk:
|
|
return UnmarshalCanSendMessageToUserResultOk(data)
|
|
|
|
case TypeCanSendMessageToUserResultUserHasPaidMessages:
|
|
return UnmarshalCanSendMessageToUserResultUserHasPaidMessages(data)
|
|
|
|
case TypeCanSendMessageToUserResultUserIsDeleted:
|
|
return UnmarshalCanSendMessageToUserResultUserIsDeleted(data)
|
|
|
|
case TypeCanSendMessageToUserResultUserRestrictsNewChats:
|
|
return UnmarshalCanSendMessageToUserResultUserRestrictsNewChats(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfCanSendMessageToUserResult(dataList []json.RawMessage) ([]CanSendMessageToUserResult, error) {
|
|
list := []CanSendMessageToUserResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalCanSendMessageToUserResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalSessionType(data json.RawMessage) (SessionType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeSessionTypeAndroid:
|
|
return UnmarshalSessionTypeAndroid(data)
|
|
|
|
case TypeSessionTypeApple:
|
|
return UnmarshalSessionTypeApple(data)
|
|
|
|
case TypeSessionTypeBrave:
|
|
return UnmarshalSessionTypeBrave(data)
|
|
|
|
case TypeSessionTypeChrome:
|
|
return UnmarshalSessionTypeChrome(data)
|
|
|
|
case TypeSessionTypeEdge:
|
|
return UnmarshalSessionTypeEdge(data)
|
|
|
|
case TypeSessionTypeFirefox:
|
|
return UnmarshalSessionTypeFirefox(data)
|
|
|
|
case TypeSessionTypeIpad:
|
|
return UnmarshalSessionTypeIpad(data)
|
|
|
|
case TypeSessionTypeIphone:
|
|
return UnmarshalSessionTypeIphone(data)
|
|
|
|
case TypeSessionTypeLinux:
|
|
return UnmarshalSessionTypeLinux(data)
|
|
|
|
case TypeSessionTypeMac:
|
|
return UnmarshalSessionTypeMac(data)
|
|
|
|
case TypeSessionTypeOpera:
|
|
return UnmarshalSessionTypeOpera(data)
|
|
|
|
case TypeSessionTypeSafari:
|
|
return UnmarshalSessionTypeSafari(data)
|
|
|
|
case TypeSessionTypeUbuntu:
|
|
return UnmarshalSessionTypeUbuntu(data)
|
|
|
|
case TypeSessionTypeUnknown:
|
|
return UnmarshalSessionTypeUnknown(data)
|
|
|
|
case TypeSessionTypeVivaldi:
|
|
return UnmarshalSessionTypeVivaldi(data)
|
|
|
|
case TypeSessionTypeWindows:
|
|
return UnmarshalSessionTypeWindows(data)
|
|
|
|
case TypeSessionTypeXbox:
|
|
return UnmarshalSessionTypeXbox(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfSessionType(dataList []json.RawMessage) ([]SessionType, error) {
|
|
list := []SessionType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalSessionType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalReportReason(data json.RawMessage) (ReportReason, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeReportReasonSpam:
|
|
return UnmarshalReportReasonSpam(data)
|
|
|
|
case TypeReportReasonViolence:
|
|
return UnmarshalReportReasonViolence(data)
|
|
|
|
case TypeReportReasonPornography:
|
|
return UnmarshalReportReasonPornography(data)
|
|
|
|
case TypeReportReasonChildAbuse:
|
|
return UnmarshalReportReasonChildAbuse(data)
|
|
|
|
case TypeReportReasonCopyright:
|
|
return UnmarshalReportReasonCopyright(data)
|
|
|
|
case TypeReportReasonUnrelatedLocation:
|
|
return UnmarshalReportReasonUnrelatedLocation(data)
|
|
|
|
case TypeReportReasonFake:
|
|
return UnmarshalReportReasonFake(data)
|
|
|
|
case TypeReportReasonIllegalDrugs:
|
|
return UnmarshalReportReasonIllegalDrugs(data)
|
|
|
|
case TypeReportReasonPersonalDetails:
|
|
return UnmarshalReportReasonPersonalDetails(data)
|
|
|
|
case TypeReportReasonCustom:
|
|
return UnmarshalReportReasonCustom(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfReportReason(dataList []json.RawMessage) ([]ReportReason, error) {
|
|
list := []ReportReason{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalReportReason(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalReportChatResult(data json.RawMessage) (ReportChatResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeReportChatResultOk:
|
|
return UnmarshalReportChatResultOk(data)
|
|
|
|
case TypeReportChatResultOptionRequired:
|
|
return UnmarshalReportChatResultOptionRequired(data)
|
|
|
|
case TypeReportChatResultTextRequired:
|
|
return UnmarshalReportChatResultTextRequired(data)
|
|
|
|
case TypeReportChatResultMessagesRequired:
|
|
return UnmarshalReportChatResultMessagesRequired(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfReportChatResult(dataList []json.RawMessage) ([]ReportChatResult, error) {
|
|
list := []ReportChatResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalReportChatResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalReportStoryResult(data json.RawMessage) (ReportStoryResult, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeReportStoryResultOk:
|
|
return UnmarshalReportStoryResultOk(data)
|
|
|
|
case TypeReportStoryResultOptionRequired:
|
|
return UnmarshalReportStoryResultOptionRequired(data)
|
|
|
|
case TypeReportStoryResultTextRequired:
|
|
return UnmarshalReportStoryResultTextRequired(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfReportStoryResult(dataList []json.RawMessage) ([]ReportStoryResult, error) {
|
|
list := []ReportStoryResult{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalReportStoryResult(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalSettingsSection(data json.RawMessage) (SettingsSection, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeSettingsSectionAppearance:
|
|
return UnmarshalSettingsSectionAppearance(data)
|
|
|
|
case TypeSettingsSectionAskQuestion:
|
|
return UnmarshalSettingsSectionAskQuestion(data)
|
|
|
|
case TypeSettingsSectionBusiness:
|
|
return UnmarshalSettingsSectionBusiness(data)
|
|
|
|
case TypeSettingsSectionChatFolders:
|
|
return UnmarshalSettingsSectionChatFolders(data)
|
|
|
|
case TypeSettingsSectionDataAndStorage:
|
|
return UnmarshalSettingsSectionDataAndStorage(data)
|
|
|
|
case TypeSettingsSectionDevices:
|
|
return UnmarshalSettingsSectionDevices(data)
|
|
|
|
case TypeSettingsSectionEditProfile:
|
|
return UnmarshalSettingsSectionEditProfile(data)
|
|
|
|
case TypeSettingsSectionFaq:
|
|
return UnmarshalSettingsSectionFaq(data)
|
|
|
|
case TypeSettingsSectionFeatures:
|
|
return UnmarshalSettingsSectionFeatures(data)
|
|
|
|
case TypeSettingsSectionInAppBrowser:
|
|
return UnmarshalSettingsSectionInAppBrowser(data)
|
|
|
|
case TypeSettingsSectionLanguage:
|
|
return UnmarshalSettingsSectionLanguage(data)
|
|
|
|
case TypeSettingsSectionMyStars:
|
|
return UnmarshalSettingsSectionMyStars(data)
|
|
|
|
case TypeSettingsSectionMyToncoins:
|
|
return UnmarshalSettingsSectionMyToncoins(data)
|
|
|
|
case TypeSettingsSectionNotifications:
|
|
return UnmarshalSettingsSectionNotifications(data)
|
|
|
|
case TypeSettingsSectionPowerSaving:
|
|
return UnmarshalSettingsSectionPowerSaving(data)
|
|
|
|
case TypeSettingsSectionPremium:
|
|
return UnmarshalSettingsSectionPremium(data)
|
|
|
|
case TypeSettingsSectionPrivacyAndSecurity:
|
|
return UnmarshalSettingsSectionPrivacyAndSecurity(data)
|
|
|
|
case TypeSettingsSectionPrivacyPolicy:
|
|
return UnmarshalSettingsSectionPrivacyPolicy(data)
|
|
|
|
case TypeSettingsSectionQrCode:
|
|
return UnmarshalSettingsSectionQrCode(data)
|
|
|
|
case TypeSettingsSectionSearch:
|
|
return UnmarshalSettingsSectionSearch(data)
|
|
|
|
case TypeSettingsSectionSendGift:
|
|
return UnmarshalSettingsSectionSendGift(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfSettingsSection(dataList []json.RawMessage) ([]SettingsSection, error) {
|
|
list := []SettingsSection{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalSettingsSection(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalInternalLinkType(data json.RawMessage) (InternalLinkType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeInternalLinkTypeAttachmentMenuBot:
|
|
return UnmarshalInternalLinkTypeAttachmentMenuBot(data)
|
|
|
|
case TypeInternalLinkTypeAuthenticationCode:
|
|
return UnmarshalInternalLinkTypeAuthenticationCode(data)
|
|
|
|
case TypeInternalLinkTypeBackground:
|
|
return UnmarshalInternalLinkTypeBackground(data)
|
|
|
|
case TypeInternalLinkTypeBotAddToChannel:
|
|
return UnmarshalInternalLinkTypeBotAddToChannel(data)
|
|
|
|
case TypeInternalLinkTypeBotStart:
|
|
return UnmarshalInternalLinkTypeBotStart(data)
|
|
|
|
case TypeInternalLinkTypeBotStartInGroup:
|
|
return UnmarshalInternalLinkTypeBotStartInGroup(data)
|
|
|
|
case TypeInternalLinkTypeBusinessChat:
|
|
return UnmarshalInternalLinkTypeBusinessChat(data)
|
|
|
|
case TypeInternalLinkTypeCallsPage:
|
|
return UnmarshalInternalLinkTypeCallsPage(data)
|
|
|
|
case TypeInternalLinkTypeChatAffiliateProgram:
|
|
return UnmarshalInternalLinkTypeChatAffiliateProgram(data)
|
|
|
|
case TypeInternalLinkTypeChatBoost:
|
|
return UnmarshalInternalLinkTypeChatBoost(data)
|
|
|
|
case TypeInternalLinkTypeChatFolderInvite:
|
|
return UnmarshalInternalLinkTypeChatFolderInvite(data)
|
|
|
|
case TypeInternalLinkTypeChatInvite:
|
|
return UnmarshalInternalLinkTypeChatInvite(data)
|
|
|
|
case TypeInternalLinkTypeChatSelection:
|
|
return UnmarshalInternalLinkTypeChatSelection(data)
|
|
|
|
case TypeInternalLinkTypeContactsPage:
|
|
return UnmarshalInternalLinkTypeContactsPage(data)
|
|
|
|
case TypeInternalLinkTypeDirectMessagesChat:
|
|
return UnmarshalInternalLinkTypeDirectMessagesChat(data)
|
|
|
|
case TypeInternalLinkTypeGame:
|
|
return UnmarshalInternalLinkTypeGame(data)
|
|
|
|
case TypeInternalLinkTypeGiftAuction:
|
|
return UnmarshalInternalLinkTypeGiftAuction(data)
|
|
|
|
case TypeInternalLinkTypeGiftCollection:
|
|
return UnmarshalInternalLinkTypeGiftCollection(data)
|
|
|
|
case TypeInternalLinkTypeGroupCall:
|
|
return UnmarshalInternalLinkTypeGroupCall(data)
|
|
|
|
case TypeInternalLinkTypeInstantView:
|
|
return UnmarshalInternalLinkTypeInstantView(data)
|
|
|
|
case TypeInternalLinkTypeInvoice:
|
|
return UnmarshalInternalLinkTypeInvoice(data)
|
|
|
|
case TypeInternalLinkTypeLanguagePack:
|
|
return UnmarshalInternalLinkTypeLanguagePack(data)
|
|
|
|
case TypeInternalLinkTypeLiveStory:
|
|
return UnmarshalInternalLinkTypeLiveStory(data)
|
|
|
|
case TypeInternalLinkTypeMainWebApp:
|
|
return UnmarshalInternalLinkTypeMainWebApp(data)
|
|
|
|
case TypeInternalLinkTypeMessage:
|
|
return UnmarshalInternalLinkTypeMessage(data)
|
|
|
|
case TypeInternalLinkTypeMessageDraft:
|
|
return UnmarshalInternalLinkTypeMessageDraft(data)
|
|
|
|
case TypeInternalLinkTypeMyProfilePage:
|
|
return UnmarshalInternalLinkTypeMyProfilePage(data)
|
|
|
|
case TypeInternalLinkTypeNewChannelChat:
|
|
return UnmarshalInternalLinkTypeNewChannelChat(data)
|
|
|
|
case TypeInternalLinkTypeNewGroupChat:
|
|
return UnmarshalInternalLinkTypeNewGroupChat(data)
|
|
|
|
case TypeInternalLinkTypeNewPrivateChat:
|
|
return UnmarshalInternalLinkTypeNewPrivateChat(data)
|
|
|
|
case TypeInternalLinkTypeNewStory:
|
|
return UnmarshalInternalLinkTypeNewStory(data)
|
|
|
|
case TypeInternalLinkTypePassportDataRequest:
|
|
return UnmarshalInternalLinkTypePassportDataRequest(data)
|
|
|
|
case TypeInternalLinkTypePhoneNumberConfirmation:
|
|
return UnmarshalInternalLinkTypePhoneNumberConfirmation(data)
|
|
|
|
case TypeInternalLinkTypePremiumFeaturesPage:
|
|
return UnmarshalInternalLinkTypePremiumFeaturesPage(data)
|
|
|
|
case TypeInternalLinkTypePremiumGiftCode:
|
|
return UnmarshalInternalLinkTypePremiumGiftCode(data)
|
|
|
|
case TypeInternalLinkTypePremiumGiftPurchase:
|
|
return UnmarshalInternalLinkTypePremiumGiftPurchase(data)
|
|
|
|
case TypeInternalLinkTypeProxy:
|
|
return UnmarshalInternalLinkTypeProxy(data)
|
|
|
|
case TypeInternalLinkTypePublicChat:
|
|
return UnmarshalInternalLinkTypePublicChat(data)
|
|
|
|
case TypeInternalLinkTypeQrCodeAuthentication:
|
|
return UnmarshalInternalLinkTypeQrCodeAuthentication(data)
|
|
|
|
case TypeInternalLinkTypeRestorePurchases:
|
|
return UnmarshalInternalLinkTypeRestorePurchases(data)
|
|
|
|
case TypeInternalLinkTypeSavedMessages:
|
|
return UnmarshalInternalLinkTypeSavedMessages(data)
|
|
|
|
case TypeInternalLinkTypeSearch:
|
|
return UnmarshalInternalLinkTypeSearch(data)
|
|
|
|
case TypeInternalLinkTypeSettings:
|
|
return UnmarshalInternalLinkTypeSettings(data)
|
|
|
|
case TypeInternalLinkTypeStarPurchase:
|
|
return UnmarshalInternalLinkTypeStarPurchase(data)
|
|
|
|
case TypeInternalLinkTypeStickerSet:
|
|
return UnmarshalInternalLinkTypeStickerSet(data)
|
|
|
|
case TypeInternalLinkTypeStory:
|
|
return UnmarshalInternalLinkTypeStory(data)
|
|
|
|
case TypeInternalLinkTypeStoryAlbum:
|
|
return UnmarshalInternalLinkTypeStoryAlbum(data)
|
|
|
|
case TypeInternalLinkTypeTheme:
|
|
return UnmarshalInternalLinkTypeTheme(data)
|
|
|
|
case TypeInternalLinkTypeUnknownDeepLink:
|
|
return UnmarshalInternalLinkTypeUnknownDeepLink(data)
|
|
|
|
case TypeInternalLinkTypeUpgradedGift:
|
|
return UnmarshalInternalLinkTypeUpgradedGift(data)
|
|
|
|
case TypeInternalLinkTypeUserPhoneNumber:
|
|
return UnmarshalInternalLinkTypeUserPhoneNumber(data)
|
|
|
|
case TypeInternalLinkTypeUserToken:
|
|
return UnmarshalInternalLinkTypeUserToken(data)
|
|
|
|
case TypeInternalLinkTypeVideoChat:
|
|
return UnmarshalInternalLinkTypeVideoChat(data)
|
|
|
|
case TypeInternalLinkTypeWebApp:
|
|
return UnmarshalInternalLinkTypeWebApp(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfInternalLinkType(dataList []json.RawMessage) ([]InternalLinkType, error) {
|
|
list := []InternalLinkType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalInternalLinkType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalBlockList(data json.RawMessage) (BlockList, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeBlockListMain:
|
|
return UnmarshalBlockListMain(data)
|
|
|
|
case TypeBlockListStories:
|
|
return UnmarshalBlockListStories(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfBlockList(dataList []json.RawMessage) ([]BlockList, error) {
|
|
list := []BlockList{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalBlockList(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalFileType(data json.RawMessage) (FileType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeFileTypeNone:
|
|
return UnmarshalFileTypeNone(data)
|
|
|
|
case TypeFileTypeAnimation:
|
|
return UnmarshalFileTypeAnimation(data)
|
|
|
|
case TypeFileTypeAudio:
|
|
return UnmarshalFileTypeAudio(data)
|
|
|
|
case TypeFileTypeDocument:
|
|
return UnmarshalFileTypeDocument(data)
|
|
|
|
case TypeFileTypeNotificationSound:
|
|
return UnmarshalFileTypeNotificationSound(data)
|
|
|
|
case TypeFileTypePhoto:
|
|
return UnmarshalFileTypePhoto(data)
|
|
|
|
case TypeFileTypePhotoStory:
|
|
return UnmarshalFileTypePhotoStory(data)
|
|
|
|
case TypeFileTypeProfilePhoto:
|
|
return UnmarshalFileTypeProfilePhoto(data)
|
|
|
|
case TypeFileTypeSecret:
|
|
return UnmarshalFileTypeSecret(data)
|
|
|
|
case TypeFileTypeSecretThumbnail:
|
|
return UnmarshalFileTypeSecretThumbnail(data)
|
|
|
|
case TypeFileTypeSecure:
|
|
return UnmarshalFileTypeSecure(data)
|
|
|
|
case TypeFileTypeSelfDestructingPhoto:
|
|
return UnmarshalFileTypeSelfDestructingPhoto(data)
|
|
|
|
case TypeFileTypeSelfDestructingVideo:
|
|
return UnmarshalFileTypeSelfDestructingVideo(data)
|
|
|
|
case TypeFileTypeSelfDestructingVideoNote:
|
|
return UnmarshalFileTypeSelfDestructingVideoNote(data)
|
|
|
|
case TypeFileTypeSelfDestructingVoiceNote:
|
|
return UnmarshalFileTypeSelfDestructingVoiceNote(data)
|
|
|
|
case TypeFileTypeSticker:
|
|
return UnmarshalFileTypeSticker(data)
|
|
|
|
case TypeFileTypeThumbnail:
|
|
return UnmarshalFileTypeThumbnail(data)
|
|
|
|
case TypeFileTypeUnknown:
|
|
return UnmarshalFileTypeUnknown(data)
|
|
|
|
case TypeFileTypeVideo:
|
|
return UnmarshalFileTypeVideo(data)
|
|
|
|
case TypeFileTypeVideoNote:
|
|
return UnmarshalFileTypeVideoNote(data)
|
|
|
|
case TypeFileTypeVideoStory:
|
|
return UnmarshalFileTypeVideoStory(data)
|
|
|
|
case TypeFileTypeVoiceNote:
|
|
return UnmarshalFileTypeVoiceNote(data)
|
|
|
|
case TypeFileTypeWallpaper:
|
|
return UnmarshalFileTypeWallpaper(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfFileType(dataList []json.RawMessage) ([]FileType, error) {
|
|
list := []FileType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalFileType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalNetworkType(data json.RawMessage) (NetworkType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeNetworkTypeNone:
|
|
return UnmarshalNetworkTypeNone(data)
|
|
|
|
case TypeNetworkTypeMobile:
|
|
return UnmarshalNetworkTypeMobile(data)
|
|
|
|
case TypeNetworkTypeMobileRoaming:
|
|
return UnmarshalNetworkTypeMobileRoaming(data)
|
|
|
|
case TypeNetworkTypeWiFi:
|
|
return UnmarshalNetworkTypeWiFi(data)
|
|
|
|
case TypeNetworkTypeOther:
|
|
return UnmarshalNetworkTypeOther(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfNetworkType(dataList []json.RawMessage) ([]NetworkType, error) {
|
|
list := []NetworkType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalNetworkType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalNetworkStatisticsEntry(data json.RawMessage) (NetworkStatisticsEntry, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeNetworkStatisticsEntryFile:
|
|
return UnmarshalNetworkStatisticsEntryFile(data)
|
|
|
|
case TypeNetworkStatisticsEntryCall:
|
|
return UnmarshalNetworkStatisticsEntryCall(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfNetworkStatisticsEntry(dataList []json.RawMessage) ([]NetworkStatisticsEntry, error) {
|
|
list := []NetworkStatisticsEntry{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalNetworkStatisticsEntry(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalAutosaveSettingsScope(data json.RawMessage) (AutosaveSettingsScope, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeAutosaveSettingsScopePrivateChats:
|
|
return UnmarshalAutosaveSettingsScopePrivateChats(data)
|
|
|
|
case TypeAutosaveSettingsScopeGroupChats:
|
|
return UnmarshalAutosaveSettingsScopeGroupChats(data)
|
|
|
|
case TypeAutosaveSettingsScopeChannelChats:
|
|
return UnmarshalAutosaveSettingsScopeChannelChats(data)
|
|
|
|
case TypeAutosaveSettingsScopeChat:
|
|
return UnmarshalAutosaveSettingsScopeChat(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfAutosaveSettingsScope(dataList []json.RawMessage) ([]AutosaveSettingsScope, error) {
|
|
list := []AutosaveSettingsScope{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalAutosaveSettingsScope(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalConnectionState(data json.RawMessage) (ConnectionState, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeConnectionStateWaitingForNetwork:
|
|
return UnmarshalConnectionStateWaitingForNetwork(data)
|
|
|
|
case TypeConnectionStateConnectingToProxy:
|
|
return UnmarshalConnectionStateConnectingToProxy(data)
|
|
|
|
case TypeConnectionStateConnecting:
|
|
return UnmarshalConnectionStateConnecting(data)
|
|
|
|
case TypeConnectionStateUpdating:
|
|
return UnmarshalConnectionStateUpdating(data)
|
|
|
|
case TypeConnectionStateReady:
|
|
return UnmarshalConnectionStateReady(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfConnectionState(dataList []json.RawMessage) ([]ConnectionState, error) {
|
|
list := []ConnectionState{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalConnectionState(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalTopChatCategory(data json.RawMessage) (TopChatCategory, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeTopChatCategoryUsers:
|
|
return UnmarshalTopChatCategoryUsers(data)
|
|
|
|
case TypeTopChatCategoryBots:
|
|
return UnmarshalTopChatCategoryBots(data)
|
|
|
|
case TypeTopChatCategoryGroups:
|
|
return UnmarshalTopChatCategoryGroups(data)
|
|
|
|
case TypeTopChatCategoryChannels:
|
|
return UnmarshalTopChatCategoryChannels(data)
|
|
|
|
case TypeTopChatCategoryInlineBots:
|
|
return UnmarshalTopChatCategoryInlineBots(data)
|
|
|
|
case TypeTopChatCategoryWebAppBots:
|
|
return UnmarshalTopChatCategoryWebAppBots(data)
|
|
|
|
case TypeTopChatCategoryCalls:
|
|
return UnmarshalTopChatCategoryCalls(data)
|
|
|
|
case TypeTopChatCategoryForwardChats:
|
|
return UnmarshalTopChatCategoryForwardChats(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfTopChatCategory(dataList []json.RawMessage) ([]TopChatCategory, error) {
|
|
list := []TopChatCategory{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalTopChatCategory(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalTMeUrlType(data json.RawMessage) (TMeUrlType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeTMeUrlTypeUser:
|
|
return UnmarshalTMeUrlTypeUser(data)
|
|
|
|
case TypeTMeUrlTypeSupergroup:
|
|
return UnmarshalTMeUrlTypeSupergroup(data)
|
|
|
|
case TypeTMeUrlTypeChatInvite:
|
|
return UnmarshalTMeUrlTypeChatInvite(data)
|
|
|
|
case TypeTMeUrlTypeStickerSet:
|
|
return UnmarshalTMeUrlTypeStickerSet(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfTMeUrlType(dataList []json.RawMessage) ([]TMeUrlType, error) {
|
|
list := []TMeUrlType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalTMeUrlType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalSuggestedAction(data json.RawMessage) (SuggestedAction, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeSuggestedActionEnableArchiveAndMuteNewChats:
|
|
return UnmarshalSuggestedActionEnableArchiveAndMuteNewChats(data)
|
|
|
|
case TypeSuggestedActionCheckPassword:
|
|
return UnmarshalSuggestedActionCheckPassword(data)
|
|
|
|
case TypeSuggestedActionCheckPhoneNumber:
|
|
return UnmarshalSuggestedActionCheckPhoneNumber(data)
|
|
|
|
case TypeSuggestedActionViewChecksHint:
|
|
return UnmarshalSuggestedActionViewChecksHint(data)
|
|
|
|
case TypeSuggestedActionConvertToBroadcastGroup:
|
|
return UnmarshalSuggestedActionConvertToBroadcastGroup(data)
|
|
|
|
case TypeSuggestedActionSetPassword:
|
|
return UnmarshalSuggestedActionSetPassword(data)
|
|
|
|
case TypeSuggestedActionUpgradePremium:
|
|
return UnmarshalSuggestedActionUpgradePremium(data)
|
|
|
|
case TypeSuggestedActionRestorePremium:
|
|
return UnmarshalSuggestedActionRestorePremium(data)
|
|
|
|
case TypeSuggestedActionSubscribeToAnnualPremium:
|
|
return UnmarshalSuggestedActionSubscribeToAnnualPremium(data)
|
|
|
|
case TypeSuggestedActionGiftPremiumForChristmas:
|
|
return UnmarshalSuggestedActionGiftPremiumForChristmas(data)
|
|
|
|
case TypeSuggestedActionSetBirthdate:
|
|
return UnmarshalSuggestedActionSetBirthdate(data)
|
|
|
|
case TypeSuggestedActionSetProfilePhoto:
|
|
return UnmarshalSuggestedActionSetProfilePhoto(data)
|
|
|
|
case TypeSuggestedActionExtendPremium:
|
|
return UnmarshalSuggestedActionExtendPremium(data)
|
|
|
|
case TypeSuggestedActionExtendStarSubscriptions:
|
|
return UnmarshalSuggestedActionExtendStarSubscriptions(data)
|
|
|
|
case TypeSuggestedActionCustom:
|
|
return UnmarshalSuggestedActionCustom(data)
|
|
|
|
case TypeSuggestedActionSetLoginEmailAddress:
|
|
return UnmarshalSuggestedActionSetLoginEmailAddress(data)
|
|
|
|
case TypeSuggestedActionAddLoginPasskey:
|
|
return UnmarshalSuggestedActionAddLoginPasskey(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfSuggestedAction(dataList []json.RawMessage) ([]SuggestedAction, error) {
|
|
list := []SuggestedAction{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalSuggestedAction(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalTextParseMode(data json.RawMessage) (TextParseMode, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeTextParseModeMarkdown:
|
|
return UnmarshalTextParseModeMarkdown(data)
|
|
|
|
case TypeTextParseModeHTML:
|
|
return UnmarshalTextParseModeHTML(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfTextParseMode(dataList []json.RawMessage) ([]TextParseMode, error) {
|
|
list := []TextParseMode{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalTextParseMode(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalProxyType(data json.RawMessage) (ProxyType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeProxyTypeSocks5:
|
|
return UnmarshalProxyTypeSocks5(data)
|
|
|
|
case TypeProxyTypeHttp:
|
|
return UnmarshalProxyTypeHttp(data)
|
|
|
|
case TypeProxyTypeMtproto:
|
|
return UnmarshalProxyTypeMtproto(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfProxyType(dataList []json.RawMessage) ([]ProxyType, error) {
|
|
list := []ProxyType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalProxyType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalStatisticalGraph(data json.RawMessage) (StatisticalGraph, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeStatisticalGraphData:
|
|
return UnmarshalStatisticalGraphData(data)
|
|
|
|
case TypeStatisticalGraphAsync:
|
|
return UnmarshalStatisticalGraphAsync(data)
|
|
|
|
case TypeStatisticalGraphError:
|
|
return UnmarshalStatisticalGraphError(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfStatisticalGraph(dataList []json.RawMessage) ([]StatisticalGraph, error) {
|
|
list := []StatisticalGraph{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalStatisticalGraph(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatStatisticsObjectType(data json.RawMessage) (ChatStatisticsObjectType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatStatisticsObjectTypeMessage:
|
|
return UnmarshalChatStatisticsObjectTypeMessage(data)
|
|
|
|
case TypeChatStatisticsObjectTypeStory:
|
|
return UnmarshalChatStatisticsObjectTypeStory(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatStatisticsObjectType(dataList []json.RawMessage) ([]ChatStatisticsObjectType, error) {
|
|
list := []ChatStatisticsObjectType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatStatisticsObjectType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatStatistics(data json.RawMessage) (ChatStatistics, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatStatisticsSupergroup:
|
|
return UnmarshalChatStatisticsSupergroup(data)
|
|
|
|
case TypeChatStatisticsChannel:
|
|
return UnmarshalChatStatisticsChannel(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatStatistics(dataList []json.RawMessage) ([]ChatStatistics, error) {
|
|
list := []ChatStatistics{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatStatistics(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalRevenueWithdrawalState(data json.RawMessage) (RevenueWithdrawalState, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeRevenueWithdrawalStatePending:
|
|
return UnmarshalRevenueWithdrawalStatePending(data)
|
|
|
|
case TypeRevenueWithdrawalStateSucceeded:
|
|
return UnmarshalRevenueWithdrawalStateSucceeded(data)
|
|
|
|
case TypeRevenueWithdrawalStateFailed:
|
|
return UnmarshalRevenueWithdrawalStateFailed(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfRevenueWithdrawalState(dataList []json.RawMessage) ([]RevenueWithdrawalState, error) {
|
|
list := []RevenueWithdrawalState{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalRevenueWithdrawalState(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalChatRevenueTransactionType(data json.RawMessage) (ChatRevenueTransactionType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeChatRevenueTransactionTypeUnsupported:
|
|
return UnmarshalChatRevenueTransactionTypeUnsupported(data)
|
|
|
|
case TypeChatRevenueTransactionTypeSponsoredMessageEarnings:
|
|
return UnmarshalChatRevenueTransactionTypeSponsoredMessageEarnings(data)
|
|
|
|
case TypeChatRevenueTransactionTypeSuggestedPostEarnings:
|
|
return UnmarshalChatRevenueTransactionTypeSuggestedPostEarnings(data)
|
|
|
|
case TypeChatRevenueTransactionTypeFragmentWithdrawal:
|
|
return UnmarshalChatRevenueTransactionTypeFragmentWithdrawal(data)
|
|
|
|
case TypeChatRevenueTransactionTypeFragmentRefund:
|
|
return UnmarshalChatRevenueTransactionTypeFragmentRefund(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfChatRevenueTransactionType(dataList []json.RawMessage) ([]ChatRevenueTransactionType, error) {
|
|
list := []ChatRevenueTransactionType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalChatRevenueTransactionType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalVectorPathCommand(data json.RawMessage) (VectorPathCommand, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeVectorPathCommandLine:
|
|
return UnmarshalVectorPathCommandLine(data)
|
|
|
|
case TypeVectorPathCommandCubicBezierCurve:
|
|
return UnmarshalVectorPathCommandCubicBezierCurve(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfVectorPathCommand(dataList []json.RawMessage) ([]VectorPathCommand, error) {
|
|
list := []VectorPathCommand{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalVectorPathCommand(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalBotCommandScope(data json.RawMessage) (BotCommandScope, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeBotCommandScopeDefault:
|
|
return UnmarshalBotCommandScopeDefault(data)
|
|
|
|
case TypeBotCommandScopeAllPrivateChats:
|
|
return UnmarshalBotCommandScopeAllPrivateChats(data)
|
|
|
|
case TypeBotCommandScopeAllGroupChats:
|
|
return UnmarshalBotCommandScopeAllGroupChats(data)
|
|
|
|
case TypeBotCommandScopeAllChatAdministrators:
|
|
return UnmarshalBotCommandScopeAllChatAdministrators(data)
|
|
|
|
case TypeBotCommandScopeChat:
|
|
return UnmarshalBotCommandScopeChat(data)
|
|
|
|
case TypeBotCommandScopeChatAdministrators:
|
|
return UnmarshalBotCommandScopeChatAdministrators(data)
|
|
|
|
case TypeBotCommandScopeChatMember:
|
|
return UnmarshalBotCommandScopeChatMember(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfBotCommandScope(dataList []json.RawMessage) ([]BotCommandScope, error) {
|
|
list := []BotCommandScope{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalBotCommandScope(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalPhoneNumberCodeType(data json.RawMessage) (PhoneNumberCodeType, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypePhoneNumberCodeTypeChange:
|
|
return UnmarshalPhoneNumberCodeTypeChange(data)
|
|
|
|
case TypePhoneNumberCodeTypeVerify:
|
|
return UnmarshalPhoneNumberCodeTypeVerify(data)
|
|
|
|
case TypePhoneNumberCodeTypeConfirmOwnership:
|
|
return UnmarshalPhoneNumberCodeTypeConfirmOwnership(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfPhoneNumberCodeType(dataList []json.RawMessage) ([]PhoneNumberCodeType, error) {
|
|
list := []PhoneNumberCodeType{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalPhoneNumberCodeType(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalUpdate(data json.RawMessage) (Update, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeUpdateAuthorizationState:
|
|
return UnmarshalUpdateAuthorizationState(data)
|
|
|
|
case TypeUpdateNewMessage:
|
|
return UnmarshalUpdateNewMessage(data)
|
|
|
|
case TypeUpdateMessageSendAcknowledged:
|
|
return UnmarshalUpdateMessageSendAcknowledged(data)
|
|
|
|
case TypeUpdateMessageSendSucceeded:
|
|
return UnmarshalUpdateMessageSendSucceeded(data)
|
|
|
|
case TypeUpdateMessageSendFailed:
|
|
return UnmarshalUpdateMessageSendFailed(data)
|
|
|
|
case TypeUpdateMessageContent:
|
|
return UnmarshalUpdateMessageContent(data)
|
|
|
|
case TypeUpdateMessageEdited:
|
|
return UnmarshalUpdateMessageEdited(data)
|
|
|
|
case TypeUpdateMessageIsPinned:
|
|
return UnmarshalUpdateMessageIsPinned(data)
|
|
|
|
case TypeUpdateMessageInteractionInfo:
|
|
return UnmarshalUpdateMessageInteractionInfo(data)
|
|
|
|
case TypeUpdateMessageContentOpened:
|
|
return UnmarshalUpdateMessageContentOpened(data)
|
|
|
|
case TypeUpdateMessageMentionRead:
|
|
return UnmarshalUpdateMessageMentionRead(data)
|
|
|
|
case TypeUpdateMessageUnreadReactions:
|
|
return UnmarshalUpdateMessageUnreadReactions(data)
|
|
|
|
case TypeUpdateMessageFactCheck:
|
|
return UnmarshalUpdateMessageFactCheck(data)
|
|
|
|
case TypeUpdateMessageSuggestedPostInfo:
|
|
return UnmarshalUpdateMessageSuggestedPostInfo(data)
|
|
|
|
case TypeUpdateMessageLiveLocationViewed:
|
|
return UnmarshalUpdateMessageLiveLocationViewed(data)
|
|
|
|
case TypeUpdateVideoPublished:
|
|
return UnmarshalUpdateVideoPublished(data)
|
|
|
|
case TypeUpdateNewChat:
|
|
return UnmarshalUpdateNewChat(data)
|
|
|
|
case TypeUpdateChatTitle:
|
|
return UnmarshalUpdateChatTitle(data)
|
|
|
|
case TypeUpdateChatPhoto:
|
|
return UnmarshalUpdateChatPhoto(data)
|
|
|
|
case TypeUpdateChatAccentColors:
|
|
return UnmarshalUpdateChatAccentColors(data)
|
|
|
|
case TypeUpdateChatPermissions:
|
|
return UnmarshalUpdateChatPermissions(data)
|
|
|
|
case TypeUpdateChatLastMessage:
|
|
return UnmarshalUpdateChatLastMessage(data)
|
|
|
|
case TypeUpdateChatPosition:
|
|
return UnmarshalUpdateChatPosition(data)
|
|
|
|
case TypeUpdateChatAddedToList:
|
|
return UnmarshalUpdateChatAddedToList(data)
|
|
|
|
case TypeUpdateChatRemovedFromList:
|
|
return UnmarshalUpdateChatRemovedFromList(data)
|
|
|
|
case TypeUpdateChatReadInbox:
|
|
return UnmarshalUpdateChatReadInbox(data)
|
|
|
|
case TypeUpdateChatReadOutbox:
|
|
return UnmarshalUpdateChatReadOutbox(data)
|
|
|
|
case TypeUpdateChatActionBar:
|
|
return UnmarshalUpdateChatActionBar(data)
|
|
|
|
case TypeUpdateChatBusinessBotManageBar:
|
|
return UnmarshalUpdateChatBusinessBotManageBar(data)
|
|
|
|
case TypeUpdateChatAvailableReactions:
|
|
return UnmarshalUpdateChatAvailableReactions(data)
|
|
|
|
case TypeUpdateChatDraftMessage:
|
|
return UnmarshalUpdateChatDraftMessage(data)
|
|
|
|
case TypeUpdateChatEmojiStatus:
|
|
return UnmarshalUpdateChatEmojiStatus(data)
|
|
|
|
case TypeUpdateChatMessageSender:
|
|
return UnmarshalUpdateChatMessageSender(data)
|
|
|
|
case TypeUpdateChatMessageAutoDeleteTime:
|
|
return UnmarshalUpdateChatMessageAutoDeleteTime(data)
|
|
|
|
case TypeUpdateChatNotificationSettings:
|
|
return UnmarshalUpdateChatNotificationSettings(data)
|
|
|
|
case TypeUpdateChatPendingJoinRequests:
|
|
return UnmarshalUpdateChatPendingJoinRequests(data)
|
|
|
|
case TypeUpdateChatReplyMarkup:
|
|
return UnmarshalUpdateChatReplyMarkup(data)
|
|
|
|
case TypeUpdateChatBackground:
|
|
return UnmarshalUpdateChatBackground(data)
|
|
|
|
case TypeUpdateChatTheme:
|
|
return UnmarshalUpdateChatTheme(data)
|
|
|
|
case TypeUpdateChatUnreadMentionCount:
|
|
return UnmarshalUpdateChatUnreadMentionCount(data)
|
|
|
|
case TypeUpdateChatUnreadReactionCount:
|
|
return UnmarshalUpdateChatUnreadReactionCount(data)
|
|
|
|
case TypeUpdateChatVideoChat:
|
|
return UnmarshalUpdateChatVideoChat(data)
|
|
|
|
case TypeUpdateChatDefaultDisableNotification:
|
|
return UnmarshalUpdateChatDefaultDisableNotification(data)
|
|
|
|
case TypeUpdateChatHasProtectedContent:
|
|
return UnmarshalUpdateChatHasProtectedContent(data)
|
|
|
|
case TypeUpdateChatIsTranslatable:
|
|
return UnmarshalUpdateChatIsTranslatable(data)
|
|
|
|
case TypeUpdateChatIsMarkedAsUnread:
|
|
return UnmarshalUpdateChatIsMarkedAsUnread(data)
|
|
|
|
case TypeUpdateChatViewAsTopics:
|
|
return UnmarshalUpdateChatViewAsTopics(data)
|
|
|
|
case TypeUpdateChatBlockList:
|
|
return UnmarshalUpdateChatBlockList(data)
|
|
|
|
case TypeUpdateChatHasScheduledMessages:
|
|
return UnmarshalUpdateChatHasScheduledMessages(data)
|
|
|
|
case TypeUpdateChatFolders:
|
|
return UnmarshalUpdateChatFolders(data)
|
|
|
|
case TypeUpdateChatOnlineMemberCount:
|
|
return UnmarshalUpdateChatOnlineMemberCount(data)
|
|
|
|
case TypeUpdateSavedMessagesTopic:
|
|
return UnmarshalUpdateSavedMessagesTopic(data)
|
|
|
|
case TypeUpdateSavedMessagesTopicCount:
|
|
return UnmarshalUpdateSavedMessagesTopicCount(data)
|
|
|
|
case TypeUpdateDirectMessagesChatTopic:
|
|
return UnmarshalUpdateDirectMessagesChatTopic(data)
|
|
|
|
case TypeUpdateTopicMessageCount:
|
|
return UnmarshalUpdateTopicMessageCount(data)
|
|
|
|
case TypeUpdateQuickReplyShortcut:
|
|
return UnmarshalUpdateQuickReplyShortcut(data)
|
|
|
|
case TypeUpdateQuickReplyShortcutDeleted:
|
|
return UnmarshalUpdateQuickReplyShortcutDeleted(data)
|
|
|
|
case TypeUpdateQuickReplyShortcuts:
|
|
return UnmarshalUpdateQuickReplyShortcuts(data)
|
|
|
|
case TypeUpdateQuickReplyShortcutMessages:
|
|
return UnmarshalUpdateQuickReplyShortcutMessages(data)
|
|
|
|
case TypeUpdateForumTopicInfo:
|
|
return UnmarshalUpdateForumTopicInfo(data)
|
|
|
|
case TypeUpdateForumTopic:
|
|
return UnmarshalUpdateForumTopic(data)
|
|
|
|
case TypeUpdateScopeNotificationSettings:
|
|
return UnmarshalUpdateScopeNotificationSettings(data)
|
|
|
|
case TypeUpdateReactionNotificationSettings:
|
|
return UnmarshalUpdateReactionNotificationSettings(data)
|
|
|
|
case TypeUpdateNotification:
|
|
return UnmarshalUpdateNotification(data)
|
|
|
|
case TypeUpdateNotificationGroup:
|
|
return UnmarshalUpdateNotificationGroup(data)
|
|
|
|
case TypeUpdateActiveNotifications:
|
|
return UnmarshalUpdateActiveNotifications(data)
|
|
|
|
case TypeUpdateHavePendingNotifications:
|
|
return UnmarshalUpdateHavePendingNotifications(data)
|
|
|
|
case TypeUpdateDeleteMessages:
|
|
return UnmarshalUpdateDeleteMessages(data)
|
|
|
|
case TypeUpdateChatAction:
|
|
return UnmarshalUpdateChatAction(data)
|
|
|
|
case TypeUpdatePendingTextMessage:
|
|
return UnmarshalUpdatePendingTextMessage(data)
|
|
|
|
case TypeUpdateUserStatus:
|
|
return UnmarshalUpdateUserStatus(data)
|
|
|
|
case TypeUpdateUser:
|
|
return UnmarshalUpdateUser(data)
|
|
|
|
case TypeUpdateBasicGroup:
|
|
return UnmarshalUpdateBasicGroup(data)
|
|
|
|
case TypeUpdateSupergroup:
|
|
return UnmarshalUpdateSupergroup(data)
|
|
|
|
case TypeUpdateSecretChat:
|
|
return UnmarshalUpdateSecretChat(data)
|
|
|
|
case TypeUpdateUserFullInfo:
|
|
return UnmarshalUpdateUserFullInfo(data)
|
|
|
|
case TypeUpdateBasicGroupFullInfo:
|
|
return UnmarshalUpdateBasicGroupFullInfo(data)
|
|
|
|
case TypeUpdateSupergroupFullInfo:
|
|
return UnmarshalUpdateSupergroupFullInfo(data)
|
|
|
|
case TypeUpdateServiceNotification:
|
|
return UnmarshalUpdateServiceNotification(data)
|
|
|
|
case TypeUpdateFile:
|
|
return UnmarshalUpdateFile(data)
|
|
|
|
case TypeUpdateFileGenerationStart:
|
|
return UnmarshalUpdateFileGenerationStart(data)
|
|
|
|
case TypeUpdateFileGenerationStop:
|
|
return UnmarshalUpdateFileGenerationStop(data)
|
|
|
|
case TypeUpdateFileDownloads:
|
|
return UnmarshalUpdateFileDownloads(data)
|
|
|
|
case TypeUpdateFileAddedToDownloads:
|
|
return UnmarshalUpdateFileAddedToDownloads(data)
|
|
|
|
case TypeUpdateFileDownload:
|
|
return UnmarshalUpdateFileDownload(data)
|
|
|
|
case TypeUpdateFileRemovedFromDownloads:
|
|
return UnmarshalUpdateFileRemovedFromDownloads(data)
|
|
|
|
case TypeUpdateApplicationVerificationRequired:
|
|
return UnmarshalUpdateApplicationVerificationRequired(data)
|
|
|
|
case TypeUpdateApplicationRecaptchaVerificationRequired:
|
|
return UnmarshalUpdateApplicationRecaptchaVerificationRequired(data)
|
|
|
|
case TypeUpdateCall:
|
|
return UnmarshalUpdateCall(data)
|
|
|
|
case TypeUpdateGroupCall:
|
|
return UnmarshalUpdateGroupCall(data)
|
|
|
|
case TypeUpdateGroupCallParticipant:
|
|
return UnmarshalUpdateGroupCallParticipant(data)
|
|
|
|
case TypeUpdateGroupCallParticipants:
|
|
return UnmarshalUpdateGroupCallParticipants(data)
|
|
|
|
case TypeUpdateGroupCallVerificationState:
|
|
return UnmarshalUpdateGroupCallVerificationState(data)
|
|
|
|
case TypeUpdateNewGroupCallMessage:
|
|
return UnmarshalUpdateNewGroupCallMessage(data)
|
|
|
|
case TypeUpdateNewGroupCallPaidReaction:
|
|
return UnmarshalUpdateNewGroupCallPaidReaction(data)
|
|
|
|
case TypeUpdateGroupCallMessageSendFailed:
|
|
return UnmarshalUpdateGroupCallMessageSendFailed(data)
|
|
|
|
case TypeUpdateGroupCallMessagesDeleted:
|
|
return UnmarshalUpdateGroupCallMessagesDeleted(data)
|
|
|
|
case TypeUpdateLiveStoryTopDonors:
|
|
return UnmarshalUpdateLiveStoryTopDonors(data)
|
|
|
|
case TypeUpdateNewCallSignalingData:
|
|
return UnmarshalUpdateNewCallSignalingData(data)
|
|
|
|
case TypeUpdateGiftAuctionState:
|
|
return UnmarshalUpdateGiftAuctionState(data)
|
|
|
|
case TypeUpdateActiveGiftAuctions:
|
|
return UnmarshalUpdateActiveGiftAuctions(data)
|
|
|
|
case TypeUpdateUserPrivacySettingRules:
|
|
return UnmarshalUpdateUserPrivacySettingRules(data)
|
|
|
|
case TypeUpdateUnreadMessageCount:
|
|
return UnmarshalUpdateUnreadMessageCount(data)
|
|
|
|
case TypeUpdateUnreadChatCount:
|
|
return UnmarshalUpdateUnreadChatCount(data)
|
|
|
|
case TypeUpdateStory:
|
|
return UnmarshalUpdateStory(data)
|
|
|
|
case TypeUpdateStoryDeleted:
|
|
return UnmarshalUpdateStoryDeleted(data)
|
|
|
|
case TypeUpdateStoryPostSucceeded:
|
|
return UnmarshalUpdateStoryPostSucceeded(data)
|
|
|
|
case TypeUpdateStoryPostFailed:
|
|
return UnmarshalUpdateStoryPostFailed(data)
|
|
|
|
case TypeUpdateChatActiveStories:
|
|
return UnmarshalUpdateChatActiveStories(data)
|
|
|
|
case TypeUpdateStoryListChatCount:
|
|
return UnmarshalUpdateStoryListChatCount(data)
|
|
|
|
case TypeUpdateStoryStealthMode:
|
|
return UnmarshalUpdateStoryStealthMode(data)
|
|
|
|
case TypeUpdateTrustedMiniAppBots:
|
|
return UnmarshalUpdateTrustedMiniAppBots(data)
|
|
|
|
case TypeUpdateOption:
|
|
return UnmarshalUpdateOption(data)
|
|
|
|
case TypeUpdateStickerSet:
|
|
return UnmarshalUpdateStickerSet(data)
|
|
|
|
case TypeUpdateInstalledStickerSets:
|
|
return UnmarshalUpdateInstalledStickerSets(data)
|
|
|
|
case TypeUpdateTrendingStickerSets:
|
|
return UnmarshalUpdateTrendingStickerSets(data)
|
|
|
|
case TypeUpdateRecentStickers:
|
|
return UnmarshalUpdateRecentStickers(data)
|
|
|
|
case TypeUpdateFavoriteStickers:
|
|
return UnmarshalUpdateFavoriteStickers(data)
|
|
|
|
case TypeUpdateSavedAnimations:
|
|
return UnmarshalUpdateSavedAnimations(data)
|
|
|
|
case TypeUpdateSavedNotificationSounds:
|
|
return UnmarshalUpdateSavedNotificationSounds(data)
|
|
|
|
case TypeUpdateDefaultBackground:
|
|
return UnmarshalUpdateDefaultBackground(data)
|
|
|
|
case TypeUpdateEmojiChatThemes:
|
|
return UnmarshalUpdateEmojiChatThemes(data)
|
|
|
|
case TypeUpdateAccentColors:
|
|
return UnmarshalUpdateAccentColors(data)
|
|
|
|
case TypeUpdateProfileAccentColors:
|
|
return UnmarshalUpdateProfileAccentColors(data)
|
|
|
|
case TypeUpdateLanguagePackStrings:
|
|
return UnmarshalUpdateLanguagePackStrings(data)
|
|
|
|
case TypeUpdateConnectionState:
|
|
return UnmarshalUpdateConnectionState(data)
|
|
|
|
case TypeUpdateFreezeState:
|
|
return UnmarshalUpdateFreezeState(data)
|
|
|
|
case TypeUpdateAgeVerificationParameters:
|
|
return UnmarshalUpdateAgeVerificationParameters(data)
|
|
|
|
case TypeUpdateTermsOfService:
|
|
return UnmarshalUpdateTermsOfService(data)
|
|
|
|
case TypeUpdateUnconfirmedSession:
|
|
return UnmarshalUpdateUnconfirmedSession(data)
|
|
|
|
case TypeUpdateAttachmentMenuBots:
|
|
return UnmarshalUpdateAttachmentMenuBots(data)
|
|
|
|
case TypeUpdateWebAppMessageSent:
|
|
return UnmarshalUpdateWebAppMessageSent(data)
|
|
|
|
case TypeUpdateActiveEmojiReactions:
|
|
return UnmarshalUpdateActiveEmojiReactions(data)
|
|
|
|
case TypeUpdateAvailableMessageEffects:
|
|
return UnmarshalUpdateAvailableMessageEffects(data)
|
|
|
|
case TypeUpdateDefaultReactionType:
|
|
return UnmarshalUpdateDefaultReactionType(data)
|
|
|
|
case TypeUpdateDefaultPaidReactionType:
|
|
return UnmarshalUpdateDefaultPaidReactionType(data)
|
|
|
|
case TypeUpdateSavedMessagesTags:
|
|
return UnmarshalUpdateSavedMessagesTags(data)
|
|
|
|
case TypeUpdateActiveLiveLocationMessages:
|
|
return UnmarshalUpdateActiveLiveLocationMessages(data)
|
|
|
|
case TypeUpdateOwnedStarCount:
|
|
return UnmarshalUpdateOwnedStarCount(data)
|
|
|
|
case TypeUpdateOwnedTonCount:
|
|
return UnmarshalUpdateOwnedTonCount(data)
|
|
|
|
case TypeUpdateChatRevenueAmount:
|
|
return UnmarshalUpdateChatRevenueAmount(data)
|
|
|
|
case TypeUpdateStarRevenueStatus:
|
|
return UnmarshalUpdateStarRevenueStatus(data)
|
|
|
|
case TypeUpdateTonRevenueStatus:
|
|
return UnmarshalUpdateTonRevenueStatus(data)
|
|
|
|
case TypeUpdateSpeechRecognitionTrial:
|
|
return UnmarshalUpdateSpeechRecognitionTrial(data)
|
|
|
|
case TypeUpdateGroupCallMessageLevels:
|
|
return UnmarshalUpdateGroupCallMessageLevels(data)
|
|
|
|
case TypeUpdateDiceEmojis:
|
|
return UnmarshalUpdateDiceEmojis(data)
|
|
|
|
case TypeUpdateStakeDiceState:
|
|
return UnmarshalUpdateStakeDiceState(data)
|
|
|
|
case TypeUpdateAnimatedEmojiMessageClicked:
|
|
return UnmarshalUpdateAnimatedEmojiMessageClicked(data)
|
|
|
|
case TypeUpdateAnimationSearchParameters:
|
|
return UnmarshalUpdateAnimationSearchParameters(data)
|
|
|
|
case TypeUpdateSuggestedActions:
|
|
return UnmarshalUpdateSuggestedActions(data)
|
|
|
|
case TypeUpdateSpeedLimitNotification:
|
|
return UnmarshalUpdateSpeedLimitNotification(data)
|
|
|
|
case TypeUpdateContactCloseBirthdays:
|
|
return UnmarshalUpdateContactCloseBirthdays(data)
|
|
|
|
case TypeUpdateAutosaveSettings:
|
|
return UnmarshalUpdateAutosaveSettings(data)
|
|
|
|
case TypeUpdateBusinessConnection:
|
|
return UnmarshalUpdateBusinessConnection(data)
|
|
|
|
case TypeUpdateNewBusinessMessage:
|
|
return UnmarshalUpdateNewBusinessMessage(data)
|
|
|
|
case TypeUpdateBusinessMessageEdited:
|
|
return UnmarshalUpdateBusinessMessageEdited(data)
|
|
|
|
case TypeUpdateBusinessMessagesDeleted:
|
|
return UnmarshalUpdateBusinessMessagesDeleted(data)
|
|
|
|
case TypeUpdateNewInlineQuery:
|
|
return UnmarshalUpdateNewInlineQuery(data)
|
|
|
|
case TypeUpdateNewChosenInlineResult:
|
|
return UnmarshalUpdateNewChosenInlineResult(data)
|
|
|
|
case TypeUpdateNewCallbackQuery:
|
|
return UnmarshalUpdateNewCallbackQuery(data)
|
|
|
|
case TypeUpdateNewInlineCallbackQuery:
|
|
return UnmarshalUpdateNewInlineCallbackQuery(data)
|
|
|
|
case TypeUpdateNewBusinessCallbackQuery:
|
|
return UnmarshalUpdateNewBusinessCallbackQuery(data)
|
|
|
|
case TypeUpdateNewShippingQuery:
|
|
return UnmarshalUpdateNewShippingQuery(data)
|
|
|
|
case TypeUpdateNewPreCheckoutQuery:
|
|
return UnmarshalUpdateNewPreCheckoutQuery(data)
|
|
|
|
case TypeUpdateNewCustomEvent:
|
|
return UnmarshalUpdateNewCustomEvent(data)
|
|
|
|
case TypeUpdateNewCustomQuery:
|
|
return UnmarshalUpdateNewCustomQuery(data)
|
|
|
|
case TypeUpdatePoll:
|
|
return UnmarshalUpdatePoll(data)
|
|
|
|
case TypeUpdatePollAnswer:
|
|
return UnmarshalUpdatePollAnswer(data)
|
|
|
|
case TypeUpdateChatMember:
|
|
return UnmarshalUpdateChatMember(data)
|
|
|
|
case TypeUpdateNewChatJoinRequest:
|
|
return UnmarshalUpdateNewChatJoinRequest(data)
|
|
|
|
case TypeUpdateChatBoost:
|
|
return UnmarshalUpdateChatBoost(data)
|
|
|
|
case TypeUpdateMessageReaction:
|
|
return UnmarshalUpdateMessageReaction(data)
|
|
|
|
case TypeUpdateMessageReactions:
|
|
return UnmarshalUpdateMessageReactions(data)
|
|
|
|
case TypeUpdatePaidMediaPurchased:
|
|
return UnmarshalUpdatePaidMediaPurchased(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfUpdate(dataList []json.RawMessage) ([]Update, error) {
|
|
list := []Update{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalUpdate(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalLogStream(data json.RawMessage) (LogStream, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeLogStreamDefault:
|
|
return UnmarshalLogStreamDefault(data)
|
|
|
|
case TypeLogStreamFile:
|
|
return UnmarshalLogStreamFile(data)
|
|
|
|
case TypeLogStreamEmpty:
|
|
return UnmarshalLogStreamEmpty(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|
|
|
|
func UnmarshalListOfLogStream(dataList []json.RawMessage) ([]LogStream, error) {
|
|
list := []LogStream{}
|
|
|
|
for _, data := range dataList {
|
|
entity, err := UnmarshalLogStream(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
list = append(list, entity)
|
|
}
|
|
|
|
return list, nil
|
|
}
|
|
|
|
func UnmarshalError(data json.RawMessage) (*Error, error) {
|
|
var resp Error
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalOk(data json.RawMessage) (*Ok, error) {
|
|
var resp Ok
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthenticationCodeTypeTelegramMessage(data json.RawMessage) (*AuthenticationCodeTypeTelegramMessage, error) {
|
|
var resp AuthenticationCodeTypeTelegramMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthenticationCodeTypeSms(data json.RawMessage) (*AuthenticationCodeTypeSms, error) {
|
|
var resp AuthenticationCodeTypeSms
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthenticationCodeTypeSmsWord(data json.RawMessage) (*AuthenticationCodeTypeSmsWord, error) {
|
|
var resp AuthenticationCodeTypeSmsWord
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthenticationCodeTypeSmsPhrase(data json.RawMessage) (*AuthenticationCodeTypeSmsPhrase, error) {
|
|
var resp AuthenticationCodeTypeSmsPhrase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthenticationCodeTypeCall(data json.RawMessage) (*AuthenticationCodeTypeCall, error) {
|
|
var resp AuthenticationCodeTypeCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthenticationCodeTypeFlashCall(data json.RawMessage) (*AuthenticationCodeTypeFlashCall, error) {
|
|
var resp AuthenticationCodeTypeFlashCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthenticationCodeTypeMissedCall(data json.RawMessage) (*AuthenticationCodeTypeMissedCall, error) {
|
|
var resp AuthenticationCodeTypeMissedCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthenticationCodeTypeFragment(data json.RawMessage) (*AuthenticationCodeTypeFragment, error) {
|
|
var resp AuthenticationCodeTypeFragment
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthenticationCodeTypeFirebaseAndroid(data json.RawMessage) (*AuthenticationCodeTypeFirebaseAndroid, error) {
|
|
var resp AuthenticationCodeTypeFirebaseAndroid
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthenticationCodeTypeFirebaseIos(data json.RawMessage) (*AuthenticationCodeTypeFirebaseIos, error) {
|
|
var resp AuthenticationCodeTypeFirebaseIos
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthenticationCodeInfo(data json.RawMessage) (*AuthenticationCodeInfo, error) {
|
|
var resp AuthenticationCodeInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmailAddressAuthenticationCodeInfo(data json.RawMessage) (*EmailAddressAuthenticationCodeInfo, error) {
|
|
var resp EmailAddressAuthenticationCodeInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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 UnmarshalEmailAddressResetStateAvailable(data json.RawMessage) (*EmailAddressResetStateAvailable, error) {
|
|
var resp EmailAddressResetStateAvailable
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmailAddressResetStatePending(data json.RawMessage) (*EmailAddressResetStatePending, error) {
|
|
var resp EmailAddressResetStatePending
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntity(data json.RawMessage) (*TextEntity, error) {
|
|
var resp TextEntity
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntities(data json.RawMessage) (*TextEntities, error) {
|
|
var resp TextEntities
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFormattedText(data json.RawMessage) (*FormattedText, error) {
|
|
var resp FormattedText
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTermsOfService(data json.RawMessage) (*TermsOfService, error) {
|
|
var resp TermsOfService
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPasskey(data json.RawMessage) (*Passkey, error) {
|
|
var resp Passkey
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPasskeys(data json.RawMessage) (*Passkeys, error) {
|
|
var resp Passkeys
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthorizationStateWaitTdlibParameters(data json.RawMessage) (*AuthorizationStateWaitTdlibParameters, error) {
|
|
var resp AuthorizationStateWaitTdlibParameters
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthorizationStateWaitPhoneNumber(data json.RawMessage) (*AuthorizationStateWaitPhoneNumber, error) {
|
|
var resp AuthorizationStateWaitPhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthorizationStateWaitPremiumPurchase(data json.RawMessage) (*AuthorizationStateWaitPremiumPurchase, error) {
|
|
var resp AuthorizationStateWaitPremiumPurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
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)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthorizationStateWaitCode(data json.RawMessage) (*AuthorizationStateWaitCode, error) {
|
|
var resp AuthorizationStateWaitCode
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthorizationStateWaitOtherDeviceConfirmation(data json.RawMessage) (*AuthorizationStateWaitOtherDeviceConfirmation, error) {
|
|
var resp AuthorizationStateWaitOtherDeviceConfirmation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthorizationStateWaitRegistration(data json.RawMessage) (*AuthorizationStateWaitRegistration, error) {
|
|
var resp AuthorizationStateWaitRegistration
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthorizationStateWaitPassword(data json.RawMessage) (*AuthorizationStateWaitPassword, error) {
|
|
var resp AuthorizationStateWaitPassword
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthorizationStateReady(data json.RawMessage) (*AuthorizationStateReady, error) {
|
|
var resp AuthorizationStateReady
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthorizationStateLoggingOut(data json.RawMessage) (*AuthorizationStateLoggingOut, error) {
|
|
var resp AuthorizationStateLoggingOut
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthorizationStateClosing(data json.RawMessage) (*AuthorizationStateClosing, error) {
|
|
var resp AuthorizationStateClosing
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuthorizationStateClosed(data json.RawMessage) (*AuthorizationStateClosed, error) {
|
|
var resp AuthorizationStateClosed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFirebaseDeviceVerificationParametersSafetyNet(data json.RawMessage) (*FirebaseDeviceVerificationParametersSafetyNet, error) {
|
|
var resp FirebaseDeviceVerificationParametersSafetyNet
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFirebaseDeviceVerificationParametersPlayIntegrity(data json.RawMessage) (*FirebaseDeviceVerificationParametersPlayIntegrity, error) {
|
|
var resp FirebaseDeviceVerificationParametersPlayIntegrity
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPasswordState(data json.RawMessage) (*PasswordState, error) {
|
|
var resp PasswordState
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRecoveryEmailAddress(data json.RawMessage) (*RecoveryEmailAddress, error) {
|
|
var resp RecoveryEmailAddress
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTemporaryPasswordState(data json.RawMessage) (*TemporaryPasswordState, error) {
|
|
var resp TemporaryPasswordState
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLocalFile(data json.RawMessage) (*LocalFile, error) {
|
|
var resp LocalFile
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRemoteFile(data json.RawMessage) (*RemoteFile, error) {
|
|
var resp RemoteFile
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFile(data json.RawMessage) (*File, error) {
|
|
var resp File
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputFileId(data json.RawMessage) (*InputFileId, error) {
|
|
var resp InputFileId
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputFileRemote(data json.RawMessage) (*InputFileRemote, error) {
|
|
var resp InputFileRemote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputFileLocal(data json.RawMessage) (*InputFileLocal, error) {
|
|
var resp InputFileLocal
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputFileGenerated(data json.RawMessage) (*InputFileGenerated, error) {
|
|
var resp InputFileGenerated
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPhotoSize(data json.RawMessage) (*PhotoSize, error) {
|
|
var resp PhotoSize
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMinithumbnail(data json.RawMessage) (*Minithumbnail, error) {
|
|
var resp Minithumbnail
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalThumbnailFormatJpeg(data json.RawMessage) (*ThumbnailFormatJpeg, error) {
|
|
var resp ThumbnailFormatJpeg
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalThumbnailFormatGif(data json.RawMessage) (*ThumbnailFormatGif, error) {
|
|
var resp ThumbnailFormatGif
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalThumbnailFormatMpeg4(data json.RawMessage) (*ThumbnailFormatMpeg4, error) {
|
|
var resp ThumbnailFormatMpeg4
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalThumbnailFormatPng(data json.RawMessage) (*ThumbnailFormatPng, error) {
|
|
var resp ThumbnailFormatPng
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalThumbnailFormatTgs(data json.RawMessage) (*ThumbnailFormatTgs, error) {
|
|
var resp ThumbnailFormatTgs
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalThumbnailFormatWebm(data json.RawMessage) (*ThumbnailFormatWebm, error) {
|
|
var resp ThumbnailFormatWebm
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalThumbnailFormatWebp(data json.RawMessage) (*ThumbnailFormatWebp, error) {
|
|
var resp ThumbnailFormatWebp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalThumbnail(data json.RawMessage) (*Thumbnail, error) {
|
|
var resp Thumbnail
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMaskPointForehead(data json.RawMessage) (*MaskPointForehead, error) {
|
|
var resp MaskPointForehead
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMaskPointEyes(data json.RawMessage) (*MaskPointEyes, error) {
|
|
var resp MaskPointEyes
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMaskPointMouth(data json.RawMessage) (*MaskPointMouth, error) {
|
|
var resp MaskPointMouth
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMaskPointChin(data json.RawMessage) (*MaskPointChin, error) {
|
|
var resp MaskPointChin
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMaskPosition(data json.RawMessage) (*MaskPosition, error) {
|
|
var resp MaskPosition
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickerFormatWebp(data json.RawMessage) (*StickerFormatWebp, error) {
|
|
var resp StickerFormatWebp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickerFormatTgs(data json.RawMessage) (*StickerFormatTgs, error) {
|
|
var resp StickerFormatTgs
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickerFormatWebm(data json.RawMessage) (*StickerFormatWebm, error) {
|
|
var resp StickerFormatWebm
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickerTypeRegular(data json.RawMessage) (*StickerTypeRegular, error) {
|
|
var resp StickerTypeRegular
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickerTypeMask(data json.RawMessage) (*StickerTypeMask, error) {
|
|
var resp StickerTypeMask
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickerTypeCustomEmoji(data json.RawMessage) (*StickerTypeCustomEmoji, error) {
|
|
var resp StickerTypeCustomEmoji
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickerFullTypeRegular(data json.RawMessage) (*StickerFullTypeRegular, error) {
|
|
var resp StickerFullTypeRegular
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickerFullTypeMask(data json.RawMessage) (*StickerFullTypeMask, error) {
|
|
var resp StickerFullTypeMask
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickerFullTypeCustomEmoji(data json.RawMessage) (*StickerFullTypeCustomEmoji, error) {
|
|
var resp StickerFullTypeCustomEmoji
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalClosedVectorPath(data json.RawMessage) (*ClosedVectorPath, error) {
|
|
var resp ClosedVectorPath
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalOutline(data json.RawMessage) (*Outline, error) {
|
|
var resp Outline
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPollOption(data json.RawMessage) (*PollOption, error) {
|
|
var resp PollOption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPollTypeRegular(data json.RawMessage) (*PollTypeRegular, error) {
|
|
var resp PollTypeRegular
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPollTypeQuiz(data json.RawMessage) (*PollTypeQuiz, error) {
|
|
var resp PollTypeQuiz
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChecklistTask(data json.RawMessage) (*ChecklistTask, error) {
|
|
var resp ChecklistTask
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputChecklistTask(data json.RawMessage) (*InputChecklistTask, error) {
|
|
var resp InputChecklistTask
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChecklist(data json.RawMessage) (*Checklist, error) {
|
|
var resp Checklist
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputChecklist(data json.RawMessage) (*InputChecklist, error) {
|
|
var resp InputChecklist
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAnimation(data json.RawMessage) (*Animation, error) {
|
|
var resp Animation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAudio(data json.RawMessage) (*Audio, error) {
|
|
var resp Audio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAudios(data json.RawMessage) (*Audios, error) {
|
|
var resp Audios
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDocument(data json.RawMessage) (*Document, error) {
|
|
var resp Document
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPhoto(data json.RawMessage) (*Photo, error) {
|
|
var resp Photo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSticker(data json.RawMessage) (*Sticker, error) {
|
|
var resp Sticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalVideo(data json.RawMessage) (*Video, error) {
|
|
var resp Video
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalVideoNote(data json.RawMessage) (*VideoNote, error) {
|
|
var resp VideoNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalVoiceNote(data json.RawMessage) (*VoiceNote, error) {
|
|
var resp VoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAnimatedEmoji(data json.RawMessage) (*AnimatedEmoji, error) {
|
|
var resp AnimatedEmoji
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalContact(data json.RawMessage) (*Contact, error) {
|
|
var resp Contact
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLocation(data json.RawMessage) (*Location, error) {
|
|
var resp Location
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalVenue(data json.RawMessage) (*Venue, error) {
|
|
var resp Venue
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGame(data json.RawMessage) (*Game, error) {
|
|
var resp Game
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStakeDiceState(data json.RawMessage) (*StakeDiceState, error) {
|
|
var resp StakeDiceState
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalWebApp(data json.RawMessage) (*WebApp, error) {
|
|
var resp WebApp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPoll(data json.RawMessage) (*Poll, error) {
|
|
var resp Poll
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAlternativeVideo(data json.RawMessage) (*AlternativeVideo, error) {
|
|
var resp AlternativeVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalVideoStoryboard(data json.RawMessage) (*VideoStoryboard, error) {
|
|
var resp VideoStoryboard
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBackground(data json.RawMessage) (*Background, error) {
|
|
var resp Background
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBackgrounds(data json.RawMessage) (*Backgrounds, error) {
|
|
var resp Backgrounds
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatBackground(data json.RawMessage) (*ChatBackground, error) {
|
|
var resp ChatBackground
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProfilePhoto(data json.RawMessage) (*ProfilePhoto, error) {
|
|
var resp ProfilePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatPhotoInfo(data json.RawMessage) (*ChatPhotoInfo, error) {
|
|
var resp ChatPhotoInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProfileTabPosts(data json.RawMessage) (*ProfileTabPosts, error) {
|
|
var resp ProfileTabPosts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProfileTabGifts(data json.RawMessage) (*ProfileTabGifts, error) {
|
|
var resp ProfileTabGifts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProfileTabMedia(data json.RawMessage) (*ProfileTabMedia, error) {
|
|
var resp ProfileTabMedia
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProfileTabFiles(data json.RawMessage) (*ProfileTabFiles, error) {
|
|
var resp ProfileTabFiles
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProfileTabLinks(data json.RawMessage) (*ProfileTabLinks, error) {
|
|
var resp ProfileTabLinks
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProfileTabMusic(data json.RawMessage) (*ProfileTabMusic, error) {
|
|
var resp ProfileTabMusic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProfileTabVoice(data json.RawMessage) (*ProfileTabVoice, error) {
|
|
var resp ProfileTabVoice
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProfileTabGifs(data json.RawMessage) (*ProfileTabGifs, error) {
|
|
var resp ProfileTabGifs
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserTypeRegular(data json.RawMessage) (*UserTypeRegular, error) {
|
|
var resp UserTypeRegular
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserTypeDeleted(data json.RawMessage) (*UserTypeDeleted, error) {
|
|
var resp UserTypeDeleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserTypeBot(data json.RawMessage) (*UserTypeBot, error) {
|
|
var resp UserTypeBot
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserTypeUnknown(data json.RawMessage) (*UserTypeUnknown, error) {
|
|
var resp UserTypeUnknown
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotCommand(data json.RawMessage) (*BotCommand, error) {
|
|
var resp BotCommand
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotCommands(data json.RawMessage) (*BotCommands, error) {
|
|
var resp BotCommands
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotMenuButton(data json.RawMessage) (*BotMenuButton, error) {
|
|
var resp BotMenuButton
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBirthdate(data json.RawMessage) (*Birthdate, error) {
|
|
var resp Birthdate
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCloseBirthdayUser(data json.RawMessage) (*CloseBirthdayUser, error) {
|
|
var resp CloseBirthdayUser
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessAwayMessageScheduleAlways(data json.RawMessage) (*BusinessAwayMessageScheduleAlways, error) {
|
|
var resp BusinessAwayMessageScheduleAlways
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessAwayMessageScheduleOutsideOfOpeningHours(data json.RawMessage) (*BusinessAwayMessageScheduleOutsideOfOpeningHours, error) {
|
|
var resp BusinessAwayMessageScheduleOutsideOfOpeningHours
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessAwayMessageScheduleCustom(data json.RawMessage) (*BusinessAwayMessageScheduleCustom, error) {
|
|
var resp BusinessAwayMessageScheduleCustom
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessLocation(data json.RawMessage) (*BusinessLocation, error) {
|
|
var resp BusinessLocation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessRecipients(data json.RawMessage) (*BusinessRecipients, error) {
|
|
var resp BusinessRecipients
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessAwayMessageSettings(data json.RawMessage) (*BusinessAwayMessageSettings, error) {
|
|
var resp BusinessAwayMessageSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessGreetingMessageSettings(data json.RawMessage) (*BusinessGreetingMessageSettings, error) {
|
|
var resp BusinessGreetingMessageSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessBotRights(data json.RawMessage) (*BusinessBotRights, error) {
|
|
var resp BusinessBotRights
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessConnectedBot(data json.RawMessage) (*BusinessConnectedBot, error) {
|
|
var resp BusinessConnectedBot
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessStartPage(data json.RawMessage) (*BusinessStartPage, error) {
|
|
var resp BusinessStartPage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputBusinessStartPage(data json.RawMessage) (*InputBusinessStartPage, error) {
|
|
var resp InputBusinessStartPage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessOpeningHoursInterval(data json.RawMessage) (*BusinessOpeningHoursInterval, error) {
|
|
var resp BusinessOpeningHoursInterval
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessOpeningHours(data json.RawMessage) (*BusinessOpeningHours, error) {
|
|
var resp BusinessOpeningHours
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessInfo(data json.RawMessage) (*BusinessInfo, error) {
|
|
var resp BusinessInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessChatLink(data json.RawMessage) (*BusinessChatLink, error) {
|
|
var resp BusinessChatLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessChatLinks(data json.RawMessage) (*BusinessChatLinks, error) {
|
|
var resp BusinessChatLinks
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputBusinessChatLink(data json.RawMessage) (*InputBusinessChatLink, error) {
|
|
var resp InputBusinessChatLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessChatLinkInfo(data json.RawMessage) (*BusinessChatLinkInfo, error) {
|
|
var resp BusinessChatLinkInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatPhotoStickerTypeRegularOrMask(data json.RawMessage) (*ChatPhotoStickerTypeRegularOrMask, error) {
|
|
var resp ChatPhotoStickerTypeRegularOrMask
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatPhotoStickerTypeCustomEmoji(data json.RawMessage) (*ChatPhotoStickerTypeCustomEmoji, error) {
|
|
var resp ChatPhotoStickerTypeCustomEmoji
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatPhotoSticker(data json.RawMessage) (*ChatPhotoSticker, error) {
|
|
var resp ChatPhotoSticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAnimatedChatPhoto(data json.RawMessage) (*AnimatedChatPhoto, error) {
|
|
var resp AnimatedChatPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatPhoto(data json.RawMessage) (*ChatPhoto, error) {
|
|
var resp ChatPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatPhotos(data json.RawMessage) (*ChatPhotos, error) {
|
|
var resp ChatPhotos
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputChatPhotoPrevious(data json.RawMessage) (*InputChatPhotoPrevious, error) {
|
|
var resp InputChatPhotoPrevious
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputChatPhotoStatic(data json.RawMessage) (*InputChatPhotoStatic, error) {
|
|
var resp InputChatPhotoStatic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputChatPhotoAnimation(data json.RawMessage) (*InputChatPhotoAnimation, error) {
|
|
var resp InputChatPhotoAnimation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputChatPhotoSticker(data json.RawMessage) (*InputChatPhotoSticker, error) {
|
|
var resp InputChatPhotoSticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatPermissions(data json.RawMessage) (*ChatPermissions, error) {
|
|
var resp ChatPermissions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatAdministratorRights(data json.RawMessage) (*ChatAdministratorRights, error) {
|
|
var resp ChatAdministratorRights
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftResalePriceStar(data json.RawMessage) (*GiftResalePriceStar, error) {
|
|
var resp GiftResalePriceStar
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftResalePriceTon(data json.RawMessage) (*GiftResalePriceTon, error) {
|
|
var resp GiftResalePriceTon
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftPurchaseOfferStatePending(data json.RawMessage) (*GiftPurchaseOfferStatePending, error) {
|
|
var resp GiftPurchaseOfferStatePending
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftPurchaseOfferStateAccepted(data json.RawMessage) (*GiftPurchaseOfferStateAccepted, error) {
|
|
var resp GiftPurchaseOfferStateAccepted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftPurchaseOfferStateRejected(data json.RawMessage) (*GiftPurchaseOfferStateRejected, error) {
|
|
var resp GiftPurchaseOfferStateRejected
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedPostPriceStar(data json.RawMessage) (*SuggestedPostPriceStar, error) {
|
|
var resp SuggestedPostPriceStar
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedPostPriceTon(data json.RawMessage) (*SuggestedPostPriceTon, error) {
|
|
var resp SuggestedPostPriceTon
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedPostStatePending(data json.RawMessage) (*SuggestedPostStatePending, error) {
|
|
var resp SuggestedPostStatePending
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedPostStateApproved(data json.RawMessage) (*SuggestedPostStateApproved, error) {
|
|
var resp SuggestedPostStateApproved
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedPostStateDeclined(data json.RawMessage) (*SuggestedPostStateDeclined, error) {
|
|
var resp SuggestedPostStateDeclined
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedPostInfo(data json.RawMessage) (*SuggestedPostInfo, error) {
|
|
var resp SuggestedPostInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputSuggestedPostInfo(data json.RawMessage) (*InputSuggestedPostInfo, error) {
|
|
var resp InputSuggestedPostInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedPostRefundReasonPostDeleted(data json.RawMessage) (*SuggestedPostRefundReasonPostDeleted, error) {
|
|
var resp SuggestedPostRefundReasonPostDeleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedPostRefundReasonPaymentRefunded(data json.RawMessage) (*SuggestedPostRefundReasonPaymentRefunded, error) {
|
|
var resp SuggestedPostRefundReasonPaymentRefunded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarAmount(data json.RawMessage) (*StarAmount, error) {
|
|
var resp StarAmount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarSubscriptionTypeChannel(data json.RawMessage) (*StarSubscriptionTypeChannel, error) {
|
|
var resp StarSubscriptionTypeChannel
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarSubscriptionTypeBot(data json.RawMessage) (*StarSubscriptionTypeBot, error) {
|
|
var resp StarSubscriptionTypeBot
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarSubscriptionPricing(data json.RawMessage) (*StarSubscriptionPricing, error) {
|
|
var resp StarSubscriptionPricing
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarSubscription(data json.RawMessage) (*StarSubscription, error) {
|
|
var resp StarSubscription
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarSubscriptions(data json.RawMessage) (*StarSubscriptions, error) {
|
|
var resp StarSubscriptions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAffiliateProgramSortOrderCreationDate(data json.RawMessage) (*AffiliateProgramSortOrderCreationDate, error) {
|
|
var resp AffiliateProgramSortOrderCreationDate
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAffiliateProgramSortOrderRevenue(data json.RawMessage) (*AffiliateProgramSortOrderRevenue, error) {
|
|
var resp AffiliateProgramSortOrderRevenue
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAffiliateProgramParameters(data json.RawMessage) (*AffiliateProgramParameters, error) {
|
|
var resp AffiliateProgramParameters
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAffiliateProgramInfo(data json.RawMessage) (*AffiliateProgramInfo, error) {
|
|
var resp AffiliateProgramInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAffiliateInfo(data json.RawMessage) (*AffiliateInfo, error) {
|
|
var resp AffiliateInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFoundAffiliateProgram(data json.RawMessage) (*FoundAffiliateProgram, error) {
|
|
var resp FoundAffiliateProgram
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFoundAffiliatePrograms(data json.RawMessage) (*FoundAffiliatePrograms, error) {
|
|
var resp FoundAffiliatePrograms
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalConnectedAffiliateProgram(data json.RawMessage) (*ConnectedAffiliateProgram, error) {
|
|
var resp ConnectedAffiliateProgram
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalConnectedAffiliatePrograms(data json.RawMessage) (*ConnectedAffiliatePrograms, error) {
|
|
var resp ConnectedAffiliatePrograms
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProductInfo(data json.RawMessage) (*ProductInfo, error) {
|
|
var resp ProductInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumPaymentOption(data json.RawMessage) (*PremiumPaymentOption, error) {
|
|
var resp PremiumPaymentOption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumStatePaymentOption(data json.RawMessage) (*PremiumStatePaymentOption, error) {
|
|
var resp PremiumStatePaymentOption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumGiftPaymentOption(data json.RawMessage) (*PremiumGiftPaymentOption, error) {
|
|
var resp PremiumGiftPaymentOption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumGiftPaymentOptions(data json.RawMessage) (*PremiumGiftPaymentOptions, error) {
|
|
var resp PremiumGiftPaymentOptions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumGiveawayPaymentOption(data json.RawMessage) (*PremiumGiveawayPaymentOption, error) {
|
|
var resp PremiumGiveawayPaymentOption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumGiveawayPaymentOptions(data json.RawMessage) (*PremiumGiveawayPaymentOptions, error) {
|
|
var resp PremiumGiveawayPaymentOptions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumGiftCodeInfo(data json.RawMessage) (*PremiumGiftCodeInfo, error) {
|
|
var resp PremiumGiftCodeInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarPaymentOption(data json.RawMessage) (*StarPaymentOption, error) {
|
|
var resp StarPaymentOption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarPaymentOptions(data json.RawMessage) (*StarPaymentOptions, error) {
|
|
var resp StarPaymentOptions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarGiveawayWinnerOption(data json.RawMessage) (*StarGiveawayWinnerOption, error) {
|
|
var resp StarGiveawayWinnerOption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarGiveawayPaymentOption(data json.RawMessage) (*StarGiveawayPaymentOption, error) {
|
|
var resp StarGiveawayPaymentOption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarGiveawayPaymentOptions(data json.RawMessage) (*StarGiveawayPaymentOptions, error) {
|
|
var resp StarGiveawayPaymentOptions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAcceptedGiftTypes(data json.RawMessage) (*AcceptedGiftTypes, error) {
|
|
var resp AcceptedGiftTypes
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftSettings(data json.RawMessage) (*GiftSettings, error) {
|
|
var resp GiftSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftAuction(data json.RawMessage) (*GiftAuction, error) {
|
|
var resp GiftAuction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftBackground(data json.RawMessage) (*GiftBackground, error) {
|
|
var resp GiftBackground
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftPurchaseLimits(data json.RawMessage) (*GiftPurchaseLimits, error) {
|
|
var resp GiftPurchaseLimits
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftResaleParameters(data json.RawMessage) (*GiftResaleParameters, error) {
|
|
var resp GiftResaleParameters
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftCollection(data json.RawMessage) (*GiftCollection, error) {
|
|
var resp GiftCollection
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftCollections(data json.RawMessage) (*GiftCollections, error) {
|
|
var resp GiftCollections
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanSendGiftResultOk(data json.RawMessage) (*CanSendGiftResultOk, error) {
|
|
var resp CanSendGiftResultOk
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanSendGiftResultFail(data json.RawMessage) (*CanSendGiftResultFail, error) {
|
|
var resp CanSendGiftResultFail
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftOriginUpgrade(data json.RawMessage) (*UpgradedGiftOriginUpgrade, error) {
|
|
var resp UpgradedGiftOriginUpgrade
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftOriginTransfer(data json.RawMessage) (*UpgradedGiftOriginTransfer, error) {
|
|
var resp UpgradedGiftOriginTransfer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftOriginResale(data json.RawMessage) (*UpgradedGiftOriginResale, error) {
|
|
var resp UpgradedGiftOriginResale
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftOriginOffer(data json.RawMessage) (*UpgradedGiftOriginOffer, error) {
|
|
var resp UpgradedGiftOriginOffer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftOriginCraft(data json.RawMessage) (*UpgradedGiftOriginCraft, error) {
|
|
var resp UpgradedGiftOriginCraft
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftAttributeRarityPerMille(data json.RawMessage) (*UpgradedGiftAttributeRarityPerMille, error) {
|
|
var resp UpgradedGiftAttributeRarityPerMille
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftAttributeRarityUncommon(data json.RawMessage) (*UpgradedGiftAttributeRarityUncommon, error) {
|
|
var resp UpgradedGiftAttributeRarityUncommon
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftAttributeRarityRare(data json.RawMessage) (*UpgradedGiftAttributeRarityRare, error) {
|
|
var resp UpgradedGiftAttributeRarityRare
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftAttributeRarityEpic(data json.RawMessage) (*UpgradedGiftAttributeRarityEpic, error) {
|
|
var resp UpgradedGiftAttributeRarityEpic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftAttributeRarityLegendary(data json.RawMessage) (*UpgradedGiftAttributeRarityLegendary, error) {
|
|
var resp UpgradedGiftAttributeRarityLegendary
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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 UnmarshalUpgradedGiftBackdropColors(data json.RawMessage) (*UpgradedGiftBackdropColors, error) {
|
|
var resp UpgradedGiftBackdropColors
|
|
|
|
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 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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGift(data json.RawMessage) (*UpgradedGift, error) {
|
|
var resp UpgradedGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftValueInfo(data json.RawMessage) (*UpgradedGiftValueInfo, error) {
|
|
var resp UpgradedGiftValueInfo
|
|
|
|
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 UnmarshalCraftGiftResultSuccess(data json.RawMessage) (*CraftGiftResultSuccess, error) {
|
|
var resp CraftGiftResultSuccess
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCraftGiftResultTooEarly(data json.RawMessage) (*CraftGiftResultTooEarly, error) {
|
|
var resp CraftGiftResultTooEarly
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCraftGiftResultInvalidGift(data json.RawMessage) (*CraftGiftResultInvalidGift, error) {
|
|
var resp CraftGiftResultInvalidGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCraftGiftResultFail(data json.RawMessage) (*CraftGiftResultFail, error) {
|
|
var resp CraftGiftResultFail
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAvailableGift(data json.RawMessage) (*AvailableGift, error) {
|
|
var resp AvailableGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAvailableGifts(data json.RawMessage) (*AvailableGifts, error) {
|
|
var resp AvailableGifts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftAttributeIdSymbol(data json.RawMessage) (*UpgradedGiftAttributeIdSymbol, error) {
|
|
var resp UpgradedGiftAttributeIdSymbol
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftAttributeIdBackdrop(data json.RawMessage) (*UpgradedGiftAttributeIdBackdrop, error) {
|
|
var resp UpgradedGiftAttributeIdBackdrop
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftModelCount(data json.RawMessage) (*UpgradedGiftModelCount, error) {
|
|
var resp UpgradedGiftModelCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftSymbolCount(data json.RawMessage) (*UpgradedGiftSymbolCount, error) {
|
|
var resp UpgradedGiftSymbolCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpgradedGiftBackdropCount(data json.RawMessage) (*UpgradedGiftBackdropCount, error) {
|
|
var resp UpgradedGiftBackdropCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftForResaleOrderPrice(data json.RawMessage) (*GiftForResaleOrderPrice, error) {
|
|
var resp GiftForResaleOrderPrice
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftForResaleOrderPriceChangeDate(data json.RawMessage) (*GiftForResaleOrderPriceChangeDate, error) {
|
|
var resp GiftForResaleOrderPriceChangeDate
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftForResaleOrderNumber(data json.RawMessage) (*GiftForResaleOrderNumber, error) {
|
|
var resp GiftForResaleOrderNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftForResale(data json.RawMessage) (*GiftForResale, error) {
|
|
var resp GiftForResale
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftsForResale(data json.RawMessage) (*GiftsForResale, error) {
|
|
var resp GiftsForResale
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftResaleResultOk(data json.RawMessage) (*GiftResaleResultOk, error) {
|
|
var resp GiftResaleResultOk
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftResaleResultPriceIncreased(data json.RawMessage) (*GiftResaleResultPriceIncreased, error) {
|
|
var resp GiftResaleResultPriceIncreased
|
|
|
|
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 UnmarshalReceivedGift(data json.RawMessage) (*ReceivedGift, error) {
|
|
var resp ReceivedGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReceivedGifts(data json.RawMessage) (*ReceivedGifts, error) {
|
|
var resp ReceivedGifts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAttributeCraftPersistenceProbability(data json.RawMessage) (*AttributeCraftPersistenceProbability, error) {
|
|
var resp AttributeCraftPersistenceProbability
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftsForCrafting(data json.RawMessage) (*GiftsForCrafting, error) {
|
|
var resp GiftsForCrafting
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftUpgradePreview(data json.RawMessage) (*GiftUpgradePreview, error) {
|
|
var resp GiftUpgradePreview
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftUpgradeVariants(data json.RawMessage) (*GiftUpgradeVariants, error) {
|
|
var resp GiftUpgradeVariants
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuctionBid(data json.RawMessage) (*AuctionBid, error) {
|
|
var resp AuctionBid
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserAuctionBid(data json.RawMessage) (*UserAuctionBid, error) {
|
|
var resp UserAuctionBid
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuctionRound(data json.RawMessage) (*AuctionRound, error) {
|
|
var resp AuctionRound
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuctionStateActive(data json.RawMessage) (*AuctionStateActive, error) {
|
|
var resp AuctionStateActive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAuctionStateFinished(data json.RawMessage) (*AuctionStateFinished, error) {
|
|
var resp AuctionStateFinished
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftAuctionState(data json.RawMessage) (*GiftAuctionState, error) {
|
|
var resp GiftAuctionState
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftAuctionAcquiredGift(data json.RawMessage) (*GiftAuctionAcquiredGift, error) {
|
|
var resp GiftAuctionAcquiredGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftAuctionAcquiredGifts(data json.RawMessage) (*GiftAuctionAcquiredGifts, error) {
|
|
var resp GiftAuctionAcquiredGifts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTransactionDirectionIncoming(data json.RawMessage) (*TransactionDirectionIncoming, error) {
|
|
var resp TransactionDirectionIncoming
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTransactionDirectionOutgoing(data json.RawMessage) (*TransactionDirectionOutgoing, error) {
|
|
var resp TransactionDirectionOutgoing
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypePremiumBotDeposit(data json.RawMessage) (*StarTransactionTypePremiumBotDeposit, error) {
|
|
var resp StarTransactionTypePremiumBotDeposit
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeAppStoreDeposit(data json.RawMessage) (*StarTransactionTypeAppStoreDeposit, error) {
|
|
var resp StarTransactionTypeAppStoreDeposit
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeGooglePlayDeposit(data json.RawMessage) (*StarTransactionTypeGooglePlayDeposit, error) {
|
|
var resp StarTransactionTypeGooglePlayDeposit
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeFragmentDeposit(data json.RawMessage) (*StarTransactionTypeFragmentDeposit, error) {
|
|
var resp StarTransactionTypeFragmentDeposit
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeUserDeposit(data json.RawMessage) (*StarTransactionTypeUserDeposit, error) {
|
|
var resp StarTransactionTypeUserDeposit
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeGiveawayDeposit(data json.RawMessage) (*StarTransactionTypeGiveawayDeposit, error) {
|
|
var resp StarTransactionTypeGiveawayDeposit
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeFragmentWithdrawal(data json.RawMessage) (*StarTransactionTypeFragmentWithdrawal, error) {
|
|
var resp StarTransactionTypeFragmentWithdrawal
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeTelegramAdsWithdrawal(data json.RawMessage) (*StarTransactionTypeTelegramAdsWithdrawal, error) {
|
|
var resp StarTransactionTypeTelegramAdsWithdrawal
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeTelegramApiUsage(data json.RawMessage) (*StarTransactionTypeTelegramApiUsage, error) {
|
|
var resp StarTransactionTypeTelegramApiUsage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeBotPaidMediaPurchase(data json.RawMessage) (*StarTransactionTypeBotPaidMediaPurchase, error) {
|
|
var resp StarTransactionTypeBotPaidMediaPurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeBotPaidMediaSale(data json.RawMessage) (*StarTransactionTypeBotPaidMediaSale, error) {
|
|
var resp StarTransactionTypeBotPaidMediaSale
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeChannelPaidMediaPurchase(data json.RawMessage) (*StarTransactionTypeChannelPaidMediaPurchase, error) {
|
|
var resp StarTransactionTypeChannelPaidMediaPurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeChannelPaidMediaSale(data json.RawMessage) (*StarTransactionTypeChannelPaidMediaSale, error) {
|
|
var resp StarTransactionTypeChannelPaidMediaSale
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeBotInvoicePurchase(data json.RawMessage) (*StarTransactionTypeBotInvoicePurchase, error) {
|
|
var resp StarTransactionTypeBotInvoicePurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeBotInvoiceSale(data json.RawMessage) (*StarTransactionTypeBotInvoiceSale, error) {
|
|
var resp StarTransactionTypeBotInvoiceSale
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeBotSubscriptionPurchase(data json.RawMessage) (*StarTransactionTypeBotSubscriptionPurchase, error) {
|
|
var resp StarTransactionTypeBotSubscriptionPurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeBotSubscriptionSale(data json.RawMessage) (*StarTransactionTypeBotSubscriptionSale, error) {
|
|
var resp StarTransactionTypeBotSubscriptionSale
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeChannelSubscriptionPurchase(data json.RawMessage) (*StarTransactionTypeChannelSubscriptionPurchase, error) {
|
|
var resp StarTransactionTypeChannelSubscriptionPurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeChannelSubscriptionSale(data json.RawMessage) (*StarTransactionTypeChannelSubscriptionSale, error) {
|
|
var resp StarTransactionTypeChannelSubscriptionSale
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeGiftAuctionBid(data json.RawMessage) (*StarTransactionTypeGiftAuctionBid, error) {
|
|
var resp StarTransactionTypeGiftAuctionBid
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeGiftPurchase(data json.RawMessage) (*StarTransactionTypeGiftPurchase, error) {
|
|
var resp StarTransactionTypeGiftPurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeGiftPurchaseOffer(data json.RawMessage) (*StarTransactionTypeGiftPurchaseOffer, error) {
|
|
var resp StarTransactionTypeGiftPurchaseOffer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeGiftTransfer(data json.RawMessage) (*StarTransactionTypeGiftTransfer, error) {
|
|
var resp StarTransactionTypeGiftTransfer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeGiftUpgrade(data json.RawMessage) (*StarTransactionTypeGiftUpgrade, error) {
|
|
var resp StarTransactionTypeGiftUpgrade
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeGiftUpgradePurchase(data json.RawMessage) (*StarTransactionTypeGiftUpgradePurchase, error) {
|
|
var resp StarTransactionTypeGiftUpgradePurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeUpgradedGiftPurchase(data json.RawMessage) (*StarTransactionTypeUpgradedGiftPurchase, error) {
|
|
var resp StarTransactionTypeUpgradedGiftPurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeUpgradedGiftSale(data json.RawMessage) (*StarTransactionTypeUpgradedGiftSale, error) {
|
|
var resp StarTransactionTypeUpgradedGiftSale
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeChannelPaidReactionSend(data json.RawMessage) (*StarTransactionTypeChannelPaidReactionSend, error) {
|
|
var resp StarTransactionTypeChannelPaidReactionSend
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeChannelPaidReactionReceive(data json.RawMessage) (*StarTransactionTypeChannelPaidReactionReceive, error) {
|
|
var resp StarTransactionTypeChannelPaidReactionReceive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeAffiliateProgramCommission(data json.RawMessage) (*StarTransactionTypeAffiliateProgramCommission, error) {
|
|
var resp StarTransactionTypeAffiliateProgramCommission
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypePaidMessageSend(data json.RawMessage) (*StarTransactionTypePaidMessageSend, error) {
|
|
var resp StarTransactionTypePaidMessageSend
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypePaidMessageReceive(data json.RawMessage) (*StarTransactionTypePaidMessageReceive, error) {
|
|
var resp StarTransactionTypePaidMessageReceive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypePaidGroupCallMessageSend(data json.RawMessage) (*StarTransactionTypePaidGroupCallMessageSend, error) {
|
|
var resp StarTransactionTypePaidGroupCallMessageSend
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypePaidGroupCallMessageReceive(data json.RawMessage) (*StarTransactionTypePaidGroupCallMessageReceive, error) {
|
|
var resp StarTransactionTypePaidGroupCallMessageReceive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypePaidGroupCallReactionSend(data json.RawMessage) (*StarTransactionTypePaidGroupCallReactionSend, error) {
|
|
var resp StarTransactionTypePaidGroupCallReactionSend
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypePaidGroupCallReactionReceive(data json.RawMessage) (*StarTransactionTypePaidGroupCallReactionReceive, error) {
|
|
var resp StarTransactionTypePaidGroupCallReactionReceive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeSuggestedPostPaymentSend(data json.RawMessage) (*StarTransactionTypeSuggestedPostPaymentSend, error) {
|
|
var resp StarTransactionTypeSuggestedPostPaymentSend
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeSuggestedPostPaymentReceive(data json.RawMessage) (*StarTransactionTypeSuggestedPostPaymentReceive, error) {
|
|
var resp StarTransactionTypeSuggestedPostPaymentReceive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypePremiumPurchase(data json.RawMessage) (*StarTransactionTypePremiumPurchase, error) {
|
|
var resp StarTransactionTypePremiumPurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeBusinessBotTransferSend(data json.RawMessage) (*StarTransactionTypeBusinessBotTransferSend, error) {
|
|
var resp StarTransactionTypeBusinessBotTransferSend
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeBusinessBotTransferReceive(data json.RawMessage) (*StarTransactionTypeBusinessBotTransferReceive, error) {
|
|
var resp StarTransactionTypeBusinessBotTransferReceive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypePublicPostSearch(data json.RawMessage) (*StarTransactionTypePublicPostSearch, error) {
|
|
var resp StarTransactionTypePublicPostSearch
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactionTypeUnsupported(data json.RawMessage) (*StarTransactionTypeUnsupported, error) {
|
|
var resp StarTransactionTypeUnsupported
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransaction(data json.RawMessage) (*StarTransaction, error) {
|
|
var resp StarTransaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarTransactions(data json.RawMessage) (*StarTransactions, error) {
|
|
var resp StarTransactions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonTransactionTypeFragmentDeposit(data json.RawMessage) (*TonTransactionTypeFragmentDeposit, error) {
|
|
var resp TonTransactionTypeFragmentDeposit
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonTransactionTypeFragmentWithdrawal(data json.RawMessage) (*TonTransactionTypeFragmentWithdrawal, error) {
|
|
var resp TonTransactionTypeFragmentWithdrawal
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonTransactionTypeSuggestedPostPayment(data json.RawMessage) (*TonTransactionTypeSuggestedPostPayment, error) {
|
|
var resp TonTransactionTypeSuggestedPostPayment
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonTransactionTypeGiftPurchaseOffer(data json.RawMessage) (*TonTransactionTypeGiftPurchaseOffer, error) {
|
|
var resp TonTransactionTypeGiftPurchaseOffer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonTransactionTypeUpgradedGiftPurchase(data json.RawMessage) (*TonTransactionTypeUpgradedGiftPurchase, error) {
|
|
var resp TonTransactionTypeUpgradedGiftPurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonTransactionTypeUpgradedGiftSale(data json.RawMessage) (*TonTransactionTypeUpgradedGiftSale, error) {
|
|
var resp TonTransactionTypeUpgradedGiftSale
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonTransactionTypeStakeDiceStake(data json.RawMessage) (*TonTransactionTypeStakeDiceStake, error) {
|
|
var resp TonTransactionTypeStakeDiceStake
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonTransactionTypeStakeDicePayout(data json.RawMessage) (*TonTransactionTypeStakeDicePayout, error) {
|
|
var resp TonTransactionTypeStakeDicePayout
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonTransactionTypeUnsupported(data json.RawMessage) (*TonTransactionTypeUnsupported, error) {
|
|
var resp TonTransactionTypeUnsupported
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonTransaction(data json.RawMessage) (*TonTransaction, error) {
|
|
var resp TonTransaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonTransactions(data json.RawMessage) (*TonTransactions, error) {
|
|
var resp TonTransactions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalActiveStoryStateLive(data json.RawMessage) (*ActiveStoryStateLive, error) {
|
|
var resp ActiveStoryStateLive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalActiveStoryStateUnread(data json.RawMessage) (*ActiveStoryStateUnread, error) {
|
|
var resp ActiveStoryStateUnread
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalActiveStoryStateRead(data json.RawMessage) (*ActiveStoryStateRead, error) {
|
|
var resp ActiveStoryStateRead
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiveawayParticipantStatusEligible(data json.RawMessage) (*GiveawayParticipantStatusEligible, error) {
|
|
var resp GiveawayParticipantStatusEligible
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiveawayParticipantStatusParticipating(data json.RawMessage) (*GiveawayParticipantStatusParticipating, error) {
|
|
var resp GiveawayParticipantStatusParticipating
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiveawayParticipantStatusAlreadyWasMember(data json.RawMessage) (*GiveawayParticipantStatusAlreadyWasMember, error) {
|
|
var resp GiveawayParticipantStatusAlreadyWasMember
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiveawayParticipantStatusAdministrator(data json.RawMessage) (*GiveawayParticipantStatusAdministrator, error) {
|
|
var resp GiveawayParticipantStatusAdministrator
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiveawayParticipantStatusDisallowedCountry(data json.RawMessage) (*GiveawayParticipantStatusDisallowedCountry, error) {
|
|
var resp GiveawayParticipantStatusDisallowedCountry
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiveawayInfoOngoing(data json.RawMessage) (*GiveawayInfoOngoing, error) {
|
|
var resp GiveawayInfoOngoing
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiveawayInfoCompleted(data json.RawMessage) (*GiveawayInfoCompleted, error) {
|
|
var resp GiveawayInfoCompleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiveawayPrizePremium(data json.RawMessage) (*GiveawayPrizePremium, error) {
|
|
var resp GiveawayPrizePremium
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiveawayPrizeStars(data json.RawMessage) (*GiveawayPrizeStars, error) {
|
|
var resp GiveawayPrizeStars
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAccentColor(data json.RawMessage) (*AccentColor, error) {
|
|
var resp AccentColor
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProfileAccentColors(data json.RawMessage) (*ProfileAccentColors, error) {
|
|
var resp ProfileAccentColors
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProfileAccentColor(data json.RawMessage) (*ProfileAccentColor, error) {
|
|
var resp ProfileAccentColor
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserRating(data json.RawMessage) (*UserRating, error) {
|
|
var resp UserRating
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRestrictionInfo(data json.RawMessage) (*RestrictionInfo, error) {
|
|
var resp RestrictionInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiStatusTypeCustomEmoji(data json.RawMessage) (*EmojiStatusTypeCustomEmoji, error) {
|
|
var resp EmojiStatusTypeCustomEmoji
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiStatusTypeUpgradedGift(data json.RawMessage) (*EmojiStatusTypeUpgradedGift, error) {
|
|
var resp EmojiStatusTypeUpgradedGift
|
|
|
|
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)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiStatusCustomEmojis(data json.RawMessage) (*EmojiStatusCustomEmojis, error) {
|
|
var resp EmojiStatusCustomEmojis
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUsernames(data json.RawMessage) (*Usernames, error) {
|
|
var resp Usernames
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUser(data json.RawMessage) (*User, error) {
|
|
var resp User
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotInfo(data json.RawMessage) (*BotInfo, error) {
|
|
var resp BotInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserFullInfo(data json.RawMessage) (*UserFullInfo, error) {
|
|
var resp UserFullInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUsers(data json.RawMessage) (*Users, error) {
|
|
var resp Users
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFoundUsers(data json.RawMessage) (*FoundUsers, error) {
|
|
var resp FoundUsers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatAdministrator(data json.RawMessage) (*ChatAdministrator, error) {
|
|
var resp ChatAdministrator
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatAdministrators(data json.RawMessage) (*ChatAdministrators, error) {
|
|
var resp ChatAdministrators
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMemberStatusCreator(data json.RawMessage) (*ChatMemberStatusCreator, error) {
|
|
var resp ChatMemberStatusCreator
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMemberStatusAdministrator(data json.RawMessage) (*ChatMemberStatusAdministrator, error) {
|
|
var resp ChatMemberStatusAdministrator
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMemberStatusMember(data json.RawMessage) (*ChatMemberStatusMember, error) {
|
|
var resp ChatMemberStatusMember
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMemberStatusRestricted(data json.RawMessage) (*ChatMemberStatusRestricted, error) {
|
|
var resp ChatMemberStatusRestricted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMemberStatusLeft(data json.RawMessage) (*ChatMemberStatusLeft, error) {
|
|
var resp ChatMemberStatusLeft
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMemberStatusBanned(data json.RawMessage) (*ChatMemberStatusBanned, error) {
|
|
var resp ChatMemberStatusBanned
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMember(data json.RawMessage) (*ChatMember, error) {
|
|
var resp ChatMember
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMembers(data json.RawMessage) (*ChatMembers, error) {
|
|
var resp ChatMembers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMembersFilterContacts(data json.RawMessage) (*ChatMembersFilterContacts, error) {
|
|
var resp ChatMembersFilterContacts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMembersFilterAdministrators(data json.RawMessage) (*ChatMembersFilterAdministrators, error) {
|
|
var resp ChatMembersFilterAdministrators
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMembersFilterMembers(data json.RawMessage) (*ChatMembersFilterMembers, error) {
|
|
var resp ChatMembersFilterMembers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMembersFilterMention(data json.RawMessage) (*ChatMembersFilterMention, error) {
|
|
var resp ChatMembersFilterMention
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMembersFilterRestricted(data json.RawMessage) (*ChatMembersFilterRestricted, error) {
|
|
var resp ChatMembersFilterRestricted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMembersFilterBanned(data json.RawMessage) (*ChatMembersFilterBanned, error) {
|
|
var resp ChatMembersFilterBanned
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMembersFilterBots(data json.RawMessage) (*ChatMembersFilterBots, error) {
|
|
var resp ChatMembersFilterBots
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSupergroupMembersFilterRecent(data json.RawMessage) (*SupergroupMembersFilterRecent, error) {
|
|
var resp SupergroupMembersFilterRecent
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSupergroupMembersFilterContacts(data json.RawMessage) (*SupergroupMembersFilterContacts, error) {
|
|
var resp SupergroupMembersFilterContacts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSupergroupMembersFilterAdministrators(data json.RawMessage) (*SupergroupMembersFilterAdministrators, error) {
|
|
var resp SupergroupMembersFilterAdministrators
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSupergroupMembersFilterSearch(data json.RawMessage) (*SupergroupMembersFilterSearch, error) {
|
|
var resp SupergroupMembersFilterSearch
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSupergroupMembersFilterRestricted(data json.RawMessage) (*SupergroupMembersFilterRestricted, error) {
|
|
var resp SupergroupMembersFilterRestricted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSupergroupMembersFilterBanned(data json.RawMessage) (*SupergroupMembersFilterBanned, error) {
|
|
var resp SupergroupMembersFilterBanned
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSupergroupMembersFilterMention(data json.RawMessage) (*SupergroupMembersFilterMention, error) {
|
|
var resp SupergroupMembersFilterMention
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSupergroupMembersFilterBots(data json.RawMessage) (*SupergroupMembersFilterBots, error) {
|
|
var resp SupergroupMembersFilterBots
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatInviteLink(data json.RawMessage) (*ChatInviteLink, error) {
|
|
var resp ChatInviteLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatInviteLinks(data json.RawMessage) (*ChatInviteLinks, error) {
|
|
var resp ChatInviteLinks
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatInviteLinkCount(data json.RawMessage) (*ChatInviteLinkCount, error) {
|
|
var resp ChatInviteLinkCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatInviteLinkCounts(data json.RawMessage) (*ChatInviteLinkCounts, error) {
|
|
var resp ChatInviteLinkCounts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatInviteLinkMember(data json.RawMessage) (*ChatInviteLinkMember, error) {
|
|
var resp ChatInviteLinkMember
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatInviteLinkMembers(data json.RawMessage) (*ChatInviteLinkMembers, error) {
|
|
var resp ChatInviteLinkMembers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInviteLinkChatTypeBasicGroup(data json.RawMessage) (*InviteLinkChatTypeBasicGroup, error) {
|
|
var resp InviteLinkChatTypeBasicGroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInviteLinkChatTypeSupergroup(data json.RawMessage) (*InviteLinkChatTypeSupergroup, error) {
|
|
var resp InviteLinkChatTypeSupergroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInviteLinkChatTypeChannel(data json.RawMessage) (*InviteLinkChatTypeChannel, error) {
|
|
var resp InviteLinkChatTypeChannel
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatInviteLinkSubscriptionInfo(data json.RawMessage) (*ChatInviteLinkSubscriptionInfo, error) {
|
|
var resp ChatInviteLinkSubscriptionInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatInviteLinkInfo(data json.RawMessage) (*ChatInviteLinkInfo, error) {
|
|
var resp ChatInviteLinkInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatJoinRequest(data json.RawMessage) (*ChatJoinRequest, error) {
|
|
var resp ChatJoinRequest
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatJoinRequests(data json.RawMessage) (*ChatJoinRequests, error) {
|
|
var resp ChatJoinRequests
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatJoinRequestsInfo(data json.RawMessage) (*ChatJoinRequestsInfo, error) {
|
|
var resp ChatJoinRequestsInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBasicGroup(data json.RawMessage) (*BasicGroup, error) {
|
|
var resp BasicGroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBasicGroupFullInfo(data json.RawMessage) (*BasicGroupFullInfo, error) {
|
|
var resp BasicGroupFullInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSupergroup(data json.RawMessage) (*Supergroup, error) {
|
|
var resp Supergroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSupergroupFullInfo(data json.RawMessage) (*SupergroupFullInfo, error) {
|
|
var resp SupergroupFullInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSecretChatStatePending(data json.RawMessage) (*SecretChatStatePending, error) {
|
|
var resp SecretChatStatePending
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSecretChatStateReady(data json.RawMessage) (*SecretChatStateReady, error) {
|
|
var resp SecretChatStateReady
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSecretChatStateClosed(data json.RawMessage) (*SecretChatStateClosed, error) {
|
|
var resp SecretChatStateClosed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSecretChat(data json.RawMessage) (*SecretChat, error) {
|
|
var resp SecretChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPublicPostSearchLimits(data json.RawMessage) (*PublicPostSearchLimits, error) {
|
|
var resp PublicPostSearchLimits
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSenderUser(data json.RawMessage) (*MessageSenderUser, error) {
|
|
var resp MessageSenderUser
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSenderChat(data json.RawMessage) (*MessageSenderChat, error) {
|
|
var resp MessageSenderChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSenders(data json.RawMessage) (*MessageSenders, error) {
|
|
var resp MessageSenders
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMessageSender(data json.RawMessage) (*ChatMessageSender, error) {
|
|
var resp ChatMessageSender
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatMessageSenders(data json.RawMessage) (*ChatMessageSenders, error) {
|
|
var resp ChatMessageSenders
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageReadDateRead(data json.RawMessage) (*MessageReadDateRead, error) {
|
|
var resp MessageReadDateRead
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageReadDateUnread(data json.RawMessage) (*MessageReadDateUnread, error) {
|
|
var resp MessageReadDateUnread
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageReadDateTooOld(data json.RawMessage) (*MessageReadDateTooOld, error) {
|
|
var resp MessageReadDateTooOld
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageReadDateUserPrivacyRestricted(data json.RawMessage) (*MessageReadDateUserPrivacyRestricted, error) {
|
|
var resp MessageReadDateUserPrivacyRestricted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageReadDateMyPrivacyRestricted(data json.RawMessage) (*MessageReadDateMyPrivacyRestricted, error) {
|
|
var resp MessageReadDateMyPrivacyRestricted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageViewer(data json.RawMessage) (*MessageViewer, error) {
|
|
var resp MessageViewer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageViewers(data json.RawMessage) (*MessageViewers, error) {
|
|
var resp MessageViewers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageOriginUser(data json.RawMessage) (*MessageOriginUser, error) {
|
|
var resp MessageOriginUser
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageOriginHiddenUser(data json.RawMessage) (*MessageOriginHiddenUser, error) {
|
|
var resp MessageOriginHiddenUser
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageOriginChat(data json.RawMessage) (*MessageOriginChat, error) {
|
|
var resp MessageOriginChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageOriginChannel(data json.RawMessage) (*MessageOriginChannel, error) {
|
|
var resp MessageOriginChannel
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalForwardSource(data json.RawMessage) (*ForwardSource, error) {
|
|
var resp ForwardSource
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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 UnmarshalReactionTypePaid(data json.RawMessage) (*ReactionTypePaid, error) {
|
|
var resp ReactionTypePaid
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaidReactionTypeRegular(data json.RawMessage) (*PaidReactionTypeRegular, error) {
|
|
var resp PaidReactionTypeRegular
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaidReactionTypeAnonymous(data json.RawMessage) (*PaidReactionTypeAnonymous, error) {
|
|
var resp PaidReactionTypeAnonymous
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaidReactionTypeChat(data json.RawMessage) (*PaidReactionTypeChat, error) {
|
|
var resp PaidReactionTypeChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaidReactor(data json.RawMessage) (*PaidReactor, error) {
|
|
var resp PaidReactor
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLiveStoryDonors(data json.RawMessage) (*LiveStoryDonors, error) {
|
|
var resp LiveStoryDonors
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageForwardInfo(data json.RawMessage) (*MessageForwardInfo, error) {
|
|
var resp MessageForwardInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageImportInfo(data json.RawMessage) (*MessageImportInfo, error) {
|
|
var resp MessageImportInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageReplyInfo(data json.RawMessage) (*MessageReplyInfo, error) {
|
|
var resp MessageReplyInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageReaction(data json.RawMessage) (*MessageReaction, error) {
|
|
var resp MessageReaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageReactions(data json.RawMessage) (*MessageReactions, error) {
|
|
var resp MessageReactions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageInteractionInfo(data json.RawMessage) (*MessageInteractionInfo, error) {
|
|
var resp MessageInteractionInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUnreadReaction(data json.RawMessage) (*UnreadReaction, error) {
|
|
var resp UnreadReaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageTopicDirectMessages(data json.RawMessage) (*MessageTopicDirectMessages, error) {
|
|
var resp MessageTopicDirectMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageTopicSavedMessages(data json.RawMessage) (*MessageTopicSavedMessages, error) {
|
|
var resp MessageTopicSavedMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageEffectTypeEmojiReaction(data json.RawMessage) (*MessageEffectTypeEmojiReaction, error) {
|
|
var resp MessageEffectTypeEmojiReaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageEffectTypePremiumSticker(data json.RawMessage) (*MessageEffectTypePremiumSticker, error) {
|
|
var resp MessageEffectTypePremiumSticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageEffect(data json.RawMessage) (*MessageEffect, error) {
|
|
var resp MessageEffect
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSendingStatePending(data json.RawMessage) (*MessageSendingStatePending, error) {
|
|
var resp MessageSendingStatePending
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSendingStateFailed(data json.RawMessage) (*MessageSendingStateFailed, error) {
|
|
var resp MessageSendingStateFailed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextQuote(data json.RawMessage) (*TextQuote, error) {
|
|
var resp TextQuote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputTextQuote(data json.RawMessage) (*InputTextQuote, error) {
|
|
var resp InputTextQuote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageReplyToMessage(data json.RawMessage) (*MessageReplyToMessage, error) {
|
|
var resp MessageReplyToMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageReplyToStory(data json.RawMessage) (*MessageReplyToStory, error) {
|
|
var resp MessageReplyToStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageReplyToMessage(data json.RawMessage) (*InputMessageReplyToMessage, error) {
|
|
var resp InputMessageReplyToMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageReplyToExternalMessage(data json.RawMessage) (*InputMessageReplyToExternalMessage, error) {
|
|
var resp InputMessageReplyToExternalMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageReplyToStory(data json.RawMessage) (*InputMessageReplyToStory, error) {
|
|
var resp InputMessageReplyToStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFactCheck(data json.RawMessage) (*FactCheck, error) {
|
|
var resp FactCheck
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessage(data json.RawMessage) (*Message, error) {
|
|
var resp Message
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessages(data json.RawMessage) (*Messages, error) {
|
|
var resp Messages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFoundMessages(data json.RawMessage) (*FoundMessages, error) {
|
|
var resp FoundMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFoundChatMessages(data json.RawMessage) (*FoundChatMessages, error) {
|
|
var resp FoundChatMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFoundPublicPosts(data json.RawMessage) (*FoundPublicPosts, error) {
|
|
var resp FoundPublicPosts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePosition(data json.RawMessage) (*MessagePosition, error) {
|
|
var resp MessagePosition
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePositions(data json.RawMessage) (*MessagePositions, error) {
|
|
var resp MessagePositions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageCalendarDay(data json.RawMessage) (*MessageCalendarDay, error) {
|
|
var resp MessageCalendarDay
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageCalendar(data json.RawMessage) (*MessageCalendar, error) {
|
|
var resp MessageCalendar
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessMessage(data json.RawMessage) (*BusinessMessage, error) {
|
|
var resp BusinessMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessMessages(data json.RawMessage) (*BusinessMessages, error) {
|
|
var resp BusinessMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSourceChatHistory(data json.RawMessage) (*MessageSourceChatHistory, error) {
|
|
var resp MessageSourceChatHistory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSourceMessageThreadHistory(data json.RawMessage) (*MessageSourceMessageThreadHistory, error) {
|
|
var resp MessageSourceMessageThreadHistory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSourceForumTopicHistory(data json.RawMessage) (*MessageSourceForumTopicHistory, error) {
|
|
var resp MessageSourceForumTopicHistory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSourceDirectMessagesChatTopicHistory(data json.RawMessage) (*MessageSourceDirectMessagesChatTopicHistory, error) {
|
|
var resp MessageSourceDirectMessagesChatTopicHistory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSourceHistoryPreview(data json.RawMessage) (*MessageSourceHistoryPreview, error) {
|
|
var resp MessageSourceHistoryPreview
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSourceChatList(data json.RawMessage) (*MessageSourceChatList, error) {
|
|
var resp MessageSourceChatList
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSourceSearch(data json.RawMessage) (*MessageSourceSearch, error) {
|
|
var resp MessageSourceSearch
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSourceChatEventLog(data json.RawMessage) (*MessageSourceChatEventLog, error) {
|
|
var resp MessageSourceChatEventLog
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSourceNotification(data json.RawMessage) (*MessageSourceNotification, error) {
|
|
var resp MessageSourceNotification
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSourceScreenshot(data json.RawMessage) (*MessageSourceScreenshot, error) {
|
|
var resp MessageSourceScreenshot
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSourceOther(data json.RawMessage) (*MessageSourceOther, error) {
|
|
var resp MessageSourceOther
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAdvertisementSponsor(data json.RawMessage) (*AdvertisementSponsor, error) {
|
|
var resp AdvertisementSponsor
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSponsoredMessage(data json.RawMessage) (*SponsoredMessage, error) {
|
|
var resp SponsoredMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSponsoredMessages(data json.RawMessage) (*SponsoredMessages, error) {
|
|
var resp SponsoredMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSponsoredChat(data json.RawMessage) (*SponsoredChat, error) {
|
|
var resp SponsoredChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSponsoredChats(data json.RawMessage) (*SponsoredChats, error) {
|
|
var resp SponsoredChats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalVideoMessageAdvertisement(data json.RawMessage) (*VideoMessageAdvertisement, error) {
|
|
var resp VideoMessageAdvertisement
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalVideoMessageAdvertisements(data json.RawMessage) (*VideoMessageAdvertisements, error) {
|
|
var resp VideoMessageAdvertisements
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportOption(data json.RawMessage) (*ReportOption, error) {
|
|
var resp ReportOption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportSponsoredResultOk(data json.RawMessage) (*ReportSponsoredResultOk, error) {
|
|
var resp ReportSponsoredResultOk
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportSponsoredResultFailed(data json.RawMessage) (*ReportSponsoredResultFailed, error) {
|
|
var resp ReportSponsoredResultFailed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportSponsoredResultOptionRequired(data json.RawMessage) (*ReportSponsoredResultOptionRequired, error) {
|
|
var resp ReportSponsoredResultOptionRequired
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportSponsoredResultAdsHidden(data json.RawMessage) (*ReportSponsoredResultAdsHidden, error) {
|
|
var resp ReportSponsoredResultAdsHidden
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportSponsoredResultPremiumRequired(data json.RawMessage) (*ReportSponsoredResultPremiumRequired, error) {
|
|
var resp ReportSponsoredResultPremiumRequired
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileDownload(data json.RawMessage) (*FileDownload, error) {
|
|
var resp FileDownload
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDownloadedFileCounts(data json.RawMessage) (*DownloadedFileCounts, error) {
|
|
var resp DownloadedFileCounts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFoundFileDownloads(data json.RawMessage) (*FoundFileDownloads, error) {
|
|
var resp FoundFileDownloads
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationSettingsScopePrivateChats(data json.RawMessage) (*NotificationSettingsScopePrivateChats, error) {
|
|
var resp NotificationSettingsScopePrivateChats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationSettingsScopeGroupChats(data json.RawMessage) (*NotificationSettingsScopeGroupChats, error) {
|
|
var resp NotificationSettingsScopeGroupChats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationSettingsScopeChannelChats(data json.RawMessage) (*NotificationSettingsScopeChannelChats, error) {
|
|
var resp NotificationSettingsScopeChannelChats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatNotificationSettings(data json.RawMessage) (*ChatNotificationSettings, error) {
|
|
var resp ChatNotificationSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalScopeNotificationSettings(data json.RawMessage) (*ScopeNotificationSettings, error) {
|
|
var resp ScopeNotificationSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReactionNotificationSourceNone(data json.RawMessage) (*ReactionNotificationSourceNone, error) {
|
|
var resp ReactionNotificationSourceNone
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReactionNotificationSourceContacts(data json.RawMessage) (*ReactionNotificationSourceContacts, error) {
|
|
var resp ReactionNotificationSourceContacts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReactionNotificationSourceAll(data json.RawMessage) (*ReactionNotificationSourceAll, error) {
|
|
var resp ReactionNotificationSourceAll
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReactionNotificationSettings(data json.RawMessage) (*ReactionNotificationSettings, error) {
|
|
var resp ReactionNotificationSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDraftMessage(data json.RawMessage) (*DraftMessage, error) {
|
|
var resp DraftMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatTypePrivate(data json.RawMessage) (*ChatTypePrivate, error) {
|
|
var resp ChatTypePrivate
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatTypeBasicGroup(data json.RawMessage) (*ChatTypeBasicGroup, error) {
|
|
var resp ChatTypeBasicGroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatTypeSupergroup(data json.RawMessage) (*ChatTypeSupergroup, error) {
|
|
var resp ChatTypeSupergroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatTypeSecret(data json.RawMessage) (*ChatTypeSecret, error) {
|
|
var resp ChatTypeSecret
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatFolderIcon(data json.RawMessage) (*ChatFolderIcon, error) {
|
|
var resp ChatFolderIcon
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatFolderInfo(data json.RawMessage) (*ChatFolderInfo, error) {
|
|
var resp ChatFolderInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatFolderInviteLink(data json.RawMessage) (*ChatFolderInviteLink, error) {
|
|
var resp ChatFolderInviteLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatFolderInviteLinks(data json.RawMessage) (*ChatFolderInviteLinks, error) {
|
|
var resp ChatFolderInviteLinks
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatFolderInviteLinkInfo(data json.RawMessage) (*ChatFolderInviteLinkInfo, error) {
|
|
var resp ChatFolderInviteLinkInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRecommendedChatFolder(data json.RawMessage) (*RecommendedChatFolder, error) {
|
|
var resp RecommendedChatFolder
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRecommendedChatFolders(data json.RawMessage) (*RecommendedChatFolders, error) {
|
|
var resp RecommendedChatFolders
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalArchiveChatListSettings(data json.RawMessage) (*ArchiveChatListSettings, error) {
|
|
var resp ArchiveChatListSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatListMain(data json.RawMessage) (*ChatListMain, error) {
|
|
var resp ChatListMain
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatListArchive(data json.RawMessage) (*ChatListArchive, error) {
|
|
var resp ChatListArchive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatListFolder(data json.RawMessage) (*ChatListFolder, error) {
|
|
var resp ChatListFolder
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatLists(data json.RawMessage) (*ChatLists, error) {
|
|
var resp ChatLists
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatSourceMtprotoProxy(data json.RawMessage) (*ChatSourceMtprotoProxy, error) {
|
|
var resp ChatSourceMtprotoProxy
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatSourcePublicServiceAnnouncement(data json.RawMessage) (*ChatSourcePublicServiceAnnouncement, error) {
|
|
var resp ChatSourcePublicServiceAnnouncement
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatPosition(data json.RawMessage) (*ChatPosition, error) {
|
|
var resp ChatPosition
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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 UnmarshalSavedMessagesTag(data json.RawMessage) (*SavedMessagesTag, error) {
|
|
var resp SavedMessagesTag
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSavedMessagesTags(data json.RawMessage) (*SavedMessagesTags, error) {
|
|
var resp SavedMessagesTags
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessBotManageBar(data json.RawMessage) (*BusinessBotManageBar, error) {
|
|
var resp BusinessBotManageBar
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalVideoChat(data json.RawMessage) (*VideoChat, error) {
|
|
var resp VideoChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChat(data json.RawMessage) (*Chat, error) {
|
|
var resp Chat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChats(data json.RawMessage) (*Chats, error) {
|
|
var resp Chats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFailedToAddMember(data json.RawMessage) (*FailedToAddMember, error) {
|
|
var resp FailedToAddMember
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFailedToAddMembers(data json.RawMessage) (*FailedToAddMembers, error) {
|
|
var resp FailedToAddMembers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCreatedBasicGroupChat(data json.RawMessage) (*CreatedBasicGroupChat, error) {
|
|
var resp CreatedBasicGroupChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPublicChatTypeHasUsername(data json.RawMessage) (*PublicChatTypeHasUsername, error) {
|
|
var resp PublicChatTypeHasUsername
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPublicChatTypeIsLocationBased(data json.RawMessage) (*PublicChatTypeIsLocationBased, error) {
|
|
var resp PublicChatTypeIsLocationBased
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAccountInfo(data json.RawMessage) (*AccountInfo, error) {
|
|
var resp AccountInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionBarReportSpam(data json.RawMessage) (*ChatActionBarReportSpam, error) {
|
|
var resp ChatActionBarReportSpam
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionBarInviteMembers(data json.RawMessage) (*ChatActionBarInviteMembers, error) {
|
|
var resp ChatActionBarInviteMembers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionBarReportAddBlock(data json.RawMessage) (*ChatActionBarReportAddBlock, error) {
|
|
var resp ChatActionBarReportAddBlock
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionBarAddContact(data json.RawMessage) (*ChatActionBarAddContact, error) {
|
|
var resp ChatActionBarAddContact
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionBarSharePhoneNumber(data json.RawMessage) (*ChatActionBarSharePhoneNumber, error) {
|
|
var resp ChatActionBarSharePhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionBarJoinRequest(data json.RawMessage) (*ChatActionBarJoinRequest, error) {
|
|
var resp ChatActionBarJoinRequest
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalButtonStyleDefault(data json.RawMessage) (*ButtonStyleDefault, error) {
|
|
var resp ButtonStyleDefault
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalButtonStylePrimary(data json.RawMessage) (*ButtonStylePrimary, error) {
|
|
var resp ButtonStylePrimary
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalButtonStyleDanger(data json.RawMessage) (*ButtonStyleDanger, error) {
|
|
var resp ButtonStyleDanger
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalButtonStyleSuccess(data json.RawMessage) (*ButtonStyleSuccess, error) {
|
|
var resp ButtonStyleSuccess
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalKeyboardButtonTypeText(data json.RawMessage) (*KeyboardButtonTypeText, error) {
|
|
var resp KeyboardButtonTypeText
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalKeyboardButtonTypeRequestPhoneNumber(data json.RawMessage) (*KeyboardButtonTypeRequestPhoneNumber, error) {
|
|
var resp KeyboardButtonTypeRequestPhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalKeyboardButtonTypeRequestLocation(data json.RawMessage) (*KeyboardButtonTypeRequestLocation, error) {
|
|
var resp KeyboardButtonTypeRequestLocation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalKeyboardButtonTypeRequestPoll(data json.RawMessage) (*KeyboardButtonTypeRequestPoll, error) {
|
|
var resp KeyboardButtonTypeRequestPoll
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalKeyboardButtonTypeRequestUsers(data json.RawMessage) (*KeyboardButtonTypeRequestUsers, error) {
|
|
var resp KeyboardButtonTypeRequestUsers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalKeyboardButtonTypeRequestChat(data json.RawMessage) (*KeyboardButtonTypeRequestChat, error) {
|
|
var resp KeyboardButtonTypeRequestChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalKeyboardButtonTypeWebApp(data json.RawMessage) (*KeyboardButtonTypeWebApp, error) {
|
|
var resp KeyboardButtonTypeWebApp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalKeyboardButton(data json.RawMessage) (*KeyboardButton, error) {
|
|
var resp KeyboardButton
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineKeyboardButtonTypeUrl(data json.RawMessage) (*InlineKeyboardButtonTypeUrl, error) {
|
|
var resp InlineKeyboardButtonTypeUrl
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineKeyboardButtonTypeLoginUrl(data json.RawMessage) (*InlineKeyboardButtonTypeLoginUrl, error) {
|
|
var resp InlineKeyboardButtonTypeLoginUrl
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineKeyboardButtonTypeWebApp(data json.RawMessage) (*InlineKeyboardButtonTypeWebApp, error) {
|
|
var resp InlineKeyboardButtonTypeWebApp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineKeyboardButtonTypeCallback(data json.RawMessage) (*InlineKeyboardButtonTypeCallback, error) {
|
|
var resp InlineKeyboardButtonTypeCallback
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineKeyboardButtonTypeCallbackWithPassword(data json.RawMessage) (*InlineKeyboardButtonTypeCallbackWithPassword, error) {
|
|
var resp InlineKeyboardButtonTypeCallbackWithPassword
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineKeyboardButtonTypeCallbackGame(data json.RawMessage) (*InlineKeyboardButtonTypeCallbackGame, error) {
|
|
var resp InlineKeyboardButtonTypeCallbackGame
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineKeyboardButtonTypeSwitchInline(data json.RawMessage) (*InlineKeyboardButtonTypeSwitchInline, error) {
|
|
var resp InlineKeyboardButtonTypeSwitchInline
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineKeyboardButtonTypeBuy(data json.RawMessage) (*InlineKeyboardButtonTypeBuy, error) {
|
|
var resp InlineKeyboardButtonTypeBuy
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineKeyboardButtonTypeUser(data json.RawMessage) (*InlineKeyboardButtonTypeUser, error) {
|
|
var resp InlineKeyboardButtonTypeUser
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineKeyboardButtonTypeCopyText(data json.RawMessage) (*InlineKeyboardButtonTypeCopyText, error) {
|
|
var resp InlineKeyboardButtonTypeCopyText
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineKeyboardButton(data json.RawMessage) (*InlineKeyboardButton, error) {
|
|
var resp InlineKeyboardButton
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReplyMarkupRemoveKeyboard(data json.RawMessage) (*ReplyMarkupRemoveKeyboard, error) {
|
|
var resp ReplyMarkupRemoveKeyboard
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReplyMarkupForceReply(data json.RawMessage) (*ReplyMarkupForceReply, error) {
|
|
var resp ReplyMarkupForceReply
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReplyMarkupShowKeyboard(data json.RawMessage) (*ReplyMarkupShowKeyboard, error) {
|
|
var resp ReplyMarkupShowKeyboard
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReplyMarkupInlineKeyboard(data json.RawMessage) (*ReplyMarkupInlineKeyboard, error) {
|
|
var resp ReplyMarkupInlineKeyboard
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLoginUrlInfoOpen(data json.RawMessage) (*LoginUrlInfoOpen, error) {
|
|
var resp LoginUrlInfoOpen
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLoginUrlInfoRequestConfirmation(data json.RawMessage) (*LoginUrlInfoRequestConfirmation, error) {
|
|
var resp LoginUrlInfoRequestConfirmation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalThemeParameters(data json.RawMessage) (*ThemeParameters, error) {
|
|
var resp ThemeParameters
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalWebAppOpenModeCompact(data json.RawMessage) (*WebAppOpenModeCompact, error) {
|
|
var resp WebAppOpenModeCompact
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalWebAppOpenModeFullSize(data json.RawMessage) (*WebAppOpenModeFullSize, error) {
|
|
var resp WebAppOpenModeFullSize
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalWebAppOpenModeFullScreen(data json.RawMessage) (*WebAppOpenModeFullScreen, error) {
|
|
var resp WebAppOpenModeFullScreen
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFoundWebApp(data json.RawMessage) (*FoundWebApp, error) {
|
|
var resp FoundWebApp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalWebAppInfo(data json.RawMessage) (*WebAppInfo, error) {
|
|
var resp WebAppInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMainWebApp(data json.RawMessage) (*MainWebApp, error) {
|
|
var resp MainWebApp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalWebAppOpenParameters(data json.RawMessage) (*WebAppOpenParameters, error) {
|
|
var resp WebAppOpenParameters
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageThreadInfo(data json.RawMessage) (*MessageThreadInfo, error) {
|
|
var resp MessageThreadInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSavedMessagesTopicTypeMyNotes(data json.RawMessage) (*SavedMessagesTopicTypeMyNotes, error) {
|
|
var resp SavedMessagesTopicTypeMyNotes
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSavedMessagesTopicTypeAuthorHidden(data json.RawMessage) (*SavedMessagesTopicTypeAuthorHidden, error) {
|
|
var resp SavedMessagesTopicTypeAuthorHidden
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSavedMessagesTopicTypeSavedFromChat(data json.RawMessage) (*SavedMessagesTopicTypeSavedFromChat, error) {
|
|
var resp SavedMessagesTopicTypeSavedFromChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSavedMessagesTopic(data json.RawMessage) (*SavedMessagesTopic, error) {
|
|
var resp SavedMessagesTopic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDirectMessagesChatTopic(data json.RawMessage) (*DirectMessagesChatTopic, error) {
|
|
var resp DirectMessagesChatTopic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalForumTopicIcon(data json.RawMessage) (*ForumTopicIcon, error) {
|
|
var resp ForumTopicIcon
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalForumTopicInfo(data json.RawMessage) (*ForumTopicInfo, error) {
|
|
var resp ForumTopicInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalForumTopic(data json.RawMessage) (*ForumTopic, error) {
|
|
var resp ForumTopic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalForumTopics(data json.RawMessage) (*ForumTopics, error) {
|
|
var resp ForumTopics
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewOptions(data json.RawMessage) (*LinkPreviewOptions, error) {
|
|
var resp LinkPreviewOptions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSharedUser(data json.RawMessage) (*SharedUser, error) {
|
|
var resp SharedUser
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSharedChat(data json.RawMessage) (*SharedChat, error) {
|
|
var resp SharedChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBuiltInThemeClassic(data json.RawMessage) (*BuiltInThemeClassic, error) {
|
|
var resp BuiltInThemeClassic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBuiltInThemeDay(data json.RawMessage) (*BuiltInThemeDay, error) {
|
|
var resp BuiltInThemeDay
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBuiltInThemeNight(data json.RawMessage) (*BuiltInThemeNight, error) {
|
|
var resp BuiltInThemeNight
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBuiltInThemeTinted(data json.RawMessage) (*BuiltInThemeTinted, error) {
|
|
var resp BuiltInThemeTinted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBuiltInThemeArctic(data json.RawMessage) (*BuiltInThemeArctic, error) {
|
|
var resp BuiltInThemeArctic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalThemeSettings(data json.RawMessage) (*ThemeSettings, error) {
|
|
var resp ThemeSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextPlain(data json.RawMessage) (*RichTextPlain, error) {
|
|
var resp RichTextPlain
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextBold(data json.RawMessage) (*RichTextBold, error) {
|
|
var resp RichTextBold
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextItalic(data json.RawMessage) (*RichTextItalic, error) {
|
|
var resp RichTextItalic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextUnderline(data json.RawMessage) (*RichTextUnderline, error) {
|
|
var resp RichTextUnderline
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextStrikethrough(data json.RawMessage) (*RichTextStrikethrough, error) {
|
|
var resp RichTextStrikethrough
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextFixed(data json.RawMessage) (*RichTextFixed, error) {
|
|
var resp RichTextFixed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextUrl(data json.RawMessage) (*RichTextUrl, error) {
|
|
var resp RichTextUrl
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextEmailAddress(data json.RawMessage) (*RichTextEmailAddress, error) {
|
|
var resp RichTextEmailAddress
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextSubscript(data json.RawMessage) (*RichTextSubscript, error) {
|
|
var resp RichTextSubscript
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextSuperscript(data json.RawMessage) (*RichTextSuperscript, error) {
|
|
var resp RichTextSuperscript
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextMarked(data json.RawMessage) (*RichTextMarked, error) {
|
|
var resp RichTextMarked
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextPhoneNumber(data json.RawMessage) (*RichTextPhoneNumber, error) {
|
|
var resp RichTextPhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextIcon(data json.RawMessage) (*RichTextIcon, error) {
|
|
var resp RichTextIcon
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextReference(data json.RawMessage) (*RichTextReference, error) {
|
|
var resp RichTextReference
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextAnchor(data json.RawMessage) (*RichTextAnchor, error) {
|
|
var resp RichTextAnchor
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTextAnchorLink(data json.RawMessage) (*RichTextAnchorLink, error) {
|
|
var resp RichTextAnchorLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRichTexts(data json.RawMessage) (*RichTexts, error) {
|
|
var resp RichTexts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockCaption(data json.RawMessage) (*PageBlockCaption, error) {
|
|
var resp PageBlockCaption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockListItem(data json.RawMessage) (*PageBlockListItem, error) {
|
|
var resp PageBlockListItem
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockHorizontalAlignmentLeft(data json.RawMessage) (*PageBlockHorizontalAlignmentLeft, error) {
|
|
var resp PageBlockHorizontalAlignmentLeft
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockHorizontalAlignmentCenter(data json.RawMessage) (*PageBlockHorizontalAlignmentCenter, error) {
|
|
var resp PageBlockHorizontalAlignmentCenter
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockHorizontalAlignmentRight(data json.RawMessage) (*PageBlockHorizontalAlignmentRight, error) {
|
|
var resp PageBlockHorizontalAlignmentRight
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockVerticalAlignmentTop(data json.RawMessage) (*PageBlockVerticalAlignmentTop, error) {
|
|
var resp PageBlockVerticalAlignmentTop
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockVerticalAlignmentMiddle(data json.RawMessage) (*PageBlockVerticalAlignmentMiddle, error) {
|
|
var resp PageBlockVerticalAlignmentMiddle
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockVerticalAlignmentBottom(data json.RawMessage) (*PageBlockVerticalAlignmentBottom, error) {
|
|
var resp PageBlockVerticalAlignmentBottom
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockTableCell(data json.RawMessage) (*PageBlockTableCell, error) {
|
|
var resp PageBlockTableCell
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockRelatedArticle(data json.RawMessage) (*PageBlockRelatedArticle, error) {
|
|
var resp PageBlockRelatedArticle
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockTitle(data json.RawMessage) (*PageBlockTitle, error) {
|
|
var resp PageBlockTitle
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockSubtitle(data json.RawMessage) (*PageBlockSubtitle, error) {
|
|
var resp PageBlockSubtitle
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockAuthorDate(data json.RawMessage) (*PageBlockAuthorDate, error) {
|
|
var resp PageBlockAuthorDate
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockHeader(data json.RawMessage) (*PageBlockHeader, error) {
|
|
var resp PageBlockHeader
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockSubheader(data json.RawMessage) (*PageBlockSubheader, error) {
|
|
var resp PageBlockSubheader
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockKicker(data json.RawMessage) (*PageBlockKicker, error) {
|
|
var resp PageBlockKicker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockParagraph(data json.RawMessage) (*PageBlockParagraph, error) {
|
|
var resp PageBlockParagraph
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockPreformatted(data json.RawMessage) (*PageBlockPreformatted, error) {
|
|
var resp PageBlockPreformatted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockFooter(data json.RawMessage) (*PageBlockFooter, error) {
|
|
var resp PageBlockFooter
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockDivider(data json.RawMessage) (*PageBlockDivider, error) {
|
|
var resp PageBlockDivider
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockAnchor(data json.RawMessage) (*PageBlockAnchor, error) {
|
|
var resp PageBlockAnchor
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockList(data json.RawMessage) (*PageBlockList, error) {
|
|
var resp PageBlockList
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockBlockQuote(data json.RawMessage) (*PageBlockBlockQuote, error) {
|
|
var resp PageBlockBlockQuote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockPullQuote(data json.RawMessage) (*PageBlockPullQuote, error) {
|
|
var resp PageBlockPullQuote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockAnimation(data json.RawMessage) (*PageBlockAnimation, error) {
|
|
var resp PageBlockAnimation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockAudio(data json.RawMessage) (*PageBlockAudio, error) {
|
|
var resp PageBlockAudio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockPhoto(data json.RawMessage) (*PageBlockPhoto, error) {
|
|
var resp PageBlockPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockVideo(data json.RawMessage) (*PageBlockVideo, error) {
|
|
var resp PageBlockVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockVoiceNote(data json.RawMessage) (*PageBlockVoiceNote, error) {
|
|
var resp PageBlockVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockCover(data json.RawMessage) (*PageBlockCover, error) {
|
|
var resp PageBlockCover
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockEmbedded(data json.RawMessage) (*PageBlockEmbedded, error) {
|
|
var resp PageBlockEmbedded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockEmbeddedPost(data json.RawMessage) (*PageBlockEmbeddedPost, error) {
|
|
var resp PageBlockEmbeddedPost
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockCollage(data json.RawMessage) (*PageBlockCollage, error) {
|
|
var resp PageBlockCollage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockSlideshow(data json.RawMessage) (*PageBlockSlideshow, error) {
|
|
var resp PageBlockSlideshow
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockChatLink(data json.RawMessage) (*PageBlockChatLink, error) {
|
|
var resp PageBlockChatLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockTable(data json.RawMessage) (*PageBlockTable, error) {
|
|
var resp PageBlockTable
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockDetails(data json.RawMessage) (*PageBlockDetails, error) {
|
|
var resp PageBlockDetails
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockRelatedArticles(data json.RawMessage) (*PageBlockRelatedArticles, error) {
|
|
var resp PageBlockRelatedArticles
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPageBlockMap(data json.RawMessage) (*PageBlockMap, error) {
|
|
var resp PageBlockMap
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalWebPageInstantView(data json.RawMessage) (*WebPageInstantView, error) {
|
|
var resp WebPageInstantView
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewAlbumMediaPhoto(data json.RawMessage) (*LinkPreviewAlbumMediaPhoto, error) {
|
|
var resp LinkPreviewAlbumMediaPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewAlbumMediaVideo(data json.RawMessage) (*LinkPreviewAlbumMediaVideo, error) {
|
|
var resp LinkPreviewAlbumMediaVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeAlbum(data json.RawMessage) (*LinkPreviewTypeAlbum, error) {
|
|
var resp LinkPreviewTypeAlbum
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeAnimation(data json.RawMessage) (*LinkPreviewTypeAnimation, error) {
|
|
var resp LinkPreviewTypeAnimation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeApp(data json.RawMessage) (*LinkPreviewTypeApp, error) {
|
|
var resp LinkPreviewTypeApp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeArticle(data json.RawMessage) (*LinkPreviewTypeArticle, error) {
|
|
var resp LinkPreviewTypeArticle
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeAudio(data json.RawMessage) (*LinkPreviewTypeAudio, error) {
|
|
var resp LinkPreviewTypeAudio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeBackground(data json.RawMessage) (*LinkPreviewTypeBackground, error) {
|
|
var resp LinkPreviewTypeBackground
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeChannelBoost(data json.RawMessage) (*LinkPreviewTypeChannelBoost, error) {
|
|
var resp LinkPreviewTypeChannelBoost
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeChat(data json.RawMessage) (*LinkPreviewTypeChat, error) {
|
|
var resp LinkPreviewTypeChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeDirectMessagesChat(data json.RawMessage) (*LinkPreviewTypeDirectMessagesChat, error) {
|
|
var resp LinkPreviewTypeDirectMessagesChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeDocument(data json.RawMessage) (*LinkPreviewTypeDocument, error) {
|
|
var resp LinkPreviewTypeDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeEmbeddedAnimationPlayer(data json.RawMessage) (*LinkPreviewTypeEmbeddedAnimationPlayer, error) {
|
|
var resp LinkPreviewTypeEmbeddedAnimationPlayer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeEmbeddedAudioPlayer(data json.RawMessage) (*LinkPreviewTypeEmbeddedAudioPlayer, error) {
|
|
var resp LinkPreviewTypeEmbeddedAudioPlayer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeEmbeddedVideoPlayer(data json.RawMessage) (*LinkPreviewTypeEmbeddedVideoPlayer, error) {
|
|
var resp LinkPreviewTypeEmbeddedVideoPlayer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeExternalAudio(data json.RawMessage) (*LinkPreviewTypeExternalAudio, error) {
|
|
var resp LinkPreviewTypeExternalAudio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeExternalVideo(data json.RawMessage) (*LinkPreviewTypeExternalVideo, error) {
|
|
var resp LinkPreviewTypeExternalVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeGiftAuction(data json.RawMessage) (*LinkPreviewTypeGiftAuction, error) {
|
|
var resp LinkPreviewTypeGiftAuction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeGiftCollection(data json.RawMessage) (*LinkPreviewTypeGiftCollection, error) {
|
|
var resp LinkPreviewTypeGiftCollection
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeGroupCall(data json.RawMessage) (*LinkPreviewTypeGroupCall, error) {
|
|
var resp LinkPreviewTypeGroupCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeInvoice(data json.RawMessage) (*LinkPreviewTypeInvoice, error) {
|
|
var resp LinkPreviewTypeInvoice
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeLiveStory(data json.RawMessage) (*LinkPreviewTypeLiveStory, error) {
|
|
var resp LinkPreviewTypeLiveStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeMessage(data json.RawMessage) (*LinkPreviewTypeMessage, error) {
|
|
var resp LinkPreviewTypeMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypePhoto(data json.RawMessage) (*LinkPreviewTypePhoto, error) {
|
|
var resp LinkPreviewTypePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypePremiumGiftCode(data json.RawMessage) (*LinkPreviewTypePremiumGiftCode, error) {
|
|
var resp LinkPreviewTypePremiumGiftCode
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeShareableChatFolder(data json.RawMessage) (*LinkPreviewTypeShareableChatFolder, error) {
|
|
var resp LinkPreviewTypeShareableChatFolder
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeSticker(data json.RawMessage) (*LinkPreviewTypeSticker, error) {
|
|
var resp LinkPreviewTypeSticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeStickerSet(data json.RawMessage) (*LinkPreviewTypeStickerSet, error) {
|
|
var resp LinkPreviewTypeStickerSet
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeStory(data json.RawMessage) (*LinkPreviewTypeStory, error) {
|
|
var resp LinkPreviewTypeStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeStoryAlbum(data json.RawMessage) (*LinkPreviewTypeStoryAlbum, error) {
|
|
var resp LinkPreviewTypeStoryAlbum
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeSupergroupBoost(data json.RawMessage) (*LinkPreviewTypeSupergroupBoost, error) {
|
|
var resp LinkPreviewTypeSupergroupBoost
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeTheme(data json.RawMessage) (*LinkPreviewTypeTheme, error) {
|
|
var resp LinkPreviewTypeTheme
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeUnsupported(data json.RawMessage) (*LinkPreviewTypeUnsupported, error) {
|
|
var resp LinkPreviewTypeUnsupported
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeUpgradedGift(data json.RawMessage) (*LinkPreviewTypeUpgradedGift, error) {
|
|
var resp LinkPreviewTypeUpgradedGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeUser(data json.RawMessage) (*LinkPreviewTypeUser, error) {
|
|
var resp LinkPreviewTypeUser
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeVideo(data json.RawMessage) (*LinkPreviewTypeVideo, error) {
|
|
var resp LinkPreviewTypeVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeVideoChat(data json.RawMessage) (*LinkPreviewTypeVideoChat, error) {
|
|
var resp LinkPreviewTypeVideoChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeVideoNote(data json.RawMessage) (*LinkPreviewTypeVideoNote, error) {
|
|
var resp LinkPreviewTypeVideoNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeVoiceNote(data json.RawMessage) (*LinkPreviewTypeVoiceNote, error) {
|
|
var resp LinkPreviewTypeVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreviewTypeWebApp(data json.RawMessage) (*LinkPreviewTypeWebApp, error) {
|
|
var resp LinkPreviewTypeWebApp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLinkPreview(data json.RawMessage) (*LinkPreview, error) {
|
|
var resp LinkPreview
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCountryInfo(data json.RawMessage) (*CountryInfo, error) {
|
|
var resp CountryInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCountries(data json.RawMessage) (*Countries, error) {
|
|
var resp Countries
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPhoneNumberInfo(data json.RawMessage) (*PhoneNumberInfo, error) {
|
|
var resp PhoneNumberInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCollectibleItemTypeUsername(data json.RawMessage) (*CollectibleItemTypeUsername, error) {
|
|
var resp CollectibleItemTypeUsername
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCollectibleItemTypePhoneNumber(data json.RawMessage) (*CollectibleItemTypePhoneNumber, error) {
|
|
var resp CollectibleItemTypePhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCollectibleItemInfo(data json.RawMessage) (*CollectibleItemInfo, error) {
|
|
var resp CollectibleItemInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBankCardActionOpenUrl(data json.RawMessage) (*BankCardActionOpenUrl, error) {
|
|
var resp BankCardActionOpenUrl
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBankCardInfo(data json.RawMessage) (*BankCardInfo, error) {
|
|
var resp BankCardInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAddress(data json.RawMessage) (*Address, error) {
|
|
var resp Address
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLocationAddress(data json.RawMessage) (*LocationAddress, error) {
|
|
var resp LocationAddress
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLabeledPricePart(data json.RawMessage) (*LabeledPricePart, error) {
|
|
var resp LabeledPricePart
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInvoice(data json.RawMessage) (*Invoice, error) {
|
|
var resp Invoice
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalOrderInfo(data json.RawMessage) (*OrderInfo, error) {
|
|
var resp OrderInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalShippingOption(data json.RawMessage) (*ShippingOption, error) {
|
|
var resp ShippingOption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSavedCredentials(data json.RawMessage) (*SavedCredentials, error) {
|
|
var resp SavedCredentials
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputCredentialsSaved(data json.RawMessage) (*InputCredentialsSaved, error) {
|
|
var resp InputCredentialsSaved
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputCredentialsNew(data json.RawMessage) (*InputCredentialsNew, error) {
|
|
var resp InputCredentialsNew
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputCredentialsApplePay(data json.RawMessage) (*InputCredentialsApplePay, error) {
|
|
var resp InputCredentialsApplePay
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputCredentialsGooglePay(data json.RawMessage) (*InputCredentialsGooglePay, error) {
|
|
var resp InputCredentialsGooglePay
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaymentProviderSmartGlocal(data json.RawMessage) (*PaymentProviderSmartGlocal, error) {
|
|
var resp PaymentProviderSmartGlocal
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaymentProviderStripe(data json.RawMessage) (*PaymentProviderStripe, error) {
|
|
var resp PaymentProviderStripe
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaymentProviderOther(data json.RawMessage) (*PaymentProviderOther, error) {
|
|
var resp PaymentProviderOther
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaymentOption(data json.RawMessage) (*PaymentOption, error) {
|
|
var resp PaymentOption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaymentFormTypeRegular(data json.RawMessage) (*PaymentFormTypeRegular, error) {
|
|
var resp PaymentFormTypeRegular
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaymentFormTypeStars(data json.RawMessage) (*PaymentFormTypeStars, error) {
|
|
var resp PaymentFormTypeStars
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaymentFormTypeStarSubscription(data json.RawMessage) (*PaymentFormTypeStarSubscription, error) {
|
|
var resp PaymentFormTypeStarSubscription
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaymentForm(data json.RawMessage) (*PaymentForm, error) {
|
|
var resp PaymentForm
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalValidatedOrderInfo(data json.RawMessage) (*ValidatedOrderInfo, error) {
|
|
var resp ValidatedOrderInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaymentResult(data json.RawMessage) (*PaymentResult, error) {
|
|
var resp PaymentResult
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaymentReceiptTypeRegular(data json.RawMessage) (*PaymentReceiptTypeRegular, error) {
|
|
var resp PaymentReceiptTypeRegular
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaymentReceiptTypeStars(data json.RawMessage) (*PaymentReceiptTypeStars, error) {
|
|
var resp PaymentReceiptTypeStars
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaymentReceipt(data json.RawMessage) (*PaymentReceipt, error) {
|
|
var resp PaymentReceipt
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInvoiceMessage(data json.RawMessage) (*InputInvoiceMessage, error) {
|
|
var resp InputInvoiceMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInvoiceName(data json.RawMessage) (*InputInvoiceName, error) {
|
|
var resp InputInvoiceName
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInvoiceTelegram(data json.RawMessage) (*InputInvoiceTelegram, error) {
|
|
var resp InputInvoiceTelegram
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaidMediaPreview(data json.RawMessage) (*PaidMediaPreview, error) {
|
|
var resp PaidMediaPreview
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaidMediaPhoto(data json.RawMessage) (*PaidMediaPhoto, error) {
|
|
var resp PaidMediaPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaidMediaVideo(data json.RawMessage) (*PaidMediaVideo, error) {
|
|
var resp PaidMediaVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPaidMediaUnsupported(data json.RawMessage) (*PaidMediaUnsupported, error) {
|
|
var resp PaidMediaUnsupported
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiveawayParameters(data json.RawMessage) (*GiveawayParameters, error) {
|
|
var resp GiveawayParameters
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDatedFile(data json.RawMessage) (*DatedFile, error) {
|
|
var resp DatedFile
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypePersonalDetails(data json.RawMessage) (*PassportElementTypePersonalDetails, error) {
|
|
var resp PassportElementTypePersonalDetails
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypePassport(data json.RawMessage) (*PassportElementTypePassport, error) {
|
|
var resp PassportElementTypePassport
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypeDriverLicense(data json.RawMessage) (*PassportElementTypeDriverLicense, error) {
|
|
var resp PassportElementTypeDriverLicense
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypeIdentityCard(data json.RawMessage) (*PassportElementTypeIdentityCard, error) {
|
|
var resp PassportElementTypeIdentityCard
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypeInternalPassport(data json.RawMessage) (*PassportElementTypeInternalPassport, error) {
|
|
var resp PassportElementTypeInternalPassport
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypeAddress(data json.RawMessage) (*PassportElementTypeAddress, error) {
|
|
var resp PassportElementTypeAddress
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypeUtilityBill(data json.RawMessage) (*PassportElementTypeUtilityBill, error) {
|
|
var resp PassportElementTypeUtilityBill
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypeBankStatement(data json.RawMessage) (*PassportElementTypeBankStatement, error) {
|
|
var resp PassportElementTypeBankStatement
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypeRentalAgreement(data json.RawMessage) (*PassportElementTypeRentalAgreement, error) {
|
|
var resp PassportElementTypeRentalAgreement
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypePassportRegistration(data json.RawMessage) (*PassportElementTypePassportRegistration, error) {
|
|
var resp PassportElementTypePassportRegistration
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypeTemporaryRegistration(data json.RawMessage) (*PassportElementTypeTemporaryRegistration, error) {
|
|
var resp PassportElementTypeTemporaryRegistration
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypePhoneNumber(data json.RawMessage) (*PassportElementTypePhoneNumber, error) {
|
|
var resp PassportElementTypePhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTypeEmailAddress(data json.RawMessage) (*PassportElementTypeEmailAddress, error) {
|
|
var resp PassportElementTypeEmailAddress
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDate(data json.RawMessage) (*Date, error) {
|
|
var resp Date
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPersonalDetails(data json.RawMessage) (*PersonalDetails, error) {
|
|
var resp PersonalDetails
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalIdentityDocument(data json.RawMessage) (*IdentityDocument, error) {
|
|
var resp IdentityDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputIdentityDocument(data json.RawMessage) (*InputIdentityDocument, error) {
|
|
var resp InputIdentityDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPersonalDocument(data json.RawMessage) (*PersonalDocument, error) {
|
|
var resp PersonalDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPersonalDocument(data json.RawMessage) (*InputPersonalDocument, error) {
|
|
var resp InputPersonalDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementPersonalDetails(data json.RawMessage) (*PassportElementPersonalDetails, error) {
|
|
var resp PassportElementPersonalDetails
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementPassport(data json.RawMessage) (*PassportElementPassport, error) {
|
|
var resp PassportElementPassport
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementDriverLicense(data json.RawMessage) (*PassportElementDriverLicense, error) {
|
|
var resp PassportElementDriverLicense
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementIdentityCard(data json.RawMessage) (*PassportElementIdentityCard, error) {
|
|
var resp PassportElementIdentityCard
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementInternalPassport(data json.RawMessage) (*PassportElementInternalPassport, error) {
|
|
var resp PassportElementInternalPassport
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementAddress(data json.RawMessage) (*PassportElementAddress, error) {
|
|
var resp PassportElementAddress
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementUtilityBill(data json.RawMessage) (*PassportElementUtilityBill, error) {
|
|
var resp PassportElementUtilityBill
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementBankStatement(data json.RawMessage) (*PassportElementBankStatement, error) {
|
|
var resp PassportElementBankStatement
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementRentalAgreement(data json.RawMessage) (*PassportElementRentalAgreement, error) {
|
|
var resp PassportElementRentalAgreement
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementPassportRegistration(data json.RawMessage) (*PassportElementPassportRegistration, error) {
|
|
var resp PassportElementPassportRegistration
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementTemporaryRegistration(data json.RawMessage) (*PassportElementTemporaryRegistration, error) {
|
|
var resp PassportElementTemporaryRegistration
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementPhoneNumber(data json.RawMessage) (*PassportElementPhoneNumber, error) {
|
|
var resp PassportElementPhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementEmailAddress(data json.RawMessage) (*PassportElementEmailAddress, error) {
|
|
var resp PassportElementEmailAddress
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementPersonalDetails(data json.RawMessage) (*InputPassportElementPersonalDetails, error) {
|
|
var resp InputPassportElementPersonalDetails
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementPassport(data json.RawMessage) (*InputPassportElementPassport, error) {
|
|
var resp InputPassportElementPassport
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementDriverLicense(data json.RawMessage) (*InputPassportElementDriverLicense, error) {
|
|
var resp InputPassportElementDriverLicense
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementIdentityCard(data json.RawMessage) (*InputPassportElementIdentityCard, error) {
|
|
var resp InputPassportElementIdentityCard
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementInternalPassport(data json.RawMessage) (*InputPassportElementInternalPassport, error) {
|
|
var resp InputPassportElementInternalPassport
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementAddress(data json.RawMessage) (*InputPassportElementAddress, error) {
|
|
var resp InputPassportElementAddress
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementUtilityBill(data json.RawMessage) (*InputPassportElementUtilityBill, error) {
|
|
var resp InputPassportElementUtilityBill
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementBankStatement(data json.RawMessage) (*InputPassportElementBankStatement, error) {
|
|
var resp InputPassportElementBankStatement
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementRentalAgreement(data json.RawMessage) (*InputPassportElementRentalAgreement, error) {
|
|
var resp InputPassportElementRentalAgreement
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementPassportRegistration(data json.RawMessage) (*InputPassportElementPassportRegistration, error) {
|
|
var resp InputPassportElementPassportRegistration
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementTemporaryRegistration(data json.RawMessage) (*InputPassportElementTemporaryRegistration, error) {
|
|
var resp InputPassportElementTemporaryRegistration
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementPhoneNumber(data json.RawMessage) (*InputPassportElementPhoneNumber, error) {
|
|
var resp InputPassportElementPhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementEmailAddress(data json.RawMessage) (*InputPassportElementEmailAddress, error) {
|
|
var resp InputPassportElementEmailAddress
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElements(data json.RawMessage) (*PassportElements, error) {
|
|
var resp PassportElements
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementErrorSourceUnspecified(data json.RawMessage) (*PassportElementErrorSourceUnspecified, error) {
|
|
var resp PassportElementErrorSourceUnspecified
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementErrorSourceDataField(data json.RawMessage) (*PassportElementErrorSourceDataField, error) {
|
|
var resp PassportElementErrorSourceDataField
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementErrorSourceFrontSide(data json.RawMessage) (*PassportElementErrorSourceFrontSide, error) {
|
|
var resp PassportElementErrorSourceFrontSide
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementErrorSourceReverseSide(data json.RawMessage) (*PassportElementErrorSourceReverseSide, error) {
|
|
var resp PassportElementErrorSourceReverseSide
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementErrorSourceSelfie(data json.RawMessage) (*PassportElementErrorSourceSelfie, error) {
|
|
var resp PassportElementErrorSourceSelfie
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementErrorSourceTranslationFile(data json.RawMessage) (*PassportElementErrorSourceTranslationFile, error) {
|
|
var resp PassportElementErrorSourceTranslationFile
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementErrorSourceTranslationFiles(data json.RawMessage) (*PassportElementErrorSourceTranslationFiles, error) {
|
|
var resp PassportElementErrorSourceTranslationFiles
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementErrorSourceFile(data json.RawMessage) (*PassportElementErrorSourceFile, error) {
|
|
var resp PassportElementErrorSourceFile
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementErrorSourceFiles(data json.RawMessage) (*PassportElementErrorSourceFiles, error) {
|
|
var resp PassportElementErrorSourceFiles
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementError(data json.RawMessage) (*PassportElementError, error) {
|
|
var resp PassportElementError
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportSuitableElement(data json.RawMessage) (*PassportSuitableElement, error) {
|
|
var resp PassportSuitableElement
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportRequiredElement(data json.RawMessage) (*PassportRequiredElement, error) {
|
|
var resp PassportRequiredElement
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportAuthorizationForm(data json.RawMessage) (*PassportAuthorizationForm, error) {
|
|
var resp PassportAuthorizationForm
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPassportElementsWithErrors(data json.RawMessage) (*PassportElementsWithErrors, error) {
|
|
var resp PassportElementsWithErrors
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEncryptedCredentials(data json.RawMessage) (*EncryptedCredentials, error) {
|
|
var resp EncryptedCredentials
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEncryptedPassportElement(data json.RawMessage) (*EncryptedPassportElement, error) {
|
|
var resp EncryptedPassportElement
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementErrorSourceUnspecified(data json.RawMessage) (*InputPassportElementErrorSourceUnspecified, error) {
|
|
var resp InputPassportElementErrorSourceUnspecified
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementErrorSourceDataField(data json.RawMessage) (*InputPassportElementErrorSourceDataField, error) {
|
|
var resp InputPassportElementErrorSourceDataField
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementErrorSourceFrontSide(data json.RawMessage) (*InputPassportElementErrorSourceFrontSide, error) {
|
|
var resp InputPassportElementErrorSourceFrontSide
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementErrorSourceReverseSide(data json.RawMessage) (*InputPassportElementErrorSourceReverseSide, error) {
|
|
var resp InputPassportElementErrorSourceReverseSide
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementErrorSourceSelfie(data json.RawMessage) (*InputPassportElementErrorSourceSelfie, error) {
|
|
var resp InputPassportElementErrorSourceSelfie
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementErrorSourceTranslationFile(data json.RawMessage) (*InputPassportElementErrorSourceTranslationFile, error) {
|
|
var resp InputPassportElementErrorSourceTranslationFile
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementErrorSourceTranslationFiles(data json.RawMessage) (*InputPassportElementErrorSourceTranslationFiles, error) {
|
|
var resp InputPassportElementErrorSourceTranslationFiles
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementErrorSourceFile(data json.RawMessage) (*InputPassportElementErrorSourceFile, error) {
|
|
var resp InputPassportElementErrorSourceFile
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementErrorSourceFiles(data json.RawMessage) (*InputPassportElementErrorSourceFiles, error) {
|
|
var resp InputPassportElementErrorSourceFiles
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPassportElementError(data json.RawMessage) (*InputPassportElementError, error) {
|
|
var resp InputPassportElementError
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageText(data json.RawMessage) (*MessageText, error) {
|
|
var resp MessageText
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageAnimation(data json.RawMessage) (*MessageAnimation, error) {
|
|
var resp MessageAnimation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageAudio(data json.RawMessage) (*MessageAudio, error) {
|
|
var resp MessageAudio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageDocument(data json.RawMessage) (*MessageDocument, error) {
|
|
var resp MessageDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePaidMedia(data json.RawMessage) (*MessagePaidMedia, error) {
|
|
var resp MessagePaidMedia
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePhoto(data json.RawMessage) (*MessagePhoto, error) {
|
|
var resp MessagePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSticker(data json.RawMessage) (*MessageSticker, error) {
|
|
var resp MessageSticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageVideo(data json.RawMessage) (*MessageVideo, error) {
|
|
var resp MessageVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageVideoNote(data json.RawMessage) (*MessageVideoNote, error) {
|
|
var resp MessageVideoNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageVoiceNote(data json.RawMessage) (*MessageVoiceNote, error) {
|
|
var resp MessageVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageExpiredPhoto(data json.RawMessage) (*MessageExpiredPhoto, error) {
|
|
var resp MessageExpiredPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageExpiredVideo(data json.RawMessage) (*MessageExpiredVideo, error) {
|
|
var resp MessageExpiredVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageExpiredVideoNote(data json.RawMessage) (*MessageExpiredVideoNote, error) {
|
|
var resp MessageExpiredVideoNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageExpiredVoiceNote(data json.RawMessage) (*MessageExpiredVoiceNote, error) {
|
|
var resp MessageExpiredVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageLocation(data json.RawMessage) (*MessageLocation, error) {
|
|
var resp MessageLocation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageVenue(data json.RawMessage) (*MessageVenue, error) {
|
|
var resp MessageVenue
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageContact(data json.RawMessage) (*MessageContact, error) {
|
|
var resp MessageContact
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageAnimatedEmoji(data json.RawMessage) (*MessageAnimatedEmoji, error) {
|
|
var resp MessageAnimatedEmoji
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageDice(data json.RawMessage) (*MessageDice, error) {
|
|
var resp MessageDice
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageGame(data json.RawMessage) (*MessageGame, error) {
|
|
var resp MessageGame
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePoll(data json.RawMessage) (*MessagePoll, error) {
|
|
var resp MessagePoll
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageStakeDice(data json.RawMessage) (*MessageStakeDice, error) {
|
|
var resp MessageStakeDice
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageStory(data json.RawMessage) (*MessageStory, error) {
|
|
var resp MessageStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChecklist(data json.RawMessage) (*MessageChecklist, error) {
|
|
var resp MessageChecklist
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageInvoice(data json.RawMessage) (*MessageInvoice, error) {
|
|
var resp MessageInvoice
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageCall(data json.RawMessage) (*MessageCall, error) {
|
|
var resp MessageCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageGroupCall(data json.RawMessage) (*MessageGroupCall, error) {
|
|
var resp MessageGroupCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageVideoChatScheduled(data json.RawMessage) (*MessageVideoChatScheduled, error) {
|
|
var resp MessageVideoChatScheduled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageVideoChatStarted(data json.RawMessage) (*MessageVideoChatStarted, error) {
|
|
var resp MessageVideoChatStarted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageVideoChatEnded(data json.RawMessage) (*MessageVideoChatEnded, error) {
|
|
var resp MessageVideoChatEnded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageInviteVideoChatParticipants(data json.RawMessage) (*MessageInviteVideoChatParticipants, error) {
|
|
var resp MessageInviteVideoChatParticipants
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageBasicGroupChatCreate(data json.RawMessage) (*MessageBasicGroupChatCreate, error) {
|
|
var resp MessageBasicGroupChatCreate
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSupergroupChatCreate(data json.RawMessage) (*MessageSupergroupChatCreate, error) {
|
|
var resp MessageSupergroupChatCreate
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatChangeTitle(data json.RawMessage) (*MessageChatChangeTitle, error) {
|
|
var resp MessageChatChangeTitle
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatChangePhoto(data json.RawMessage) (*MessageChatChangePhoto, error) {
|
|
var resp MessageChatChangePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatDeletePhoto(data json.RawMessage) (*MessageChatDeletePhoto, error) {
|
|
var resp MessageChatDeletePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatOwnerLeft(data json.RawMessage) (*MessageChatOwnerLeft, error) {
|
|
var resp MessageChatOwnerLeft
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatOwnerChanged(data json.RawMessage) (*MessageChatOwnerChanged, error) {
|
|
var resp MessageChatOwnerChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatAddMembers(data json.RawMessage) (*MessageChatAddMembers, error) {
|
|
var resp MessageChatAddMembers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatJoinByLink(data json.RawMessage) (*MessageChatJoinByLink, error) {
|
|
var resp MessageChatJoinByLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatJoinByRequest(data json.RawMessage) (*MessageChatJoinByRequest, error) {
|
|
var resp MessageChatJoinByRequest
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatDeleteMember(data json.RawMessage) (*MessageChatDeleteMember, error) {
|
|
var resp MessageChatDeleteMember
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatUpgradeTo(data json.RawMessage) (*MessageChatUpgradeTo, error) {
|
|
var resp MessageChatUpgradeTo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatUpgradeFrom(data json.RawMessage) (*MessageChatUpgradeFrom, error) {
|
|
var resp MessageChatUpgradeFrom
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePinMessage(data json.RawMessage) (*MessagePinMessage, error) {
|
|
var resp MessagePinMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageScreenshotTaken(data json.RawMessage) (*MessageScreenshotTaken, error) {
|
|
var resp MessageScreenshotTaken
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatSetBackground(data json.RawMessage) (*MessageChatSetBackground, error) {
|
|
var resp MessageChatSetBackground
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatSetTheme(data json.RawMessage) (*MessageChatSetTheme, error) {
|
|
var resp MessageChatSetTheme
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatSetMessageAutoDeleteTime(data json.RawMessage) (*MessageChatSetMessageAutoDeleteTime, error) {
|
|
var resp MessageChatSetMessageAutoDeleteTime
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatBoost(data json.RawMessage) (*MessageChatBoost, error) {
|
|
var resp MessageChatBoost
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageForumTopicCreated(data json.RawMessage) (*MessageForumTopicCreated, error) {
|
|
var resp MessageForumTopicCreated
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageForumTopicEdited(data json.RawMessage) (*MessageForumTopicEdited, error) {
|
|
var resp MessageForumTopicEdited
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageForumTopicIsClosedToggled(data json.RawMessage) (*MessageForumTopicIsClosedToggled, error) {
|
|
var resp MessageForumTopicIsClosedToggled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageForumTopicIsHiddenToggled(data json.RawMessage) (*MessageForumTopicIsHiddenToggled, error) {
|
|
var resp MessageForumTopicIsHiddenToggled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSuggestProfilePhoto(data json.RawMessage) (*MessageSuggestProfilePhoto, error) {
|
|
var resp MessageSuggestProfilePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageGameScore(data json.RawMessage) (*MessageGameScore, error) {
|
|
var resp MessageGameScore
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePaymentSuccessful(data json.RawMessage) (*MessagePaymentSuccessful, error) {
|
|
var resp MessagePaymentSuccessful
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePaymentSuccessfulBot(data json.RawMessage) (*MessagePaymentSuccessfulBot, error) {
|
|
var resp MessagePaymentSuccessfulBot
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePaymentRefunded(data json.RawMessage) (*MessagePaymentRefunded, error) {
|
|
var resp MessagePaymentRefunded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageGiftedPremium(data json.RawMessage) (*MessageGiftedPremium, error) {
|
|
var resp MessageGiftedPremium
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePremiumGiftCode(data json.RawMessage) (*MessagePremiumGiftCode, error) {
|
|
var resp MessagePremiumGiftCode
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageGiveawayCreated(data json.RawMessage) (*MessageGiveawayCreated, error) {
|
|
var resp MessageGiveawayCreated
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageGiveaway(data json.RawMessage) (*MessageGiveaway, error) {
|
|
var resp MessageGiveaway
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageGiveawayCompleted(data json.RawMessage) (*MessageGiveawayCompleted, error) {
|
|
var resp MessageGiveawayCompleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageGiveawayWinners(data json.RawMessage) (*MessageGiveawayWinners, error) {
|
|
var resp MessageGiveawayWinners
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageGiftedStars(data json.RawMessage) (*MessageGiftedStars, error) {
|
|
var resp MessageGiftedStars
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageGiftedTon(data json.RawMessage) (*MessageGiftedTon, error) {
|
|
var resp MessageGiftedTon
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageGiveawayPrizeStars(data json.RawMessage) (*MessageGiveawayPrizeStars, error) {
|
|
var resp MessageGiveawayPrizeStars
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageGift(data json.RawMessage) (*MessageGift, error) {
|
|
var resp MessageGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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 UnmarshalMessageUpgradedGiftPurchaseOffer(data json.RawMessage) (*MessageUpgradedGiftPurchaseOffer, error) {
|
|
var resp MessageUpgradedGiftPurchaseOffer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageUpgradedGiftPurchaseOfferRejected(data json.RawMessage) (*MessageUpgradedGiftPurchaseOfferRejected, error) {
|
|
var resp MessageUpgradedGiftPurchaseOfferRejected
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePaidMessagesRefunded(data json.RawMessage) (*MessagePaidMessagesRefunded, error) {
|
|
var resp MessagePaidMessagesRefunded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePaidMessagePriceChanged(data json.RawMessage) (*MessagePaidMessagePriceChanged, error) {
|
|
var resp MessagePaidMessagePriceChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageDirectMessagePriceChanged(data json.RawMessage) (*MessageDirectMessagePriceChanged, error) {
|
|
var resp MessageDirectMessagePriceChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChecklistTasksDone(data json.RawMessage) (*MessageChecklistTasksDone, error) {
|
|
var resp MessageChecklistTasksDone
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChecklistTasksAdded(data json.RawMessage) (*MessageChecklistTasksAdded, error) {
|
|
var resp MessageChecklistTasksAdded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSuggestedPostApprovalFailed(data json.RawMessage) (*MessageSuggestedPostApprovalFailed, error) {
|
|
var resp MessageSuggestedPostApprovalFailed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSuggestedPostApproved(data json.RawMessage) (*MessageSuggestedPostApproved, error) {
|
|
var resp MessageSuggestedPostApproved
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSuggestedPostDeclined(data json.RawMessage) (*MessageSuggestedPostDeclined, error) {
|
|
var resp MessageSuggestedPostDeclined
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSuggestedPostPaid(data json.RawMessage) (*MessageSuggestedPostPaid, error) {
|
|
var resp MessageSuggestedPostPaid
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSuggestedPostRefunded(data json.RawMessage) (*MessageSuggestedPostRefunded, error) {
|
|
var resp MessageSuggestedPostRefunded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageContactRegistered(data json.RawMessage) (*MessageContactRegistered, error) {
|
|
var resp MessageContactRegistered
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageUsersShared(data json.RawMessage) (*MessageUsersShared, error) {
|
|
var resp MessageUsersShared
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageChatShared(data json.RawMessage) (*MessageChatShared, error) {
|
|
var resp MessageChatShared
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageBotWriteAccessAllowed(data json.RawMessage) (*MessageBotWriteAccessAllowed, error) {
|
|
var resp MessageBotWriteAccessAllowed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageWebAppDataSent(data json.RawMessage) (*MessageWebAppDataSent, error) {
|
|
var resp MessageWebAppDataSent
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageWebAppDataReceived(data json.RawMessage) (*MessageWebAppDataReceived, error) {
|
|
var resp MessageWebAppDataReceived
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePassportDataSent(data json.RawMessage) (*MessagePassportDataSent, error) {
|
|
var resp MessagePassportDataSent
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessagePassportDataReceived(data json.RawMessage) (*MessagePassportDataReceived, error) {
|
|
var resp MessagePassportDataReceived
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageProximityAlertTriggered(data json.RawMessage) (*MessageProximityAlertTriggered, error) {
|
|
var resp MessageProximityAlertTriggered
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageUnsupported(data json.RawMessage) (*MessageUnsupported, error) {
|
|
var resp MessageUnsupported
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeMention(data json.RawMessage) (*TextEntityTypeMention, error) {
|
|
var resp TextEntityTypeMention
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeHashtag(data json.RawMessage) (*TextEntityTypeHashtag, error) {
|
|
var resp TextEntityTypeHashtag
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeCashtag(data json.RawMessage) (*TextEntityTypeCashtag, error) {
|
|
var resp TextEntityTypeCashtag
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeBotCommand(data json.RawMessage) (*TextEntityTypeBotCommand, error) {
|
|
var resp TextEntityTypeBotCommand
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeUrl(data json.RawMessage) (*TextEntityTypeUrl, error) {
|
|
var resp TextEntityTypeUrl
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeEmailAddress(data json.RawMessage) (*TextEntityTypeEmailAddress, error) {
|
|
var resp TextEntityTypeEmailAddress
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypePhoneNumber(data json.RawMessage) (*TextEntityTypePhoneNumber, error) {
|
|
var resp TextEntityTypePhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeBankCardNumber(data json.RawMessage) (*TextEntityTypeBankCardNumber, error) {
|
|
var resp TextEntityTypeBankCardNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeBold(data json.RawMessage) (*TextEntityTypeBold, error) {
|
|
var resp TextEntityTypeBold
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeItalic(data json.RawMessage) (*TextEntityTypeItalic, error) {
|
|
var resp TextEntityTypeItalic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeUnderline(data json.RawMessage) (*TextEntityTypeUnderline, error) {
|
|
var resp TextEntityTypeUnderline
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeStrikethrough(data json.RawMessage) (*TextEntityTypeStrikethrough, error) {
|
|
var resp TextEntityTypeStrikethrough
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeSpoiler(data json.RawMessage) (*TextEntityTypeSpoiler, error) {
|
|
var resp TextEntityTypeSpoiler
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeCode(data json.RawMessage) (*TextEntityTypeCode, error) {
|
|
var resp TextEntityTypeCode
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypePre(data json.RawMessage) (*TextEntityTypePre, error) {
|
|
var resp TextEntityTypePre
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypePreCode(data json.RawMessage) (*TextEntityTypePreCode, error) {
|
|
var resp TextEntityTypePreCode
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeBlockQuote(data json.RawMessage) (*TextEntityTypeBlockQuote, error) {
|
|
var resp TextEntityTypeBlockQuote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeExpandableBlockQuote(data json.RawMessage) (*TextEntityTypeExpandableBlockQuote, error) {
|
|
var resp TextEntityTypeExpandableBlockQuote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeTextUrl(data json.RawMessage) (*TextEntityTypeTextUrl, error) {
|
|
var resp TextEntityTypeTextUrl
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeMentionName(data json.RawMessage) (*TextEntityTypeMentionName, error) {
|
|
var resp TextEntityTypeMentionName
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeCustomEmoji(data json.RawMessage) (*TextEntityTypeCustomEmoji, error) {
|
|
var resp TextEntityTypeCustomEmoji
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextEntityTypeMediaTimestamp(data json.RawMessage) (*TextEntityTypeMediaTimestamp, error) {
|
|
var resp TextEntityTypeMediaTimestamp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputThumbnail(data json.RawMessage) (*InputThumbnail, error) {
|
|
var resp InputThumbnail
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPaidMediaTypePhoto(data json.RawMessage) (*InputPaidMediaTypePhoto, error) {
|
|
var resp InputPaidMediaTypePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPaidMediaTypeVideo(data json.RawMessage) (*InputPaidMediaTypeVideo, error) {
|
|
var resp InputPaidMediaTypeVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputPaidMedia(data json.RawMessage) (*InputPaidMedia, error) {
|
|
var resp InputPaidMedia
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSchedulingStateSendAtDate(data json.RawMessage) (*MessageSchedulingStateSendAtDate, error) {
|
|
var resp MessageSchedulingStateSendAtDate
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSchedulingStateSendWhenOnline(data json.RawMessage) (*MessageSchedulingStateSendWhenOnline, error) {
|
|
var resp MessageSchedulingStateSendWhenOnline
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSelfDestructTypeImmediately(data json.RawMessage) (*MessageSelfDestructTypeImmediately, error) {
|
|
var resp MessageSelfDestructTypeImmediately
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageSendOptions(data json.RawMessage) (*MessageSendOptions, error) {
|
|
var resp MessageSendOptions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageCopyOptions(data json.RawMessage) (*MessageCopyOptions, error) {
|
|
var resp MessageCopyOptions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageText(data json.RawMessage) (*InputMessageText, error) {
|
|
var resp InputMessageText
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageAnimation(data json.RawMessage) (*InputMessageAnimation, error) {
|
|
var resp InputMessageAnimation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageAudio(data json.RawMessage) (*InputMessageAudio, error) {
|
|
var resp InputMessageAudio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageDocument(data json.RawMessage) (*InputMessageDocument, error) {
|
|
var resp InputMessageDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessagePaidMedia(data json.RawMessage) (*InputMessagePaidMedia, error) {
|
|
var resp InputMessagePaidMedia
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessagePhoto(data json.RawMessage) (*InputMessagePhoto, error) {
|
|
var resp InputMessagePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageSticker(data json.RawMessage) (*InputMessageSticker, error) {
|
|
var resp InputMessageSticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageVideo(data json.RawMessage) (*InputMessageVideo, error) {
|
|
var resp InputMessageVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageVideoNote(data json.RawMessage) (*InputMessageVideoNote, error) {
|
|
var resp InputMessageVideoNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageVoiceNote(data json.RawMessage) (*InputMessageVoiceNote, error) {
|
|
var resp InputMessageVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageLocation(data json.RawMessage) (*InputMessageLocation, error) {
|
|
var resp InputMessageLocation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageVenue(data json.RawMessage) (*InputMessageVenue, error) {
|
|
var resp InputMessageVenue
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageContact(data json.RawMessage) (*InputMessageContact, error) {
|
|
var resp InputMessageContact
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageDice(data json.RawMessage) (*InputMessageDice, error) {
|
|
var resp InputMessageDice
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageGame(data json.RawMessage) (*InputMessageGame, error) {
|
|
var resp InputMessageGame
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageInvoice(data json.RawMessage) (*InputMessageInvoice, error) {
|
|
var resp InputMessageInvoice
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessagePoll(data json.RawMessage) (*InputMessagePoll, error) {
|
|
var resp InputMessagePoll
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageStakeDice(data json.RawMessage) (*InputMessageStakeDice, error) {
|
|
var resp InputMessageStakeDice
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageStory(data json.RawMessage) (*InputMessageStory, error) {
|
|
var resp InputMessageStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageChecklist(data json.RawMessage) (*InputMessageChecklist, error) {
|
|
var resp InputMessageChecklist
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputMessageForwarded(data json.RawMessage) (*InputMessageForwarded, error) {
|
|
var resp InputMessageForwarded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageProperties(data json.RawMessage) (*MessageProperties, error) {
|
|
var resp MessageProperties
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterEmpty(data json.RawMessage) (*SearchMessagesFilterEmpty, error) {
|
|
var resp SearchMessagesFilterEmpty
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterAnimation(data json.RawMessage) (*SearchMessagesFilterAnimation, error) {
|
|
var resp SearchMessagesFilterAnimation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterAudio(data json.RawMessage) (*SearchMessagesFilterAudio, error) {
|
|
var resp SearchMessagesFilterAudio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterDocument(data json.RawMessage) (*SearchMessagesFilterDocument, error) {
|
|
var resp SearchMessagesFilterDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterPhoto(data json.RawMessage) (*SearchMessagesFilterPhoto, error) {
|
|
var resp SearchMessagesFilterPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterVideo(data json.RawMessage) (*SearchMessagesFilterVideo, error) {
|
|
var resp SearchMessagesFilterVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterVoiceNote(data json.RawMessage) (*SearchMessagesFilterVoiceNote, error) {
|
|
var resp SearchMessagesFilterVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterPhotoAndVideo(data json.RawMessage) (*SearchMessagesFilterPhotoAndVideo, error) {
|
|
var resp SearchMessagesFilterPhotoAndVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterUrl(data json.RawMessage) (*SearchMessagesFilterUrl, error) {
|
|
var resp SearchMessagesFilterUrl
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterChatPhoto(data json.RawMessage) (*SearchMessagesFilterChatPhoto, error) {
|
|
var resp SearchMessagesFilterChatPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterVideoNote(data json.RawMessage) (*SearchMessagesFilterVideoNote, error) {
|
|
var resp SearchMessagesFilterVideoNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterVoiceAndVideoNote(data json.RawMessage) (*SearchMessagesFilterVoiceAndVideoNote, error) {
|
|
var resp SearchMessagesFilterVoiceAndVideoNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterMention(data json.RawMessage) (*SearchMessagesFilterMention, error) {
|
|
var resp SearchMessagesFilterMention
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterUnreadMention(data json.RawMessage) (*SearchMessagesFilterUnreadMention, error) {
|
|
var resp SearchMessagesFilterUnreadMention
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterUnreadReaction(data json.RawMessage) (*SearchMessagesFilterUnreadReaction, error) {
|
|
var resp SearchMessagesFilterUnreadReaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterFailedToSend(data json.RawMessage) (*SearchMessagesFilterFailedToSend, error) {
|
|
var resp SearchMessagesFilterFailedToSend
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSearchMessagesFilterPinned(data json.RawMessage) (*SearchMessagesFilterPinned, error) {
|
|
var resp SearchMessagesFilterPinned
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionRecordingVideo(data json.RawMessage) (*ChatActionRecordingVideo, error) {
|
|
var resp ChatActionRecordingVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionUploadingVideo(data json.RawMessage) (*ChatActionUploadingVideo, error) {
|
|
var resp ChatActionUploadingVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionRecordingVoiceNote(data json.RawMessage) (*ChatActionRecordingVoiceNote, error) {
|
|
var resp ChatActionRecordingVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionUploadingVoiceNote(data json.RawMessage) (*ChatActionUploadingVoiceNote, error) {
|
|
var resp ChatActionUploadingVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionUploadingPhoto(data json.RawMessage) (*ChatActionUploadingPhoto, error) {
|
|
var resp ChatActionUploadingPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionUploadingDocument(data json.RawMessage) (*ChatActionUploadingDocument, error) {
|
|
var resp ChatActionUploadingDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionChoosingSticker(data json.RawMessage) (*ChatActionChoosingSticker, error) {
|
|
var resp ChatActionChoosingSticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionChoosingLocation(data json.RawMessage) (*ChatActionChoosingLocation, error) {
|
|
var resp ChatActionChoosingLocation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionChoosingContact(data json.RawMessage) (*ChatActionChoosingContact, error) {
|
|
var resp ChatActionChoosingContact
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionStartPlayingGame(data json.RawMessage) (*ChatActionStartPlayingGame, error) {
|
|
var resp ChatActionStartPlayingGame
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionRecordingVideoNote(data json.RawMessage) (*ChatActionRecordingVideoNote, error) {
|
|
var resp ChatActionRecordingVideoNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionUploadingVideoNote(data json.RawMessage) (*ChatActionUploadingVideoNote, error) {
|
|
var resp ChatActionUploadingVideoNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionWatchingAnimations(data json.RawMessage) (*ChatActionWatchingAnimations, error) {
|
|
var resp ChatActionWatchingAnimations
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActionCancel(data json.RawMessage) (*ChatActionCancel, error) {
|
|
var resp ChatActionCancel
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserStatusEmpty(data json.RawMessage) (*UserStatusEmpty, error) {
|
|
var resp UserStatusEmpty
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserStatusOnline(data json.RawMessage) (*UserStatusOnline, error) {
|
|
var resp UserStatusOnline
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserStatusOffline(data json.RawMessage) (*UserStatusOffline, error) {
|
|
var resp UserStatusOffline
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserStatusRecently(data json.RawMessage) (*UserStatusRecently, error) {
|
|
var resp UserStatusRecently
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserStatusLastWeek(data json.RawMessage) (*UserStatusLastWeek, error) {
|
|
var resp UserStatusLastWeek
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserStatusLastMonth(data json.RawMessage) (*UserStatusLastMonth, error) {
|
|
var resp UserStatusLastMonth
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiKeyword(data json.RawMessage) (*EmojiKeyword, error) {
|
|
var resp EmojiKeyword
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiKeywords(data json.RawMessage) (*EmojiKeywords, error) {
|
|
var resp EmojiKeywords
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickers(data json.RawMessage) (*Stickers, error) {
|
|
var resp Stickers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojis(data json.RawMessage) (*Emojis, error) {
|
|
var resp Emojis
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickerSet(data json.RawMessage) (*StickerSet, error) {
|
|
var resp StickerSet
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickerSetInfo(data json.RawMessage) (*StickerSetInfo, error) {
|
|
var resp StickerSetInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStickerSets(data json.RawMessage) (*StickerSets, error) {
|
|
var resp StickerSets
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTrendingStickerSets(data json.RawMessage) (*TrendingStickerSets, error) {
|
|
var resp TrendingStickerSets
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiCategorySourceSearch(data json.RawMessage) (*EmojiCategorySourceSearch, error) {
|
|
var resp EmojiCategorySourceSearch
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiCategorySourcePremium(data json.RawMessage) (*EmojiCategorySourcePremium, error) {
|
|
var resp EmojiCategorySourcePremium
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiCategory(data json.RawMessage) (*EmojiCategory, error) {
|
|
var resp EmojiCategory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiCategories(data json.RawMessage) (*EmojiCategories, error) {
|
|
var resp EmojiCategories
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiCategoryTypeDefault(data json.RawMessage) (*EmojiCategoryTypeDefault, error) {
|
|
var resp EmojiCategoryTypeDefault
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiCategoryTypeRegularStickers(data json.RawMessage) (*EmojiCategoryTypeRegularStickers, error) {
|
|
var resp EmojiCategoryTypeRegularStickers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiCategoryTypeEmojiStatus(data json.RawMessage) (*EmojiCategoryTypeEmojiStatus, error) {
|
|
var resp EmojiCategoryTypeEmojiStatus
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiCategoryTypeChatPhoto(data json.RawMessage) (*EmojiCategoryTypeChatPhoto, error) {
|
|
var resp EmojiCategoryTypeChatPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCurrentWeather(data json.RawMessage) (*CurrentWeather, error) {
|
|
var resp CurrentWeather
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryAreaPosition(data json.RawMessage) (*StoryAreaPosition, error) {
|
|
var resp StoryAreaPosition
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryAreaTypeLocation(data json.RawMessage) (*StoryAreaTypeLocation, error) {
|
|
var resp StoryAreaTypeLocation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryAreaTypeVenue(data json.RawMessage) (*StoryAreaTypeVenue, error) {
|
|
var resp StoryAreaTypeVenue
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryAreaTypeSuggestedReaction(data json.RawMessage) (*StoryAreaTypeSuggestedReaction, error) {
|
|
var resp StoryAreaTypeSuggestedReaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryAreaTypeMessage(data json.RawMessage) (*StoryAreaTypeMessage, error) {
|
|
var resp StoryAreaTypeMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryAreaTypeLink(data json.RawMessage) (*StoryAreaTypeLink, error) {
|
|
var resp StoryAreaTypeLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryAreaTypeWeather(data json.RawMessage) (*StoryAreaTypeWeather, error) {
|
|
var resp StoryAreaTypeWeather
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryAreaTypeUpgradedGift(data json.RawMessage) (*StoryAreaTypeUpgradedGift, error) {
|
|
var resp StoryAreaTypeUpgradedGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryArea(data json.RawMessage) (*StoryArea, error) {
|
|
var resp StoryArea
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputStoryAreaTypeLocation(data json.RawMessage) (*InputStoryAreaTypeLocation, error) {
|
|
var resp InputStoryAreaTypeLocation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputStoryAreaTypeFoundVenue(data json.RawMessage) (*InputStoryAreaTypeFoundVenue, error) {
|
|
var resp InputStoryAreaTypeFoundVenue
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputStoryAreaTypePreviousVenue(data json.RawMessage) (*InputStoryAreaTypePreviousVenue, error) {
|
|
var resp InputStoryAreaTypePreviousVenue
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputStoryAreaTypeSuggestedReaction(data json.RawMessage) (*InputStoryAreaTypeSuggestedReaction, error) {
|
|
var resp InputStoryAreaTypeSuggestedReaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputStoryAreaTypeMessage(data json.RawMessage) (*InputStoryAreaTypeMessage, error) {
|
|
var resp InputStoryAreaTypeMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputStoryAreaTypeLink(data json.RawMessage) (*InputStoryAreaTypeLink, error) {
|
|
var resp InputStoryAreaTypeLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputStoryAreaTypeWeather(data json.RawMessage) (*InputStoryAreaTypeWeather, error) {
|
|
var resp InputStoryAreaTypeWeather
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputStoryAreaTypeUpgradedGift(data json.RawMessage) (*InputStoryAreaTypeUpgradedGift, error) {
|
|
var resp InputStoryAreaTypeUpgradedGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputStoryArea(data json.RawMessage) (*InputStoryArea, error) {
|
|
var resp InputStoryArea
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputStoryAreas(data json.RawMessage) (*InputStoryAreas, error) {
|
|
var resp InputStoryAreas
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryVideo(data json.RawMessage) (*StoryVideo, error) {
|
|
var resp StoryVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryContentTypePhoto(data json.RawMessage) (*StoryContentTypePhoto, error) {
|
|
var resp StoryContentTypePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryContentTypeVideo(data json.RawMessage) (*StoryContentTypeVideo, error) {
|
|
var resp StoryContentTypeVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryContentTypeLive(data json.RawMessage) (*StoryContentTypeLive, error) {
|
|
var resp StoryContentTypeLive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryContentTypeUnsupported(data json.RawMessage) (*StoryContentTypeUnsupported, error) {
|
|
var resp StoryContentTypeUnsupported
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryContentPhoto(data json.RawMessage) (*StoryContentPhoto, error) {
|
|
var resp StoryContentPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryContentVideo(data json.RawMessage) (*StoryContentVideo, error) {
|
|
var resp StoryContentVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryContentLive(data json.RawMessage) (*StoryContentLive, error) {
|
|
var resp StoryContentLive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryContentUnsupported(data json.RawMessage) (*StoryContentUnsupported, error) {
|
|
var resp StoryContentUnsupported
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputStoryContentPhoto(data json.RawMessage) (*InputStoryContentPhoto, error) {
|
|
var resp InputStoryContentPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputStoryContentVideo(data json.RawMessage) (*InputStoryContentVideo, error) {
|
|
var resp InputStoryContentVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryListMain(data json.RawMessage) (*StoryListMain, error) {
|
|
var resp StoryListMain
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryListArchive(data json.RawMessage) (*StoryListArchive, error) {
|
|
var resp StoryListArchive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryOriginPublicStory(data json.RawMessage) (*StoryOriginPublicStory, error) {
|
|
var resp StoryOriginPublicStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryOriginHiddenUser(data json.RawMessage) (*StoryOriginHiddenUser, error) {
|
|
var resp StoryOriginHiddenUser
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryRepostInfo(data json.RawMessage) (*StoryRepostInfo, error) {
|
|
var resp StoryRepostInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryInteractionInfo(data json.RawMessage) (*StoryInteractionInfo, error) {
|
|
var resp StoryInteractionInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStory(data json.RawMessage) (*Story, error) {
|
|
var resp Story
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStories(data json.RawMessage) (*Stories, error) {
|
|
var resp Stories
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFoundStories(data json.RawMessage) (*FoundStories, error) {
|
|
var resp FoundStories
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryAlbum(data json.RawMessage) (*StoryAlbum, error) {
|
|
var resp StoryAlbum
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryAlbums(data json.RawMessage) (*StoryAlbums, error) {
|
|
var resp StoryAlbums
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryFullId(data json.RawMessage) (*StoryFullId, error) {
|
|
var resp StoryFullId
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryInfo(data json.RawMessage) (*StoryInfo, error) {
|
|
var resp StoryInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatActiveStories(data json.RawMessage) (*ChatActiveStories, error) {
|
|
var resp ChatActiveStories
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryInteractionTypeView(data json.RawMessage) (*StoryInteractionTypeView, error) {
|
|
var resp StoryInteractionTypeView
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryInteractionTypeForward(data json.RawMessage) (*StoryInteractionTypeForward, error) {
|
|
var resp StoryInteractionTypeForward
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryInteractionTypeRepost(data json.RawMessage) (*StoryInteractionTypeRepost, error) {
|
|
var resp StoryInteractionTypeRepost
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryInteraction(data json.RawMessage) (*StoryInteraction, error) {
|
|
var resp StoryInteraction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryInteractions(data json.RawMessage) (*StoryInteractions, error) {
|
|
var resp StoryInteractions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalQuickReplyMessage(data json.RawMessage) (*QuickReplyMessage, error) {
|
|
var resp QuickReplyMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalQuickReplyMessages(data json.RawMessage) (*QuickReplyMessages, error) {
|
|
var resp QuickReplyMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalQuickReplyShortcut(data json.RawMessage) (*QuickReplyShortcut, error) {
|
|
var resp QuickReplyShortcut
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPublicForwardMessage(data json.RawMessage) (*PublicForwardMessage, error) {
|
|
var resp PublicForwardMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPublicForwardStory(data json.RawMessage) (*PublicForwardStory, error) {
|
|
var resp PublicForwardStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPublicForwards(data json.RawMessage) (*PublicForwards, error) {
|
|
var resp PublicForwards
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotMediaPreview(data json.RawMessage) (*BotMediaPreview, error) {
|
|
var resp BotMediaPreview
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotMediaPreviews(data json.RawMessage) (*BotMediaPreviews, error) {
|
|
var resp BotMediaPreviews
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotMediaPreviewInfo(data json.RawMessage) (*BotMediaPreviewInfo, error) {
|
|
var resp BotMediaPreviewInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatBoostLevelFeatures(data json.RawMessage) (*ChatBoostLevelFeatures, error) {
|
|
var resp ChatBoostLevelFeatures
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatBoostFeatures(data json.RawMessage) (*ChatBoostFeatures, error) {
|
|
var resp ChatBoostFeatures
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatBoostSourceGiftCode(data json.RawMessage) (*ChatBoostSourceGiftCode, error) {
|
|
var resp ChatBoostSourceGiftCode
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatBoostSourceGiveaway(data json.RawMessage) (*ChatBoostSourceGiveaway, error) {
|
|
var resp ChatBoostSourceGiveaway
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatBoostSourcePremium(data json.RawMessage) (*ChatBoostSourcePremium, error) {
|
|
var resp ChatBoostSourcePremium
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPrepaidGiveaway(data json.RawMessage) (*PrepaidGiveaway, error) {
|
|
var resp PrepaidGiveaway
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatBoostStatus(data json.RawMessage) (*ChatBoostStatus, error) {
|
|
var resp ChatBoostStatus
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatBoost(data json.RawMessage) (*ChatBoost, error) {
|
|
var resp ChatBoost
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFoundChatBoosts(data json.RawMessage) (*FoundChatBoosts, error) {
|
|
var resp FoundChatBoosts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatBoostSlot(data json.RawMessage) (*ChatBoostSlot, error) {
|
|
var resp ChatBoostSlot
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatBoostSlots(data json.RawMessage) (*ChatBoostSlots, error) {
|
|
var resp ChatBoostSlots
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalResendCodeReasonUserRequest(data json.RawMessage) (*ResendCodeReasonUserRequest, error) {
|
|
var resp ResendCodeReasonUserRequest
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalResendCodeReasonVerificationFailed(data json.RawMessage) (*ResendCodeReasonVerificationFailed, error) {
|
|
var resp ResendCodeReasonVerificationFailed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallDiscardReasonEmpty(data json.RawMessage) (*CallDiscardReasonEmpty, error) {
|
|
var resp CallDiscardReasonEmpty
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallDiscardReasonMissed(data json.RawMessage) (*CallDiscardReasonMissed, error) {
|
|
var resp CallDiscardReasonMissed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallDiscardReasonDeclined(data json.RawMessage) (*CallDiscardReasonDeclined, error) {
|
|
var resp CallDiscardReasonDeclined
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallDiscardReasonDisconnected(data json.RawMessage) (*CallDiscardReasonDisconnected, error) {
|
|
var resp CallDiscardReasonDisconnected
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallDiscardReasonHungUp(data json.RawMessage) (*CallDiscardReasonHungUp, error) {
|
|
var resp CallDiscardReasonHungUp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallDiscardReasonUpgradeToGroupCall(data json.RawMessage) (*CallDiscardReasonUpgradeToGroupCall, error) {
|
|
var resp CallDiscardReasonUpgradeToGroupCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallProtocol(data json.RawMessage) (*CallProtocol, error) {
|
|
var resp CallProtocol
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallServerTypeTelegramReflector(data json.RawMessage) (*CallServerTypeTelegramReflector, error) {
|
|
var resp CallServerTypeTelegramReflector
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallServerTypeWebrtc(data json.RawMessage) (*CallServerTypeWebrtc, error) {
|
|
var resp CallServerTypeWebrtc
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallServer(data json.RawMessage) (*CallServer, error) {
|
|
var resp CallServer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallId(data json.RawMessage) (*CallId, error) {
|
|
var resp CallId
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallId(data json.RawMessage) (*GroupCallId, error) {
|
|
var resp GroupCallId
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallStatePending(data json.RawMessage) (*CallStatePending, error) {
|
|
var resp CallStatePending
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallStateExchangingKeys(data json.RawMessage) (*CallStateExchangingKeys, error) {
|
|
var resp CallStateExchangingKeys
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallStateReady(data json.RawMessage) (*CallStateReady, error) {
|
|
var resp CallStateReady
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallStateHangingUp(data json.RawMessage) (*CallStateHangingUp, error) {
|
|
var resp CallStateHangingUp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallStateDiscarded(data json.RawMessage) (*CallStateDiscarded, error) {
|
|
var resp CallStateDiscarded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallStateError(data json.RawMessage) (*CallStateError, error) {
|
|
var resp CallStateError
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallJoinParameters(data json.RawMessage) (*GroupCallJoinParameters, error) {
|
|
var resp GroupCallJoinParameters
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallVideoQualityThumbnail(data json.RawMessage) (*GroupCallVideoQualityThumbnail, error) {
|
|
var resp GroupCallVideoQualityThumbnail
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallVideoQualityMedium(data json.RawMessage) (*GroupCallVideoQualityMedium, error) {
|
|
var resp GroupCallVideoQualityMedium
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallVideoQualityFull(data json.RawMessage) (*GroupCallVideoQualityFull, error) {
|
|
var resp GroupCallVideoQualityFull
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallStream(data json.RawMessage) (*GroupCallStream, error) {
|
|
var resp GroupCallStream
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallStreams(data json.RawMessage) (*GroupCallStreams, error) {
|
|
var resp GroupCallStreams
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRtmpUrl(data json.RawMessage) (*RtmpUrl, error) {
|
|
var resp RtmpUrl
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallRecentSpeaker(data json.RawMessage) (*GroupCallRecentSpeaker, error) {
|
|
var resp GroupCallRecentSpeaker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCall(data json.RawMessage) (*GroupCall, error) {
|
|
var resp GroupCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallVideoSourceGroup(data json.RawMessage) (*GroupCallVideoSourceGroup, error) {
|
|
var resp GroupCallVideoSourceGroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallParticipantVideoInfo(data json.RawMessage) (*GroupCallParticipantVideoInfo, error) {
|
|
var resp GroupCallParticipantVideoInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallParticipant(data json.RawMessage) (*GroupCallParticipant, error) {
|
|
var resp GroupCallParticipant
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallParticipants(data json.RawMessage) (*GroupCallParticipants, error) {
|
|
var resp GroupCallParticipants
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallInfo(data json.RawMessage) (*GroupCallInfo, error) {
|
|
var resp GroupCallInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallMessage(data json.RawMessage) (*GroupCallMessage, error) {
|
|
var resp GroupCallMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallMessageLevel(data json.RawMessage) (*GroupCallMessageLevel, error) {
|
|
var resp GroupCallMessageLevel
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInviteGroupCallParticipantResultUserPrivacyRestricted(data json.RawMessage) (*InviteGroupCallParticipantResultUserPrivacyRestricted, error) {
|
|
var resp InviteGroupCallParticipantResultUserPrivacyRestricted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInviteGroupCallParticipantResultUserAlreadyParticipant(data json.RawMessage) (*InviteGroupCallParticipantResultUserAlreadyParticipant, error) {
|
|
var resp InviteGroupCallParticipantResultUserAlreadyParticipant
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInviteGroupCallParticipantResultUserWasBanned(data json.RawMessage) (*InviteGroupCallParticipantResultUserWasBanned, error) {
|
|
var resp InviteGroupCallParticipantResultUserWasBanned
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInviteGroupCallParticipantResultSuccess(data json.RawMessage) (*InviteGroupCallParticipantResultSuccess, error) {
|
|
var resp InviteGroupCallParticipantResultSuccess
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallDataChannelMain(data json.RawMessage) (*GroupCallDataChannelMain, error) {
|
|
var resp GroupCallDataChannelMain
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGroupCallDataChannelScreenSharing(data json.RawMessage) (*GroupCallDataChannelScreenSharing, error) {
|
|
var resp GroupCallDataChannelScreenSharing
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputGroupCallLink(data json.RawMessage) (*InputGroupCallLink, error) {
|
|
var resp InputGroupCallLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputGroupCallMessage(data json.RawMessage) (*InputGroupCallMessage, error) {
|
|
var resp InputGroupCallMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallProblemEcho(data json.RawMessage) (*CallProblemEcho, error) {
|
|
var resp CallProblemEcho
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallProblemNoise(data json.RawMessage) (*CallProblemNoise, error) {
|
|
var resp CallProblemNoise
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallProblemInterruptions(data json.RawMessage) (*CallProblemInterruptions, error) {
|
|
var resp CallProblemInterruptions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallProblemDistortedSpeech(data json.RawMessage) (*CallProblemDistortedSpeech, error) {
|
|
var resp CallProblemDistortedSpeech
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallProblemSilentLocal(data json.RawMessage) (*CallProblemSilentLocal, error) {
|
|
var resp CallProblemSilentLocal
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallProblemSilentRemote(data json.RawMessage) (*CallProblemSilentRemote, error) {
|
|
var resp CallProblemSilentRemote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallProblemDropped(data json.RawMessage) (*CallProblemDropped, error) {
|
|
var resp CallProblemDropped
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallProblemDistortedVideo(data json.RawMessage) (*CallProblemDistortedVideo, error) {
|
|
var resp CallProblemDistortedVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallProblemPixelatedVideo(data json.RawMessage) (*CallProblemPixelatedVideo, error) {
|
|
var resp CallProblemPixelatedVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCall(data json.RawMessage) (*Call, error) {
|
|
var resp Call
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFirebaseAuthenticationSettingsAndroid(data json.RawMessage) (*FirebaseAuthenticationSettingsAndroid, error) {
|
|
var resp FirebaseAuthenticationSettingsAndroid
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFirebaseAuthenticationSettingsIos(data json.RawMessage) (*FirebaseAuthenticationSettingsIos, error) {
|
|
var resp FirebaseAuthenticationSettingsIos
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPhoneNumberAuthenticationSettings(data json.RawMessage) (*PhoneNumberAuthenticationSettings, error) {
|
|
var resp PhoneNumberAuthenticationSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAddedReaction(data json.RawMessage) (*AddedReaction, error) {
|
|
var resp AddedReaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAddedReactions(data json.RawMessage) (*AddedReactions, error) {
|
|
var resp AddedReactions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAvailableReaction(data json.RawMessage) (*AvailableReaction, error) {
|
|
var resp AvailableReaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAvailableReactions(data json.RawMessage) (*AvailableReactions, error) {
|
|
var resp AvailableReactions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiReaction(data json.RawMessage) (*EmojiReaction, error) {
|
|
var resp EmojiReaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReactionUnavailabilityReasonAnonymousAdministrator(data json.RawMessage) (*ReactionUnavailabilityReasonAnonymousAdministrator, error) {
|
|
var resp ReactionUnavailabilityReasonAnonymousAdministrator
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReactionUnavailabilityReasonGuest(data json.RawMessage) (*ReactionUnavailabilityReasonGuest, error) {
|
|
var resp ReactionUnavailabilityReasonGuest
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAnimations(data json.RawMessage) (*Animations, error) {
|
|
var resp Animations
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDiceStickersRegular(data json.RawMessage) (*DiceStickersRegular, error) {
|
|
var resp DiceStickersRegular
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDiceStickersSlotMachine(data json.RawMessage) (*DiceStickersSlotMachine, error) {
|
|
var resp DiceStickersSlotMachine
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSpeechRecognitionResultPending(data json.RawMessage) (*SpeechRecognitionResultPending, error) {
|
|
var resp SpeechRecognitionResultPending
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSpeechRecognitionResultText(data json.RawMessage) (*SpeechRecognitionResultText, error) {
|
|
var resp SpeechRecognitionResultText
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSpeechRecognitionResultError(data json.RawMessage) (*SpeechRecognitionResultError, error) {
|
|
var resp SpeechRecognitionResultError
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessConnection(data json.RawMessage) (*BusinessConnection, error) {
|
|
var resp BusinessConnection
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAttachmentMenuBotColor(data json.RawMessage) (*AttachmentMenuBotColor, error) {
|
|
var resp AttachmentMenuBotColor
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAttachmentMenuBot(data json.RawMessage) (*AttachmentMenuBot, error) {
|
|
var resp AttachmentMenuBot
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSentWebAppMessage(data json.RawMessage) (*SentWebAppMessage, error) {
|
|
var resp SentWebAppMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotWriteAccessAllowReasonConnectedWebsite(data json.RawMessage) (*BotWriteAccessAllowReasonConnectedWebsite, error) {
|
|
var resp BotWriteAccessAllowReasonConnectedWebsite
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotWriteAccessAllowReasonAddedToAttachmentMenu(data json.RawMessage) (*BotWriteAccessAllowReasonAddedToAttachmentMenu, error) {
|
|
var resp BotWriteAccessAllowReasonAddedToAttachmentMenu
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotWriteAccessAllowReasonLaunchedWebApp(data json.RawMessage) (*BotWriteAccessAllowReasonLaunchedWebApp, error) {
|
|
var resp BotWriteAccessAllowReasonLaunchedWebApp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotWriteAccessAllowReasonAcceptedRequest(data json.RawMessage) (*BotWriteAccessAllowReasonAcceptedRequest, error) {
|
|
var resp BotWriteAccessAllowReasonAcceptedRequest
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalHttpUrl(data json.RawMessage) (*HttpUrl, error) {
|
|
var resp HttpUrl
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserLink(data json.RawMessage) (*UserLink, error) {
|
|
var resp UserLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTargetChatTypes(data json.RawMessage) (*TargetChatTypes, error) {
|
|
var resp TargetChatTypes
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTargetChatCurrent(data json.RawMessage) (*TargetChatCurrent, error) {
|
|
var resp TargetChatCurrent
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTargetChatChosen(data json.RawMessage) (*TargetChatChosen, error) {
|
|
var resp TargetChatChosen
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTargetChatInternalLink(data json.RawMessage) (*TargetChatInternalLink, error) {
|
|
var resp TargetChatInternalLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResultAnimation(data json.RawMessage) (*InputInlineQueryResultAnimation, error) {
|
|
var resp InputInlineQueryResultAnimation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResultArticle(data json.RawMessage) (*InputInlineQueryResultArticle, error) {
|
|
var resp InputInlineQueryResultArticle
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResultAudio(data json.RawMessage) (*InputInlineQueryResultAudio, error) {
|
|
var resp InputInlineQueryResultAudio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResultContact(data json.RawMessage) (*InputInlineQueryResultContact, error) {
|
|
var resp InputInlineQueryResultContact
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResultDocument(data json.RawMessage) (*InputInlineQueryResultDocument, error) {
|
|
var resp InputInlineQueryResultDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResultGame(data json.RawMessage) (*InputInlineQueryResultGame, error) {
|
|
var resp InputInlineQueryResultGame
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResultLocation(data json.RawMessage) (*InputInlineQueryResultLocation, error) {
|
|
var resp InputInlineQueryResultLocation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResultPhoto(data json.RawMessage) (*InputInlineQueryResultPhoto, error) {
|
|
var resp InputInlineQueryResultPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResultSticker(data json.RawMessage) (*InputInlineQueryResultSticker, error) {
|
|
var resp InputInlineQueryResultSticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResultVenue(data json.RawMessage) (*InputInlineQueryResultVenue, error) {
|
|
var resp InputInlineQueryResultVenue
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResultVideo(data json.RawMessage) (*InputInlineQueryResultVideo, error) {
|
|
var resp InputInlineQueryResultVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputInlineQueryResultVoiceNote(data json.RawMessage) (*InputInlineQueryResultVoiceNote, error) {
|
|
var resp InputInlineQueryResultVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultArticle(data json.RawMessage) (*InlineQueryResultArticle, error) {
|
|
var resp InlineQueryResultArticle
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultContact(data json.RawMessage) (*InlineQueryResultContact, error) {
|
|
var resp InlineQueryResultContact
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultLocation(data json.RawMessage) (*InlineQueryResultLocation, error) {
|
|
var resp InlineQueryResultLocation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultVenue(data json.RawMessage) (*InlineQueryResultVenue, error) {
|
|
var resp InlineQueryResultVenue
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultGame(data json.RawMessage) (*InlineQueryResultGame, error) {
|
|
var resp InlineQueryResultGame
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultAnimation(data json.RawMessage) (*InlineQueryResultAnimation, error) {
|
|
var resp InlineQueryResultAnimation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultAudio(data json.RawMessage) (*InlineQueryResultAudio, error) {
|
|
var resp InlineQueryResultAudio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultDocument(data json.RawMessage) (*InlineQueryResultDocument, error) {
|
|
var resp InlineQueryResultDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultPhoto(data json.RawMessage) (*InlineQueryResultPhoto, error) {
|
|
var resp InlineQueryResultPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultSticker(data json.RawMessage) (*InlineQueryResultSticker, error) {
|
|
var resp InlineQueryResultSticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultVideo(data json.RawMessage) (*InlineQueryResultVideo, error) {
|
|
var resp InlineQueryResultVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultVoiceNote(data json.RawMessage) (*InlineQueryResultVoiceNote, error) {
|
|
var resp InlineQueryResultVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultsButtonTypeStartBot(data json.RawMessage) (*InlineQueryResultsButtonTypeStartBot, error) {
|
|
var resp InlineQueryResultsButtonTypeStartBot
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultsButtonTypeWebApp(data json.RawMessage) (*InlineQueryResultsButtonTypeWebApp, error) {
|
|
var resp InlineQueryResultsButtonTypeWebApp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResultsButton(data json.RawMessage) (*InlineQueryResultsButton, error) {
|
|
var resp InlineQueryResultsButton
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInlineQueryResults(data json.RawMessage) (*InlineQueryResults, error) {
|
|
var resp InlineQueryResults
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPreparedInlineMessageId(data json.RawMessage) (*PreparedInlineMessageId, error) {
|
|
var resp PreparedInlineMessageId
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPreparedInlineMessage(data json.RawMessage) (*PreparedInlineMessage, error) {
|
|
var resp PreparedInlineMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallbackQueryPayloadData(data json.RawMessage) (*CallbackQueryPayloadData, error) {
|
|
var resp CallbackQueryPayloadData
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallbackQueryPayloadDataWithPassword(data json.RawMessage) (*CallbackQueryPayloadDataWithPassword, error) {
|
|
var resp CallbackQueryPayloadDataWithPassword
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallbackQueryPayloadGame(data json.RawMessage) (*CallbackQueryPayloadGame, error) {
|
|
var resp CallbackQueryPayloadGame
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCallbackQueryAnswer(data json.RawMessage) (*CallbackQueryAnswer, error) {
|
|
var resp CallbackQueryAnswer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCustomRequestResult(data json.RawMessage) (*CustomRequestResult, error) {
|
|
var resp CustomRequestResult
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGameHighScore(data json.RawMessage) (*GameHighScore, error) {
|
|
var resp GameHighScore
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGameHighScores(data json.RawMessage) (*GameHighScores, error) {
|
|
var resp GameHighScores
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMessageEdited(data json.RawMessage) (*ChatEventMessageEdited, error) {
|
|
var resp ChatEventMessageEdited
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMessageDeleted(data json.RawMessage) (*ChatEventMessageDeleted, error) {
|
|
var resp ChatEventMessageDeleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMessagePinned(data json.RawMessage) (*ChatEventMessagePinned, error) {
|
|
var resp ChatEventMessagePinned
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMessageUnpinned(data json.RawMessage) (*ChatEventMessageUnpinned, error) {
|
|
var resp ChatEventMessageUnpinned
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventPollStopped(data json.RawMessage) (*ChatEventPollStopped, error) {
|
|
var resp ChatEventPollStopped
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMemberJoined(data json.RawMessage) (*ChatEventMemberJoined, error) {
|
|
var resp ChatEventMemberJoined
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMemberJoinedByInviteLink(data json.RawMessage) (*ChatEventMemberJoinedByInviteLink, error) {
|
|
var resp ChatEventMemberJoinedByInviteLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMemberJoinedByRequest(data json.RawMessage) (*ChatEventMemberJoinedByRequest, error) {
|
|
var resp ChatEventMemberJoinedByRequest
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMemberInvited(data json.RawMessage) (*ChatEventMemberInvited, error) {
|
|
var resp ChatEventMemberInvited
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMemberLeft(data json.RawMessage) (*ChatEventMemberLeft, error) {
|
|
var resp ChatEventMemberLeft
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMemberPromoted(data json.RawMessage) (*ChatEventMemberPromoted, error) {
|
|
var resp ChatEventMemberPromoted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMemberRestricted(data json.RawMessage) (*ChatEventMemberRestricted, error) {
|
|
var resp ChatEventMemberRestricted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMemberSubscriptionExtended(data json.RawMessage) (*ChatEventMemberSubscriptionExtended, error) {
|
|
var resp ChatEventMemberSubscriptionExtended
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventAvailableReactionsChanged(data json.RawMessage) (*ChatEventAvailableReactionsChanged, error) {
|
|
var resp ChatEventAvailableReactionsChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventBackgroundChanged(data json.RawMessage) (*ChatEventBackgroundChanged, error) {
|
|
var resp ChatEventBackgroundChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventDescriptionChanged(data json.RawMessage) (*ChatEventDescriptionChanged, error) {
|
|
var resp ChatEventDescriptionChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventEmojiStatusChanged(data json.RawMessage) (*ChatEventEmojiStatusChanged, error) {
|
|
var resp ChatEventEmojiStatusChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventLinkedChatChanged(data json.RawMessage) (*ChatEventLinkedChatChanged, error) {
|
|
var resp ChatEventLinkedChatChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventLocationChanged(data json.RawMessage) (*ChatEventLocationChanged, error) {
|
|
var resp ChatEventLocationChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventMessageAutoDeleteTimeChanged(data json.RawMessage) (*ChatEventMessageAutoDeleteTimeChanged, error) {
|
|
var resp ChatEventMessageAutoDeleteTimeChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventPermissionsChanged(data json.RawMessage) (*ChatEventPermissionsChanged, error) {
|
|
var resp ChatEventPermissionsChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventPhotoChanged(data json.RawMessage) (*ChatEventPhotoChanged, error) {
|
|
var resp ChatEventPhotoChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventSlowModeDelayChanged(data json.RawMessage) (*ChatEventSlowModeDelayChanged, error) {
|
|
var resp ChatEventSlowModeDelayChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventStickerSetChanged(data json.RawMessage) (*ChatEventStickerSetChanged, error) {
|
|
var resp ChatEventStickerSetChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventCustomEmojiStickerSetChanged(data json.RawMessage) (*ChatEventCustomEmojiStickerSetChanged, error) {
|
|
var resp ChatEventCustomEmojiStickerSetChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventTitleChanged(data json.RawMessage) (*ChatEventTitleChanged, error) {
|
|
var resp ChatEventTitleChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventUsernameChanged(data json.RawMessage) (*ChatEventUsernameChanged, error) {
|
|
var resp ChatEventUsernameChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventActiveUsernamesChanged(data json.RawMessage) (*ChatEventActiveUsernamesChanged, error) {
|
|
var resp ChatEventActiveUsernamesChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventAccentColorChanged(data json.RawMessage) (*ChatEventAccentColorChanged, error) {
|
|
var resp ChatEventAccentColorChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventProfileAccentColorChanged(data json.RawMessage) (*ChatEventProfileAccentColorChanged, error) {
|
|
var resp ChatEventProfileAccentColorChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventHasProtectedContentToggled(data json.RawMessage) (*ChatEventHasProtectedContentToggled, error) {
|
|
var resp ChatEventHasProtectedContentToggled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventInvitesToggled(data json.RawMessage) (*ChatEventInvitesToggled, error) {
|
|
var resp ChatEventInvitesToggled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventIsAllHistoryAvailableToggled(data json.RawMessage) (*ChatEventIsAllHistoryAvailableToggled, error) {
|
|
var resp ChatEventIsAllHistoryAvailableToggled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventHasAggressiveAntiSpamEnabledToggled(data json.RawMessage) (*ChatEventHasAggressiveAntiSpamEnabledToggled, error) {
|
|
var resp ChatEventHasAggressiveAntiSpamEnabledToggled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventSignMessagesToggled(data json.RawMessage) (*ChatEventSignMessagesToggled, error) {
|
|
var resp ChatEventSignMessagesToggled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventShowMessageSenderToggled(data json.RawMessage) (*ChatEventShowMessageSenderToggled, error) {
|
|
var resp ChatEventShowMessageSenderToggled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventAutomaticTranslationToggled(data json.RawMessage) (*ChatEventAutomaticTranslationToggled, error) {
|
|
var resp ChatEventAutomaticTranslationToggled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventInviteLinkEdited(data json.RawMessage) (*ChatEventInviteLinkEdited, error) {
|
|
var resp ChatEventInviteLinkEdited
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventInviteLinkRevoked(data json.RawMessage) (*ChatEventInviteLinkRevoked, error) {
|
|
var resp ChatEventInviteLinkRevoked
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventInviteLinkDeleted(data json.RawMessage) (*ChatEventInviteLinkDeleted, error) {
|
|
var resp ChatEventInviteLinkDeleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventVideoChatCreated(data json.RawMessage) (*ChatEventVideoChatCreated, error) {
|
|
var resp ChatEventVideoChatCreated
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventVideoChatEnded(data json.RawMessage) (*ChatEventVideoChatEnded, error) {
|
|
var resp ChatEventVideoChatEnded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventVideoChatMuteNewParticipantsToggled(data json.RawMessage) (*ChatEventVideoChatMuteNewParticipantsToggled, error) {
|
|
var resp ChatEventVideoChatMuteNewParticipantsToggled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventVideoChatParticipantIsMutedToggled(data json.RawMessage) (*ChatEventVideoChatParticipantIsMutedToggled, error) {
|
|
var resp ChatEventVideoChatParticipantIsMutedToggled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventVideoChatParticipantVolumeLevelChanged(data json.RawMessage) (*ChatEventVideoChatParticipantVolumeLevelChanged, error) {
|
|
var resp ChatEventVideoChatParticipantVolumeLevelChanged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventIsForumToggled(data json.RawMessage) (*ChatEventIsForumToggled, error) {
|
|
var resp ChatEventIsForumToggled
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventForumTopicCreated(data json.RawMessage) (*ChatEventForumTopicCreated, error) {
|
|
var resp ChatEventForumTopicCreated
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventForumTopicEdited(data json.RawMessage) (*ChatEventForumTopicEdited, error) {
|
|
var resp ChatEventForumTopicEdited
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventForumTopicToggleIsClosed(data json.RawMessage) (*ChatEventForumTopicToggleIsClosed, error) {
|
|
var resp ChatEventForumTopicToggleIsClosed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventForumTopicToggleIsHidden(data json.RawMessage) (*ChatEventForumTopicToggleIsHidden, error) {
|
|
var resp ChatEventForumTopicToggleIsHidden
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventForumTopicDeleted(data json.RawMessage) (*ChatEventForumTopicDeleted, error) {
|
|
var resp ChatEventForumTopicDeleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventForumTopicPinned(data json.RawMessage) (*ChatEventForumTopicPinned, error) {
|
|
var resp ChatEventForumTopicPinned
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEvent(data json.RawMessage) (*ChatEvent, error) {
|
|
var resp ChatEvent
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEvents(data json.RawMessage) (*ChatEvents, error) {
|
|
var resp ChatEvents
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatEventLogFilters(data json.RawMessage) (*ChatEventLogFilters, error) {
|
|
var resp ChatEventLogFilters
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLanguagePackStringValueOrdinary(data json.RawMessage) (*LanguagePackStringValueOrdinary, error) {
|
|
var resp LanguagePackStringValueOrdinary
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLanguagePackStringValuePluralized(data json.RawMessage) (*LanguagePackStringValuePluralized, error) {
|
|
var resp LanguagePackStringValuePluralized
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLanguagePackStringValueDeleted(data json.RawMessage) (*LanguagePackStringValueDeleted, error) {
|
|
var resp LanguagePackStringValueDeleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLanguagePackString(data json.RawMessage) (*LanguagePackString, error) {
|
|
var resp LanguagePackString
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLanguagePackStrings(data json.RawMessage) (*LanguagePackStrings, error) {
|
|
var resp LanguagePackStrings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLanguagePackInfo(data json.RawMessage) (*LanguagePackInfo, error) {
|
|
var resp LanguagePackInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLocalizationTargetInfo(data json.RawMessage) (*LocalizationTargetInfo, error) {
|
|
var resp LocalizationTargetInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeSupergroupCount(data json.RawMessage) (*PremiumLimitTypeSupergroupCount, error) {
|
|
var resp PremiumLimitTypeSupergroupCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypePinnedChatCount(data json.RawMessage) (*PremiumLimitTypePinnedChatCount, error) {
|
|
var resp PremiumLimitTypePinnedChatCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeCreatedPublicChatCount(data json.RawMessage) (*PremiumLimitTypeCreatedPublicChatCount, error) {
|
|
var resp PremiumLimitTypeCreatedPublicChatCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeSavedAnimationCount(data json.RawMessage) (*PremiumLimitTypeSavedAnimationCount, error) {
|
|
var resp PremiumLimitTypeSavedAnimationCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeFavoriteStickerCount(data json.RawMessage) (*PremiumLimitTypeFavoriteStickerCount, error) {
|
|
var resp PremiumLimitTypeFavoriteStickerCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeChatFolderCount(data json.RawMessage) (*PremiumLimitTypeChatFolderCount, error) {
|
|
var resp PremiumLimitTypeChatFolderCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeChatFolderChosenChatCount(data json.RawMessage) (*PremiumLimitTypeChatFolderChosenChatCount, error) {
|
|
var resp PremiumLimitTypeChatFolderChosenChatCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypePinnedArchivedChatCount(data json.RawMessage) (*PremiumLimitTypePinnedArchivedChatCount, error) {
|
|
var resp PremiumLimitTypePinnedArchivedChatCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypePinnedSavedMessagesTopicCount(data json.RawMessage) (*PremiumLimitTypePinnedSavedMessagesTopicCount, error) {
|
|
var resp PremiumLimitTypePinnedSavedMessagesTopicCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeCaptionLength(data json.RawMessage) (*PremiumLimitTypeCaptionLength, error) {
|
|
var resp PremiumLimitTypeCaptionLength
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeBioLength(data json.RawMessage) (*PremiumLimitTypeBioLength, error) {
|
|
var resp PremiumLimitTypeBioLength
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeChatFolderInviteLinkCount(data json.RawMessage) (*PremiumLimitTypeChatFolderInviteLinkCount, error) {
|
|
var resp PremiumLimitTypeChatFolderInviteLinkCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeShareableChatFolderCount(data json.RawMessage) (*PremiumLimitTypeShareableChatFolderCount, error) {
|
|
var resp PremiumLimitTypeShareableChatFolderCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeActiveStoryCount(data json.RawMessage) (*PremiumLimitTypeActiveStoryCount, error) {
|
|
var resp PremiumLimitTypeActiveStoryCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeWeeklyPostedStoryCount(data json.RawMessage) (*PremiumLimitTypeWeeklyPostedStoryCount, error) {
|
|
var resp PremiumLimitTypeWeeklyPostedStoryCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeMonthlyPostedStoryCount(data json.RawMessage) (*PremiumLimitTypeMonthlyPostedStoryCount, error) {
|
|
var resp PremiumLimitTypeMonthlyPostedStoryCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeStoryCaptionLength(data json.RawMessage) (*PremiumLimitTypeStoryCaptionLength, error) {
|
|
var resp PremiumLimitTypeStoryCaptionLength
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeStorySuggestedReactionAreaCount(data json.RawMessage) (*PremiumLimitTypeStorySuggestedReactionAreaCount, error) {
|
|
var resp PremiumLimitTypeStorySuggestedReactionAreaCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimitTypeSimilarChatCount(data json.RawMessage) (*PremiumLimitTypeSimilarChatCount, error) {
|
|
var resp PremiumLimitTypeSimilarChatCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureIncreasedLimits(data json.RawMessage) (*PremiumFeatureIncreasedLimits, error) {
|
|
var resp PremiumFeatureIncreasedLimits
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureIncreasedUploadFileSize(data json.RawMessage) (*PremiumFeatureIncreasedUploadFileSize, error) {
|
|
var resp PremiumFeatureIncreasedUploadFileSize
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureImprovedDownloadSpeed(data json.RawMessage) (*PremiumFeatureImprovedDownloadSpeed, error) {
|
|
var resp PremiumFeatureImprovedDownloadSpeed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureVoiceRecognition(data json.RawMessage) (*PremiumFeatureVoiceRecognition, error) {
|
|
var resp PremiumFeatureVoiceRecognition
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureDisabledAds(data json.RawMessage) (*PremiumFeatureDisabledAds, error) {
|
|
var resp PremiumFeatureDisabledAds
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureUniqueReactions(data json.RawMessage) (*PremiumFeatureUniqueReactions, error) {
|
|
var resp PremiumFeatureUniqueReactions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureUniqueStickers(data json.RawMessage) (*PremiumFeatureUniqueStickers, error) {
|
|
var resp PremiumFeatureUniqueStickers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureCustomEmoji(data json.RawMessage) (*PremiumFeatureCustomEmoji, error) {
|
|
var resp PremiumFeatureCustomEmoji
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureAdvancedChatManagement(data json.RawMessage) (*PremiumFeatureAdvancedChatManagement, error) {
|
|
var resp PremiumFeatureAdvancedChatManagement
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureProfileBadge(data json.RawMessage) (*PremiumFeatureProfileBadge, error) {
|
|
var resp PremiumFeatureProfileBadge
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureForumTopicIcon(data json.RawMessage) (*PremiumFeatureForumTopicIcon, error) {
|
|
var resp PremiumFeatureForumTopicIcon
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureAppIcons(data json.RawMessage) (*PremiumFeatureAppIcons, error) {
|
|
var resp PremiumFeatureAppIcons
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureRealTimeChatTranslation(data json.RawMessage) (*PremiumFeatureRealTimeChatTranslation, error) {
|
|
var resp PremiumFeatureRealTimeChatTranslation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureUpgradedStories(data json.RawMessage) (*PremiumFeatureUpgradedStories, error) {
|
|
var resp PremiumFeatureUpgradedStories
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureChatBoost(data json.RawMessage) (*PremiumFeatureChatBoost, error) {
|
|
var resp PremiumFeatureChatBoost
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureAccentColor(data json.RawMessage) (*PremiumFeatureAccentColor, error) {
|
|
var resp PremiumFeatureAccentColor
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureBackgroundForBoth(data json.RawMessage) (*PremiumFeatureBackgroundForBoth, error) {
|
|
var resp PremiumFeatureBackgroundForBoth
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureSavedMessagesTags(data json.RawMessage) (*PremiumFeatureSavedMessagesTags, error) {
|
|
var resp PremiumFeatureSavedMessagesTags
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureMessagePrivacy(data json.RawMessage) (*PremiumFeatureMessagePrivacy, error) {
|
|
var resp PremiumFeatureMessagePrivacy
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureLastSeenTimes(data json.RawMessage) (*PremiumFeatureLastSeenTimes, error) {
|
|
var resp PremiumFeatureLastSeenTimes
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureBusiness(data json.RawMessage) (*PremiumFeatureBusiness, error) {
|
|
var resp PremiumFeatureBusiness
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureMessageEffects(data json.RawMessage) (*PremiumFeatureMessageEffects, error) {
|
|
var resp PremiumFeatureMessageEffects
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatureChecklists(data json.RawMessage) (*PremiumFeatureChecklists, error) {
|
|
var resp PremiumFeatureChecklists
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeaturePaidMessages(data json.RawMessage) (*PremiumFeaturePaidMessages, error) {
|
|
var resp PremiumFeaturePaidMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeatureLocation(data json.RawMessage) (*BusinessFeatureLocation, error) {
|
|
var resp BusinessFeatureLocation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeatureOpeningHours(data json.RawMessage) (*BusinessFeatureOpeningHours, error) {
|
|
var resp BusinessFeatureOpeningHours
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeatureQuickReplies(data json.RawMessage) (*BusinessFeatureQuickReplies, error) {
|
|
var resp BusinessFeatureQuickReplies
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeatureGreetingMessage(data json.RawMessage) (*BusinessFeatureGreetingMessage, error) {
|
|
var resp BusinessFeatureGreetingMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeatureAwayMessage(data json.RawMessage) (*BusinessFeatureAwayMessage, error) {
|
|
var resp BusinessFeatureAwayMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeatureAccountLinks(data json.RawMessage) (*BusinessFeatureAccountLinks, error) {
|
|
var resp BusinessFeatureAccountLinks
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeatureStartPage(data json.RawMessage) (*BusinessFeatureStartPage, error) {
|
|
var resp BusinessFeatureStartPage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeatureBots(data json.RawMessage) (*BusinessFeatureBots, error) {
|
|
var resp BusinessFeatureBots
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeatureEmojiStatus(data json.RawMessage) (*BusinessFeatureEmojiStatus, error) {
|
|
var resp BusinessFeatureEmojiStatus
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeatureChatFolderTags(data json.RawMessage) (*BusinessFeatureChatFolderTags, error) {
|
|
var resp BusinessFeatureChatFolderTags
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeatureUpgradedStories(data json.RawMessage) (*BusinessFeatureUpgradedStories, error) {
|
|
var resp BusinessFeatureUpgradedStories
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumStoryFeaturePriorityOrder(data json.RawMessage) (*PremiumStoryFeaturePriorityOrder, error) {
|
|
var resp PremiumStoryFeaturePriorityOrder
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumStoryFeatureStealthMode(data json.RawMessage) (*PremiumStoryFeatureStealthMode, error) {
|
|
var resp PremiumStoryFeatureStealthMode
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumStoryFeaturePermanentViewsHistory(data json.RawMessage) (*PremiumStoryFeaturePermanentViewsHistory, error) {
|
|
var resp PremiumStoryFeaturePermanentViewsHistory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumStoryFeatureCustomExpirationDuration(data json.RawMessage) (*PremiumStoryFeatureCustomExpirationDuration, error) {
|
|
var resp PremiumStoryFeatureCustomExpirationDuration
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumStoryFeatureSaveStories(data json.RawMessage) (*PremiumStoryFeatureSaveStories, error) {
|
|
var resp PremiumStoryFeatureSaveStories
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumStoryFeatureLinksAndFormatting(data json.RawMessage) (*PremiumStoryFeatureLinksAndFormatting, error) {
|
|
var resp PremiumStoryFeatureLinksAndFormatting
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumStoryFeatureVideoQuality(data json.RawMessage) (*PremiumStoryFeatureVideoQuality, error) {
|
|
var resp PremiumStoryFeatureVideoQuality
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumLimit(data json.RawMessage) (*PremiumLimit, error) {
|
|
var resp PremiumLimit
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeatures(data json.RawMessage) (*PremiumFeatures, error) {
|
|
var resp PremiumFeatures
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeatures(data json.RawMessage) (*BusinessFeatures, error) {
|
|
var resp BusinessFeatures
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumSourceLimitExceeded(data json.RawMessage) (*PremiumSourceLimitExceeded, error) {
|
|
var resp PremiumSourceLimitExceeded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumSourceFeature(data json.RawMessage) (*PremiumSourceFeature, error) {
|
|
var resp PremiumSourceFeature
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumSourceBusinessFeature(data json.RawMessage) (*PremiumSourceBusinessFeature, error) {
|
|
var resp PremiumSourceBusinessFeature
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumSourceStoryFeature(data json.RawMessage) (*PremiumSourceStoryFeature, error) {
|
|
var resp PremiumSourceStoryFeature
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumSourceLink(data json.RawMessage) (*PremiumSourceLink, error) {
|
|
var resp PremiumSourceLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumSourceSettings(data json.RawMessage) (*PremiumSourceSettings, error) {
|
|
var resp PremiumSourceSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumFeaturePromotionAnimation(data json.RawMessage) (*PremiumFeaturePromotionAnimation, error) {
|
|
var resp PremiumFeaturePromotionAnimation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBusinessFeaturePromotionAnimation(data json.RawMessage) (*BusinessFeaturePromotionAnimation, error) {
|
|
var resp BusinessFeaturePromotionAnimation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPremiumState(data json.RawMessage) (*PremiumState, error) {
|
|
var resp PremiumState
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStorePaymentPurposePremiumSubscription(data json.RawMessage) (*StorePaymentPurposePremiumSubscription, error) {
|
|
var resp StorePaymentPurposePremiumSubscription
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStorePaymentPurposePremiumGift(data json.RawMessage) (*StorePaymentPurposePremiumGift, error) {
|
|
var resp StorePaymentPurposePremiumGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStorePaymentPurposePremiumGiftCodes(data json.RawMessage) (*StorePaymentPurposePremiumGiftCodes, error) {
|
|
var resp StorePaymentPurposePremiumGiftCodes
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStorePaymentPurposePremiumGiveaway(data json.RawMessage) (*StorePaymentPurposePremiumGiveaway, error) {
|
|
var resp StorePaymentPurposePremiumGiveaway
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStorePaymentPurposeStarGiveaway(data json.RawMessage) (*StorePaymentPurposeStarGiveaway, error) {
|
|
var resp StorePaymentPurposeStarGiveaway
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStorePaymentPurposeStars(data json.RawMessage) (*StorePaymentPurposeStars, error) {
|
|
var resp StorePaymentPurposeStars
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStorePaymentPurposeGiftedStars(data json.RawMessage) (*StorePaymentPurposeGiftedStars, error) {
|
|
var resp StorePaymentPurposeGiftedStars
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoreTransactionAppStore(data json.RawMessage) (*StoreTransactionAppStore, error) {
|
|
var resp StoreTransactionAppStore
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoreTransactionGooglePlay(data json.RawMessage) (*StoreTransactionGooglePlay, error) {
|
|
var resp StoreTransactionGooglePlay
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTelegramPaymentPurposePremiumGift(data json.RawMessage) (*TelegramPaymentPurposePremiumGift, error) {
|
|
var resp TelegramPaymentPurposePremiumGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTelegramPaymentPurposePremiumGiftCodes(data json.RawMessage) (*TelegramPaymentPurposePremiumGiftCodes, error) {
|
|
var resp TelegramPaymentPurposePremiumGiftCodes
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTelegramPaymentPurposePremiumGiveaway(data json.RawMessage) (*TelegramPaymentPurposePremiumGiveaway, error) {
|
|
var resp TelegramPaymentPurposePremiumGiveaway
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTelegramPaymentPurposeStars(data json.RawMessage) (*TelegramPaymentPurposeStars, error) {
|
|
var resp TelegramPaymentPurposeStars
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTelegramPaymentPurposeGiftedStars(data json.RawMessage) (*TelegramPaymentPurposeGiftedStars, error) {
|
|
var resp TelegramPaymentPurposeGiftedStars
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTelegramPaymentPurposeStarGiveaway(data json.RawMessage) (*TelegramPaymentPurposeStarGiveaway, error) {
|
|
var resp TelegramPaymentPurposeStarGiveaway
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTelegramPaymentPurposeJoinChat(data json.RawMessage) (*TelegramPaymentPurposeJoinChat, error) {
|
|
var resp TelegramPaymentPurposeJoinChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeviceTokenFirebaseCloudMessaging(data json.RawMessage) (*DeviceTokenFirebaseCloudMessaging, error) {
|
|
var resp DeviceTokenFirebaseCloudMessaging
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeviceTokenApplePush(data json.RawMessage) (*DeviceTokenApplePush, error) {
|
|
var resp DeviceTokenApplePush
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeviceTokenApplePushVoIP(data json.RawMessage) (*DeviceTokenApplePushVoIP, error) {
|
|
var resp DeviceTokenApplePushVoIP
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeviceTokenWindowsPush(data json.RawMessage) (*DeviceTokenWindowsPush, error) {
|
|
var resp DeviceTokenWindowsPush
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeviceTokenMicrosoftPush(data json.RawMessage) (*DeviceTokenMicrosoftPush, error) {
|
|
var resp DeviceTokenMicrosoftPush
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeviceTokenMicrosoftPushVoIP(data json.RawMessage) (*DeviceTokenMicrosoftPushVoIP, error) {
|
|
var resp DeviceTokenMicrosoftPushVoIP
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeviceTokenWebPush(data json.RawMessage) (*DeviceTokenWebPush, error) {
|
|
var resp DeviceTokenWebPush
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeviceTokenSimplePush(data json.RawMessage) (*DeviceTokenSimplePush, error) {
|
|
var resp DeviceTokenSimplePush
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeviceTokenUbuntuPush(data json.RawMessage) (*DeviceTokenUbuntuPush, error) {
|
|
var resp DeviceTokenUbuntuPush
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeviceTokenBlackBerryPush(data json.RawMessage) (*DeviceTokenBlackBerryPush, error) {
|
|
var resp DeviceTokenBlackBerryPush
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeviceTokenTizenPush(data json.RawMessage) (*DeviceTokenTizenPush, error) {
|
|
var resp DeviceTokenTizenPush
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeviceTokenHuaweiPush(data json.RawMessage) (*DeviceTokenHuaweiPush, error) {
|
|
var resp DeviceTokenHuaweiPush
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushReceiverId(data json.RawMessage) (*PushReceiverId, error) {
|
|
var resp PushReceiverId
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBackgroundFillSolid(data json.RawMessage) (*BackgroundFillSolid, error) {
|
|
var resp BackgroundFillSolid
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBackgroundFillGradient(data json.RawMessage) (*BackgroundFillGradient, error) {
|
|
var resp BackgroundFillGradient
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBackgroundFillFreeformGradient(data json.RawMessage) (*BackgroundFillFreeformGradient, error) {
|
|
var resp BackgroundFillFreeformGradient
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBackgroundTypeWallpaper(data json.RawMessage) (*BackgroundTypeWallpaper, error) {
|
|
var resp BackgroundTypeWallpaper
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBackgroundTypePattern(data json.RawMessage) (*BackgroundTypePattern, error) {
|
|
var resp BackgroundTypePattern
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBackgroundTypeFill(data json.RawMessage) (*BackgroundTypeFill, error) {
|
|
var resp BackgroundTypeFill
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBackgroundTypeChatTheme(data json.RawMessage) (*BackgroundTypeChatTheme, error) {
|
|
var resp BackgroundTypeChatTheme
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputBackgroundLocal(data json.RawMessage) (*InputBackgroundLocal, error) {
|
|
var resp InputBackgroundLocal
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputBackgroundRemote(data json.RawMessage) (*InputBackgroundRemote, error) {
|
|
var resp InputBackgroundRemote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputBackgroundPrevious(data json.RawMessage) (*InputBackgroundPrevious, error) {
|
|
var resp InputBackgroundPrevious
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalEmojiChatTheme(data json.RawMessage) (*EmojiChatTheme, error) {
|
|
var resp EmojiChatTheme
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftChatTheme(data json.RawMessage) (*GiftChatTheme, error) {
|
|
var resp GiftChatTheme
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalGiftChatThemes(data json.RawMessage) (*GiftChatThemes, error) {
|
|
var resp GiftChatThemes
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatThemeEmoji(data json.RawMessage) (*ChatThemeEmoji, error) {
|
|
var resp ChatThemeEmoji
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatThemeGift(data json.RawMessage) (*ChatThemeGift, error) {
|
|
var resp ChatThemeGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputChatThemeEmoji(data json.RawMessage) (*InputChatThemeEmoji, error) {
|
|
var resp InputChatThemeEmoji
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputChatThemeGift(data json.RawMessage) (*InputChatThemeGift, error) {
|
|
var resp InputChatThemeGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTimeZone(data json.RawMessage) (*TimeZone, error) {
|
|
var resp TimeZone
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTimeZones(data json.RawMessage) (*TimeZones, error) {
|
|
var resp TimeZones
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalHashtags(data json.RawMessage) (*Hashtags, error) {
|
|
var resp Hashtags
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanPostStoryResultOk(data json.RawMessage) (*CanPostStoryResultOk, error) {
|
|
var resp CanPostStoryResultOk
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanPostStoryResultPremiumNeeded(data json.RawMessage) (*CanPostStoryResultPremiumNeeded, error) {
|
|
var resp CanPostStoryResultPremiumNeeded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanPostStoryResultBoostNeeded(data json.RawMessage) (*CanPostStoryResultBoostNeeded, error) {
|
|
var resp CanPostStoryResultBoostNeeded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanPostStoryResultActiveStoryLimitExceeded(data json.RawMessage) (*CanPostStoryResultActiveStoryLimitExceeded, error) {
|
|
var resp CanPostStoryResultActiveStoryLimitExceeded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanPostStoryResultWeeklyLimitExceeded(data json.RawMessage) (*CanPostStoryResultWeeklyLimitExceeded, error) {
|
|
var resp CanPostStoryResultWeeklyLimitExceeded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanPostStoryResultMonthlyLimitExceeded(data json.RawMessage) (*CanPostStoryResultMonthlyLimitExceeded, error) {
|
|
var resp CanPostStoryResultMonthlyLimitExceeded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanPostStoryResultLiveStoryIsActive(data json.RawMessage) (*CanPostStoryResultLiveStoryIsActive, error) {
|
|
var resp CanPostStoryResultLiveStoryIsActive
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStartLiveStoryResultOk(data json.RawMessage) (*StartLiveStoryResultOk, error) {
|
|
var resp StartLiveStoryResultOk
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStartLiveStoryResultFail(data json.RawMessage) (*StartLiveStoryResultFail, error) {
|
|
var resp StartLiveStoryResultFail
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanTransferOwnershipResultOk(data json.RawMessage) (*CanTransferOwnershipResultOk, error) {
|
|
var resp CanTransferOwnershipResultOk
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanTransferOwnershipResultPasswordNeeded(data json.RawMessage) (*CanTransferOwnershipResultPasswordNeeded, error) {
|
|
var resp CanTransferOwnershipResultPasswordNeeded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanTransferOwnershipResultPasswordTooFresh(data json.RawMessage) (*CanTransferOwnershipResultPasswordTooFresh, error) {
|
|
var resp CanTransferOwnershipResultPasswordTooFresh
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanTransferOwnershipResultSessionTooFresh(data json.RawMessage) (*CanTransferOwnershipResultSessionTooFresh, error) {
|
|
var resp CanTransferOwnershipResultSessionTooFresh
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCheckChatUsernameResultOk(data json.RawMessage) (*CheckChatUsernameResultOk, error) {
|
|
var resp CheckChatUsernameResultOk
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCheckChatUsernameResultUsernameInvalid(data json.RawMessage) (*CheckChatUsernameResultUsernameInvalid, error) {
|
|
var resp CheckChatUsernameResultUsernameInvalid
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCheckChatUsernameResultUsernameOccupied(data json.RawMessage) (*CheckChatUsernameResultUsernameOccupied, error) {
|
|
var resp CheckChatUsernameResultUsernameOccupied
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCheckChatUsernameResultUsernamePurchasable(data json.RawMessage) (*CheckChatUsernameResultUsernamePurchasable, error) {
|
|
var resp CheckChatUsernameResultUsernamePurchasable
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCheckChatUsernameResultPublicChatsTooMany(data json.RawMessage) (*CheckChatUsernameResultPublicChatsTooMany, error) {
|
|
var resp CheckChatUsernameResultPublicChatsTooMany
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data json.RawMessage) (*CheckChatUsernameResultPublicGroupsUnavailable, error) {
|
|
var resp CheckChatUsernameResultPublicGroupsUnavailable
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCheckStickerSetNameResultOk(data json.RawMessage) (*CheckStickerSetNameResultOk, error) {
|
|
var resp CheckStickerSetNameResultOk
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCheckStickerSetNameResultNameInvalid(data json.RawMessage) (*CheckStickerSetNameResultNameInvalid, error) {
|
|
var resp CheckStickerSetNameResultNameInvalid
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCheckStickerSetNameResultNameOccupied(data json.RawMessage) (*CheckStickerSetNameResultNameOccupied, error) {
|
|
var resp CheckStickerSetNameResultNameOccupied
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalResetPasswordResultOk(data json.RawMessage) (*ResetPasswordResultOk, error) {
|
|
var resp ResetPasswordResultOk
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalResetPasswordResultPending(data json.RawMessage) (*ResetPasswordResultPending, error) {
|
|
var resp ResetPasswordResultPending
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalResetPasswordResultDeclined(data json.RawMessage) (*ResetPasswordResultDeclined, error) {
|
|
var resp ResetPasswordResultDeclined
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageFileTypePrivate(data json.RawMessage) (*MessageFileTypePrivate, error) {
|
|
var resp MessageFileTypePrivate
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageFileTypeGroup(data json.RawMessage) (*MessageFileTypeGroup, error) {
|
|
var resp MessageFileTypeGroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageFileTypeUnknown(data json.RawMessage) (*MessageFileTypeUnknown, error) {
|
|
var resp MessageFileTypeUnknown
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentHidden(data json.RawMessage) (*PushMessageContentHidden, error) {
|
|
var resp PushMessageContentHidden
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentAnimation(data json.RawMessage) (*PushMessageContentAnimation, error) {
|
|
var resp PushMessageContentAnimation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentAudio(data json.RawMessage) (*PushMessageContentAudio, error) {
|
|
var resp PushMessageContentAudio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentContact(data json.RawMessage) (*PushMessageContentContact, error) {
|
|
var resp PushMessageContentContact
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentContactRegistered(data json.RawMessage) (*PushMessageContentContactRegistered, error) {
|
|
var resp PushMessageContentContactRegistered
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentDocument(data json.RawMessage) (*PushMessageContentDocument, error) {
|
|
var resp PushMessageContentDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentGame(data json.RawMessage) (*PushMessageContentGame, error) {
|
|
var resp PushMessageContentGame
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentGameScore(data json.RawMessage) (*PushMessageContentGameScore, error) {
|
|
var resp PushMessageContentGameScore
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentInvoice(data json.RawMessage) (*PushMessageContentInvoice, error) {
|
|
var resp PushMessageContentInvoice
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentLocation(data json.RawMessage) (*PushMessageContentLocation, error) {
|
|
var resp PushMessageContentLocation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentPaidMedia(data json.RawMessage) (*PushMessageContentPaidMedia, error) {
|
|
var resp PushMessageContentPaidMedia
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentPhoto(data json.RawMessage) (*PushMessageContentPhoto, error) {
|
|
var resp PushMessageContentPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentPoll(data json.RawMessage) (*PushMessageContentPoll, error) {
|
|
var resp PushMessageContentPoll
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentPremiumGiftCode(data json.RawMessage) (*PushMessageContentPremiumGiftCode, error) {
|
|
var resp PushMessageContentPremiumGiftCode
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentGiveaway(data json.RawMessage) (*PushMessageContentGiveaway, error) {
|
|
var resp PushMessageContentGiveaway
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentGift(data json.RawMessage) (*PushMessageContentGift, error) {
|
|
var resp PushMessageContentGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentSticker(data json.RawMessage) (*PushMessageContentSticker, error) {
|
|
var resp PushMessageContentSticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentStory(data json.RawMessage) (*PushMessageContentStory, error) {
|
|
var resp PushMessageContentStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentText(data json.RawMessage) (*PushMessageContentText, error) {
|
|
var resp PushMessageContentText
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentChecklist(data json.RawMessage) (*PushMessageContentChecklist, error) {
|
|
var resp PushMessageContentChecklist
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentVideo(data json.RawMessage) (*PushMessageContentVideo, error) {
|
|
var resp PushMessageContentVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentVideoNote(data json.RawMessage) (*PushMessageContentVideoNote, error) {
|
|
var resp PushMessageContentVideoNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentVoiceNote(data json.RawMessage) (*PushMessageContentVoiceNote, error) {
|
|
var resp PushMessageContentVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentBasicGroupChatCreate(data json.RawMessage) (*PushMessageContentBasicGroupChatCreate, error) {
|
|
var resp PushMessageContentBasicGroupChatCreate
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentVideoChatStarted(data json.RawMessage) (*PushMessageContentVideoChatStarted, error) {
|
|
var resp PushMessageContentVideoChatStarted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentVideoChatEnded(data json.RawMessage) (*PushMessageContentVideoChatEnded, error) {
|
|
var resp PushMessageContentVideoChatEnded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentInviteVideoChatParticipants(data json.RawMessage) (*PushMessageContentInviteVideoChatParticipants, error) {
|
|
var resp PushMessageContentInviteVideoChatParticipants
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentChatAddMembers(data json.RawMessage) (*PushMessageContentChatAddMembers, error) {
|
|
var resp PushMessageContentChatAddMembers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentChatChangePhoto(data json.RawMessage) (*PushMessageContentChatChangePhoto, error) {
|
|
var resp PushMessageContentChatChangePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentChatChangeTitle(data json.RawMessage) (*PushMessageContentChatChangeTitle, error) {
|
|
var resp PushMessageContentChatChangeTitle
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentChatSetBackground(data json.RawMessage) (*PushMessageContentChatSetBackground, error) {
|
|
var resp PushMessageContentChatSetBackground
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentChatSetTheme(data json.RawMessage) (*PushMessageContentChatSetTheme, error) {
|
|
var resp PushMessageContentChatSetTheme
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentChatDeleteMember(data json.RawMessage) (*PushMessageContentChatDeleteMember, error) {
|
|
var resp PushMessageContentChatDeleteMember
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentChatJoinByLink(data json.RawMessage) (*PushMessageContentChatJoinByLink, error) {
|
|
var resp PushMessageContentChatJoinByLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentChatJoinByRequest(data json.RawMessage) (*PushMessageContentChatJoinByRequest, error) {
|
|
var resp PushMessageContentChatJoinByRequest
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentRecurringPayment(data json.RawMessage) (*PushMessageContentRecurringPayment, error) {
|
|
var resp PushMessageContentRecurringPayment
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentSuggestProfilePhoto(data json.RawMessage) (*PushMessageContentSuggestProfilePhoto, error) {
|
|
var resp PushMessageContentSuggestProfilePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentChecklistTasksAdded(data json.RawMessage) (*PushMessageContentChecklistTasksAdded, error) {
|
|
var resp PushMessageContentChecklistTasksAdded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentChecklistTasksDone(data json.RawMessage) (*PushMessageContentChecklistTasksDone, error) {
|
|
var resp PushMessageContentChecklistTasksDone
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentMessageForwards(data json.RawMessage) (*PushMessageContentMessageForwards, error) {
|
|
var resp PushMessageContentMessageForwards
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPushMessageContentMediaAlbum(data json.RawMessage) (*PushMessageContentMediaAlbum, error) {
|
|
var resp PushMessageContentMediaAlbum
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationTypeNewMessage(data json.RawMessage) (*NotificationTypeNewMessage, error) {
|
|
var resp NotificationTypeNewMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationTypeNewSecretChat(data json.RawMessage) (*NotificationTypeNewSecretChat, error) {
|
|
var resp NotificationTypeNewSecretChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationTypeNewCall(data json.RawMessage) (*NotificationTypeNewCall, error) {
|
|
var resp NotificationTypeNewCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationTypeNewPushMessage(data json.RawMessage) (*NotificationTypeNewPushMessage, error) {
|
|
var resp NotificationTypeNewPushMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationGroupTypeMessages(data json.RawMessage) (*NotificationGroupTypeMessages, error) {
|
|
var resp NotificationGroupTypeMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationGroupTypeMentions(data json.RawMessage) (*NotificationGroupTypeMentions, error) {
|
|
var resp NotificationGroupTypeMentions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationGroupTypeSecretChat(data json.RawMessage) (*NotificationGroupTypeSecretChat, error) {
|
|
var resp NotificationGroupTypeSecretChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationGroupTypeCalls(data json.RawMessage) (*NotificationGroupTypeCalls, error) {
|
|
var resp NotificationGroupTypeCalls
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationSound(data json.RawMessage) (*NotificationSound, error) {
|
|
var resp NotificationSound
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationSounds(data json.RawMessage) (*NotificationSounds, error) {
|
|
var resp NotificationSounds
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotification(data json.RawMessage) (*Notification, error) {
|
|
var resp Notification
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNotificationGroup(data json.RawMessage) (*NotificationGroup, error) {
|
|
var resp NotificationGroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProxy(data json.RawMessage) (*Proxy, error) {
|
|
var resp Proxy
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalOptionValueBoolean(data json.RawMessage) (*OptionValueBoolean, error) {
|
|
var resp OptionValueBoolean
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalOptionValueEmpty(data json.RawMessage) (*OptionValueEmpty, error) {
|
|
var resp OptionValueEmpty
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalOptionValueInteger(data json.RawMessage) (*OptionValueInteger, error) {
|
|
var resp OptionValueInteger
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalOptionValueString(data json.RawMessage) (*OptionValueString, error) {
|
|
var resp OptionValueString
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalJsonObjectMember(data json.RawMessage) (*JsonObjectMember, error) {
|
|
var resp JsonObjectMember
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalJsonValueNull(data json.RawMessage) (*JsonValueNull, error) {
|
|
var resp JsonValueNull
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalJsonValueBoolean(data json.RawMessage) (*JsonValueBoolean, error) {
|
|
var resp JsonValueBoolean
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalJsonValueNumber(data json.RawMessage) (*JsonValueNumber, error) {
|
|
var resp JsonValueNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalJsonValueString(data json.RawMessage) (*JsonValueString, error) {
|
|
var resp JsonValueString
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalJsonValueArray(data json.RawMessage) (*JsonValueArray, error) {
|
|
var resp JsonValueArray
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalJsonValueObject(data json.RawMessage) (*JsonValueObject, error) {
|
|
var resp JsonValueObject
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryPrivacySettingsEveryone(data json.RawMessage) (*StoryPrivacySettingsEveryone, error) {
|
|
var resp StoryPrivacySettingsEveryone
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryPrivacySettingsContacts(data json.RawMessage) (*StoryPrivacySettingsContacts, error) {
|
|
var resp StoryPrivacySettingsContacts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryPrivacySettingsCloseFriends(data json.RawMessage) (*StoryPrivacySettingsCloseFriends, error) {
|
|
var resp StoryPrivacySettingsCloseFriends
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryPrivacySettingsSelectedUsers(data json.RawMessage) (*StoryPrivacySettingsSelectedUsers, error) {
|
|
var resp StoryPrivacySettingsSelectedUsers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRuleAllowAll(data json.RawMessage) (*UserPrivacySettingRuleAllowAll, error) {
|
|
var resp UserPrivacySettingRuleAllowAll
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRuleAllowContacts(data json.RawMessage) (*UserPrivacySettingRuleAllowContacts, error) {
|
|
var resp UserPrivacySettingRuleAllowContacts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRuleAllowBots(data json.RawMessage) (*UserPrivacySettingRuleAllowBots, error) {
|
|
var resp UserPrivacySettingRuleAllowBots
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRuleAllowPremiumUsers(data json.RawMessage) (*UserPrivacySettingRuleAllowPremiumUsers, error) {
|
|
var resp UserPrivacySettingRuleAllowPremiumUsers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRuleAllowUsers(data json.RawMessage) (*UserPrivacySettingRuleAllowUsers, error) {
|
|
var resp UserPrivacySettingRuleAllowUsers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRuleAllowChatMembers(data json.RawMessage) (*UserPrivacySettingRuleAllowChatMembers, error) {
|
|
var resp UserPrivacySettingRuleAllowChatMembers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRuleRestrictAll(data json.RawMessage) (*UserPrivacySettingRuleRestrictAll, error) {
|
|
var resp UserPrivacySettingRuleRestrictAll
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRuleRestrictContacts(data json.RawMessage) (*UserPrivacySettingRuleRestrictContacts, error) {
|
|
var resp UserPrivacySettingRuleRestrictContacts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRuleRestrictBots(data json.RawMessage) (*UserPrivacySettingRuleRestrictBots, error) {
|
|
var resp UserPrivacySettingRuleRestrictBots
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRuleRestrictUsers(data json.RawMessage) (*UserPrivacySettingRuleRestrictUsers, error) {
|
|
var resp UserPrivacySettingRuleRestrictUsers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRuleRestrictChatMembers(data json.RawMessage) (*UserPrivacySettingRuleRestrictChatMembers, error) {
|
|
var resp UserPrivacySettingRuleRestrictChatMembers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingRules(data json.RawMessage) (*UserPrivacySettingRules, error) {
|
|
var resp UserPrivacySettingRules
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingShowStatus(data json.RawMessage) (*UserPrivacySettingShowStatus, error) {
|
|
var resp UserPrivacySettingShowStatus
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingShowProfilePhoto(data json.RawMessage) (*UserPrivacySettingShowProfilePhoto, error) {
|
|
var resp UserPrivacySettingShowProfilePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingShowLinkInForwardedMessages(data json.RawMessage) (*UserPrivacySettingShowLinkInForwardedMessages, error) {
|
|
var resp UserPrivacySettingShowLinkInForwardedMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingShowPhoneNumber(data json.RawMessage) (*UserPrivacySettingShowPhoneNumber, error) {
|
|
var resp UserPrivacySettingShowPhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingShowBio(data json.RawMessage) (*UserPrivacySettingShowBio, error) {
|
|
var resp UserPrivacySettingShowBio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingShowBirthdate(data json.RawMessage) (*UserPrivacySettingShowBirthdate, error) {
|
|
var resp UserPrivacySettingShowBirthdate
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingShowProfileAudio(data json.RawMessage) (*UserPrivacySettingShowProfileAudio, error) {
|
|
var resp UserPrivacySettingShowProfileAudio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingAllowChatInvites(data json.RawMessage) (*UserPrivacySettingAllowChatInvites, error) {
|
|
var resp UserPrivacySettingAllowChatInvites
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingAllowCalls(data json.RawMessage) (*UserPrivacySettingAllowCalls, error) {
|
|
var resp UserPrivacySettingAllowCalls
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingAllowPeerToPeerCalls(data json.RawMessage) (*UserPrivacySettingAllowPeerToPeerCalls, error) {
|
|
var resp UserPrivacySettingAllowPeerToPeerCalls
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingAllowFindingByPhoneNumber(data json.RawMessage) (*UserPrivacySettingAllowFindingByPhoneNumber, error) {
|
|
var resp UserPrivacySettingAllowFindingByPhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data json.RawMessage) (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages, error) {
|
|
var resp UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingAutosaveGifts(data json.RawMessage) (*UserPrivacySettingAutosaveGifts, error) {
|
|
var resp UserPrivacySettingAutosaveGifts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUserPrivacySettingAllowUnpaidMessages(data json.RawMessage) (*UserPrivacySettingAllowUnpaidMessages, error) {
|
|
var resp UserPrivacySettingAllowUnpaidMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReadDatePrivacySettings(data json.RawMessage) (*ReadDatePrivacySettings, error) {
|
|
var resp ReadDatePrivacySettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNewChatPrivacySettings(data json.RawMessage) (*NewChatPrivacySettings, error) {
|
|
var resp NewChatPrivacySettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanSendMessageToUserResultOk(data json.RawMessage) (*CanSendMessageToUserResultOk, error) {
|
|
var resp CanSendMessageToUserResultOk
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanSendMessageToUserResultUserHasPaidMessages(data json.RawMessage) (*CanSendMessageToUserResultUserHasPaidMessages, error) {
|
|
var resp CanSendMessageToUserResultUserHasPaidMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanSendMessageToUserResultUserIsDeleted(data json.RawMessage) (*CanSendMessageToUserResultUserIsDeleted, error) {
|
|
var resp CanSendMessageToUserResultUserIsDeleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCanSendMessageToUserResultUserRestrictsNewChats(data json.RawMessage) (*CanSendMessageToUserResultUserRestrictsNewChats, error) {
|
|
var resp CanSendMessageToUserResultUserRestrictsNewChats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAccountTtl(data json.RawMessage) (*AccountTtl, error) {
|
|
var resp AccountTtl
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageAutoDeleteTime(data json.RawMessage) (*MessageAutoDeleteTime, error) {
|
|
var resp MessageAutoDeleteTime
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeAndroid(data json.RawMessage) (*SessionTypeAndroid, error) {
|
|
var resp SessionTypeAndroid
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeApple(data json.RawMessage) (*SessionTypeApple, error) {
|
|
var resp SessionTypeApple
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeBrave(data json.RawMessage) (*SessionTypeBrave, error) {
|
|
var resp SessionTypeBrave
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeChrome(data json.RawMessage) (*SessionTypeChrome, error) {
|
|
var resp SessionTypeChrome
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeEdge(data json.RawMessage) (*SessionTypeEdge, error) {
|
|
var resp SessionTypeEdge
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeFirefox(data json.RawMessage) (*SessionTypeFirefox, error) {
|
|
var resp SessionTypeFirefox
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeIpad(data json.RawMessage) (*SessionTypeIpad, error) {
|
|
var resp SessionTypeIpad
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeIphone(data json.RawMessage) (*SessionTypeIphone, error) {
|
|
var resp SessionTypeIphone
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeLinux(data json.RawMessage) (*SessionTypeLinux, error) {
|
|
var resp SessionTypeLinux
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeMac(data json.RawMessage) (*SessionTypeMac, error) {
|
|
var resp SessionTypeMac
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeOpera(data json.RawMessage) (*SessionTypeOpera, error) {
|
|
var resp SessionTypeOpera
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeSafari(data json.RawMessage) (*SessionTypeSafari, error) {
|
|
var resp SessionTypeSafari
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeUbuntu(data json.RawMessage) (*SessionTypeUbuntu, error) {
|
|
var resp SessionTypeUbuntu
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeUnknown(data json.RawMessage) (*SessionTypeUnknown, error) {
|
|
var resp SessionTypeUnknown
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeVivaldi(data json.RawMessage) (*SessionTypeVivaldi, error) {
|
|
var resp SessionTypeVivaldi
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeWindows(data json.RawMessage) (*SessionTypeWindows, error) {
|
|
var resp SessionTypeWindows
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessionTypeXbox(data json.RawMessage) (*SessionTypeXbox, error) {
|
|
var resp SessionTypeXbox
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSession(data json.RawMessage) (*Session, error) {
|
|
var resp Session
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSessions(data json.RawMessage) (*Sessions, error) {
|
|
var resp Sessions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUnconfirmedSession(data json.RawMessage) (*UnconfirmedSession, error) {
|
|
var resp UnconfirmedSession
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalConnectedWebsite(data json.RawMessage) (*ConnectedWebsite, error) {
|
|
var resp ConnectedWebsite
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalConnectedWebsites(data json.RawMessage) (*ConnectedWebsites, error) {
|
|
var resp ConnectedWebsites
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportReasonSpam(data json.RawMessage) (*ReportReasonSpam, error) {
|
|
var resp ReportReasonSpam
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportReasonViolence(data json.RawMessage) (*ReportReasonViolence, error) {
|
|
var resp ReportReasonViolence
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportReasonPornography(data json.RawMessage) (*ReportReasonPornography, error) {
|
|
var resp ReportReasonPornography
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportReasonChildAbuse(data json.RawMessage) (*ReportReasonChildAbuse, error) {
|
|
var resp ReportReasonChildAbuse
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportReasonCopyright(data json.RawMessage) (*ReportReasonCopyright, error) {
|
|
var resp ReportReasonCopyright
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportReasonUnrelatedLocation(data json.RawMessage) (*ReportReasonUnrelatedLocation, error) {
|
|
var resp ReportReasonUnrelatedLocation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportReasonFake(data json.RawMessage) (*ReportReasonFake, error) {
|
|
var resp ReportReasonFake
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportReasonIllegalDrugs(data json.RawMessage) (*ReportReasonIllegalDrugs, error) {
|
|
var resp ReportReasonIllegalDrugs
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportReasonPersonalDetails(data json.RawMessage) (*ReportReasonPersonalDetails, error) {
|
|
var resp ReportReasonPersonalDetails
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportReasonCustom(data json.RawMessage) (*ReportReasonCustom, error) {
|
|
var resp ReportReasonCustom
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportChatResultOk(data json.RawMessage) (*ReportChatResultOk, error) {
|
|
var resp ReportChatResultOk
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportChatResultOptionRequired(data json.RawMessage) (*ReportChatResultOptionRequired, error) {
|
|
var resp ReportChatResultOptionRequired
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportChatResultTextRequired(data json.RawMessage) (*ReportChatResultTextRequired, error) {
|
|
var resp ReportChatResultTextRequired
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportChatResultMessagesRequired(data json.RawMessage) (*ReportChatResultMessagesRequired, error) {
|
|
var resp ReportChatResultMessagesRequired
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportStoryResultOk(data json.RawMessage) (*ReportStoryResultOk, error) {
|
|
var resp ReportStoryResultOk
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportStoryResultOptionRequired(data json.RawMessage) (*ReportStoryResultOptionRequired, error) {
|
|
var resp ReportStoryResultOptionRequired
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalReportStoryResultTextRequired(data json.RawMessage) (*ReportStoryResultTextRequired, error) {
|
|
var resp ReportStoryResultTextRequired
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionAppearance(data json.RawMessage) (*SettingsSectionAppearance, error) {
|
|
var resp SettingsSectionAppearance
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionAskQuestion(data json.RawMessage) (*SettingsSectionAskQuestion, error) {
|
|
var resp SettingsSectionAskQuestion
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionBusiness(data json.RawMessage) (*SettingsSectionBusiness, error) {
|
|
var resp SettingsSectionBusiness
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionChatFolders(data json.RawMessage) (*SettingsSectionChatFolders, error) {
|
|
var resp SettingsSectionChatFolders
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionDataAndStorage(data json.RawMessage) (*SettingsSectionDataAndStorage, error) {
|
|
var resp SettingsSectionDataAndStorage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionDevices(data json.RawMessage) (*SettingsSectionDevices, error) {
|
|
var resp SettingsSectionDevices
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionEditProfile(data json.RawMessage) (*SettingsSectionEditProfile, error) {
|
|
var resp SettingsSectionEditProfile
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionFaq(data json.RawMessage) (*SettingsSectionFaq, error) {
|
|
var resp SettingsSectionFaq
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionFeatures(data json.RawMessage) (*SettingsSectionFeatures, error) {
|
|
var resp SettingsSectionFeatures
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionInAppBrowser(data json.RawMessage) (*SettingsSectionInAppBrowser, error) {
|
|
var resp SettingsSectionInAppBrowser
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionLanguage(data json.RawMessage) (*SettingsSectionLanguage, error) {
|
|
var resp SettingsSectionLanguage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionMyStars(data json.RawMessage) (*SettingsSectionMyStars, error) {
|
|
var resp SettingsSectionMyStars
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionMyToncoins(data json.RawMessage) (*SettingsSectionMyToncoins, error) {
|
|
var resp SettingsSectionMyToncoins
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionNotifications(data json.RawMessage) (*SettingsSectionNotifications, error) {
|
|
var resp SettingsSectionNotifications
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionPowerSaving(data json.RawMessage) (*SettingsSectionPowerSaving, error) {
|
|
var resp SettingsSectionPowerSaving
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionPremium(data json.RawMessage) (*SettingsSectionPremium, error) {
|
|
var resp SettingsSectionPremium
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionPrivacyAndSecurity(data json.RawMessage) (*SettingsSectionPrivacyAndSecurity, error) {
|
|
var resp SettingsSectionPrivacyAndSecurity
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionPrivacyPolicy(data json.RawMessage) (*SettingsSectionPrivacyPolicy, error) {
|
|
var resp SettingsSectionPrivacyPolicy
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionQrCode(data json.RawMessage) (*SettingsSectionQrCode, error) {
|
|
var resp SettingsSectionQrCode
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionSearch(data json.RawMessage) (*SettingsSectionSearch, error) {
|
|
var resp SettingsSectionSearch
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSettingsSectionSendGift(data json.RawMessage) (*SettingsSectionSendGift, error) {
|
|
var resp SettingsSectionSendGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeAttachmentMenuBot(data json.RawMessage) (*InternalLinkTypeAttachmentMenuBot, error) {
|
|
var resp InternalLinkTypeAttachmentMenuBot
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeAuthenticationCode(data json.RawMessage) (*InternalLinkTypeAuthenticationCode, error) {
|
|
var resp InternalLinkTypeAuthenticationCode
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeBackground(data json.RawMessage) (*InternalLinkTypeBackground, error) {
|
|
var resp InternalLinkTypeBackground
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeBotAddToChannel(data json.RawMessage) (*InternalLinkTypeBotAddToChannel, error) {
|
|
var resp InternalLinkTypeBotAddToChannel
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeBotStart(data json.RawMessage) (*InternalLinkTypeBotStart, error) {
|
|
var resp InternalLinkTypeBotStart
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeBotStartInGroup(data json.RawMessage) (*InternalLinkTypeBotStartInGroup, error) {
|
|
var resp InternalLinkTypeBotStartInGroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeBusinessChat(data json.RawMessage) (*InternalLinkTypeBusinessChat, error) {
|
|
var resp InternalLinkTypeBusinessChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeCallsPage(data json.RawMessage) (*InternalLinkTypeCallsPage, error) {
|
|
var resp InternalLinkTypeCallsPage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeChatAffiliateProgram(data json.RawMessage) (*InternalLinkTypeChatAffiliateProgram, error) {
|
|
var resp InternalLinkTypeChatAffiliateProgram
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeChatBoost(data json.RawMessage) (*InternalLinkTypeChatBoost, error) {
|
|
var resp InternalLinkTypeChatBoost
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeChatFolderInvite(data json.RawMessage) (*InternalLinkTypeChatFolderInvite, error) {
|
|
var resp InternalLinkTypeChatFolderInvite
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeChatInvite(data json.RawMessage) (*InternalLinkTypeChatInvite, error) {
|
|
var resp InternalLinkTypeChatInvite
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeChatSelection(data json.RawMessage) (*InternalLinkTypeChatSelection, error) {
|
|
var resp InternalLinkTypeChatSelection
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeContactsPage(data json.RawMessage) (*InternalLinkTypeContactsPage, error) {
|
|
var resp InternalLinkTypeContactsPage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeDirectMessagesChat(data json.RawMessage) (*InternalLinkTypeDirectMessagesChat, error) {
|
|
var resp InternalLinkTypeDirectMessagesChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeGame(data json.RawMessage) (*InternalLinkTypeGame, error) {
|
|
var resp InternalLinkTypeGame
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeGiftAuction(data json.RawMessage) (*InternalLinkTypeGiftAuction, error) {
|
|
var resp InternalLinkTypeGiftAuction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeGiftCollection(data json.RawMessage) (*InternalLinkTypeGiftCollection, error) {
|
|
var resp InternalLinkTypeGiftCollection
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeGroupCall(data json.RawMessage) (*InternalLinkTypeGroupCall, error) {
|
|
var resp InternalLinkTypeGroupCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeLanguagePack(data json.RawMessage) (*InternalLinkTypeLanguagePack, error) {
|
|
var resp InternalLinkTypeLanguagePack
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeLiveStory(data json.RawMessage) (*InternalLinkTypeLiveStory, error) {
|
|
var resp InternalLinkTypeLiveStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeMainWebApp(data json.RawMessage) (*InternalLinkTypeMainWebApp, error) {
|
|
var resp InternalLinkTypeMainWebApp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeMessage(data json.RawMessage) (*InternalLinkTypeMessage, error) {
|
|
var resp InternalLinkTypeMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeMessageDraft(data json.RawMessage) (*InternalLinkTypeMessageDraft, error) {
|
|
var resp InternalLinkTypeMessageDraft
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeMyProfilePage(data json.RawMessage) (*InternalLinkTypeMyProfilePage, error) {
|
|
var resp InternalLinkTypeMyProfilePage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeNewChannelChat(data json.RawMessage) (*InternalLinkTypeNewChannelChat, error) {
|
|
var resp InternalLinkTypeNewChannelChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeNewGroupChat(data json.RawMessage) (*InternalLinkTypeNewGroupChat, error) {
|
|
var resp InternalLinkTypeNewGroupChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeNewPrivateChat(data json.RawMessage) (*InternalLinkTypeNewPrivateChat, error) {
|
|
var resp InternalLinkTypeNewPrivateChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeNewStory(data json.RawMessage) (*InternalLinkTypeNewStory, error) {
|
|
var resp InternalLinkTypeNewStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypePassportDataRequest(data json.RawMessage) (*InternalLinkTypePassportDataRequest, error) {
|
|
var resp InternalLinkTypePassportDataRequest
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypePhoneNumberConfirmation(data json.RawMessage) (*InternalLinkTypePhoneNumberConfirmation, error) {
|
|
var resp InternalLinkTypePhoneNumberConfirmation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypePremiumFeaturesPage(data json.RawMessage) (*InternalLinkTypePremiumFeaturesPage, error) {
|
|
var resp InternalLinkTypePremiumFeaturesPage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypePremiumGiftCode(data json.RawMessage) (*InternalLinkTypePremiumGiftCode, error) {
|
|
var resp InternalLinkTypePremiumGiftCode
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypePremiumGiftPurchase(data json.RawMessage) (*InternalLinkTypePremiumGiftPurchase, error) {
|
|
var resp InternalLinkTypePremiumGiftPurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeProxy(data json.RawMessage) (*InternalLinkTypeProxy, error) {
|
|
var resp InternalLinkTypeProxy
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypePublicChat(data json.RawMessage) (*InternalLinkTypePublicChat, error) {
|
|
var resp InternalLinkTypePublicChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeQrCodeAuthentication(data json.RawMessage) (*InternalLinkTypeQrCodeAuthentication, error) {
|
|
var resp InternalLinkTypeQrCodeAuthentication
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeRestorePurchases(data json.RawMessage) (*InternalLinkTypeRestorePurchases, error) {
|
|
var resp InternalLinkTypeRestorePurchases
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeSavedMessages(data json.RawMessage) (*InternalLinkTypeSavedMessages, error) {
|
|
var resp InternalLinkTypeSavedMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeSearch(data json.RawMessage) (*InternalLinkTypeSearch, error) {
|
|
var resp InternalLinkTypeSearch
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeSettings(data json.RawMessage) (*InternalLinkTypeSettings, error) {
|
|
var resp InternalLinkTypeSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeStarPurchase(data json.RawMessage) (*InternalLinkTypeStarPurchase, error) {
|
|
var resp InternalLinkTypeStarPurchase
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeStickerSet(data json.RawMessage) (*InternalLinkTypeStickerSet, error) {
|
|
var resp InternalLinkTypeStickerSet
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeStory(data json.RawMessage) (*InternalLinkTypeStory, error) {
|
|
var resp InternalLinkTypeStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeStoryAlbum(data json.RawMessage) (*InternalLinkTypeStoryAlbum, error) {
|
|
var resp InternalLinkTypeStoryAlbum
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeTheme(data json.RawMessage) (*InternalLinkTypeTheme, error) {
|
|
var resp InternalLinkTypeTheme
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeUnknownDeepLink(data json.RawMessage) (*InternalLinkTypeUnknownDeepLink, error) {
|
|
var resp InternalLinkTypeUnknownDeepLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeUpgradedGift(data json.RawMessage) (*InternalLinkTypeUpgradedGift, error) {
|
|
var resp InternalLinkTypeUpgradedGift
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeUserPhoneNumber(data json.RawMessage) (*InternalLinkTypeUserPhoneNumber, error) {
|
|
var resp InternalLinkTypeUserPhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeUserToken(data json.RawMessage) (*InternalLinkTypeUserToken, error) {
|
|
var resp InternalLinkTypeUserToken
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeVideoChat(data json.RawMessage) (*InternalLinkTypeVideoChat, error) {
|
|
var resp InternalLinkTypeVideoChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInternalLinkTypeWebApp(data json.RawMessage) (*InternalLinkTypeWebApp, error) {
|
|
var resp InternalLinkTypeWebApp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageLink(data json.RawMessage) (*MessageLink, error) {
|
|
var resp MessageLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageLinkInfo(data json.RawMessage) (*MessageLinkInfo, error) {
|
|
var resp MessageLinkInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatBoostLink(data json.RawMessage) (*ChatBoostLink, error) {
|
|
var resp ChatBoostLink
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatBoostLinkInfo(data json.RawMessage) (*ChatBoostLinkInfo, error) {
|
|
var resp ChatBoostLinkInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBlockListMain(data json.RawMessage) (*BlockListMain, error) {
|
|
var resp BlockListMain
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBlockListStories(data json.RawMessage) (*BlockListStories, error) {
|
|
var resp BlockListStories
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeNone(data json.RawMessage) (*FileTypeNone, error) {
|
|
var resp FileTypeNone
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeAnimation(data json.RawMessage) (*FileTypeAnimation, error) {
|
|
var resp FileTypeAnimation
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeAudio(data json.RawMessage) (*FileTypeAudio, error) {
|
|
var resp FileTypeAudio
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeDocument(data json.RawMessage) (*FileTypeDocument, error) {
|
|
var resp FileTypeDocument
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeNotificationSound(data json.RawMessage) (*FileTypeNotificationSound, error) {
|
|
var resp FileTypeNotificationSound
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypePhoto(data json.RawMessage) (*FileTypePhoto, error) {
|
|
var resp FileTypePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypePhotoStory(data json.RawMessage) (*FileTypePhotoStory, error) {
|
|
var resp FileTypePhotoStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeProfilePhoto(data json.RawMessage) (*FileTypeProfilePhoto, error) {
|
|
var resp FileTypeProfilePhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeSecret(data json.RawMessage) (*FileTypeSecret, error) {
|
|
var resp FileTypeSecret
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeSecretThumbnail(data json.RawMessage) (*FileTypeSecretThumbnail, error) {
|
|
var resp FileTypeSecretThumbnail
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeSecure(data json.RawMessage) (*FileTypeSecure, error) {
|
|
var resp FileTypeSecure
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeSelfDestructingPhoto(data json.RawMessage) (*FileTypeSelfDestructingPhoto, error) {
|
|
var resp FileTypeSelfDestructingPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeSelfDestructingVideo(data json.RawMessage) (*FileTypeSelfDestructingVideo, error) {
|
|
var resp FileTypeSelfDestructingVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeSelfDestructingVideoNote(data json.RawMessage) (*FileTypeSelfDestructingVideoNote, error) {
|
|
var resp FileTypeSelfDestructingVideoNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeSelfDestructingVoiceNote(data json.RawMessage) (*FileTypeSelfDestructingVoiceNote, error) {
|
|
var resp FileTypeSelfDestructingVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeSticker(data json.RawMessage) (*FileTypeSticker, error) {
|
|
var resp FileTypeSticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeThumbnail(data json.RawMessage) (*FileTypeThumbnail, error) {
|
|
var resp FileTypeThumbnail
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeUnknown(data json.RawMessage) (*FileTypeUnknown, error) {
|
|
var resp FileTypeUnknown
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeVideo(data json.RawMessage) (*FileTypeVideo, error) {
|
|
var resp FileTypeVideo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeVideoNote(data json.RawMessage) (*FileTypeVideoNote, error) {
|
|
var resp FileTypeVideoNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeVideoStory(data json.RawMessage) (*FileTypeVideoStory, error) {
|
|
var resp FileTypeVideoStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeVoiceNote(data json.RawMessage) (*FileTypeVoiceNote, error) {
|
|
var resp FileTypeVoiceNote
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileTypeWallpaper(data json.RawMessage) (*FileTypeWallpaper, error) {
|
|
var resp FileTypeWallpaper
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStorageStatisticsByFileType(data json.RawMessage) (*StorageStatisticsByFileType, error) {
|
|
var resp StorageStatisticsByFileType
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStorageStatisticsByChat(data json.RawMessage) (*StorageStatisticsByChat, error) {
|
|
var resp StorageStatisticsByChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStorageStatistics(data json.RawMessage) (*StorageStatistics, error) {
|
|
var resp StorageStatistics
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStorageStatisticsFast(data json.RawMessage) (*StorageStatisticsFast, error) {
|
|
var resp StorageStatisticsFast
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDatabaseStatistics(data json.RawMessage) (*DatabaseStatistics, error) {
|
|
var resp DatabaseStatistics
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNetworkTypeNone(data json.RawMessage) (*NetworkTypeNone, error) {
|
|
var resp NetworkTypeNone
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNetworkTypeMobile(data json.RawMessage) (*NetworkTypeMobile, error) {
|
|
var resp NetworkTypeMobile
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNetworkTypeMobileRoaming(data json.RawMessage) (*NetworkTypeMobileRoaming, error) {
|
|
var resp NetworkTypeMobileRoaming
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNetworkTypeWiFi(data json.RawMessage) (*NetworkTypeWiFi, error) {
|
|
var resp NetworkTypeWiFi
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNetworkTypeOther(data json.RawMessage) (*NetworkTypeOther, error) {
|
|
var resp NetworkTypeOther
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNetworkStatisticsEntryFile(data json.RawMessage) (*NetworkStatisticsEntryFile, error) {
|
|
var resp NetworkStatisticsEntryFile
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNetworkStatisticsEntryCall(data json.RawMessage) (*NetworkStatisticsEntryCall, error) {
|
|
var resp NetworkStatisticsEntryCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalNetworkStatistics(data json.RawMessage) (*NetworkStatistics, error) {
|
|
var resp NetworkStatistics
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAutoDownloadSettings(data json.RawMessage) (*AutoDownloadSettings, error) {
|
|
var resp AutoDownloadSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAutoDownloadSettingsPresets(data json.RawMessage) (*AutoDownloadSettingsPresets, error) {
|
|
var resp AutoDownloadSettingsPresets
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAutosaveSettingsScopePrivateChats(data json.RawMessage) (*AutosaveSettingsScopePrivateChats, error) {
|
|
var resp AutosaveSettingsScopePrivateChats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAutosaveSettingsScopeGroupChats(data json.RawMessage) (*AutosaveSettingsScopeGroupChats, error) {
|
|
var resp AutosaveSettingsScopeGroupChats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAutosaveSettingsScopeChannelChats(data json.RawMessage) (*AutosaveSettingsScopeChannelChats, error) {
|
|
var resp AutosaveSettingsScopeChannelChats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAutosaveSettingsScopeChat(data json.RawMessage) (*AutosaveSettingsScopeChat, error) {
|
|
var resp AutosaveSettingsScopeChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalScopeAutosaveSettings(data json.RawMessage) (*ScopeAutosaveSettings, error) {
|
|
var resp ScopeAutosaveSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAutosaveSettingsException(data json.RawMessage) (*AutosaveSettingsException, error) {
|
|
var resp AutosaveSettingsException
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAutosaveSettings(data json.RawMessage) (*AutosaveSettings, error) {
|
|
var resp AutosaveSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalConnectionStateWaitingForNetwork(data json.RawMessage) (*ConnectionStateWaitingForNetwork, error) {
|
|
var resp ConnectionStateWaitingForNetwork
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalConnectionStateConnectingToProxy(data json.RawMessage) (*ConnectionStateConnectingToProxy, error) {
|
|
var resp ConnectionStateConnectingToProxy
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalConnectionStateConnecting(data json.RawMessage) (*ConnectionStateConnecting, error) {
|
|
var resp ConnectionStateConnecting
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalConnectionStateUpdating(data json.RawMessage) (*ConnectionStateUpdating, error) {
|
|
var resp ConnectionStateUpdating
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalConnectionStateReady(data json.RawMessage) (*ConnectionStateReady, error) {
|
|
var resp ConnectionStateReady
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAgeVerificationParameters(data json.RawMessage) (*AgeVerificationParameters, error) {
|
|
var resp AgeVerificationParameters
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTopChatCategoryUsers(data json.RawMessage) (*TopChatCategoryUsers, error) {
|
|
var resp TopChatCategoryUsers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTopChatCategoryBots(data json.RawMessage) (*TopChatCategoryBots, error) {
|
|
var resp TopChatCategoryBots
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTopChatCategoryGroups(data json.RawMessage) (*TopChatCategoryGroups, error) {
|
|
var resp TopChatCategoryGroups
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTopChatCategoryChannels(data json.RawMessage) (*TopChatCategoryChannels, error) {
|
|
var resp TopChatCategoryChannels
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTopChatCategoryInlineBots(data json.RawMessage) (*TopChatCategoryInlineBots, error) {
|
|
var resp TopChatCategoryInlineBots
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTopChatCategoryWebAppBots(data json.RawMessage) (*TopChatCategoryWebAppBots, error) {
|
|
var resp TopChatCategoryWebAppBots
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTopChatCategoryCalls(data json.RawMessage) (*TopChatCategoryCalls, error) {
|
|
var resp TopChatCategoryCalls
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTopChatCategoryForwardChats(data json.RawMessage) (*TopChatCategoryForwardChats, error) {
|
|
var resp TopChatCategoryForwardChats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFoundPosition(data json.RawMessage) (*FoundPosition, error) {
|
|
var resp FoundPosition
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFoundPositions(data json.RawMessage) (*FoundPositions, error) {
|
|
var resp FoundPositions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTMeUrlTypeUser(data json.RawMessage) (*TMeUrlTypeUser, error) {
|
|
var resp TMeUrlTypeUser
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTMeUrlTypeSupergroup(data json.RawMessage) (*TMeUrlTypeSupergroup, error) {
|
|
var resp TMeUrlTypeSupergroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTMeUrlTypeChatInvite(data json.RawMessage) (*TMeUrlTypeChatInvite, error) {
|
|
var resp TMeUrlTypeChatInvite
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTMeUrlTypeStickerSet(data json.RawMessage) (*TMeUrlTypeStickerSet, error) {
|
|
var resp TMeUrlTypeStickerSet
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTMeUrl(data json.RawMessage) (*TMeUrl, error) {
|
|
var resp TMeUrl
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTMeUrls(data json.RawMessage) (*TMeUrls, error) {
|
|
var resp TMeUrls
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionEnableArchiveAndMuteNewChats(data json.RawMessage) (*SuggestedActionEnableArchiveAndMuteNewChats, error) {
|
|
var resp SuggestedActionEnableArchiveAndMuteNewChats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionCheckPassword(data json.RawMessage) (*SuggestedActionCheckPassword, error) {
|
|
var resp SuggestedActionCheckPassword
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionCheckPhoneNumber(data json.RawMessage) (*SuggestedActionCheckPhoneNumber, error) {
|
|
var resp SuggestedActionCheckPhoneNumber
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionViewChecksHint(data json.RawMessage) (*SuggestedActionViewChecksHint, error) {
|
|
var resp SuggestedActionViewChecksHint
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionConvertToBroadcastGroup(data json.RawMessage) (*SuggestedActionConvertToBroadcastGroup, error) {
|
|
var resp SuggestedActionConvertToBroadcastGroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionSetPassword(data json.RawMessage) (*SuggestedActionSetPassword, error) {
|
|
var resp SuggestedActionSetPassword
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionUpgradePremium(data json.RawMessage) (*SuggestedActionUpgradePremium, error) {
|
|
var resp SuggestedActionUpgradePremium
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionRestorePremium(data json.RawMessage) (*SuggestedActionRestorePremium, error) {
|
|
var resp SuggestedActionRestorePremium
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionSubscribeToAnnualPremium(data json.RawMessage) (*SuggestedActionSubscribeToAnnualPremium, error) {
|
|
var resp SuggestedActionSubscribeToAnnualPremium
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionGiftPremiumForChristmas(data json.RawMessage) (*SuggestedActionGiftPremiumForChristmas, error) {
|
|
var resp SuggestedActionGiftPremiumForChristmas
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionSetBirthdate(data json.RawMessage) (*SuggestedActionSetBirthdate, error) {
|
|
var resp SuggestedActionSetBirthdate
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionExtendStarSubscriptions(data json.RawMessage) (*SuggestedActionExtendStarSubscriptions, error) {
|
|
var resp SuggestedActionExtendStarSubscriptions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionCustom(data json.RawMessage) (*SuggestedActionCustom, error) {
|
|
var resp SuggestedActionCustom
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionSetLoginEmailAddress(data json.RawMessage) (*SuggestedActionSetLoginEmailAddress, error) {
|
|
var resp SuggestedActionSetLoginEmailAddress
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSuggestedActionAddLoginPasskey(data json.RawMessage) (*SuggestedActionAddLoginPasskey, error) {
|
|
var resp SuggestedActionAddLoginPasskey
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalCount(data json.RawMessage) (*Count, error) {
|
|
var resp Count
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalText(data json.RawMessage) (*Text, error) {
|
|
var resp Text
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalData(data json.RawMessage) (*Data, error) {
|
|
var resp Data
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalSeconds(data json.RawMessage) (*Seconds, error) {
|
|
var resp Seconds
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalFileDownloadedPrefixSize(data json.RawMessage) (*FileDownloadedPrefixSize, error) {
|
|
var resp FileDownloadedPrefixSize
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarCount(data json.RawMessage) (*StarCount, error) {
|
|
var resp StarCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDeepLinkInfo(data json.RawMessage) (*DeepLinkInfo, error) {
|
|
var resp DeepLinkInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextParseModeMarkdown(data json.RawMessage) (*TextParseModeMarkdown, error) {
|
|
var resp TextParseModeMarkdown
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTextParseModeHTML(data json.RawMessage) (*TextParseModeHTML, error) {
|
|
var resp TextParseModeHTML
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProxyTypeSocks5(data json.RawMessage) (*ProxyTypeSocks5, error) {
|
|
var resp ProxyTypeSocks5
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProxyTypeHttp(data json.RawMessage) (*ProxyTypeHttp, error) {
|
|
var resp ProxyTypeHttp
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalProxyTypeMtproto(data json.RawMessage) (*ProxyTypeMtproto, error) {
|
|
var resp ProxyTypeMtproto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAddedProxy(data json.RawMessage) (*AddedProxy, error) {
|
|
var resp AddedProxy
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalAddedProxies(data json.RawMessage) (*AddedProxies, error) {
|
|
var resp AddedProxies
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalInputSticker(data json.RawMessage) (*InputSticker, error) {
|
|
var resp InputSticker
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalDateRange(data json.RawMessage) (*DateRange, error) {
|
|
var resp DateRange
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStatisticalValue(data json.RawMessage) (*StatisticalValue, error) {
|
|
var resp StatisticalValue
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStatisticalGraphData(data json.RawMessage) (*StatisticalGraphData, error) {
|
|
var resp StatisticalGraphData
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStatisticalGraphAsync(data json.RawMessage) (*StatisticalGraphAsync, error) {
|
|
var resp StatisticalGraphAsync
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStatisticalGraphError(data json.RawMessage) (*StatisticalGraphError, error) {
|
|
var resp StatisticalGraphError
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatStatisticsObjectTypeMessage(data json.RawMessage) (*ChatStatisticsObjectTypeMessage, error) {
|
|
var resp ChatStatisticsObjectTypeMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatStatisticsObjectTypeStory(data json.RawMessage) (*ChatStatisticsObjectTypeStory, error) {
|
|
var resp ChatStatisticsObjectTypeStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatStatisticsInteractionInfo(data json.RawMessage) (*ChatStatisticsInteractionInfo, error) {
|
|
var resp ChatStatisticsInteractionInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatStatisticsMessageSenderInfo(data json.RawMessage) (*ChatStatisticsMessageSenderInfo, error) {
|
|
var resp ChatStatisticsMessageSenderInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatStatisticsAdministratorActionsInfo(data json.RawMessage) (*ChatStatisticsAdministratorActionsInfo, error) {
|
|
var resp ChatStatisticsAdministratorActionsInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatStatisticsInviterInfo(data json.RawMessage) (*ChatStatisticsInviterInfo, error) {
|
|
var resp ChatStatisticsInviterInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatStatisticsSupergroup(data json.RawMessage) (*ChatStatisticsSupergroup, error) {
|
|
var resp ChatStatisticsSupergroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatStatisticsChannel(data json.RawMessage) (*ChatStatisticsChannel, error) {
|
|
var resp ChatStatisticsChannel
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatRevenueAmount(data json.RawMessage) (*ChatRevenueAmount, error) {
|
|
var resp ChatRevenueAmount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatRevenueStatistics(data json.RawMessage) (*ChatRevenueStatistics, error) {
|
|
var resp ChatRevenueStatistics
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalMessageStatistics(data json.RawMessage) (*MessageStatistics, error) {
|
|
var resp MessageStatistics
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStoryStatistics(data json.RawMessage) (*StoryStatistics, error) {
|
|
var resp StoryStatistics
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRevenueWithdrawalStatePending(data json.RawMessage) (*RevenueWithdrawalStatePending, error) {
|
|
var resp RevenueWithdrawalStatePending
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRevenueWithdrawalStateSucceeded(data json.RawMessage) (*RevenueWithdrawalStateSucceeded, error) {
|
|
var resp RevenueWithdrawalStateSucceeded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalRevenueWithdrawalStateFailed(data json.RawMessage) (*RevenueWithdrawalStateFailed, error) {
|
|
var resp RevenueWithdrawalStateFailed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatRevenueTransactionTypeUnsupported(data json.RawMessage) (*ChatRevenueTransactionTypeUnsupported, error) {
|
|
var resp ChatRevenueTransactionTypeUnsupported
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatRevenueTransactionTypeSponsoredMessageEarnings(data json.RawMessage) (*ChatRevenueTransactionTypeSponsoredMessageEarnings, error) {
|
|
var resp ChatRevenueTransactionTypeSponsoredMessageEarnings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatRevenueTransactionTypeSuggestedPostEarnings(data json.RawMessage) (*ChatRevenueTransactionTypeSuggestedPostEarnings, error) {
|
|
var resp ChatRevenueTransactionTypeSuggestedPostEarnings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatRevenueTransactionTypeFragmentWithdrawal(data json.RawMessage) (*ChatRevenueTransactionTypeFragmentWithdrawal, error) {
|
|
var resp ChatRevenueTransactionTypeFragmentWithdrawal
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatRevenueTransactionTypeFragmentRefund(data json.RawMessage) (*ChatRevenueTransactionTypeFragmentRefund, error) {
|
|
var resp ChatRevenueTransactionTypeFragmentRefund
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatRevenueTransaction(data json.RawMessage) (*ChatRevenueTransaction, error) {
|
|
var resp ChatRevenueTransaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalChatRevenueTransactions(data json.RawMessage) (*ChatRevenueTransactions, error) {
|
|
var resp ChatRevenueTransactions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarRevenueStatus(data json.RawMessage) (*StarRevenueStatus, error) {
|
|
var resp StarRevenueStatus
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalStarRevenueStatistics(data json.RawMessage) (*StarRevenueStatistics, error) {
|
|
var resp StarRevenueStatistics
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonRevenueStatus(data json.RawMessage) (*TonRevenueStatus, error) {
|
|
var resp TonRevenueStatus
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTonRevenueStatistics(data json.RawMessage) (*TonRevenueStatistics, error) {
|
|
var resp TonRevenueStatistics
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPoint(data json.RawMessage) (*Point, error) {
|
|
var resp Point
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalVectorPathCommandLine(data json.RawMessage) (*VectorPathCommandLine, error) {
|
|
var resp VectorPathCommandLine
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalVectorPathCommandCubicBezierCurve(data json.RawMessage) (*VectorPathCommandCubicBezierCurve, error) {
|
|
var resp VectorPathCommandCubicBezierCurve
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotCommandScopeDefault(data json.RawMessage) (*BotCommandScopeDefault, error) {
|
|
var resp BotCommandScopeDefault
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotCommandScopeAllPrivateChats(data json.RawMessage) (*BotCommandScopeAllPrivateChats, error) {
|
|
var resp BotCommandScopeAllPrivateChats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotCommandScopeAllGroupChats(data json.RawMessage) (*BotCommandScopeAllGroupChats, error) {
|
|
var resp BotCommandScopeAllGroupChats
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotCommandScopeAllChatAdministrators(data json.RawMessage) (*BotCommandScopeAllChatAdministrators, error) {
|
|
var resp BotCommandScopeAllChatAdministrators
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotCommandScopeChat(data json.RawMessage) (*BotCommandScopeChat, error) {
|
|
var resp BotCommandScopeChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotCommandScopeChatAdministrators(data json.RawMessage) (*BotCommandScopeChatAdministrators, error) {
|
|
var resp BotCommandScopeChatAdministrators
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalBotCommandScopeChatMember(data json.RawMessage) (*BotCommandScopeChatMember, error) {
|
|
var resp BotCommandScopeChatMember
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPhoneNumberCodeTypeChange(data json.RawMessage) (*PhoneNumberCodeTypeChange, error) {
|
|
var resp PhoneNumberCodeTypeChange
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPhoneNumberCodeTypeVerify(data json.RawMessage) (*PhoneNumberCodeTypeVerify, error) {
|
|
var resp PhoneNumberCodeTypeVerify
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalPhoneNumberCodeTypeConfirmOwnership(data json.RawMessage) (*PhoneNumberCodeTypeConfirmOwnership, error) {
|
|
var resp PhoneNumberCodeTypeConfirmOwnership
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateAuthorizationState(data json.RawMessage) (*UpdateAuthorizationState, error) {
|
|
var resp UpdateAuthorizationState
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewMessage(data json.RawMessage) (*UpdateNewMessage, error) {
|
|
var resp UpdateNewMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageSendAcknowledged(data json.RawMessage) (*UpdateMessageSendAcknowledged, error) {
|
|
var resp UpdateMessageSendAcknowledged
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageSendSucceeded(data json.RawMessage) (*UpdateMessageSendSucceeded, error) {
|
|
var resp UpdateMessageSendSucceeded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageSendFailed(data json.RawMessage) (*UpdateMessageSendFailed, error) {
|
|
var resp UpdateMessageSendFailed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageContent(data json.RawMessage) (*UpdateMessageContent, error) {
|
|
var resp UpdateMessageContent
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageEdited(data json.RawMessage) (*UpdateMessageEdited, error) {
|
|
var resp UpdateMessageEdited
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageIsPinned(data json.RawMessage) (*UpdateMessageIsPinned, error) {
|
|
var resp UpdateMessageIsPinned
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageInteractionInfo(data json.RawMessage) (*UpdateMessageInteractionInfo, error) {
|
|
var resp UpdateMessageInteractionInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageContentOpened(data json.RawMessage) (*UpdateMessageContentOpened, error) {
|
|
var resp UpdateMessageContentOpened
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageMentionRead(data json.RawMessage) (*UpdateMessageMentionRead, error) {
|
|
var resp UpdateMessageMentionRead
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageUnreadReactions(data json.RawMessage) (*UpdateMessageUnreadReactions, error) {
|
|
var resp UpdateMessageUnreadReactions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageFactCheck(data json.RawMessage) (*UpdateMessageFactCheck, error) {
|
|
var resp UpdateMessageFactCheck
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageSuggestedPostInfo(data json.RawMessage) (*UpdateMessageSuggestedPostInfo, error) {
|
|
var resp UpdateMessageSuggestedPostInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageLiveLocationViewed(data json.RawMessage) (*UpdateMessageLiveLocationViewed, error) {
|
|
var resp UpdateMessageLiveLocationViewed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatTitle(data json.RawMessage) (*UpdateChatTitle, error) {
|
|
var resp UpdateChatTitle
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatPhoto(data json.RawMessage) (*UpdateChatPhoto, error) {
|
|
var resp UpdateChatPhoto
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatAccentColors(data json.RawMessage) (*UpdateChatAccentColors, error) {
|
|
var resp UpdateChatAccentColors
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatPermissions(data json.RawMessage) (*UpdateChatPermissions, error) {
|
|
var resp UpdateChatPermissions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatLastMessage(data json.RawMessage) (*UpdateChatLastMessage, error) {
|
|
var resp UpdateChatLastMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatPosition(data json.RawMessage) (*UpdateChatPosition, error) {
|
|
var resp UpdateChatPosition
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatAddedToList(data json.RawMessage) (*UpdateChatAddedToList, error) {
|
|
var resp UpdateChatAddedToList
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatRemovedFromList(data json.RawMessage) (*UpdateChatRemovedFromList, error) {
|
|
var resp UpdateChatRemovedFromList
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatReadInbox(data json.RawMessage) (*UpdateChatReadInbox, error) {
|
|
var resp UpdateChatReadInbox
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatReadOutbox(data json.RawMessage) (*UpdateChatReadOutbox, error) {
|
|
var resp UpdateChatReadOutbox
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatActionBar(data json.RawMessage) (*UpdateChatActionBar, error) {
|
|
var resp UpdateChatActionBar
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatBusinessBotManageBar(data json.RawMessage) (*UpdateChatBusinessBotManageBar, error) {
|
|
var resp UpdateChatBusinessBotManageBar
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatAvailableReactions(data json.RawMessage) (*UpdateChatAvailableReactions, error) {
|
|
var resp UpdateChatAvailableReactions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatDraftMessage(data json.RawMessage) (*UpdateChatDraftMessage, error) {
|
|
var resp UpdateChatDraftMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatEmojiStatus(data json.RawMessage) (*UpdateChatEmojiStatus, error) {
|
|
var resp UpdateChatEmojiStatus
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatMessageSender(data json.RawMessage) (*UpdateChatMessageSender, error) {
|
|
var resp UpdateChatMessageSender
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatMessageAutoDeleteTime(data json.RawMessage) (*UpdateChatMessageAutoDeleteTime, error) {
|
|
var resp UpdateChatMessageAutoDeleteTime
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatNotificationSettings(data json.RawMessage) (*UpdateChatNotificationSettings, error) {
|
|
var resp UpdateChatNotificationSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatPendingJoinRequests(data json.RawMessage) (*UpdateChatPendingJoinRequests, error) {
|
|
var resp UpdateChatPendingJoinRequests
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatReplyMarkup(data json.RawMessage) (*UpdateChatReplyMarkup, error) {
|
|
var resp UpdateChatReplyMarkup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatBackground(data json.RawMessage) (*UpdateChatBackground, error) {
|
|
var resp UpdateChatBackground
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatTheme(data json.RawMessage) (*UpdateChatTheme, error) {
|
|
var resp UpdateChatTheme
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatUnreadMentionCount(data json.RawMessage) (*UpdateChatUnreadMentionCount, error) {
|
|
var resp UpdateChatUnreadMentionCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatUnreadReactionCount(data json.RawMessage) (*UpdateChatUnreadReactionCount, error) {
|
|
var resp UpdateChatUnreadReactionCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatVideoChat(data json.RawMessage) (*UpdateChatVideoChat, error) {
|
|
var resp UpdateChatVideoChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatDefaultDisableNotification(data json.RawMessage) (*UpdateChatDefaultDisableNotification, error) {
|
|
var resp UpdateChatDefaultDisableNotification
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatHasProtectedContent(data json.RawMessage) (*UpdateChatHasProtectedContent, error) {
|
|
var resp UpdateChatHasProtectedContent
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatIsTranslatable(data json.RawMessage) (*UpdateChatIsTranslatable, error) {
|
|
var resp UpdateChatIsTranslatable
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatIsMarkedAsUnread(data json.RawMessage) (*UpdateChatIsMarkedAsUnread, error) {
|
|
var resp UpdateChatIsMarkedAsUnread
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatViewAsTopics(data json.RawMessage) (*UpdateChatViewAsTopics, error) {
|
|
var resp UpdateChatViewAsTopics
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatBlockList(data json.RawMessage) (*UpdateChatBlockList, error) {
|
|
var resp UpdateChatBlockList
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatHasScheduledMessages(data json.RawMessage) (*UpdateChatHasScheduledMessages, error) {
|
|
var resp UpdateChatHasScheduledMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatFolders(data json.RawMessage) (*UpdateChatFolders, error) {
|
|
var resp UpdateChatFolders
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatOnlineMemberCount(data json.RawMessage) (*UpdateChatOnlineMemberCount, error) {
|
|
var resp UpdateChatOnlineMemberCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateSavedMessagesTopic(data json.RawMessage) (*UpdateSavedMessagesTopic, error) {
|
|
var resp UpdateSavedMessagesTopic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateSavedMessagesTopicCount(data json.RawMessage) (*UpdateSavedMessagesTopicCount, error) {
|
|
var resp UpdateSavedMessagesTopicCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateDirectMessagesChatTopic(data json.RawMessage) (*UpdateDirectMessagesChatTopic, error) {
|
|
var resp UpdateDirectMessagesChatTopic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateTopicMessageCount(data json.RawMessage) (*UpdateTopicMessageCount, error) {
|
|
var resp UpdateTopicMessageCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateQuickReplyShortcut(data json.RawMessage) (*UpdateQuickReplyShortcut, error) {
|
|
var resp UpdateQuickReplyShortcut
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateQuickReplyShortcutDeleted(data json.RawMessage) (*UpdateQuickReplyShortcutDeleted, error) {
|
|
var resp UpdateQuickReplyShortcutDeleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateQuickReplyShortcuts(data json.RawMessage) (*UpdateQuickReplyShortcuts, error) {
|
|
var resp UpdateQuickReplyShortcuts
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateQuickReplyShortcutMessages(data json.RawMessage) (*UpdateQuickReplyShortcutMessages, error) {
|
|
var resp UpdateQuickReplyShortcutMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateForumTopicInfo(data json.RawMessage) (*UpdateForumTopicInfo, error) {
|
|
var resp UpdateForumTopicInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateForumTopic(data json.RawMessage) (*UpdateForumTopic, error) {
|
|
var resp UpdateForumTopic
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateScopeNotificationSettings(data json.RawMessage) (*UpdateScopeNotificationSettings, error) {
|
|
var resp UpdateScopeNotificationSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateReactionNotificationSettings(data json.RawMessage) (*UpdateReactionNotificationSettings, error) {
|
|
var resp UpdateReactionNotificationSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNotification(data json.RawMessage) (*UpdateNotification, error) {
|
|
var resp UpdateNotification
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNotificationGroup(data json.RawMessage) (*UpdateNotificationGroup, error) {
|
|
var resp UpdateNotificationGroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateActiveNotifications(data json.RawMessage) (*UpdateActiveNotifications, error) {
|
|
var resp UpdateActiveNotifications
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateHavePendingNotifications(data json.RawMessage) (*UpdateHavePendingNotifications, error) {
|
|
var resp UpdateHavePendingNotifications
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateDeleteMessages(data json.RawMessage) (*UpdateDeleteMessages, error) {
|
|
var resp UpdateDeleteMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatAction(data json.RawMessage) (*UpdateChatAction, error) {
|
|
var resp UpdateChatAction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateUser(data json.RawMessage) (*UpdateUser, error) {
|
|
var resp UpdateUser
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateBasicGroup(data json.RawMessage) (*UpdateBasicGroup, error) {
|
|
var resp UpdateBasicGroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateSupergroup(data json.RawMessage) (*UpdateSupergroup, error) {
|
|
var resp UpdateSupergroup
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateSecretChat(data json.RawMessage) (*UpdateSecretChat, error) {
|
|
var resp UpdateSecretChat
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateUserFullInfo(data json.RawMessage) (*UpdateUserFullInfo, error) {
|
|
var resp UpdateUserFullInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateBasicGroupFullInfo(data json.RawMessage) (*UpdateBasicGroupFullInfo, error) {
|
|
var resp UpdateBasicGroupFullInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateSupergroupFullInfo(data json.RawMessage) (*UpdateSupergroupFullInfo, error) {
|
|
var resp UpdateSupergroupFullInfo
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateServiceNotification(data json.RawMessage) (*UpdateServiceNotification, error) {
|
|
var resp UpdateServiceNotification
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateFile(data json.RawMessage) (*UpdateFile, error) {
|
|
var resp UpdateFile
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateFileGenerationStart(data json.RawMessage) (*UpdateFileGenerationStart, error) {
|
|
var resp UpdateFileGenerationStart
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateFileGenerationStop(data json.RawMessage) (*UpdateFileGenerationStop, error) {
|
|
var resp UpdateFileGenerationStop
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateFileDownloads(data json.RawMessage) (*UpdateFileDownloads, error) {
|
|
var resp UpdateFileDownloads
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateFileAddedToDownloads(data json.RawMessage) (*UpdateFileAddedToDownloads, error) {
|
|
var resp UpdateFileAddedToDownloads
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateFileDownload(data json.RawMessage) (*UpdateFileDownload, error) {
|
|
var resp UpdateFileDownload
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateFileRemovedFromDownloads(data json.RawMessage) (*UpdateFileRemovedFromDownloads, error) {
|
|
var resp UpdateFileRemovedFromDownloads
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateApplicationVerificationRequired(data json.RawMessage) (*UpdateApplicationVerificationRequired, error) {
|
|
var resp UpdateApplicationVerificationRequired
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateApplicationRecaptchaVerificationRequired(data json.RawMessage) (*UpdateApplicationRecaptchaVerificationRequired, error) {
|
|
var resp UpdateApplicationRecaptchaVerificationRequired
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateCall(data json.RawMessage) (*UpdateCall, error) {
|
|
var resp UpdateCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateGroupCall(data json.RawMessage) (*UpdateGroupCall, error) {
|
|
var resp UpdateGroupCall
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateGroupCallParticipant(data json.RawMessage) (*UpdateGroupCallParticipant, error) {
|
|
var resp UpdateGroupCallParticipant
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateGroupCallParticipants(data json.RawMessage) (*UpdateGroupCallParticipants, error) {
|
|
var resp UpdateGroupCallParticipants
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateGroupCallVerificationState(data json.RawMessage) (*UpdateGroupCallVerificationState, error) {
|
|
var resp UpdateGroupCallVerificationState
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewGroupCallMessage(data json.RawMessage) (*UpdateNewGroupCallMessage, error) {
|
|
var resp UpdateNewGroupCallMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewGroupCallPaidReaction(data json.RawMessage) (*UpdateNewGroupCallPaidReaction, error) {
|
|
var resp UpdateNewGroupCallPaidReaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateGroupCallMessageSendFailed(data json.RawMessage) (*UpdateGroupCallMessageSendFailed, error) {
|
|
var resp UpdateGroupCallMessageSendFailed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateGroupCallMessagesDeleted(data json.RawMessage) (*UpdateGroupCallMessagesDeleted, error) {
|
|
var resp UpdateGroupCallMessagesDeleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateLiveStoryTopDonors(data json.RawMessage) (*UpdateLiveStoryTopDonors, error) {
|
|
var resp UpdateLiveStoryTopDonors
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewCallSignalingData(data json.RawMessage) (*UpdateNewCallSignalingData, error) {
|
|
var resp UpdateNewCallSignalingData
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateGiftAuctionState(data json.RawMessage) (*UpdateGiftAuctionState, error) {
|
|
var resp UpdateGiftAuctionState
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateActiveGiftAuctions(data json.RawMessage) (*UpdateActiveGiftAuctions, error) {
|
|
var resp UpdateActiveGiftAuctions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateUserPrivacySettingRules(data json.RawMessage) (*UpdateUserPrivacySettingRules, error) {
|
|
var resp UpdateUserPrivacySettingRules
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateUnreadMessageCount(data json.RawMessage) (*UpdateUnreadMessageCount, error) {
|
|
var resp UpdateUnreadMessageCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateUnreadChatCount(data json.RawMessage) (*UpdateUnreadChatCount, error) {
|
|
var resp UpdateUnreadChatCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateStory(data json.RawMessage) (*UpdateStory, error) {
|
|
var resp UpdateStory
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateStoryDeleted(data json.RawMessage) (*UpdateStoryDeleted, error) {
|
|
var resp UpdateStoryDeleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateStoryPostSucceeded(data json.RawMessage) (*UpdateStoryPostSucceeded, error) {
|
|
var resp UpdateStoryPostSucceeded
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateStoryPostFailed(data json.RawMessage) (*UpdateStoryPostFailed, error) {
|
|
var resp UpdateStoryPostFailed
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatActiveStories(data json.RawMessage) (*UpdateChatActiveStories, error) {
|
|
var resp UpdateChatActiveStories
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateStoryListChatCount(data json.RawMessage) (*UpdateStoryListChatCount, error) {
|
|
var resp UpdateStoryListChatCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateStoryStealthMode(data json.RawMessage) (*UpdateStoryStealthMode, error) {
|
|
var resp UpdateStoryStealthMode
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateTrustedMiniAppBots(data json.RawMessage) (*UpdateTrustedMiniAppBots, error) {
|
|
var resp UpdateTrustedMiniAppBots
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateOption(data json.RawMessage) (*UpdateOption, error) {
|
|
var resp UpdateOption
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateStickerSet(data json.RawMessage) (*UpdateStickerSet, error) {
|
|
var resp UpdateStickerSet
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateInstalledStickerSets(data json.RawMessage) (*UpdateInstalledStickerSets, error) {
|
|
var resp UpdateInstalledStickerSets
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateTrendingStickerSets(data json.RawMessage) (*UpdateTrendingStickerSets, error) {
|
|
var resp UpdateTrendingStickerSets
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateRecentStickers(data json.RawMessage) (*UpdateRecentStickers, error) {
|
|
var resp UpdateRecentStickers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateFavoriteStickers(data json.RawMessage) (*UpdateFavoriteStickers, error) {
|
|
var resp UpdateFavoriteStickers
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateSavedAnimations(data json.RawMessage) (*UpdateSavedAnimations, error) {
|
|
var resp UpdateSavedAnimations
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateSavedNotificationSounds(data json.RawMessage) (*UpdateSavedNotificationSounds, error) {
|
|
var resp UpdateSavedNotificationSounds
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateDefaultBackground(data json.RawMessage) (*UpdateDefaultBackground, error) {
|
|
var resp UpdateDefaultBackground
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateEmojiChatThemes(data json.RawMessage) (*UpdateEmojiChatThemes, error) {
|
|
var resp UpdateEmojiChatThemes
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateAccentColors(data json.RawMessage) (*UpdateAccentColors, error) {
|
|
var resp UpdateAccentColors
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateProfileAccentColors(data json.RawMessage) (*UpdateProfileAccentColors, error) {
|
|
var resp UpdateProfileAccentColors
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateLanguagePackStrings(data json.RawMessage) (*UpdateLanguagePackStrings, error) {
|
|
var resp UpdateLanguagePackStrings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateConnectionState(data json.RawMessage) (*UpdateConnectionState, error) {
|
|
var resp UpdateConnectionState
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateFreezeState(data json.RawMessage) (*UpdateFreezeState, error) {
|
|
var resp UpdateFreezeState
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateAgeVerificationParameters(data json.RawMessage) (*UpdateAgeVerificationParameters, error) {
|
|
var resp UpdateAgeVerificationParameters
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateTermsOfService(data json.RawMessage) (*UpdateTermsOfService, error) {
|
|
var resp UpdateTermsOfService
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateUnconfirmedSession(data json.RawMessage) (*UpdateUnconfirmedSession, error) {
|
|
var resp UpdateUnconfirmedSession
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateAttachmentMenuBots(data json.RawMessage) (*UpdateAttachmentMenuBots, error) {
|
|
var resp UpdateAttachmentMenuBots
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateWebAppMessageSent(data json.RawMessage) (*UpdateWebAppMessageSent, error) {
|
|
var resp UpdateWebAppMessageSent
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateActiveEmojiReactions(data json.RawMessage) (*UpdateActiveEmojiReactions, error) {
|
|
var resp UpdateActiveEmojiReactions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateAvailableMessageEffects(data json.RawMessage) (*UpdateAvailableMessageEffects, error) {
|
|
var resp UpdateAvailableMessageEffects
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateDefaultReactionType(data json.RawMessage) (*UpdateDefaultReactionType, error) {
|
|
var resp UpdateDefaultReactionType
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateDefaultPaidReactionType(data json.RawMessage) (*UpdateDefaultPaidReactionType, error) {
|
|
var resp UpdateDefaultPaidReactionType
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateSavedMessagesTags(data json.RawMessage) (*UpdateSavedMessagesTags, error) {
|
|
var resp UpdateSavedMessagesTags
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateActiveLiveLocationMessages(data json.RawMessage) (*UpdateActiveLiveLocationMessages, error) {
|
|
var resp UpdateActiveLiveLocationMessages
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateOwnedStarCount(data json.RawMessage) (*UpdateOwnedStarCount, error) {
|
|
var resp UpdateOwnedStarCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateOwnedTonCount(data json.RawMessage) (*UpdateOwnedTonCount, error) {
|
|
var resp UpdateOwnedTonCount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatRevenueAmount(data json.RawMessage) (*UpdateChatRevenueAmount, error) {
|
|
var resp UpdateChatRevenueAmount
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateStarRevenueStatus(data json.RawMessage) (*UpdateStarRevenueStatus, error) {
|
|
var resp UpdateStarRevenueStatus
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateTonRevenueStatus(data json.RawMessage) (*UpdateTonRevenueStatus, error) {
|
|
var resp UpdateTonRevenueStatus
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateSpeechRecognitionTrial(data json.RawMessage) (*UpdateSpeechRecognitionTrial, error) {
|
|
var resp UpdateSpeechRecognitionTrial
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateGroupCallMessageLevels(data json.RawMessage) (*UpdateGroupCallMessageLevels, error) {
|
|
var resp UpdateGroupCallMessageLevels
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateDiceEmojis(data json.RawMessage) (*UpdateDiceEmojis, error) {
|
|
var resp UpdateDiceEmojis
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateStakeDiceState(data json.RawMessage) (*UpdateStakeDiceState, error) {
|
|
var resp UpdateStakeDiceState
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateAnimatedEmojiMessageClicked(data json.RawMessage) (*UpdateAnimatedEmojiMessageClicked, error) {
|
|
var resp UpdateAnimatedEmojiMessageClicked
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateAnimationSearchParameters(data json.RawMessage) (*UpdateAnimationSearchParameters, error) {
|
|
var resp UpdateAnimationSearchParameters
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateSuggestedActions(data json.RawMessage) (*UpdateSuggestedActions, error) {
|
|
var resp UpdateSuggestedActions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateSpeedLimitNotification(data json.RawMessage) (*UpdateSpeedLimitNotification, error) {
|
|
var resp UpdateSpeedLimitNotification
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateContactCloseBirthdays(data json.RawMessage) (*UpdateContactCloseBirthdays, error) {
|
|
var resp UpdateContactCloseBirthdays
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateAutosaveSettings(data json.RawMessage) (*UpdateAutosaveSettings, error) {
|
|
var resp UpdateAutosaveSettings
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateBusinessConnection(data json.RawMessage) (*UpdateBusinessConnection, error) {
|
|
var resp UpdateBusinessConnection
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewBusinessMessage(data json.RawMessage) (*UpdateNewBusinessMessage, error) {
|
|
var resp UpdateNewBusinessMessage
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateBusinessMessageEdited(data json.RawMessage) (*UpdateBusinessMessageEdited, error) {
|
|
var resp UpdateBusinessMessageEdited
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateBusinessMessagesDeleted(data json.RawMessage) (*UpdateBusinessMessagesDeleted, error) {
|
|
var resp UpdateBusinessMessagesDeleted
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewInlineQuery(data json.RawMessage) (*UpdateNewInlineQuery, error) {
|
|
var resp UpdateNewInlineQuery
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewChosenInlineResult(data json.RawMessage) (*UpdateNewChosenInlineResult, error) {
|
|
var resp UpdateNewChosenInlineResult
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewCallbackQuery(data json.RawMessage) (*UpdateNewCallbackQuery, error) {
|
|
var resp UpdateNewCallbackQuery
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewInlineCallbackQuery(data json.RawMessage) (*UpdateNewInlineCallbackQuery, error) {
|
|
var resp UpdateNewInlineCallbackQuery
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewBusinessCallbackQuery(data json.RawMessage) (*UpdateNewBusinessCallbackQuery, error) {
|
|
var resp UpdateNewBusinessCallbackQuery
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewShippingQuery(data json.RawMessage) (*UpdateNewShippingQuery, error) {
|
|
var resp UpdateNewShippingQuery
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewPreCheckoutQuery(data json.RawMessage) (*UpdateNewPreCheckoutQuery, error) {
|
|
var resp UpdateNewPreCheckoutQuery
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewCustomEvent(data json.RawMessage) (*UpdateNewCustomEvent, error) {
|
|
var resp UpdateNewCustomEvent
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewCustomQuery(data json.RawMessage) (*UpdateNewCustomQuery, error) {
|
|
var resp UpdateNewCustomQuery
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdatePoll(data json.RawMessage) (*UpdatePoll, error) {
|
|
var resp UpdatePoll
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdatePollAnswer(data json.RawMessage) (*UpdatePollAnswer, error) {
|
|
var resp UpdatePollAnswer
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatMember(data json.RawMessage) (*UpdateChatMember, error) {
|
|
var resp UpdateChatMember
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateNewChatJoinRequest(data json.RawMessage) (*UpdateNewChatJoinRequest, error) {
|
|
var resp UpdateNewChatJoinRequest
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateChatBoost(data json.RawMessage) (*UpdateChatBoost, error) {
|
|
var resp UpdateChatBoost
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageReaction(data json.RawMessage) (*UpdateMessageReaction, error) {
|
|
var resp UpdateMessageReaction
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdateMessageReactions(data json.RawMessage) (*UpdateMessageReactions, error) {
|
|
var resp UpdateMessageReactions
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdatePaidMediaPurchased(data json.RawMessage) (*UpdatePaidMediaPurchased, error) {
|
|
var resp UpdatePaidMediaPurchased
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalUpdates(data json.RawMessage) (*Updates, error) {
|
|
var resp Updates
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLogStreamDefault(data json.RawMessage) (*LogStreamDefault, error) {
|
|
var resp LogStreamDefault
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLogStreamFile(data json.RawMessage) (*LogStreamFile, error) {
|
|
var resp LogStreamFile
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLogStreamEmpty(data json.RawMessage) (*LogStreamEmpty, error) {
|
|
var resp LogStreamEmpty
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLogVerbosityLevel(data json.RawMessage) (*LogVerbosityLevel, error) {
|
|
var resp LogVerbosityLevel
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalLogTags(data json.RawMessage) (*LogTags, error) {
|
|
var resp LogTags
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
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
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTestString(data json.RawMessage) (*TestString, error) {
|
|
var resp TestString
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTestBytes(data json.RawMessage) (*TestBytes, error) {
|
|
var resp TestBytes
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTestVectorInt(data json.RawMessage) (*TestVectorInt, error) {
|
|
var resp TestVectorInt
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTestVectorIntObject(data json.RawMessage) (*TestVectorIntObject, error) {
|
|
var resp TestVectorIntObject
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTestVectorString(data json.RawMessage) (*TestVectorString, error) {
|
|
var resp TestVectorString
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalTestVectorStringObject(data json.RawMessage) (*TestVectorStringObject, error) {
|
|
var resp TestVectorStringObject
|
|
|
|
err := json.Unmarshal(data, &resp)
|
|
|
|
return &resp, err
|
|
}
|
|
|
|
func UnmarshalType(data json.RawMessage) (Type, error) {
|
|
var meta meta
|
|
|
|
err := json.Unmarshal(data, &meta)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
switch meta.Type {
|
|
case TypeError:
|
|
return UnmarshalError(data)
|
|
|
|
case TypeOk:
|
|
return UnmarshalOk(data)
|
|
|
|
case TypeAuthenticationCodeTypeTelegramMessage:
|
|
return UnmarshalAuthenticationCodeTypeTelegramMessage(data)
|
|
|
|
case TypeAuthenticationCodeTypeSms:
|
|
return UnmarshalAuthenticationCodeTypeSms(data)
|
|
|
|
case TypeAuthenticationCodeTypeSmsWord:
|
|
return UnmarshalAuthenticationCodeTypeSmsWord(data)
|
|
|
|
case TypeAuthenticationCodeTypeSmsPhrase:
|
|
return UnmarshalAuthenticationCodeTypeSmsPhrase(data)
|
|
|
|
case TypeAuthenticationCodeTypeCall:
|
|
return UnmarshalAuthenticationCodeTypeCall(data)
|
|
|
|
case TypeAuthenticationCodeTypeFlashCall:
|
|
return UnmarshalAuthenticationCodeTypeFlashCall(data)
|
|
|
|
case TypeAuthenticationCodeTypeMissedCall:
|
|
return UnmarshalAuthenticationCodeTypeMissedCall(data)
|
|
|
|
case TypeAuthenticationCodeTypeFragment:
|
|
return UnmarshalAuthenticationCodeTypeFragment(data)
|
|
|
|
case TypeAuthenticationCodeTypeFirebaseAndroid:
|
|
return UnmarshalAuthenticationCodeTypeFirebaseAndroid(data)
|
|
|
|
case TypeAuthenticationCodeTypeFirebaseIos:
|
|
return UnmarshalAuthenticationCodeTypeFirebaseIos(data)
|
|
|
|
case TypeAuthenticationCodeInfo:
|
|
return UnmarshalAuthenticationCodeInfo(data)
|
|
|
|
case TypeEmailAddressAuthenticationCodeInfo:
|
|
return UnmarshalEmailAddressAuthenticationCodeInfo(data)
|
|
|
|
case TypeEmailAddressAuthenticationCode:
|
|
return UnmarshalEmailAddressAuthenticationCode(data)
|
|
|
|
case TypeEmailAddressAuthenticationAppleId:
|
|
return UnmarshalEmailAddressAuthenticationAppleId(data)
|
|
|
|
case TypeEmailAddressAuthenticationGoogleId:
|
|
return UnmarshalEmailAddressAuthenticationGoogleId(data)
|
|
|
|
case TypeEmailAddressResetStateAvailable:
|
|
return UnmarshalEmailAddressResetStateAvailable(data)
|
|
|
|
case TypeEmailAddressResetStatePending:
|
|
return UnmarshalEmailAddressResetStatePending(data)
|
|
|
|
case TypeTextEntity:
|
|
return UnmarshalTextEntity(data)
|
|
|
|
case TypeTextEntities:
|
|
return UnmarshalTextEntities(data)
|
|
|
|
case TypeFormattedText:
|
|
return UnmarshalFormattedText(data)
|
|
|
|
case TypeTermsOfService:
|
|
return UnmarshalTermsOfService(data)
|
|
|
|
case TypePasskey:
|
|
return UnmarshalPasskey(data)
|
|
|
|
case TypePasskeys:
|
|
return UnmarshalPasskeys(data)
|
|
|
|
case TypeAuthorizationStateWaitTdlibParameters:
|
|
return UnmarshalAuthorizationStateWaitTdlibParameters(data)
|
|
|
|
case TypeAuthorizationStateWaitPhoneNumber:
|
|
return UnmarshalAuthorizationStateWaitPhoneNumber(data)
|
|
|
|
case TypeAuthorizationStateWaitPremiumPurchase:
|
|
return UnmarshalAuthorizationStateWaitPremiumPurchase(data)
|
|
|
|
case TypeAuthorizationStateWaitEmailAddress:
|
|
return UnmarshalAuthorizationStateWaitEmailAddress(data)
|
|
|
|
case TypeAuthorizationStateWaitEmailCode:
|
|
return UnmarshalAuthorizationStateWaitEmailCode(data)
|
|
|
|
case TypeAuthorizationStateWaitCode:
|
|
return UnmarshalAuthorizationStateWaitCode(data)
|
|
|
|
case TypeAuthorizationStateWaitOtherDeviceConfirmation:
|
|
return UnmarshalAuthorizationStateWaitOtherDeviceConfirmation(data)
|
|
|
|
case TypeAuthorizationStateWaitRegistration:
|
|
return UnmarshalAuthorizationStateWaitRegistration(data)
|
|
|
|
case TypeAuthorizationStateWaitPassword:
|
|
return UnmarshalAuthorizationStateWaitPassword(data)
|
|
|
|
case TypeAuthorizationStateReady:
|
|
return UnmarshalAuthorizationStateReady(data)
|
|
|
|
case TypeAuthorizationStateLoggingOut:
|
|
return UnmarshalAuthorizationStateLoggingOut(data)
|
|
|
|
case TypeAuthorizationStateClosing:
|
|
return UnmarshalAuthorizationStateClosing(data)
|
|
|
|
case TypeAuthorizationStateClosed:
|
|
return UnmarshalAuthorizationStateClosed(data)
|
|
|
|
case TypeFirebaseDeviceVerificationParametersSafetyNet:
|
|
return UnmarshalFirebaseDeviceVerificationParametersSafetyNet(data)
|
|
|
|
case TypeFirebaseDeviceVerificationParametersPlayIntegrity:
|
|
return UnmarshalFirebaseDeviceVerificationParametersPlayIntegrity(data)
|
|
|
|
case TypePasswordState:
|
|
return UnmarshalPasswordState(data)
|
|
|
|
case TypeRecoveryEmailAddress:
|
|
return UnmarshalRecoveryEmailAddress(data)
|
|
|
|
case TypeTemporaryPasswordState:
|
|
return UnmarshalTemporaryPasswordState(data)
|
|
|
|
case TypeLocalFile:
|
|
return UnmarshalLocalFile(data)
|
|
|
|
case TypeRemoteFile:
|
|
return UnmarshalRemoteFile(data)
|
|
|
|
case TypeFile:
|
|
return UnmarshalFile(data)
|
|
|
|
case TypeInputFileId:
|
|
return UnmarshalInputFileId(data)
|
|
|
|
case TypeInputFileRemote:
|
|
return UnmarshalInputFileRemote(data)
|
|
|
|
case TypeInputFileLocal:
|
|
return UnmarshalInputFileLocal(data)
|
|
|
|
case TypeInputFileGenerated:
|
|
return UnmarshalInputFileGenerated(data)
|
|
|
|
case TypePhotoSize:
|
|
return UnmarshalPhotoSize(data)
|
|
|
|
case TypeMinithumbnail:
|
|
return UnmarshalMinithumbnail(data)
|
|
|
|
case TypeThumbnailFormatJpeg:
|
|
return UnmarshalThumbnailFormatJpeg(data)
|
|
|
|
case TypeThumbnailFormatGif:
|
|
return UnmarshalThumbnailFormatGif(data)
|
|
|
|
case TypeThumbnailFormatMpeg4:
|
|
return UnmarshalThumbnailFormatMpeg4(data)
|
|
|
|
case TypeThumbnailFormatPng:
|
|
return UnmarshalThumbnailFormatPng(data)
|
|
|
|
case TypeThumbnailFormatTgs:
|
|
return UnmarshalThumbnailFormatTgs(data)
|
|
|
|
case TypeThumbnailFormatWebm:
|
|
return UnmarshalThumbnailFormatWebm(data)
|
|
|
|
case TypeThumbnailFormatWebp:
|
|
return UnmarshalThumbnailFormatWebp(data)
|
|
|
|
case TypeThumbnail:
|
|
return UnmarshalThumbnail(data)
|
|
|
|
case TypeMaskPointForehead:
|
|
return UnmarshalMaskPointForehead(data)
|
|
|
|
case TypeMaskPointEyes:
|
|
return UnmarshalMaskPointEyes(data)
|
|
|
|
case TypeMaskPointMouth:
|
|
return UnmarshalMaskPointMouth(data)
|
|
|
|
case TypeMaskPointChin:
|
|
return UnmarshalMaskPointChin(data)
|
|
|
|
case TypeMaskPosition:
|
|
return UnmarshalMaskPosition(data)
|
|
|
|
case TypeStickerFormatWebp:
|
|
return UnmarshalStickerFormatWebp(data)
|
|
|
|
case TypeStickerFormatTgs:
|
|
return UnmarshalStickerFormatTgs(data)
|
|
|
|
case TypeStickerFormatWebm:
|
|
return UnmarshalStickerFormatWebm(data)
|
|
|
|
case TypeStickerTypeRegular:
|
|
return UnmarshalStickerTypeRegular(data)
|
|
|
|
case TypeStickerTypeMask:
|
|
return UnmarshalStickerTypeMask(data)
|
|
|
|
case TypeStickerTypeCustomEmoji:
|
|
return UnmarshalStickerTypeCustomEmoji(data)
|
|
|
|
case TypeStickerFullTypeRegular:
|
|
return UnmarshalStickerFullTypeRegular(data)
|
|
|
|
case TypeStickerFullTypeMask:
|
|
return UnmarshalStickerFullTypeMask(data)
|
|
|
|
case TypeStickerFullTypeCustomEmoji:
|
|
return UnmarshalStickerFullTypeCustomEmoji(data)
|
|
|
|
case TypeClosedVectorPath:
|
|
return UnmarshalClosedVectorPath(data)
|
|
|
|
case TypeOutline:
|
|
return UnmarshalOutline(data)
|
|
|
|
case TypePollOption:
|
|
return UnmarshalPollOption(data)
|
|
|
|
case TypePollTypeRegular:
|
|
return UnmarshalPollTypeRegular(data)
|
|
|
|
case TypePollTypeQuiz:
|
|
return UnmarshalPollTypeQuiz(data)
|
|
|
|
case TypeChecklistTask:
|
|
return UnmarshalChecklistTask(data)
|
|
|
|
case TypeInputChecklistTask:
|
|
return UnmarshalInputChecklistTask(data)
|
|
|
|
case TypeChecklist:
|
|
return UnmarshalChecklist(data)
|
|
|
|
case TypeInputChecklist:
|
|
return UnmarshalInputChecklist(data)
|
|
|
|
case TypeAnimation:
|
|
return UnmarshalAnimation(data)
|
|
|
|
case TypeAudio:
|
|
return UnmarshalAudio(data)
|
|
|
|
case TypeAudios:
|
|
return UnmarshalAudios(data)
|
|
|
|
case TypeDocument:
|
|
return UnmarshalDocument(data)
|
|
|
|
case TypePhoto:
|
|
return UnmarshalPhoto(data)
|
|
|
|
case TypeSticker:
|
|
return UnmarshalSticker(data)
|
|
|
|
case TypeVideo:
|
|
return UnmarshalVideo(data)
|
|
|
|
case TypeVideoNote:
|
|
return UnmarshalVideoNote(data)
|
|
|
|
case TypeVoiceNote:
|
|
return UnmarshalVoiceNote(data)
|
|
|
|
case TypeAnimatedEmoji:
|
|
return UnmarshalAnimatedEmoji(data)
|
|
|
|
case TypeContact:
|
|
return UnmarshalContact(data)
|
|
|
|
case TypeLocation:
|
|
return UnmarshalLocation(data)
|
|
|
|
case TypeVenue:
|
|
return UnmarshalVenue(data)
|
|
|
|
case TypeGame:
|
|
return UnmarshalGame(data)
|
|
|
|
case TypeStakeDiceState:
|
|
return UnmarshalStakeDiceState(data)
|
|
|
|
case TypeWebApp:
|
|
return UnmarshalWebApp(data)
|
|
|
|
case TypePoll:
|
|
return UnmarshalPoll(data)
|
|
|
|
case TypeAlternativeVideo:
|
|
return UnmarshalAlternativeVideo(data)
|
|
|
|
case TypeVideoStoryboard:
|
|
return UnmarshalVideoStoryboard(data)
|
|
|
|
case TypeBackground:
|
|
return UnmarshalBackground(data)
|
|
|
|
case TypeBackgrounds:
|
|
return UnmarshalBackgrounds(data)
|
|
|
|
case TypeChatBackground:
|
|
return UnmarshalChatBackground(data)
|
|
|
|
case TypeProfilePhoto:
|
|
return UnmarshalProfilePhoto(data)
|
|
|
|
case TypeChatPhotoInfo:
|
|
return UnmarshalChatPhotoInfo(data)
|
|
|
|
case TypeProfileTabPosts:
|
|
return UnmarshalProfileTabPosts(data)
|
|
|
|
case TypeProfileTabGifts:
|
|
return UnmarshalProfileTabGifts(data)
|
|
|
|
case TypeProfileTabMedia:
|
|
return UnmarshalProfileTabMedia(data)
|
|
|
|
case TypeProfileTabFiles:
|
|
return UnmarshalProfileTabFiles(data)
|
|
|
|
case TypeProfileTabLinks:
|
|
return UnmarshalProfileTabLinks(data)
|
|
|
|
case TypeProfileTabMusic:
|
|
return UnmarshalProfileTabMusic(data)
|
|
|
|
case TypeProfileTabVoice:
|
|
return UnmarshalProfileTabVoice(data)
|
|
|
|
case TypeProfileTabGifs:
|
|
return UnmarshalProfileTabGifs(data)
|
|
|
|
case TypeUserTypeRegular:
|
|
return UnmarshalUserTypeRegular(data)
|
|
|
|
case TypeUserTypeDeleted:
|
|
return UnmarshalUserTypeDeleted(data)
|
|
|
|
case TypeUserTypeBot:
|
|
return UnmarshalUserTypeBot(data)
|
|
|
|
case TypeUserTypeUnknown:
|
|
return UnmarshalUserTypeUnknown(data)
|
|
|
|
case TypeBotCommand:
|
|
return UnmarshalBotCommand(data)
|
|
|
|
case TypeBotCommands:
|
|
return UnmarshalBotCommands(data)
|
|
|
|
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)
|
|
|
|
case TypeBirthdate:
|
|
return UnmarshalBirthdate(data)
|
|
|
|
case TypeCloseBirthdayUser:
|
|
return UnmarshalCloseBirthdayUser(data)
|
|
|
|
case TypeBusinessAwayMessageScheduleAlways:
|
|
return UnmarshalBusinessAwayMessageScheduleAlways(data)
|
|
|
|
case TypeBusinessAwayMessageScheduleOutsideOfOpeningHours:
|
|
return UnmarshalBusinessAwayMessageScheduleOutsideOfOpeningHours(data)
|
|
|
|
case TypeBusinessAwayMessageScheduleCustom:
|
|
return UnmarshalBusinessAwayMessageScheduleCustom(data)
|
|
|
|
case TypeBusinessLocation:
|
|
return UnmarshalBusinessLocation(data)
|
|
|
|
case TypeBusinessRecipients:
|
|
return UnmarshalBusinessRecipients(data)
|
|
|
|
case TypeBusinessAwayMessageSettings:
|
|
return UnmarshalBusinessAwayMessageSettings(data)
|
|
|
|
case TypeBusinessGreetingMessageSettings:
|
|
return UnmarshalBusinessGreetingMessageSettings(data)
|
|
|
|
case TypeBusinessBotRights:
|
|
return UnmarshalBusinessBotRights(data)
|
|
|
|
case TypeBusinessConnectedBot:
|
|
return UnmarshalBusinessConnectedBot(data)
|
|
|
|
case TypeBusinessStartPage:
|
|
return UnmarshalBusinessStartPage(data)
|
|
|
|
case TypeInputBusinessStartPage:
|
|
return UnmarshalInputBusinessStartPage(data)
|
|
|
|
case TypeBusinessOpeningHoursInterval:
|
|
return UnmarshalBusinessOpeningHoursInterval(data)
|
|
|
|
case TypeBusinessOpeningHours:
|
|
return UnmarshalBusinessOpeningHours(data)
|
|
|
|
case TypeBusinessInfo:
|
|
return UnmarshalBusinessInfo(data)
|
|
|
|
case TypeBusinessChatLink:
|
|
return UnmarshalBusinessChatLink(data)
|
|
|
|
case TypeBusinessChatLinks:
|
|
return UnmarshalBusinessChatLinks(data)
|
|
|
|
case TypeInputBusinessChatLink:
|
|
return UnmarshalInputBusinessChatLink(data)
|
|
|
|
case TypeBusinessChatLinkInfo:
|
|
return UnmarshalBusinessChatLinkInfo(data)
|
|
|
|
case TypeChatPhotoStickerTypeRegularOrMask:
|
|
return UnmarshalChatPhotoStickerTypeRegularOrMask(data)
|
|
|
|
case TypeChatPhotoStickerTypeCustomEmoji:
|
|
return UnmarshalChatPhotoStickerTypeCustomEmoji(data)
|
|
|
|
case TypeChatPhotoSticker:
|
|
return UnmarshalChatPhotoSticker(data)
|
|
|
|
case TypeAnimatedChatPhoto:
|
|
return UnmarshalAnimatedChatPhoto(data)
|
|
|
|
case TypeChatPhoto:
|
|
return UnmarshalChatPhoto(data)
|
|
|
|
case TypeChatPhotos:
|
|
return UnmarshalChatPhotos(data)
|
|
|
|
case TypeInputChatPhotoPrevious:
|
|
return UnmarshalInputChatPhotoPrevious(data)
|
|
|
|
case TypeInputChatPhotoStatic:
|
|
return UnmarshalInputChatPhotoStatic(data)
|
|
|
|
case TypeInputChatPhotoAnimation:
|
|
return UnmarshalInputChatPhotoAnimation(data)
|
|
|
|
case TypeInputChatPhotoSticker:
|
|
return UnmarshalInputChatPhotoSticker(data)
|
|
|
|
case TypeChatPermissions:
|
|
return UnmarshalChatPermissions(data)
|
|
|
|
case TypeChatAdministratorRights:
|
|
return UnmarshalChatAdministratorRights(data)
|
|
|
|
case TypeGiftResalePriceStar:
|
|
return UnmarshalGiftResalePriceStar(data)
|
|
|
|
case TypeGiftResalePriceTon:
|
|
return UnmarshalGiftResalePriceTon(data)
|
|
|
|
case TypeGiftPurchaseOfferStatePending:
|
|
return UnmarshalGiftPurchaseOfferStatePending(data)
|
|
|
|
case TypeGiftPurchaseOfferStateAccepted:
|
|
return UnmarshalGiftPurchaseOfferStateAccepted(data)
|
|
|
|
case TypeGiftPurchaseOfferStateRejected:
|
|
return UnmarshalGiftPurchaseOfferStateRejected(data)
|
|
|
|
case TypeSuggestedPostPriceStar:
|
|
return UnmarshalSuggestedPostPriceStar(data)
|
|
|
|
case TypeSuggestedPostPriceTon:
|
|
return UnmarshalSuggestedPostPriceTon(data)
|
|
|
|
case TypeSuggestedPostStatePending:
|
|
return UnmarshalSuggestedPostStatePending(data)
|
|
|
|
case TypeSuggestedPostStateApproved:
|
|
return UnmarshalSuggestedPostStateApproved(data)
|
|
|
|
case TypeSuggestedPostStateDeclined:
|
|
return UnmarshalSuggestedPostStateDeclined(data)
|
|
|
|
case TypeSuggestedPostInfo:
|
|
return UnmarshalSuggestedPostInfo(data)
|
|
|
|
case TypeInputSuggestedPostInfo:
|
|
return UnmarshalInputSuggestedPostInfo(data)
|
|
|
|
case TypeSuggestedPostRefundReasonPostDeleted:
|
|
return UnmarshalSuggestedPostRefundReasonPostDeleted(data)
|
|
|
|
case TypeSuggestedPostRefundReasonPaymentRefunded:
|
|
return UnmarshalSuggestedPostRefundReasonPaymentRefunded(data)
|
|
|
|
case TypeStarAmount:
|
|
return UnmarshalStarAmount(data)
|
|
|
|
case TypeStarSubscriptionTypeChannel:
|
|
return UnmarshalStarSubscriptionTypeChannel(data)
|
|
|
|
case TypeStarSubscriptionTypeBot:
|
|
return UnmarshalStarSubscriptionTypeBot(data)
|
|
|
|
case TypeStarSubscriptionPricing:
|
|
return UnmarshalStarSubscriptionPricing(data)
|
|
|
|
case TypeStarSubscription:
|
|
return UnmarshalStarSubscription(data)
|
|
|
|
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)
|
|
|
|
case TypeAffiliateProgramSortOrderCreationDate:
|
|
return UnmarshalAffiliateProgramSortOrderCreationDate(data)
|
|
|
|
case TypeAffiliateProgramSortOrderRevenue:
|
|
return UnmarshalAffiliateProgramSortOrderRevenue(data)
|
|
|
|
case TypeAffiliateProgramParameters:
|
|
return UnmarshalAffiliateProgramParameters(data)
|
|
|
|
case TypeAffiliateProgramInfo:
|
|
return UnmarshalAffiliateProgramInfo(data)
|
|
|
|
case TypeAffiliateInfo:
|
|
return UnmarshalAffiliateInfo(data)
|
|
|
|
case TypeFoundAffiliateProgram:
|
|
return UnmarshalFoundAffiliateProgram(data)
|
|
|
|
case TypeFoundAffiliatePrograms:
|
|
return UnmarshalFoundAffiliatePrograms(data)
|
|
|
|
case TypeConnectedAffiliateProgram:
|
|
return UnmarshalConnectedAffiliateProgram(data)
|
|
|
|
case TypeConnectedAffiliatePrograms:
|
|
return UnmarshalConnectedAffiliatePrograms(data)
|
|
|
|
case TypeProductInfo:
|
|
return UnmarshalProductInfo(data)
|
|
|
|
case TypePremiumPaymentOption:
|
|
return UnmarshalPremiumPaymentOption(data)
|
|
|
|
case TypePremiumStatePaymentOption:
|
|
return UnmarshalPremiumStatePaymentOption(data)
|
|
|
|
case TypePremiumGiftPaymentOption:
|
|
return UnmarshalPremiumGiftPaymentOption(data)
|
|
|
|
case TypePremiumGiftPaymentOptions:
|
|
return UnmarshalPremiumGiftPaymentOptions(data)
|
|
|
|
case TypePremiumGiveawayPaymentOption:
|
|
return UnmarshalPremiumGiveawayPaymentOption(data)
|
|
|
|
case TypePremiumGiveawayPaymentOptions:
|
|
return UnmarshalPremiumGiveawayPaymentOptions(data)
|
|
|
|
case TypePremiumGiftCodeInfo:
|
|
return UnmarshalPremiumGiftCodeInfo(data)
|
|
|
|
case TypeStarPaymentOption:
|
|
return UnmarshalStarPaymentOption(data)
|
|
|
|
case TypeStarPaymentOptions:
|
|
return UnmarshalStarPaymentOptions(data)
|
|
|
|
case TypeStarGiveawayWinnerOption:
|
|
return UnmarshalStarGiveawayWinnerOption(data)
|
|
|
|
case TypeStarGiveawayPaymentOption:
|
|
return UnmarshalStarGiveawayPaymentOption(data)
|
|
|
|
case TypeStarGiveawayPaymentOptions:
|
|
return UnmarshalStarGiveawayPaymentOptions(data)
|
|
|
|
case TypeAcceptedGiftTypes:
|
|
return UnmarshalAcceptedGiftTypes(data)
|
|
|
|
case TypeGiftSettings:
|
|
return UnmarshalGiftSettings(data)
|
|
|
|
case TypeGiftAuction:
|
|
return UnmarshalGiftAuction(data)
|
|
|
|
case TypeGiftBackground:
|
|
return UnmarshalGiftBackground(data)
|
|
|
|
case TypeGiftPurchaseLimits:
|
|
return UnmarshalGiftPurchaseLimits(data)
|
|
|
|
case TypeGiftResaleParameters:
|
|
return UnmarshalGiftResaleParameters(data)
|
|
|
|
case TypeGiftCollection:
|
|
return UnmarshalGiftCollection(data)
|
|
|
|
case TypeGiftCollections:
|
|
return UnmarshalGiftCollections(data)
|
|
|
|
case TypeCanSendGiftResultOk:
|
|
return UnmarshalCanSendGiftResultOk(data)
|
|
|
|
case TypeCanSendGiftResultFail:
|
|
return UnmarshalCanSendGiftResultFail(data)
|
|
|
|
case TypeUpgradedGiftOriginUpgrade:
|
|
return UnmarshalUpgradedGiftOriginUpgrade(data)
|
|
|
|
case TypeUpgradedGiftOriginTransfer:
|
|
return UnmarshalUpgradedGiftOriginTransfer(data)
|
|
|
|
case TypeUpgradedGiftOriginResale:
|
|
return UnmarshalUpgradedGiftOriginResale(data)
|
|
|
|
case TypeUpgradedGiftOriginBlockchain:
|
|
return UnmarshalUpgradedGiftOriginBlockchain(data)
|
|
|
|
case TypeUpgradedGiftOriginPrepaidUpgrade:
|
|
return UnmarshalUpgradedGiftOriginPrepaidUpgrade(data)
|
|
|
|
case TypeUpgradedGiftOriginOffer:
|
|
return UnmarshalUpgradedGiftOriginOffer(data)
|
|
|
|
case TypeUpgradedGiftOriginCraft:
|
|
return UnmarshalUpgradedGiftOriginCraft(data)
|
|
|
|
case TypeUpgradedGiftAttributeRarityPerMille:
|
|
return UnmarshalUpgradedGiftAttributeRarityPerMille(data)
|
|
|
|
case TypeUpgradedGiftAttributeRarityUncommon:
|
|
return UnmarshalUpgradedGiftAttributeRarityUncommon(data)
|
|
|
|
case TypeUpgradedGiftAttributeRarityRare:
|
|
return UnmarshalUpgradedGiftAttributeRarityRare(data)
|
|
|
|
case TypeUpgradedGiftAttributeRarityEpic:
|
|
return UnmarshalUpgradedGiftAttributeRarityEpic(data)
|
|
|
|
case TypeUpgradedGiftAttributeRarityLegendary:
|
|
return UnmarshalUpgradedGiftAttributeRarityLegendary(data)
|
|
|
|
case TypeUpgradedGiftModel:
|
|
return UnmarshalUpgradedGiftModel(data)
|
|
|
|
case TypeUpgradedGiftSymbol:
|
|
return UnmarshalUpgradedGiftSymbol(data)
|
|
|
|
case TypeUpgradedGiftBackdropColors:
|
|
return UnmarshalUpgradedGiftBackdropColors(data)
|
|
|
|
case TypeUpgradedGiftBackdrop:
|
|
return UnmarshalUpgradedGiftBackdrop(data)
|
|
|
|
case TypeUpgradedGiftOriginalDetails:
|
|
return UnmarshalUpgradedGiftOriginalDetails(data)
|
|
|
|
case TypeUpgradedGiftColors:
|
|
return UnmarshalUpgradedGiftColors(data)
|
|
|
|
case TypeGift:
|
|
return UnmarshalGift(data)
|
|
|
|
case TypeUpgradedGift:
|
|
return UnmarshalUpgradedGift(data)
|
|
|
|
case TypeUpgradedGiftValueInfo:
|
|
return UnmarshalUpgradedGiftValueInfo(data)
|
|
|
|
case TypeUpgradeGiftResult:
|
|
return UnmarshalUpgradeGiftResult(data)
|
|
|
|
case TypeCraftGiftResultSuccess:
|
|
return UnmarshalCraftGiftResultSuccess(data)
|
|
|
|
case TypeCraftGiftResultTooEarly:
|
|
return UnmarshalCraftGiftResultTooEarly(data)
|
|
|
|
case TypeCraftGiftResultInvalidGift:
|
|
return UnmarshalCraftGiftResultInvalidGift(data)
|
|
|
|
case TypeCraftGiftResultFail:
|
|
return UnmarshalCraftGiftResultFail(data)
|
|
|
|
case TypeAvailableGift:
|
|
return UnmarshalAvailableGift(data)
|
|
|
|
case TypeAvailableGifts:
|
|
return UnmarshalAvailableGifts(data)
|
|
|
|
case TypeGiftUpgradePrice:
|
|
return UnmarshalGiftUpgradePrice(data)
|
|
|
|
case TypeUpgradedGiftAttributeIdModel:
|
|
return UnmarshalUpgradedGiftAttributeIdModel(data)
|
|
|
|
case TypeUpgradedGiftAttributeIdSymbol:
|
|
return UnmarshalUpgradedGiftAttributeIdSymbol(data)
|
|
|
|
case TypeUpgradedGiftAttributeIdBackdrop:
|
|
return UnmarshalUpgradedGiftAttributeIdBackdrop(data)
|
|
|
|
case TypeUpgradedGiftModelCount:
|
|
return UnmarshalUpgradedGiftModelCount(data)
|
|
|
|
case TypeUpgradedGiftSymbolCount:
|
|
return UnmarshalUpgradedGiftSymbolCount(data)
|
|
|
|
case TypeUpgradedGiftBackdropCount:
|
|
return UnmarshalUpgradedGiftBackdropCount(data)
|
|
|
|
case TypeGiftForResaleOrderPrice:
|
|
return UnmarshalGiftForResaleOrderPrice(data)
|
|
|
|
case TypeGiftForResaleOrderPriceChangeDate:
|
|
return UnmarshalGiftForResaleOrderPriceChangeDate(data)
|
|
|
|
case TypeGiftForResaleOrderNumber:
|
|
return UnmarshalGiftForResaleOrderNumber(data)
|
|
|
|
case TypeGiftForResale:
|
|
return UnmarshalGiftForResale(data)
|
|
|
|
case TypeGiftsForResale:
|
|
return UnmarshalGiftsForResale(data)
|
|
|
|
case TypeGiftResaleResultOk:
|
|
return UnmarshalGiftResaleResultOk(data)
|
|
|
|
case TypeGiftResaleResultPriceIncreased:
|
|
return UnmarshalGiftResaleResultPriceIncreased(data)
|
|
|
|
case TypeSentGiftRegular:
|
|
return UnmarshalSentGiftRegular(data)
|
|
|
|
case TypeSentGiftUpgraded:
|
|
return UnmarshalSentGiftUpgraded(data)
|
|
|
|
case TypeReceivedGift:
|
|
return UnmarshalReceivedGift(data)
|
|
|
|
case TypeReceivedGifts:
|
|
return UnmarshalReceivedGifts(data)
|
|
|
|
case TypeAttributeCraftPersistenceProbability:
|
|
return UnmarshalAttributeCraftPersistenceProbability(data)
|
|
|
|
case TypeGiftsForCrafting:
|
|
return UnmarshalGiftsForCrafting(data)
|
|
|
|
case TypeGiftUpgradePreview:
|
|
return UnmarshalGiftUpgradePreview(data)
|
|
|
|
case TypeGiftUpgradeVariants:
|
|
return UnmarshalGiftUpgradeVariants(data)
|
|
|
|
case TypeAuctionBid:
|
|
return UnmarshalAuctionBid(data)
|
|
|
|
case TypeUserAuctionBid:
|
|
return UnmarshalUserAuctionBid(data)
|
|
|
|
case TypeAuctionRound:
|
|
return UnmarshalAuctionRound(data)
|
|
|
|
case TypeAuctionStateActive:
|
|
return UnmarshalAuctionStateActive(data)
|
|
|
|
case TypeAuctionStateFinished:
|
|
return UnmarshalAuctionStateFinished(data)
|
|
|
|
case TypeGiftAuctionState:
|
|
return UnmarshalGiftAuctionState(data)
|
|
|
|
case TypeGiftAuctionAcquiredGift:
|
|
return UnmarshalGiftAuctionAcquiredGift(data)
|
|
|
|
case TypeGiftAuctionAcquiredGifts:
|
|
return UnmarshalGiftAuctionAcquiredGifts(data)
|
|
|
|
case TypeTransactionDirectionIncoming:
|
|
return UnmarshalTransactionDirectionIncoming(data)
|
|
|
|
case TypeTransactionDirectionOutgoing:
|
|
return UnmarshalTransactionDirectionOutgoing(data)
|
|
|
|
case TypeStarTransactionTypePremiumBotDeposit:
|
|
return UnmarshalStarTransactionTypePremiumBotDeposit(data)
|
|
|
|
case TypeStarTransactionTypeAppStoreDeposit:
|
|
return UnmarshalStarTransactionTypeAppStoreDeposit(data)
|
|
|
|
case TypeStarTransactionTypeGooglePlayDeposit:
|
|
return UnmarshalStarTransactionTypeGooglePlayDeposit(data)
|
|
|
|
case TypeStarTransactionTypeFragmentDeposit:
|
|
return UnmarshalStarTransactionTypeFragmentDeposit(data)
|
|
|
|
case TypeStarTransactionTypeUserDeposit:
|
|
return UnmarshalStarTransactionTypeUserDeposit(data)
|
|
|
|
case TypeStarTransactionTypeGiveawayDeposit:
|
|
return UnmarshalStarTransactionTypeGiveawayDeposit(data)
|
|
|
|
case TypeStarTransactionTypeFragmentWithdrawal:
|
|
return UnmarshalStarTransactionTypeFragmentWithdrawal(data)
|
|
|
|
case TypeStarTransactionTypeTelegramAdsWithdrawal:
|
|
return UnmarshalStarTransactionTypeTelegramAdsWithdrawal(data)
|
|
|
|
case TypeStarTransactionTypeTelegramApiUsage:
|
|
return UnmarshalStarTransactionTypeTelegramApiUsage(data)
|
|
|
|
case TypeStarTransactionTypeBotPaidMediaPurchase:
|
|
return UnmarshalStarTransactionTypeBotPaidMediaPurchase(data)
|
|
|
|
case TypeStarTransactionTypeBotPaidMediaSale:
|
|
return UnmarshalStarTransactionTypeBotPaidMediaSale(data)
|
|
|
|
case TypeStarTransactionTypeChannelPaidMediaPurchase:
|
|
return UnmarshalStarTransactionTypeChannelPaidMediaPurchase(data)
|
|
|
|
case TypeStarTransactionTypeChannelPaidMediaSale:
|
|
return UnmarshalStarTransactionTypeChannelPaidMediaSale(data)
|
|
|
|
case TypeStarTransactionTypeBotInvoicePurchase:
|
|
return UnmarshalStarTransactionTypeBotInvoicePurchase(data)
|
|
|
|
case TypeStarTransactionTypeBotInvoiceSale:
|
|
return UnmarshalStarTransactionTypeBotInvoiceSale(data)
|
|
|
|
case TypeStarTransactionTypeBotSubscriptionPurchase:
|
|
return UnmarshalStarTransactionTypeBotSubscriptionPurchase(data)
|
|
|
|
case TypeStarTransactionTypeBotSubscriptionSale:
|
|
return UnmarshalStarTransactionTypeBotSubscriptionSale(data)
|
|
|
|
case TypeStarTransactionTypeChannelSubscriptionPurchase:
|
|
return UnmarshalStarTransactionTypeChannelSubscriptionPurchase(data)
|
|
|
|
case TypeStarTransactionTypeChannelSubscriptionSale:
|
|
return UnmarshalStarTransactionTypeChannelSubscriptionSale(data)
|
|
|
|
case TypeStarTransactionTypeGiftAuctionBid:
|
|
return UnmarshalStarTransactionTypeGiftAuctionBid(data)
|
|
|
|
case TypeStarTransactionTypeGiftPurchase:
|
|
return UnmarshalStarTransactionTypeGiftPurchase(data)
|
|
|
|
case TypeStarTransactionTypeGiftPurchaseOffer:
|
|
return UnmarshalStarTransactionTypeGiftPurchaseOffer(data)
|
|
|
|
case TypeStarTransactionTypeGiftTransfer:
|
|
return UnmarshalStarTransactionTypeGiftTransfer(data)
|
|
|
|
case TypeStarTransactionTypeGiftOriginalDetailsDrop:
|
|
return UnmarshalStarTransactionTypeGiftOriginalDetailsDrop(data)
|
|
|
|
case TypeStarTransactionTypeGiftSale:
|
|
return UnmarshalStarTransactionTypeGiftSale(data)
|
|
|
|
case TypeStarTransactionTypeGiftUpgrade:
|
|
return UnmarshalStarTransactionTypeGiftUpgrade(data)
|
|
|
|
case TypeStarTransactionTypeGiftUpgradePurchase:
|
|
return UnmarshalStarTransactionTypeGiftUpgradePurchase(data)
|
|
|
|
case TypeStarTransactionTypeUpgradedGiftPurchase:
|
|
return UnmarshalStarTransactionTypeUpgradedGiftPurchase(data)
|
|
|
|
case TypeStarTransactionTypeUpgradedGiftSale:
|
|
return UnmarshalStarTransactionTypeUpgradedGiftSale(data)
|
|
|
|
case TypeStarTransactionTypeChannelPaidReactionSend:
|
|
return UnmarshalStarTransactionTypeChannelPaidReactionSend(data)
|
|
|
|
case TypeStarTransactionTypeChannelPaidReactionReceive:
|
|
return UnmarshalStarTransactionTypeChannelPaidReactionReceive(data)
|
|
|
|
case TypeStarTransactionTypeAffiliateProgramCommission:
|
|
return UnmarshalStarTransactionTypeAffiliateProgramCommission(data)
|
|
|
|
case TypeStarTransactionTypePaidMessageSend:
|
|
return UnmarshalStarTransactionTypePaidMessageSend(data)
|
|
|
|
case TypeStarTransactionTypePaidMessageReceive:
|
|
return UnmarshalStarTransactionTypePaidMessageReceive(data)
|
|
|
|
case TypeStarTransactionTypePaidGroupCallMessageSend:
|
|
return UnmarshalStarTransactionTypePaidGroupCallMessageSend(data)
|
|
|
|
case TypeStarTransactionTypePaidGroupCallMessageReceive:
|
|
return UnmarshalStarTransactionTypePaidGroupCallMessageReceive(data)
|
|
|
|
case TypeStarTransactionTypePaidGroupCallReactionSend:
|
|
return UnmarshalStarTransactionTypePaidGroupCallReactionSend(data)
|
|
|
|
case TypeStarTransactionTypePaidGroupCallReactionReceive:
|
|
return UnmarshalStarTransactionTypePaidGroupCallReactionReceive(data)
|
|
|
|
case TypeStarTransactionTypeSuggestedPostPaymentSend:
|
|
return UnmarshalStarTransactionTypeSuggestedPostPaymentSend(data)
|
|
|
|
case TypeStarTransactionTypeSuggestedPostPaymentReceive:
|
|
return UnmarshalStarTransactionTypeSuggestedPostPaymentReceive(data)
|
|
|
|
case TypeStarTransactionTypePremiumPurchase:
|
|
return UnmarshalStarTransactionTypePremiumPurchase(data)
|
|
|
|
case TypeStarTransactionTypeBusinessBotTransferSend:
|
|
return UnmarshalStarTransactionTypeBusinessBotTransferSend(data)
|
|
|
|
case TypeStarTransactionTypeBusinessBotTransferReceive:
|
|
return UnmarshalStarTransactionTypeBusinessBotTransferReceive(data)
|
|
|
|
case TypeStarTransactionTypePublicPostSearch:
|
|
return UnmarshalStarTransactionTypePublicPostSearch(data)
|
|
|
|
case TypeStarTransactionTypeUnsupported:
|
|
return UnmarshalStarTransactionTypeUnsupported(data)
|
|
|
|
case TypeStarTransaction:
|
|
return UnmarshalStarTransaction(data)
|
|
|
|
case TypeStarTransactions:
|
|
return UnmarshalStarTransactions(data)
|
|
|
|
case TypeTonTransactionTypeFragmentDeposit:
|
|
return UnmarshalTonTransactionTypeFragmentDeposit(data)
|
|
|
|
case TypeTonTransactionTypeFragmentWithdrawal:
|
|
return UnmarshalTonTransactionTypeFragmentWithdrawal(data)
|
|
|
|
case TypeTonTransactionTypeSuggestedPostPayment:
|
|
return UnmarshalTonTransactionTypeSuggestedPostPayment(data)
|
|
|
|
case TypeTonTransactionTypeGiftPurchaseOffer:
|
|
return UnmarshalTonTransactionTypeGiftPurchaseOffer(data)
|
|
|
|
case TypeTonTransactionTypeUpgradedGiftPurchase:
|
|
return UnmarshalTonTransactionTypeUpgradedGiftPurchase(data)
|
|
|
|
case TypeTonTransactionTypeUpgradedGiftSale:
|
|
return UnmarshalTonTransactionTypeUpgradedGiftSale(data)
|
|
|
|
case TypeTonTransactionTypeStakeDiceStake:
|
|
return UnmarshalTonTransactionTypeStakeDiceStake(data)
|
|
|
|
case TypeTonTransactionTypeStakeDicePayout:
|
|
return UnmarshalTonTransactionTypeStakeDicePayout(data)
|
|
|
|
case TypeTonTransactionTypeUnsupported:
|
|
return UnmarshalTonTransactionTypeUnsupported(data)
|
|
|
|
case TypeTonTransaction:
|
|
return UnmarshalTonTransaction(data)
|
|
|
|
case TypeTonTransactions:
|
|
return UnmarshalTonTransactions(data)
|
|
|
|
case TypeActiveStoryStateLive:
|
|
return UnmarshalActiveStoryStateLive(data)
|
|
|
|
case TypeActiveStoryStateUnread:
|
|
return UnmarshalActiveStoryStateUnread(data)
|
|
|
|
case TypeActiveStoryStateRead:
|
|
return UnmarshalActiveStoryStateRead(data)
|
|
|
|
case TypeGiveawayParticipantStatusEligible:
|
|
return UnmarshalGiveawayParticipantStatusEligible(data)
|
|
|
|
case TypeGiveawayParticipantStatusParticipating:
|
|
return UnmarshalGiveawayParticipantStatusParticipating(data)
|
|
|
|
case TypeGiveawayParticipantStatusAlreadyWasMember:
|
|
return UnmarshalGiveawayParticipantStatusAlreadyWasMember(data)
|
|
|
|
case TypeGiveawayParticipantStatusAdministrator:
|
|
return UnmarshalGiveawayParticipantStatusAdministrator(data)
|
|
|
|
case TypeGiveawayParticipantStatusDisallowedCountry:
|
|
return UnmarshalGiveawayParticipantStatusDisallowedCountry(data)
|
|
|
|
case TypeGiveawayInfoOngoing:
|
|
return UnmarshalGiveawayInfoOngoing(data)
|
|
|
|
case TypeGiveawayInfoCompleted:
|
|
return UnmarshalGiveawayInfoCompleted(data)
|
|
|
|
case TypeGiveawayPrizePremium:
|
|
return UnmarshalGiveawayPrizePremium(data)
|
|
|
|
case TypeGiveawayPrizeStars:
|
|
return UnmarshalGiveawayPrizeStars(data)
|
|
|
|
case TypeAccentColor:
|
|
return UnmarshalAccentColor(data)
|
|
|
|
case TypeProfileAccentColors:
|
|
return UnmarshalProfileAccentColors(data)
|
|
|
|
case TypeProfileAccentColor:
|
|
return UnmarshalProfileAccentColor(data)
|
|
|
|
case TypeUserRating:
|
|
return UnmarshalUserRating(data)
|
|
|
|
case TypeRestrictionInfo:
|
|
return UnmarshalRestrictionInfo(data)
|
|
|
|
case TypeEmojiStatusTypeCustomEmoji:
|
|
return UnmarshalEmojiStatusTypeCustomEmoji(data)
|
|
|
|
case TypeEmojiStatusTypeUpgradedGift:
|
|
return UnmarshalEmojiStatusTypeUpgradedGift(data)
|
|
|
|
case TypeEmojiStatus:
|
|
return UnmarshalEmojiStatus(data)
|
|
|
|
case TypeEmojiStatuses:
|
|
return UnmarshalEmojiStatuses(data)
|
|
|
|
case TypeEmojiStatusCustomEmojis:
|
|
return UnmarshalEmojiStatusCustomEmojis(data)
|
|
|
|
case TypeUsernames:
|
|
return UnmarshalUsernames(data)
|
|
|
|
case TypeUser:
|
|
return UnmarshalUser(data)
|
|
|
|
case TypeBotInfo:
|
|
return UnmarshalBotInfo(data)
|
|
|
|
case TypeUserFullInfo:
|
|
return UnmarshalUserFullInfo(data)
|
|
|
|
case TypeUsers:
|
|
return UnmarshalUsers(data)
|
|
|
|
case TypeFoundUsers:
|
|
return UnmarshalFoundUsers(data)
|
|
|
|
case TypeChatAdministrator:
|
|
return UnmarshalChatAdministrator(data)
|
|
|
|
case TypeChatAdministrators:
|
|
return UnmarshalChatAdministrators(data)
|
|
|
|
case TypeChatMemberStatusCreator:
|
|
return UnmarshalChatMemberStatusCreator(data)
|
|
|
|
case TypeChatMemberStatusAdministrator:
|
|
return UnmarshalChatMemberStatusAdministrator(data)
|
|
|
|
case TypeChatMemberStatusMember:
|
|
return UnmarshalChatMemberStatusMember(data)
|
|
|
|
case TypeChatMemberStatusRestricted:
|
|
return UnmarshalChatMemberStatusRestricted(data)
|
|
|
|
case TypeChatMemberStatusLeft:
|
|
return UnmarshalChatMemberStatusLeft(data)
|
|
|
|
case TypeChatMemberStatusBanned:
|
|
return UnmarshalChatMemberStatusBanned(data)
|
|
|
|
case TypeChatMember:
|
|
return UnmarshalChatMember(data)
|
|
|
|
case TypeChatMembers:
|
|
return UnmarshalChatMembers(data)
|
|
|
|
case TypeChatMembersFilterContacts:
|
|
return UnmarshalChatMembersFilterContacts(data)
|
|
|
|
case TypeChatMembersFilterAdministrators:
|
|
return UnmarshalChatMembersFilterAdministrators(data)
|
|
|
|
case TypeChatMembersFilterMembers:
|
|
return UnmarshalChatMembersFilterMembers(data)
|
|
|
|
case TypeChatMembersFilterMention:
|
|
return UnmarshalChatMembersFilterMention(data)
|
|
|
|
case TypeChatMembersFilterRestricted:
|
|
return UnmarshalChatMembersFilterRestricted(data)
|
|
|
|
case TypeChatMembersFilterBanned:
|
|
return UnmarshalChatMembersFilterBanned(data)
|
|
|
|
case TypeChatMembersFilterBots:
|
|
return UnmarshalChatMembersFilterBots(data)
|
|
|
|
case TypeSupergroupMembersFilterRecent:
|
|
return UnmarshalSupergroupMembersFilterRecent(data)
|
|
|
|
case TypeSupergroupMembersFilterContacts:
|
|
return UnmarshalSupergroupMembersFilterContacts(data)
|
|
|
|
case TypeSupergroupMembersFilterAdministrators:
|
|
return UnmarshalSupergroupMembersFilterAdministrators(data)
|
|
|
|
case TypeSupergroupMembersFilterSearch:
|
|
return UnmarshalSupergroupMembersFilterSearch(data)
|
|
|
|
case TypeSupergroupMembersFilterRestricted:
|
|
return UnmarshalSupergroupMembersFilterRestricted(data)
|
|
|
|
case TypeSupergroupMembersFilterBanned:
|
|
return UnmarshalSupergroupMembersFilterBanned(data)
|
|
|
|
case TypeSupergroupMembersFilterMention:
|
|
return UnmarshalSupergroupMembersFilterMention(data)
|
|
|
|
case TypeSupergroupMembersFilterBots:
|
|
return UnmarshalSupergroupMembersFilterBots(data)
|
|
|
|
case TypeChatInviteLink:
|
|
return UnmarshalChatInviteLink(data)
|
|
|
|
case TypeChatInviteLinks:
|
|
return UnmarshalChatInviteLinks(data)
|
|
|
|
case TypeChatInviteLinkCount:
|
|
return UnmarshalChatInviteLinkCount(data)
|
|
|
|
case TypeChatInviteLinkCounts:
|
|
return UnmarshalChatInviteLinkCounts(data)
|
|
|
|
case TypeChatInviteLinkMember:
|
|
return UnmarshalChatInviteLinkMember(data)
|
|
|
|
case TypeChatInviteLinkMembers:
|
|
return UnmarshalChatInviteLinkMembers(data)
|
|
|
|
case TypeInviteLinkChatTypeBasicGroup:
|
|
return UnmarshalInviteLinkChatTypeBasicGroup(data)
|
|
|
|
case TypeInviteLinkChatTypeSupergroup:
|
|
return UnmarshalInviteLinkChatTypeSupergroup(data)
|
|
|
|
case TypeInviteLinkChatTypeChannel:
|
|
return UnmarshalInviteLinkChatTypeChannel(data)
|
|
|
|
case TypeChatInviteLinkSubscriptionInfo:
|
|
return UnmarshalChatInviteLinkSubscriptionInfo(data)
|
|
|
|
case TypeChatInviteLinkInfo:
|
|
return UnmarshalChatInviteLinkInfo(data)
|
|
|
|
case TypeChatJoinRequest:
|
|
return UnmarshalChatJoinRequest(data)
|
|
|
|
case TypeChatJoinRequests:
|
|
return UnmarshalChatJoinRequests(data)
|
|
|
|
case TypeChatJoinRequestsInfo:
|
|
return UnmarshalChatJoinRequestsInfo(data)
|
|
|
|
case TypeBasicGroup:
|
|
return UnmarshalBasicGroup(data)
|
|
|
|
case TypeBasicGroupFullInfo:
|
|
return UnmarshalBasicGroupFullInfo(data)
|
|
|
|
case TypeSupergroup:
|
|
return UnmarshalSupergroup(data)
|
|
|
|
case TypeSupergroupFullInfo:
|
|
return UnmarshalSupergroupFullInfo(data)
|
|
|
|
case TypeSecretChatStatePending:
|
|
return UnmarshalSecretChatStatePending(data)
|
|
|
|
case TypeSecretChatStateReady:
|
|
return UnmarshalSecretChatStateReady(data)
|
|
|
|
case TypeSecretChatStateClosed:
|
|
return UnmarshalSecretChatStateClosed(data)
|
|
|
|
case TypeSecretChat:
|
|
return UnmarshalSecretChat(data)
|
|
|
|
case TypePublicPostSearchLimits:
|
|
return UnmarshalPublicPostSearchLimits(data)
|
|
|
|
case TypeMessageSenderUser:
|
|
return UnmarshalMessageSenderUser(data)
|
|
|
|
case TypeMessageSenderChat:
|
|
return UnmarshalMessageSenderChat(data)
|
|
|
|
case TypeMessageSenders:
|
|
return UnmarshalMessageSenders(data)
|
|
|
|
case TypeChatMessageSender:
|
|
return UnmarshalChatMessageSender(data)
|
|
|
|
case TypeChatMessageSenders:
|
|
return UnmarshalChatMessageSenders(data)
|
|
|
|
case TypeMessageReadDateRead:
|
|
return UnmarshalMessageReadDateRead(data)
|
|
|
|
case TypeMessageReadDateUnread:
|
|
return UnmarshalMessageReadDateUnread(data)
|
|
|
|
case TypeMessageReadDateTooOld:
|
|
return UnmarshalMessageReadDateTooOld(data)
|
|
|
|
case TypeMessageReadDateUserPrivacyRestricted:
|
|
return UnmarshalMessageReadDateUserPrivacyRestricted(data)
|
|
|
|
case TypeMessageReadDateMyPrivacyRestricted:
|
|
return UnmarshalMessageReadDateMyPrivacyRestricted(data)
|
|
|
|
case TypeMessageViewer:
|
|
return UnmarshalMessageViewer(data)
|
|
|
|
case TypeMessageViewers:
|
|
return UnmarshalMessageViewers(data)
|
|
|
|
case TypeMessageOriginUser:
|
|
return UnmarshalMessageOriginUser(data)
|
|
|
|
case TypeMessageOriginHiddenUser:
|
|
return UnmarshalMessageOriginHiddenUser(data)
|
|
|
|
case TypeMessageOriginChat:
|
|
return UnmarshalMessageOriginChat(data)
|
|
|
|
case TypeMessageOriginChannel:
|
|
return UnmarshalMessageOriginChannel(data)
|
|
|
|
case TypeForwardSource:
|
|
return UnmarshalForwardSource(data)
|
|
|
|
case TypeReactionTypeEmoji:
|
|
return UnmarshalReactionTypeEmoji(data)
|
|
|
|
case TypeReactionTypeCustomEmoji:
|
|
return UnmarshalReactionTypeCustomEmoji(data)
|
|
|
|
case TypeReactionTypePaid:
|
|
return UnmarshalReactionTypePaid(data)
|
|
|
|
case TypePaidReactionTypeRegular:
|
|
return UnmarshalPaidReactionTypeRegular(data)
|
|
|
|
case TypePaidReactionTypeAnonymous:
|
|
return UnmarshalPaidReactionTypeAnonymous(data)
|
|
|
|
case TypePaidReactionTypeChat:
|
|
return UnmarshalPaidReactionTypeChat(data)
|
|
|
|
case TypePaidReactor:
|
|
return UnmarshalPaidReactor(data)
|
|
|
|
case TypeLiveStoryDonors:
|
|
return UnmarshalLiveStoryDonors(data)
|
|
|
|
case TypeMessageForwardInfo:
|
|
return UnmarshalMessageForwardInfo(data)
|
|
|
|
case TypeMessageImportInfo:
|
|
return UnmarshalMessageImportInfo(data)
|
|
|
|
case TypeMessageReplyInfo:
|
|
return UnmarshalMessageReplyInfo(data)
|
|
|
|
case TypeMessageReaction:
|
|
return UnmarshalMessageReaction(data)
|
|
|
|
case TypeMessageReactions:
|
|
return UnmarshalMessageReactions(data)
|
|
|
|
case TypeMessageInteractionInfo:
|
|
return UnmarshalMessageInteractionInfo(data)
|
|
|
|
case TypeUnreadReaction:
|
|
return UnmarshalUnreadReaction(data)
|
|
|
|
case TypeMessageTopicThread:
|
|
return UnmarshalMessageTopicThread(data)
|
|
|
|
case TypeMessageTopicForum:
|
|
return UnmarshalMessageTopicForum(data)
|
|
|
|
case TypeMessageTopicDirectMessages:
|
|
return UnmarshalMessageTopicDirectMessages(data)
|
|
|
|
case TypeMessageTopicSavedMessages:
|
|
return UnmarshalMessageTopicSavedMessages(data)
|
|
|
|
case TypeMessageEffectTypeEmojiReaction:
|
|
return UnmarshalMessageEffectTypeEmojiReaction(data)
|
|
|
|
case TypeMessageEffectTypePremiumSticker:
|
|
return UnmarshalMessageEffectTypePremiumSticker(data)
|
|
|
|
case TypeMessageEffect:
|
|
return UnmarshalMessageEffect(data)
|
|
|
|
case TypeMessageSendingStatePending:
|
|
return UnmarshalMessageSendingStatePending(data)
|
|
|
|
case TypeMessageSendingStateFailed:
|
|
return UnmarshalMessageSendingStateFailed(data)
|
|
|
|
case TypeTextQuote:
|
|
return UnmarshalTextQuote(data)
|
|
|
|
case TypeInputTextQuote:
|
|
return UnmarshalInputTextQuote(data)
|
|
|
|
case TypeMessageReplyToMessage:
|
|
return UnmarshalMessageReplyToMessage(data)
|
|
|
|
case TypeMessageReplyToStory:
|
|
return UnmarshalMessageReplyToStory(data)
|
|
|
|
case TypeInputMessageReplyToMessage:
|
|
return UnmarshalInputMessageReplyToMessage(data)
|
|
|
|
case TypeInputMessageReplyToExternalMessage:
|
|
return UnmarshalInputMessageReplyToExternalMessage(data)
|
|
|
|
case TypeInputMessageReplyToStory:
|
|
return UnmarshalInputMessageReplyToStory(data)
|
|
|
|
case TypeFactCheck:
|
|
return UnmarshalFactCheck(data)
|
|
|
|
case TypeMessage:
|
|
return UnmarshalMessage(data)
|
|
|
|
case TypeMessages:
|
|
return UnmarshalMessages(data)
|
|
|
|
case TypeFoundMessages:
|
|
return UnmarshalFoundMessages(data)
|
|
|
|
case TypeFoundChatMessages:
|
|
return UnmarshalFoundChatMessages(data)
|
|
|
|
case TypeFoundPublicPosts:
|
|
return UnmarshalFoundPublicPosts(data)
|
|
|
|
case TypeMessagePosition:
|
|
return UnmarshalMessagePosition(data)
|
|
|
|
case TypeMessagePositions:
|
|
return UnmarshalMessagePositions(data)
|
|
|
|
case TypeMessageCalendarDay:
|
|
return UnmarshalMessageCalendarDay(data)
|
|
|
|
case TypeMessageCalendar:
|
|
return UnmarshalMessageCalendar(data)
|
|
|
|
case TypeBusinessMessage:
|
|
return UnmarshalBusinessMessage(data)
|
|
|
|
case TypeBusinessMessages:
|
|
return UnmarshalBusinessMessages(data)
|
|
|
|
case TypeMessageSourceChatHistory:
|
|
return UnmarshalMessageSourceChatHistory(data)
|
|
|
|
case TypeMessageSourceMessageThreadHistory:
|
|
return UnmarshalMessageSourceMessageThreadHistory(data)
|
|
|
|
case TypeMessageSourceForumTopicHistory:
|
|
return UnmarshalMessageSourceForumTopicHistory(data)
|
|
|
|
case TypeMessageSourceDirectMessagesChatTopicHistory:
|
|
return UnmarshalMessageSourceDirectMessagesChatTopicHistory(data)
|
|
|
|
case TypeMessageSourceHistoryPreview:
|
|
return UnmarshalMessageSourceHistoryPreview(data)
|
|
|
|
case TypeMessageSourceChatList:
|
|
return UnmarshalMessageSourceChatList(data)
|
|
|
|
case TypeMessageSourceSearch:
|
|
return UnmarshalMessageSourceSearch(data)
|
|
|
|
case TypeMessageSourceChatEventLog:
|
|
return UnmarshalMessageSourceChatEventLog(data)
|
|
|
|
case TypeMessageSourceNotification:
|
|
return UnmarshalMessageSourceNotification(data)
|
|
|
|
case TypeMessageSourceScreenshot:
|
|
return UnmarshalMessageSourceScreenshot(data)
|
|
|
|
case TypeMessageSourceOther:
|
|
return UnmarshalMessageSourceOther(data)
|
|
|
|
case TypeAdvertisementSponsor:
|
|
return UnmarshalAdvertisementSponsor(data)
|
|
|
|
case TypeSponsoredMessage:
|
|
return UnmarshalSponsoredMessage(data)
|
|
|
|
case TypeSponsoredMessages:
|
|
return UnmarshalSponsoredMessages(data)
|
|
|
|
case TypeSponsoredChat:
|
|
return UnmarshalSponsoredChat(data)
|
|
|
|
case TypeSponsoredChats:
|
|
return UnmarshalSponsoredChats(data)
|
|
|
|
case TypeVideoMessageAdvertisement:
|
|
return UnmarshalVideoMessageAdvertisement(data)
|
|
|
|
case TypeVideoMessageAdvertisements:
|
|
return UnmarshalVideoMessageAdvertisements(data)
|
|
|
|
case TypeReportOption:
|
|
return UnmarshalReportOption(data)
|
|
|
|
case TypeReportSponsoredResultOk:
|
|
return UnmarshalReportSponsoredResultOk(data)
|
|
|
|
case TypeReportSponsoredResultFailed:
|
|
return UnmarshalReportSponsoredResultFailed(data)
|
|
|
|
case TypeReportSponsoredResultOptionRequired:
|
|
return UnmarshalReportSponsoredResultOptionRequired(data)
|
|
|
|
case TypeReportSponsoredResultAdsHidden:
|
|
return UnmarshalReportSponsoredResultAdsHidden(data)
|
|
|
|
case TypeReportSponsoredResultPremiumRequired:
|
|
return UnmarshalReportSponsoredResultPremiumRequired(data)
|
|
|
|
case TypeFileDownload:
|
|
return UnmarshalFileDownload(data)
|
|
|
|
case TypeDownloadedFileCounts:
|
|
return UnmarshalDownloadedFileCounts(data)
|
|
|
|
case TypeFoundFileDownloads:
|
|
return UnmarshalFoundFileDownloads(data)
|
|
|
|
case TypeNotificationSettingsScopePrivateChats:
|
|
return UnmarshalNotificationSettingsScopePrivateChats(data)
|
|
|
|
case TypeNotificationSettingsScopeGroupChats:
|
|
return UnmarshalNotificationSettingsScopeGroupChats(data)
|
|
|
|
case TypeNotificationSettingsScopeChannelChats:
|
|
return UnmarshalNotificationSettingsScopeChannelChats(data)
|
|
|
|
case TypeChatNotificationSettings:
|
|
return UnmarshalChatNotificationSettings(data)
|
|
|
|
case TypeScopeNotificationSettings:
|
|
return UnmarshalScopeNotificationSettings(data)
|
|
|
|
case TypeReactionNotificationSourceNone:
|
|
return UnmarshalReactionNotificationSourceNone(data)
|
|
|
|
case TypeReactionNotificationSourceContacts:
|
|
return UnmarshalReactionNotificationSourceContacts(data)
|
|
|
|
case TypeReactionNotificationSourceAll:
|
|
return UnmarshalReactionNotificationSourceAll(data)
|
|
|
|
case TypeReactionNotificationSettings:
|
|
return UnmarshalReactionNotificationSettings(data)
|
|
|
|
case TypeDraftMessage:
|
|
return UnmarshalDraftMessage(data)
|
|
|
|
case TypeChatTypePrivate:
|
|
return UnmarshalChatTypePrivate(data)
|
|
|
|
case TypeChatTypeBasicGroup:
|
|
return UnmarshalChatTypeBasicGroup(data)
|
|
|
|
case TypeChatTypeSupergroup:
|
|
return UnmarshalChatTypeSupergroup(data)
|
|
|
|
case TypeChatTypeSecret:
|
|
return UnmarshalChatTypeSecret(data)
|
|
|
|
case TypeChatFolderIcon:
|
|
return UnmarshalChatFolderIcon(data)
|
|
|
|
case TypeChatFolderName:
|
|
return UnmarshalChatFolderName(data)
|
|
|
|
case TypeChatFolder:
|
|
return UnmarshalChatFolder(data)
|
|
|
|
case TypeChatFolderInfo:
|
|
return UnmarshalChatFolderInfo(data)
|
|
|
|
case TypeChatFolderInviteLink:
|
|
return UnmarshalChatFolderInviteLink(data)
|
|
|
|
case TypeChatFolderInviteLinks:
|
|
return UnmarshalChatFolderInviteLinks(data)
|
|
|
|
case TypeChatFolderInviteLinkInfo:
|
|
return UnmarshalChatFolderInviteLinkInfo(data)
|
|
|
|
case TypeRecommendedChatFolder:
|
|
return UnmarshalRecommendedChatFolder(data)
|
|
|
|
case TypeRecommendedChatFolders:
|
|
return UnmarshalRecommendedChatFolders(data)
|
|
|
|
case TypeArchiveChatListSettings:
|
|
return UnmarshalArchiveChatListSettings(data)
|
|
|
|
case TypeChatListMain:
|
|
return UnmarshalChatListMain(data)
|
|
|
|
case TypeChatListArchive:
|
|
return UnmarshalChatListArchive(data)
|
|
|
|
case TypeChatListFolder:
|
|
return UnmarshalChatListFolder(data)
|
|
|
|
case TypeChatLists:
|
|
return UnmarshalChatLists(data)
|
|
|
|
case TypeChatSourceMtprotoProxy:
|
|
return UnmarshalChatSourceMtprotoProxy(data)
|
|
|
|
case TypeChatSourcePublicServiceAnnouncement:
|
|
return UnmarshalChatSourcePublicServiceAnnouncement(data)
|
|
|
|
case TypeChatPosition:
|
|
return UnmarshalChatPosition(data)
|
|
|
|
case TypeChatAvailableReactionsAll:
|
|
return UnmarshalChatAvailableReactionsAll(data)
|
|
|
|
case TypeChatAvailableReactionsSome:
|
|
return UnmarshalChatAvailableReactionsSome(data)
|
|
|
|
case TypeSavedMessagesTag:
|
|
return UnmarshalSavedMessagesTag(data)
|
|
|
|
case TypeSavedMessagesTags:
|
|
return UnmarshalSavedMessagesTags(data)
|
|
|
|
case TypeBusinessBotManageBar:
|
|
return UnmarshalBusinessBotManageBar(data)
|
|
|
|
case TypeVideoChat:
|
|
return UnmarshalVideoChat(data)
|
|
|
|
case TypeChat:
|
|
return UnmarshalChat(data)
|
|
|
|
case TypeChats:
|
|
return UnmarshalChats(data)
|
|
|
|
case TypeFailedToAddMember:
|
|
return UnmarshalFailedToAddMember(data)
|
|
|
|
case TypeFailedToAddMembers:
|
|
return UnmarshalFailedToAddMembers(data)
|
|
|
|
case TypeCreatedBasicGroupChat:
|
|
return UnmarshalCreatedBasicGroupChat(data)
|
|
|
|
case TypePublicChatTypeHasUsername:
|
|
return UnmarshalPublicChatTypeHasUsername(data)
|
|
|
|
case TypePublicChatTypeIsLocationBased:
|
|
return UnmarshalPublicChatTypeIsLocationBased(data)
|
|
|
|
case TypeAccountInfo:
|
|
return UnmarshalAccountInfo(data)
|
|
|
|
case TypeChatActionBarReportSpam:
|
|
return UnmarshalChatActionBarReportSpam(data)
|
|
|
|
case TypeChatActionBarInviteMembers:
|
|
return UnmarshalChatActionBarInviteMembers(data)
|
|
|
|
case TypeChatActionBarReportAddBlock:
|
|
return UnmarshalChatActionBarReportAddBlock(data)
|
|
|
|
case TypeChatActionBarAddContact:
|
|
return UnmarshalChatActionBarAddContact(data)
|
|
|
|
case TypeChatActionBarSharePhoneNumber:
|
|
return UnmarshalChatActionBarSharePhoneNumber(data)
|
|
|
|
case TypeChatActionBarJoinRequest:
|
|
return UnmarshalChatActionBarJoinRequest(data)
|
|
|
|
case TypeButtonStyleDefault:
|
|
return UnmarshalButtonStyleDefault(data)
|
|
|
|
case TypeButtonStylePrimary:
|
|
return UnmarshalButtonStylePrimary(data)
|
|
|
|
case TypeButtonStyleDanger:
|
|
return UnmarshalButtonStyleDanger(data)
|
|
|
|
case TypeButtonStyleSuccess:
|
|
return UnmarshalButtonStyleSuccess(data)
|
|
|
|
case TypeKeyboardButtonTypeText:
|
|
return UnmarshalKeyboardButtonTypeText(data)
|
|
|
|
case TypeKeyboardButtonTypeRequestPhoneNumber:
|
|
return UnmarshalKeyboardButtonTypeRequestPhoneNumber(data)
|
|
|
|
case TypeKeyboardButtonTypeRequestLocation:
|
|
return UnmarshalKeyboardButtonTypeRequestLocation(data)
|
|
|
|
case TypeKeyboardButtonTypeRequestPoll:
|
|
return UnmarshalKeyboardButtonTypeRequestPoll(data)
|
|
|
|
case TypeKeyboardButtonTypeRequestUsers:
|
|
return UnmarshalKeyboardButtonTypeRequestUsers(data)
|
|
|
|
case TypeKeyboardButtonTypeRequestChat:
|
|
return UnmarshalKeyboardButtonTypeRequestChat(data)
|
|
|
|
case TypeKeyboardButtonTypeWebApp:
|
|
return UnmarshalKeyboardButtonTypeWebApp(data)
|
|
|
|
case TypeKeyboardButton:
|
|
return UnmarshalKeyboardButton(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeUrl:
|
|
return UnmarshalInlineKeyboardButtonTypeUrl(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeLoginUrl:
|
|
return UnmarshalInlineKeyboardButtonTypeLoginUrl(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeWebApp:
|
|
return UnmarshalInlineKeyboardButtonTypeWebApp(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeCallback:
|
|
return UnmarshalInlineKeyboardButtonTypeCallback(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeCallbackWithPassword:
|
|
return UnmarshalInlineKeyboardButtonTypeCallbackWithPassword(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeCallbackGame:
|
|
return UnmarshalInlineKeyboardButtonTypeCallbackGame(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeSwitchInline:
|
|
return UnmarshalInlineKeyboardButtonTypeSwitchInline(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeBuy:
|
|
return UnmarshalInlineKeyboardButtonTypeBuy(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeUser:
|
|
return UnmarshalInlineKeyboardButtonTypeUser(data)
|
|
|
|
case TypeInlineKeyboardButtonTypeCopyText:
|
|
return UnmarshalInlineKeyboardButtonTypeCopyText(data)
|
|
|
|
case TypeInlineKeyboardButton:
|
|
return UnmarshalInlineKeyboardButton(data)
|
|
|
|
case TypeReplyMarkupRemoveKeyboard:
|
|
return UnmarshalReplyMarkupRemoveKeyboard(data)
|
|
|
|
case TypeReplyMarkupForceReply:
|
|
return UnmarshalReplyMarkupForceReply(data)
|
|
|
|
case TypeReplyMarkupShowKeyboard:
|
|
return UnmarshalReplyMarkupShowKeyboard(data)
|
|
|
|
case TypeReplyMarkupInlineKeyboard:
|
|
return UnmarshalReplyMarkupInlineKeyboard(data)
|
|
|
|
case TypeLoginUrlInfoOpen:
|
|
return UnmarshalLoginUrlInfoOpen(data)
|
|
|
|
case TypeLoginUrlInfoRequestConfirmation:
|
|
return UnmarshalLoginUrlInfoRequestConfirmation(data)
|
|
|
|
case TypeThemeParameters:
|
|
return UnmarshalThemeParameters(data)
|
|
|
|
case TypeWebAppOpenModeCompact:
|
|
return UnmarshalWebAppOpenModeCompact(data)
|
|
|
|
case TypeWebAppOpenModeFullSize:
|
|
return UnmarshalWebAppOpenModeFullSize(data)
|
|
|
|
case TypeWebAppOpenModeFullScreen:
|
|
return UnmarshalWebAppOpenModeFullScreen(data)
|
|
|
|
case TypeFoundWebApp:
|
|
return UnmarshalFoundWebApp(data)
|
|
|
|
case TypeWebAppInfo:
|
|
return UnmarshalWebAppInfo(data)
|
|
|
|
case TypeMainWebApp:
|
|
return UnmarshalMainWebApp(data)
|
|
|
|
case TypeWebAppOpenParameters:
|
|
return UnmarshalWebAppOpenParameters(data)
|
|
|
|
case TypeMessageThreadInfo:
|
|
return UnmarshalMessageThreadInfo(data)
|
|
|
|
case TypeSavedMessagesTopicTypeMyNotes:
|
|
return UnmarshalSavedMessagesTopicTypeMyNotes(data)
|
|
|
|
case TypeSavedMessagesTopicTypeAuthorHidden:
|
|
return UnmarshalSavedMessagesTopicTypeAuthorHidden(data)
|
|
|
|
case TypeSavedMessagesTopicTypeSavedFromChat:
|
|
return UnmarshalSavedMessagesTopicTypeSavedFromChat(data)
|
|
|
|
case TypeSavedMessagesTopic:
|
|
return UnmarshalSavedMessagesTopic(data)
|
|
|
|
case TypeDirectMessagesChatTopic:
|
|
return UnmarshalDirectMessagesChatTopic(data)
|
|
|
|
case TypeForumTopicIcon:
|
|
return UnmarshalForumTopicIcon(data)
|
|
|
|
case TypeForumTopicInfo:
|
|
return UnmarshalForumTopicInfo(data)
|
|
|
|
case TypeForumTopic:
|
|
return UnmarshalForumTopic(data)
|
|
|
|
case TypeForumTopics:
|
|
return UnmarshalForumTopics(data)
|
|
|
|
case TypeLinkPreviewOptions:
|
|
return UnmarshalLinkPreviewOptions(data)
|
|
|
|
case TypeSharedUser:
|
|
return UnmarshalSharedUser(data)
|
|
|
|
case TypeSharedChat:
|
|
return UnmarshalSharedChat(data)
|
|
|
|
case TypeBuiltInThemeClassic:
|
|
return UnmarshalBuiltInThemeClassic(data)
|
|
|
|
case TypeBuiltInThemeDay:
|
|
return UnmarshalBuiltInThemeDay(data)
|
|
|
|
case TypeBuiltInThemeNight:
|
|
return UnmarshalBuiltInThemeNight(data)
|
|
|
|
case TypeBuiltInThemeTinted:
|
|
return UnmarshalBuiltInThemeTinted(data)
|
|
|
|
case TypeBuiltInThemeArctic:
|
|
return UnmarshalBuiltInThemeArctic(data)
|
|
|
|
case TypeThemeSettings:
|
|
return UnmarshalThemeSettings(data)
|
|
|
|
case TypeRichTextPlain:
|
|
return UnmarshalRichTextPlain(data)
|
|
|
|
case TypeRichTextBold:
|
|
return UnmarshalRichTextBold(data)
|
|
|
|
case TypeRichTextItalic:
|
|
return UnmarshalRichTextItalic(data)
|
|
|
|
case TypeRichTextUnderline:
|
|
return UnmarshalRichTextUnderline(data)
|
|
|
|
case TypeRichTextStrikethrough:
|
|
return UnmarshalRichTextStrikethrough(data)
|
|
|
|
case TypeRichTextFixed:
|
|
return UnmarshalRichTextFixed(data)
|
|
|
|
case TypeRichTextUrl:
|
|
return UnmarshalRichTextUrl(data)
|
|
|
|
case TypeRichTextEmailAddress:
|
|
return UnmarshalRichTextEmailAddress(data)
|
|
|
|
case TypeRichTextSubscript:
|
|
return UnmarshalRichTextSubscript(data)
|
|
|
|
case TypeRichTextSuperscript:
|
|
return UnmarshalRichTextSuperscript(data)
|
|
|
|
case TypeRichTextMarked:
|
|
return UnmarshalRichTextMarked(data)
|
|
|
|
case TypeRichTextPhoneNumber:
|
|
return UnmarshalRichTextPhoneNumber(data)
|
|
|
|
case TypeRichTextIcon:
|
|
return UnmarshalRichTextIcon(data)
|
|
|
|
case TypeRichTextReference:
|
|
return UnmarshalRichTextReference(data)
|
|
|
|
case TypeRichTextAnchor:
|
|
return UnmarshalRichTextAnchor(data)
|
|
|
|
case TypeRichTextAnchorLink:
|
|
return UnmarshalRichTextAnchorLink(data)
|
|
|
|
case TypeRichTexts:
|
|
return UnmarshalRichTexts(data)
|
|
|
|
case TypePageBlockCaption:
|
|
return UnmarshalPageBlockCaption(data)
|
|
|
|
case TypePageBlockListItem:
|
|
return UnmarshalPageBlockListItem(data)
|
|
|
|
case TypePageBlockHorizontalAlignmentLeft:
|
|
return UnmarshalPageBlockHorizontalAlignmentLeft(data)
|
|
|
|
case TypePageBlockHorizontalAlignmentCenter:
|
|
return UnmarshalPageBlockHorizontalAlignmentCenter(data)
|
|
|
|
case TypePageBlockHorizontalAlignmentRight:
|
|
return UnmarshalPageBlockHorizontalAlignmentRight(data)
|
|
|
|
case TypePageBlockVerticalAlignmentTop:
|
|
return UnmarshalPageBlockVerticalAlignmentTop(data)
|
|
|
|
case TypePageBlockVerticalAlignmentMiddle:
|
|
return UnmarshalPageBlockVerticalAlignmentMiddle(data)
|
|
|
|
case TypePageBlockVerticalAlignmentBottom:
|
|
return UnmarshalPageBlockVerticalAlignmentBottom(data)
|
|
|
|
case TypePageBlockTableCell:
|
|
return UnmarshalPageBlockTableCell(data)
|
|
|
|
case TypePageBlockRelatedArticle:
|
|
return UnmarshalPageBlockRelatedArticle(data)
|
|
|
|
case TypePageBlockTitle:
|
|
return UnmarshalPageBlockTitle(data)
|
|
|
|
case TypePageBlockSubtitle:
|
|
return UnmarshalPageBlockSubtitle(data)
|
|
|
|
case TypePageBlockAuthorDate:
|
|
return UnmarshalPageBlockAuthorDate(data)
|
|
|
|
case TypePageBlockHeader:
|
|
return UnmarshalPageBlockHeader(data)
|
|
|
|
case TypePageBlockSubheader:
|
|
return UnmarshalPageBlockSubheader(data)
|
|
|
|
case TypePageBlockKicker:
|
|
return UnmarshalPageBlockKicker(data)
|
|
|
|
case TypePageBlockParagraph:
|
|
return UnmarshalPageBlockParagraph(data)
|
|
|
|
case TypePageBlockPreformatted:
|
|
return UnmarshalPageBlockPreformatted(data)
|
|
|
|
case TypePageBlockFooter:
|
|
return UnmarshalPageBlockFooter(data)
|
|
|
|
case TypePageBlockDivider:
|
|
return UnmarshalPageBlockDivider(data)
|
|
|
|
case TypePageBlockAnchor:
|
|
return UnmarshalPageBlockAnchor(data)
|
|
|
|
case TypePageBlockList:
|
|
return UnmarshalPageBlockList(data)
|
|
|
|
case TypePageBlockBlockQuote:
|
|
return UnmarshalPageBlockBlockQuote(data)
|
|
|
|
case TypePageBlockPullQuote:
|
|
return UnmarshalPageBlockPullQuote(data)
|
|
|
|
case TypePageBlockAnimation:
|
|
return UnmarshalPageBlockAnimation(data)
|
|
|
|
case TypePageBlockAudio:
|
|
return UnmarshalPageBlockAudio(data)
|
|
|
|
case TypePageBlockPhoto:
|
|
return UnmarshalPageBlockPhoto(data)
|
|
|
|
case TypePageBlockVideo:
|
|
return UnmarshalPageBlockVideo(data)
|
|
|
|
case TypePageBlockVoiceNote:
|
|
return UnmarshalPageBlockVoiceNote(data)
|
|
|
|
case TypePageBlockCover:
|
|
return UnmarshalPageBlockCover(data)
|
|
|
|
case TypePageBlockEmbedded:
|
|
return UnmarshalPageBlockEmbedded(data)
|
|
|
|
case TypePageBlockEmbeddedPost:
|
|
return UnmarshalPageBlockEmbeddedPost(data)
|
|
|
|
case TypePageBlockCollage:
|
|
return UnmarshalPageBlockCollage(data)
|
|
|
|
case TypePageBlockSlideshow:
|
|
return UnmarshalPageBlockSlideshow(data)
|
|
|
|
case TypePageBlockChatLink:
|
|
return UnmarshalPageBlockChatLink(data)
|
|
|
|
case TypePageBlockTable:
|
|
return UnmarshalPageBlockTable(data)
|
|
|
|
case TypePageBlockDetails:
|
|
return UnmarshalPageBlockDetails(data)
|
|
|
|
case TypePageBlockRelatedArticles:
|
|
return UnmarshalPageBlockRelatedArticles(data)
|
|
|
|
case TypePageBlockMap:
|
|
return UnmarshalPageBlockMap(data)
|
|
|
|
case TypeWebPageInstantView:
|
|
return UnmarshalWebPageInstantView(data)
|
|
|
|
case TypeLinkPreviewAlbumMediaPhoto:
|
|
return UnmarshalLinkPreviewAlbumMediaPhoto(data)
|
|
|
|
case TypeLinkPreviewAlbumMediaVideo:
|
|
return UnmarshalLinkPreviewAlbumMediaVideo(data)
|
|
|
|
case TypeLinkPreviewTypeAlbum:
|
|
return UnmarshalLinkPreviewTypeAlbum(data)
|
|
|
|
case TypeLinkPreviewTypeAnimation:
|
|
return UnmarshalLinkPreviewTypeAnimation(data)
|
|
|
|
case TypeLinkPreviewTypeApp:
|
|
return UnmarshalLinkPreviewTypeApp(data)
|
|
|
|
case TypeLinkPreviewTypeArticle:
|
|
return UnmarshalLinkPreviewTypeArticle(data)
|
|
|
|
case TypeLinkPreviewTypeAudio:
|
|
return UnmarshalLinkPreviewTypeAudio(data)
|
|
|
|
case TypeLinkPreviewTypeBackground:
|
|
return UnmarshalLinkPreviewTypeBackground(data)
|
|
|
|
case TypeLinkPreviewTypeChannelBoost:
|
|
return UnmarshalLinkPreviewTypeChannelBoost(data)
|
|
|
|
case TypeLinkPreviewTypeChat:
|
|
return UnmarshalLinkPreviewTypeChat(data)
|
|
|
|
case TypeLinkPreviewTypeDirectMessagesChat:
|
|
return UnmarshalLinkPreviewTypeDirectMessagesChat(data)
|
|
|
|
case TypeLinkPreviewTypeDocument:
|
|
return UnmarshalLinkPreviewTypeDocument(data)
|
|
|
|
case TypeLinkPreviewTypeEmbeddedAnimationPlayer:
|
|
return UnmarshalLinkPreviewTypeEmbeddedAnimationPlayer(data)
|
|
|
|
case TypeLinkPreviewTypeEmbeddedAudioPlayer:
|
|
return UnmarshalLinkPreviewTypeEmbeddedAudioPlayer(data)
|
|
|
|
case TypeLinkPreviewTypeEmbeddedVideoPlayer:
|
|
return UnmarshalLinkPreviewTypeEmbeddedVideoPlayer(data)
|
|
|
|
case TypeLinkPreviewTypeExternalAudio:
|
|
return UnmarshalLinkPreviewTypeExternalAudio(data)
|
|
|
|
case TypeLinkPreviewTypeExternalVideo:
|
|
return UnmarshalLinkPreviewTypeExternalVideo(data)
|
|
|
|
case TypeLinkPreviewTypeGiftAuction:
|
|
return UnmarshalLinkPreviewTypeGiftAuction(data)
|
|
|
|
case TypeLinkPreviewTypeGiftCollection:
|
|
return UnmarshalLinkPreviewTypeGiftCollection(data)
|
|
|
|
case TypeLinkPreviewTypeGroupCall:
|
|
return UnmarshalLinkPreviewTypeGroupCall(data)
|
|
|
|
case TypeLinkPreviewTypeInvoice:
|
|
return UnmarshalLinkPreviewTypeInvoice(data)
|
|
|
|
case TypeLinkPreviewTypeLiveStory:
|
|
return UnmarshalLinkPreviewTypeLiveStory(data)
|
|
|
|
case TypeLinkPreviewTypeMessage:
|
|
return UnmarshalLinkPreviewTypeMessage(data)
|
|
|
|
case TypeLinkPreviewTypePhoto:
|
|
return UnmarshalLinkPreviewTypePhoto(data)
|
|
|
|
case TypeLinkPreviewTypePremiumGiftCode:
|
|
return UnmarshalLinkPreviewTypePremiumGiftCode(data)
|
|
|
|
case TypeLinkPreviewTypeShareableChatFolder:
|
|
return UnmarshalLinkPreviewTypeShareableChatFolder(data)
|
|
|
|
case TypeLinkPreviewTypeSticker:
|
|
return UnmarshalLinkPreviewTypeSticker(data)
|
|
|
|
case TypeLinkPreviewTypeStickerSet:
|
|
return UnmarshalLinkPreviewTypeStickerSet(data)
|
|
|
|
case TypeLinkPreviewTypeStory:
|
|
return UnmarshalLinkPreviewTypeStory(data)
|
|
|
|
case TypeLinkPreviewTypeStoryAlbum:
|
|
return UnmarshalLinkPreviewTypeStoryAlbum(data)
|
|
|
|
case TypeLinkPreviewTypeSupergroupBoost:
|
|
return UnmarshalLinkPreviewTypeSupergroupBoost(data)
|
|
|
|
case TypeLinkPreviewTypeTheme:
|
|
return UnmarshalLinkPreviewTypeTheme(data)
|
|
|
|
case TypeLinkPreviewTypeUnsupported:
|
|
return UnmarshalLinkPreviewTypeUnsupported(data)
|
|
|
|
case TypeLinkPreviewTypeUpgradedGift:
|
|
return UnmarshalLinkPreviewTypeUpgradedGift(data)
|
|
|
|
case TypeLinkPreviewTypeUser:
|
|
return UnmarshalLinkPreviewTypeUser(data)
|
|
|
|
case TypeLinkPreviewTypeVideo:
|
|
return UnmarshalLinkPreviewTypeVideo(data)
|
|
|
|
case TypeLinkPreviewTypeVideoChat:
|
|
return UnmarshalLinkPreviewTypeVideoChat(data)
|
|
|
|
case TypeLinkPreviewTypeVideoNote:
|
|
return UnmarshalLinkPreviewTypeVideoNote(data)
|
|
|
|
case TypeLinkPreviewTypeVoiceNote:
|
|
return UnmarshalLinkPreviewTypeVoiceNote(data)
|
|
|
|
case TypeLinkPreviewTypeWebApp:
|
|
return UnmarshalLinkPreviewTypeWebApp(data)
|
|
|
|
case TypeLinkPreview:
|
|
return UnmarshalLinkPreview(data)
|
|
|
|
case TypeCountryInfo:
|
|
return UnmarshalCountryInfo(data)
|
|
|
|
case TypeCountries:
|
|
return UnmarshalCountries(data)
|
|
|
|
case TypePhoneNumberInfo:
|
|
return UnmarshalPhoneNumberInfo(data)
|
|
|
|
case TypeCollectibleItemTypeUsername:
|
|
return UnmarshalCollectibleItemTypeUsername(data)
|
|
|
|
case TypeCollectibleItemTypePhoneNumber:
|
|
return UnmarshalCollectibleItemTypePhoneNumber(data)
|
|
|
|
case TypeCollectibleItemInfo:
|
|
return UnmarshalCollectibleItemInfo(data)
|
|
|
|
case TypeBankCardActionOpenUrl:
|
|
return UnmarshalBankCardActionOpenUrl(data)
|
|
|
|
case TypeBankCardInfo:
|
|
return UnmarshalBankCardInfo(data)
|
|
|
|
case TypeAddress:
|
|
return UnmarshalAddress(data)
|
|
|
|
case TypeLocationAddress:
|
|
return UnmarshalLocationAddress(data)
|
|
|
|
case TypeLabeledPricePart:
|
|
return UnmarshalLabeledPricePart(data)
|
|
|
|
case TypeInvoice:
|
|
return UnmarshalInvoice(data)
|
|
|
|
case TypeOrderInfo:
|
|
return UnmarshalOrderInfo(data)
|
|
|
|
case TypeShippingOption:
|
|
return UnmarshalShippingOption(data)
|
|
|
|
case TypeSavedCredentials:
|
|
return UnmarshalSavedCredentials(data)
|
|
|
|
case TypeInputCredentialsSaved:
|
|
return UnmarshalInputCredentialsSaved(data)
|
|
|
|
case TypeInputCredentialsNew:
|
|
return UnmarshalInputCredentialsNew(data)
|
|
|
|
case TypeInputCredentialsApplePay:
|
|
return UnmarshalInputCredentialsApplePay(data)
|
|
|
|
case TypeInputCredentialsGooglePay:
|
|
return UnmarshalInputCredentialsGooglePay(data)
|
|
|
|
case TypePaymentProviderSmartGlocal:
|
|
return UnmarshalPaymentProviderSmartGlocal(data)
|
|
|
|
case TypePaymentProviderStripe:
|
|
return UnmarshalPaymentProviderStripe(data)
|
|
|
|
case TypePaymentProviderOther:
|
|
return UnmarshalPaymentProviderOther(data)
|
|
|
|
case TypePaymentOption:
|
|
return UnmarshalPaymentOption(data)
|
|
|
|
case TypePaymentFormTypeRegular:
|
|
return UnmarshalPaymentFormTypeRegular(data)
|
|
|
|
case TypePaymentFormTypeStars:
|
|
return UnmarshalPaymentFormTypeStars(data)
|
|
|
|
case TypePaymentFormTypeStarSubscription:
|
|
return UnmarshalPaymentFormTypeStarSubscription(data)
|
|
|
|
case TypePaymentForm:
|
|
return UnmarshalPaymentForm(data)
|
|
|
|
case TypeValidatedOrderInfo:
|
|
return UnmarshalValidatedOrderInfo(data)
|
|
|
|
case TypePaymentResult:
|
|
return UnmarshalPaymentResult(data)
|
|
|
|
case TypePaymentReceiptTypeRegular:
|
|
return UnmarshalPaymentReceiptTypeRegular(data)
|
|
|
|
case TypePaymentReceiptTypeStars:
|
|
return UnmarshalPaymentReceiptTypeStars(data)
|
|
|
|
case TypePaymentReceipt:
|
|
return UnmarshalPaymentReceipt(data)
|
|
|
|
case TypeInputInvoiceMessage:
|
|
return UnmarshalInputInvoiceMessage(data)
|
|
|
|
case TypeInputInvoiceName:
|
|
return UnmarshalInputInvoiceName(data)
|
|
|
|
case TypeInputInvoiceTelegram:
|
|
return UnmarshalInputInvoiceTelegram(data)
|
|
|
|
case TypePaidMediaPreview:
|
|
return UnmarshalPaidMediaPreview(data)
|
|
|
|
case TypePaidMediaPhoto:
|
|
return UnmarshalPaidMediaPhoto(data)
|
|
|
|
case TypePaidMediaVideo:
|
|
return UnmarshalPaidMediaVideo(data)
|
|
|
|
case TypePaidMediaUnsupported:
|
|
return UnmarshalPaidMediaUnsupported(data)
|
|
|
|
case TypeGiveawayParameters:
|
|
return UnmarshalGiveawayParameters(data)
|
|
|
|
case TypeDatedFile:
|
|
return UnmarshalDatedFile(data)
|
|
|
|
case TypePassportElementTypePersonalDetails:
|
|
return UnmarshalPassportElementTypePersonalDetails(data)
|
|
|
|
case TypePassportElementTypePassport:
|
|
return UnmarshalPassportElementTypePassport(data)
|
|
|
|
case TypePassportElementTypeDriverLicense:
|
|
return UnmarshalPassportElementTypeDriverLicense(data)
|
|
|
|
case TypePassportElementTypeIdentityCard:
|
|
return UnmarshalPassportElementTypeIdentityCard(data)
|
|
|
|
case TypePassportElementTypeInternalPassport:
|
|
return UnmarshalPassportElementTypeInternalPassport(data)
|
|
|
|
case TypePassportElementTypeAddress:
|
|
return UnmarshalPassportElementTypeAddress(data)
|
|
|
|
case TypePassportElementTypeUtilityBill:
|
|
return UnmarshalPassportElementTypeUtilityBill(data)
|
|
|
|
case TypePassportElementTypeBankStatement:
|
|
return UnmarshalPassportElementTypeBankStatement(data)
|
|
|
|
case TypePassportElementTypeRentalAgreement:
|
|
return UnmarshalPassportElementTypeRentalAgreement(data)
|
|
|
|
case TypePassportElementTypePassportRegistration:
|
|
return UnmarshalPassportElementTypePassportRegistration(data)
|
|
|
|
case TypePassportElementTypeTemporaryRegistration:
|
|
return UnmarshalPassportElementTypeTemporaryRegistration(data)
|
|
|
|
case TypePassportElementTypePhoneNumber:
|
|
return UnmarshalPassportElementTypePhoneNumber(data)
|
|
|
|
case TypePassportElementTypeEmailAddress:
|
|
return UnmarshalPassportElementTypeEmailAddress(data)
|
|
|
|
case TypeDate:
|
|
return UnmarshalDate(data)
|
|
|
|
case TypePersonalDetails:
|
|
return UnmarshalPersonalDetails(data)
|
|
|
|
case TypeIdentityDocument:
|
|
return UnmarshalIdentityDocument(data)
|
|
|
|
case TypeInputIdentityDocument:
|
|
return UnmarshalInputIdentityDocument(data)
|
|
|
|
case TypePersonalDocument:
|
|
return UnmarshalPersonalDocument(data)
|
|
|
|
case TypeInputPersonalDocument:
|
|
return UnmarshalInputPersonalDocument(data)
|
|
|
|
case TypePassportElementPersonalDetails:
|
|
return UnmarshalPassportElementPersonalDetails(data)
|
|
|
|
case TypePassportElementPassport:
|
|
return UnmarshalPassportElementPassport(data)
|
|
|
|
case TypePassportElementDriverLicense:
|
|
return UnmarshalPassportElementDriverLicense(data)
|
|
|
|
case TypePassportElementIdentityCard:
|
|
return UnmarshalPassportElementIdentityCard(data)
|
|
|
|
case TypePassportElementInternalPassport:
|
|
return UnmarshalPassportElementInternalPassport(data)
|
|
|
|
case TypePassportElementAddress:
|
|
return UnmarshalPassportElementAddress(data)
|
|
|
|
case TypePassportElementUtilityBill:
|
|
return UnmarshalPassportElementUtilityBill(data)
|
|
|
|
case TypePassportElementBankStatement:
|
|
return UnmarshalPassportElementBankStatement(data)
|
|
|
|
case TypePassportElementRentalAgreement:
|
|
return UnmarshalPassportElementRentalAgreement(data)
|
|
|
|
case TypePassportElementPassportRegistration:
|
|
return UnmarshalPassportElementPassportRegistration(data)
|
|
|
|
case TypePassportElementTemporaryRegistration:
|
|
return UnmarshalPassportElementTemporaryRegistration(data)
|
|
|
|
case TypePassportElementPhoneNumber:
|
|
return UnmarshalPassportElementPhoneNumber(data)
|
|
|
|
case TypePassportElementEmailAddress:
|
|
return UnmarshalPassportElementEmailAddress(data)
|
|
|
|
case TypeInputPassportElementPersonalDetails:
|
|
return UnmarshalInputPassportElementPersonalDetails(data)
|
|
|
|
case TypeInputPassportElementPassport:
|
|
return UnmarshalInputPassportElementPassport(data)
|
|
|
|
case TypeInputPassportElementDriverLicense:
|
|
return UnmarshalInputPassportElementDriverLicense(data)
|
|
|
|
case TypeInputPassportElementIdentityCard:
|
|
return UnmarshalInputPassportElementIdentityCard(data)
|
|
|
|
case TypeInputPassportElementInternalPassport:
|
|
return UnmarshalInputPassportElementInternalPassport(data)
|
|
|
|
case TypeInputPassportElementAddress:
|
|
return UnmarshalInputPassportElementAddress(data)
|
|
|
|
case TypeInputPassportElementUtilityBill:
|
|
return UnmarshalInputPassportElementUtilityBill(data)
|
|
|
|
case TypeInputPassportElementBankStatement:
|
|
return UnmarshalInputPassportElementBankStatement(data)
|
|
|
|
case TypeInputPassportElementRentalAgreement:
|
|
return UnmarshalInputPassportElementRentalAgreement(data)
|
|
|
|
case TypeInputPassportElementPassportRegistration:
|
|
return UnmarshalInputPassportElementPassportRegistration(data)
|
|
|
|
case TypeInputPassportElementTemporaryRegistration:
|
|
return UnmarshalInputPassportElementTemporaryRegistration(data)
|
|
|
|
case TypeInputPassportElementPhoneNumber:
|
|
return UnmarshalInputPassportElementPhoneNumber(data)
|
|
|
|
case TypeInputPassportElementEmailAddress:
|
|
return UnmarshalInputPassportElementEmailAddress(data)
|
|
|
|
case TypePassportElements:
|
|
return UnmarshalPassportElements(data)
|
|
|
|
case TypePassportElementErrorSourceUnspecified:
|
|
return UnmarshalPassportElementErrorSourceUnspecified(data)
|
|
|
|
case TypePassportElementErrorSourceDataField:
|
|
return UnmarshalPassportElementErrorSourceDataField(data)
|
|
|
|
case TypePassportElementErrorSourceFrontSide:
|
|
return UnmarshalPassportElementErrorSourceFrontSide(data)
|
|
|
|
case TypePassportElementErrorSourceReverseSide:
|
|
return UnmarshalPassportElementErrorSourceReverseSide(data)
|
|
|
|
case TypePassportElementErrorSourceSelfie:
|
|
return UnmarshalPassportElementErrorSourceSelfie(data)
|
|
|
|
case TypePassportElementErrorSourceTranslationFile:
|
|
return UnmarshalPassportElementErrorSourceTranslationFile(data)
|
|
|
|
case TypePassportElementErrorSourceTranslationFiles:
|
|
return UnmarshalPassportElementErrorSourceTranslationFiles(data)
|
|
|
|
case TypePassportElementErrorSourceFile:
|
|
return UnmarshalPassportElementErrorSourceFile(data)
|
|
|
|
case TypePassportElementErrorSourceFiles:
|
|
return UnmarshalPassportElementErrorSourceFiles(data)
|
|
|
|
case TypePassportElementError:
|
|
return UnmarshalPassportElementError(data)
|
|
|
|
case TypePassportSuitableElement:
|
|
return UnmarshalPassportSuitableElement(data)
|
|
|
|
case TypePassportRequiredElement:
|
|
return UnmarshalPassportRequiredElement(data)
|
|
|
|
case TypePassportAuthorizationForm:
|
|
return UnmarshalPassportAuthorizationForm(data)
|
|
|
|
case TypePassportElementsWithErrors:
|
|
return UnmarshalPassportElementsWithErrors(data)
|
|
|
|
case TypeEncryptedCredentials:
|
|
return UnmarshalEncryptedCredentials(data)
|
|
|
|
case TypeEncryptedPassportElement:
|
|
return UnmarshalEncryptedPassportElement(data)
|
|
|
|
case TypeInputPassportElementErrorSourceUnspecified:
|
|
return UnmarshalInputPassportElementErrorSourceUnspecified(data)
|
|
|
|
case TypeInputPassportElementErrorSourceDataField:
|
|
return UnmarshalInputPassportElementErrorSourceDataField(data)
|
|
|
|
case TypeInputPassportElementErrorSourceFrontSide:
|
|
return UnmarshalInputPassportElementErrorSourceFrontSide(data)
|
|
|
|
case TypeInputPassportElementErrorSourceReverseSide:
|
|
return UnmarshalInputPassportElementErrorSourceReverseSide(data)
|
|
|
|
case TypeInputPassportElementErrorSourceSelfie:
|
|
return UnmarshalInputPassportElementErrorSourceSelfie(data)
|
|
|
|
case TypeInputPassportElementErrorSourceTranslationFile:
|
|
return UnmarshalInputPassportElementErrorSourceTranslationFile(data)
|
|
|
|
case TypeInputPassportElementErrorSourceTranslationFiles:
|
|
return UnmarshalInputPassportElementErrorSourceTranslationFiles(data)
|
|
|
|
case TypeInputPassportElementErrorSourceFile:
|
|
return UnmarshalInputPassportElementErrorSourceFile(data)
|
|
|
|
case TypeInputPassportElementErrorSourceFiles:
|
|
return UnmarshalInputPassportElementErrorSourceFiles(data)
|
|
|
|
case TypeInputPassportElementError:
|
|
return UnmarshalInputPassportElementError(data)
|
|
|
|
case TypeMessageText:
|
|
return UnmarshalMessageText(data)
|
|
|
|
case TypeMessageAnimation:
|
|
return UnmarshalMessageAnimation(data)
|
|
|
|
case TypeMessageAudio:
|
|
return UnmarshalMessageAudio(data)
|
|
|
|
case TypeMessageDocument:
|
|
return UnmarshalMessageDocument(data)
|
|
|
|
case TypeMessagePaidMedia:
|
|
return UnmarshalMessagePaidMedia(data)
|
|
|
|
case TypeMessagePhoto:
|
|
return UnmarshalMessagePhoto(data)
|
|
|
|
case TypeMessageSticker:
|
|
return UnmarshalMessageSticker(data)
|
|
|
|
case TypeMessageVideo:
|
|
return UnmarshalMessageVideo(data)
|
|
|
|
case TypeMessageVideoNote:
|
|
return UnmarshalMessageVideoNote(data)
|
|
|
|
case TypeMessageVoiceNote:
|
|
return UnmarshalMessageVoiceNote(data)
|
|
|
|
case TypeMessageExpiredPhoto:
|
|
return UnmarshalMessageExpiredPhoto(data)
|
|
|
|
case TypeMessageExpiredVideo:
|
|
return UnmarshalMessageExpiredVideo(data)
|
|
|
|
case TypeMessageExpiredVideoNote:
|
|
return UnmarshalMessageExpiredVideoNote(data)
|
|
|
|
case TypeMessageExpiredVoiceNote:
|
|
return UnmarshalMessageExpiredVoiceNote(data)
|
|
|
|
case TypeMessageLocation:
|
|
return UnmarshalMessageLocation(data)
|
|
|
|
case TypeMessageVenue:
|
|
return UnmarshalMessageVenue(data)
|
|
|
|
case TypeMessageContact:
|
|
return UnmarshalMessageContact(data)
|
|
|
|
case TypeMessageAnimatedEmoji:
|
|
return UnmarshalMessageAnimatedEmoji(data)
|
|
|
|
case TypeMessageDice:
|
|
return UnmarshalMessageDice(data)
|
|
|
|
case TypeMessageGame:
|
|
return UnmarshalMessageGame(data)
|
|
|
|
case TypeMessagePoll:
|
|
return UnmarshalMessagePoll(data)
|
|
|
|
case TypeMessageStakeDice:
|
|
return UnmarshalMessageStakeDice(data)
|
|
|
|
case TypeMessageStory:
|
|
return UnmarshalMessageStory(data)
|
|
|
|
case TypeMessageChecklist:
|
|
return UnmarshalMessageChecklist(data)
|
|
|
|
case TypeMessageInvoice:
|
|
return UnmarshalMessageInvoice(data)
|
|
|
|
case TypeMessageCall:
|
|
return UnmarshalMessageCall(data)
|
|
|
|
case TypeMessageGroupCall:
|
|
return UnmarshalMessageGroupCall(data)
|
|
|
|
case TypeMessageVideoChatScheduled:
|
|
return UnmarshalMessageVideoChatScheduled(data)
|
|
|
|
case TypeMessageVideoChatStarted:
|
|
return UnmarshalMessageVideoChatStarted(data)
|
|
|
|
case TypeMessageVideoChatEnded:
|
|
return UnmarshalMessageVideoChatEnded(data)
|
|
|
|
case TypeMessageInviteVideoChatParticipants:
|
|
return UnmarshalMessageInviteVideoChatParticipants(data)
|
|
|
|
case TypeMessageBasicGroupChatCreate:
|
|
return UnmarshalMessageBasicGroupChatCreate(data)
|
|
|
|
case TypeMessageSupergroupChatCreate:
|
|
return UnmarshalMessageSupergroupChatCreate(data)
|
|
|
|
case TypeMessageChatChangeTitle:
|
|
return UnmarshalMessageChatChangeTitle(data)
|
|
|
|
case TypeMessageChatChangePhoto:
|
|
return UnmarshalMessageChatChangePhoto(data)
|
|
|
|
case TypeMessageChatDeletePhoto:
|
|
return UnmarshalMessageChatDeletePhoto(data)
|
|
|
|
case TypeMessageChatOwnerLeft:
|
|
return UnmarshalMessageChatOwnerLeft(data)
|
|
|
|
case TypeMessageChatOwnerChanged:
|
|
return UnmarshalMessageChatOwnerChanged(data)
|
|
|
|
case TypeMessageChatAddMembers:
|
|
return UnmarshalMessageChatAddMembers(data)
|
|
|
|
case TypeMessageChatJoinByLink:
|
|
return UnmarshalMessageChatJoinByLink(data)
|
|
|
|
case TypeMessageChatJoinByRequest:
|
|
return UnmarshalMessageChatJoinByRequest(data)
|
|
|
|
case TypeMessageChatDeleteMember:
|
|
return UnmarshalMessageChatDeleteMember(data)
|
|
|
|
case TypeMessageChatUpgradeTo:
|
|
return UnmarshalMessageChatUpgradeTo(data)
|
|
|
|
case TypeMessageChatUpgradeFrom:
|
|
return UnmarshalMessageChatUpgradeFrom(data)
|
|
|
|
case TypeMessagePinMessage:
|
|
return UnmarshalMessagePinMessage(data)
|
|
|
|
case TypeMessageScreenshotTaken:
|
|
return UnmarshalMessageScreenshotTaken(data)
|
|
|
|
case TypeMessageChatSetBackground:
|
|
return UnmarshalMessageChatSetBackground(data)
|
|
|
|
case TypeMessageChatSetTheme:
|
|
return UnmarshalMessageChatSetTheme(data)
|
|
|
|
case TypeMessageChatSetMessageAutoDeleteTime:
|
|
return UnmarshalMessageChatSetMessageAutoDeleteTime(data)
|
|
|
|
case TypeMessageChatBoost:
|
|
return UnmarshalMessageChatBoost(data)
|
|
|
|
case TypeMessageForumTopicCreated:
|
|
return UnmarshalMessageForumTopicCreated(data)
|
|
|
|
case TypeMessageForumTopicEdited:
|
|
return UnmarshalMessageForumTopicEdited(data)
|
|
|
|
case TypeMessageForumTopicIsClosedToggled:
|
|
return UnmarshalMessageForumTopicIsClosedToggled(data)
|
|
|
|
case TypeMessageForumTopicIsHiddenToggled:
|
|
return UnmarshalMessageForumTopicIsHiddenToggled(data)
|
|
|
|
case TypeMessageSuggestProfilePhoto:
|
|
return UnmarshalMessageSuggestProfilePhoto(data)
|
|
|
|
case TypeMessageSuggestBirthdate:
|
|
return UnmarshalMessageSuggestBirthdate(data)
|
|
|
|
case TypeMessageCustomServiceAction:
|
|
return UnmarshalMessageCustomServiceAction(data)
|
|
|
|
case TypeMessageGameScore:
|
|
return UnmarshalMessageGameScore(data)
|
|
|
|
case TypeMessagePaymentSuccessful:
|
|
return UnmarshalMessagePaymentSuccessful(data)
|
|
|
|
case TypeMessagePaymentSuccessfulBot:
|
|
return UnmarshalMessagePaymentSuccessfulBot(data)
|
|
|
|
case TypeMessagePaymentRefunded:
|
|
return UnmarshalMessagePaymentRefunded(data)
|
|
|
|
case TypeMessageGiftedPremium:
|
|
return UnmarshalMessageGiftedPremium(data)
|
|
|
|
case TypeMessagePremiumGiftCode:
|
|
return UnmarshalMessagePremiumGiftCode(data)
|
|
|
|
case TypeMessageGiveawayCreated:
|
|
return UnmarshalMessageGiveawayCreated(data)
|
|
|
|
case TypeMessageGiveaway:
|
|
return UnmarshalMessageGiveaway(data)
|
|
|
|
case TypeMessageGiveawayCompleted:
|
|
return UnmarshalMessageGiveawayCompleted(data)
|
|
|
|
case TypeMessageGiveawayWinners:
|
|
return UnmarshalMessageGiveawayWinners(data)
|
|
|
|
case TypeMessageGiftedStars:
|
|
return UnmarshalMessageGiftedStars(data)
|
|
|
|
case TypeMessageGiftedTon:
|
|
return UnmarshalMessageGiftedTon(data)
|
|
|
|
case TypeMessageGiveawayPrizeStars:
|
|
return UnmarshalMessageGiveawayPrizeStars(data)
|
|
|
|
case TypeMessageGift:
|
|
return UnmarshalMessageGift(data)
|
|
|
|
case TypeMessageUpgradedGift:
|
|
return UnmarshalMessageUpgradedGift(data)
|
|
|
|
case TypeMessageRefundedUpgradedGift:
|
|
return UnmarshalMessageRefundedUpgradedGift(data)
|
|
|
|
case TypeMessageUpgradedGiftPurchaseOffer:
|
|
return UnmarshalMessageUpgradedGiftPurchaseOffer(data)
|
|
|
|
case TypeMessageUpgradedGiftPurchaseOfferRejected:
|
|
return UnmarshalMessageUpgradedGiftPurchaseOfferRejected(data)
|
|
|
|
case TypeMessagePaidMessagesRefunded:
|
|
return UnmarshalMessagePaidMessagesRefunded(data)
|
|
|
|
case TypeMessagePaidMessagePriceChanged:
|
|
return UnmarshalMessagePaidMessagePriceChanged(data)
|
|
|
|
case TypeMessageDirectMessagePriceChanged:
|
|
return UnmarshalMessageDirectMessagePriceChanged(data)
|
|
|
|
case TypeMessageChecklistTasksDone:
|
|
return UnmarshalMessageChecklistTasksDone(data)
|
|
|
|
case TypeMessageChecklistTasksAdded:
|
|
return UnmarshalMessageChecklistTasksAdded(data)
|
|
|
|
case TypeMessageSuggestedPostApprovalFailed:
|
|
return UnmarshalMessageSuggestedPostApprovalFailed(data)
|
|
|
|
case TypeMessageSuggestedPostApproved:
|
|
return UnmarshalMessageSuggestedPostApproved(data)
|
|
|
|
case TypeMessageSuggestedPostDeclined:
|
|
return UnmarshalMessageSuggestedPostDeclined(data)
|
|
|
|
case TypeMessageSuggestedPostPaid:
|
|
return UnmarshalMessageSuggestedPostPaid(data)
|
|
|
|
case TypeMessageSuggestedPostRefunded:
|
|
return UnmarshalMessageSuggestedPostRefunded(data)
|
|
|
|
case TypeMessageContactRegistered:
|
|
return UnmarshalMessageContactRegistered(data)
|
|
|
|
case TypeMessageUsersShared:
|
|
return UnmarshalMessageUsersShared(data)
|
|
|
|
case TypeMessageChatShared:
|
|
return UnmarshalMessageChatShared(data)
|
|
|
|
case TypeMessageBotWriteAccessAllowed:
|
|
return UnmarshalMessageBotWriteAccessAllowed(data)
|
|
|
|
case TypeMessageWebAppDataSent:
|
|
return UnmarshalMessageWebAppDataSent(data)
|
|
|
|
case TypeMessageWebAppDataReceived:
|
|
return UnmarshalMessageWebAppDataReceived(data)
|
|
|
|
case TypeMessagePassportDataSent:
|
|
return UnmarshalMessagePassportDataSent(data)
|
|
|
|
case TypeMessagePassportDataReceived:
|
|
return UnmarshalMessagePassportDataReceived(data)
|
|
|
|
case TypeMessageProximityAlertTriggered:
|
|
return UnmarshalMessageProximityAlertTriggered(data)
|
|
|
|
case TypeMessageUnsupported:
|
|
return UnmarshalMessageUnsupported(data)
|
|
|
|
case TypeTextEntityTypeMention:
|
|
return UnmarshalTextEntityTypeMention(data)
|
|
|
|
case TypeTextEntityTypeHashtag:
|
|
return UnmarshalTextEntityTypeHashtag(data)
|
|
|
|
case TypeTextEntityTypeCashtag:
|
|
return UnmarshalTextEntityTypeCashtag(data)
|
|
|
|
case TypeTextEntityTypeBotCommand:
|
|
return UnmarshalTextEntityTypeBotCommand(data)
|
|
|
|
case TypeTextEntityTypeUrl:
|
|
return UnmarshalTextEntityTypeUrl(data)
|
|
|
|
case TypeTextEntityTypeEmailAddress:
|
|
return UnmarshalTextEntityTypeEmailAddress(data)
|
|
|
|
case TypeTextEntityTypePhoneNumber:
|
|
return UnmarshalTextEntityTypePhoneNumber(data)
|
|
|
|
case TypeTextEntityTypeBankCardNumber:
|
|
return UnmarshalTextEntityTypeBankCardNumber(data)
|
|
|
|
case TypeTextEntityTypeBold:
|
|
return UnmarshalTextEntityTypeBold(data)
|
|
|
|
case TypeTextEntityTypeItalic:
|
|
return UnmarshalTextEntityTypeItalic(data)
|
|
|
|
case TypeTextEntityTypeUnderline:
|
|
return UnmarshalTextEntityTypeUnderline(data)
|
|
|
|
case TypeTextEntityTypeStrikethrough:
|
|
return UnmarshalTextEntityTypeStrikethrough(data)
|
|
|
|
case TypeTextEntityTypeSpoiler:
|
|
return UnmarshalTextEntityTypeSpoiler(data)
|
|
|
|
case TypeTextEntityTypeCode:
|
|
return UnmarshalTextEntityTypeCode(data)
|
|
|
|
case TypeTextEntityTypePre:
|
|
return UnmarshalTextEntityTypePre(data)
|
|
|
|
case TypeTextEntityTypePreCode:
|
|
return UnmarshalTextEntityTypePreCode(data)
|
|
|
|
case TypeTextEntityTypeBlockQuote:
|
|
return UnmarshalTextEntityTypeBlockQuote(data)
|
|
|
|
case TypeTextEntityTypeExpandableBlockQuote:
|
|
return UnmarshalTextEntityTypeExpandableBlockQuote(data)
|
|
|
|
case TypeTextEntityTypeTextUrl:
|
|
return UnmarshalTextEntityTypeTextUrl(data)
|
|
|
|
case TypeTextEntityTypeMentionName:
|
|
return UnmarshalTextEntityTypeMentionName(data)
|
|
|
|
case TypeTextEntityTypeCustomEmoji:
|
|
return UnmarshalTextEntityTypeCustomEmoji(data)
|
|
|
|
case TypeTextEntityTypeMediaTimestamp:
|
|
return UnmarshalTextEntityTypeMediaTimestamp(data)
|
|
|
|
case TypeInputThumbnail:
|
|
return UnmarshalInputThumbnail(data)
|
|
|
|
case TypeInputPaidMediaTypePhoto:
|
|
return UnmarshalInputPaidMediaTypePhoto(data)
|
|
|
|
case TypeInputPaidMediaTypeVideo:
|
|
return UnmarshalInputPaidMediaTypeVideo(data)
|
|
|
|
case TypeInputPaidMedia:
|
|
return UnmarshalInputPaidMedia(data)
|
|
|
|
case TypeMessageSchedulingStateSendAtDate:
|
|
return UnmarshalMessageSchedulingStateSendAtDate(data)
|
|
|
|
case TypeMessageSchedulingStateSendWhenOnline:
|
|
return UnmarshalMessageSchedulingStateSendWhenOnline(data)
|
|
|
|
case TypeMessageSchedulingStateSendWhenVideoProcessed:
|
|
return UnmarshalMessageSchedulingStateSendWhenVideoProcessed(data)
|
|
|
|
case TypeMessageSelfDestructTypeTimer:
|
|
return UnmarshalMessageSelfDestructTypeTimer(data)
|
|
|
|
case TypeMessageSelfDestructTypeImmediately:
|
|
return UnmarshalMessageSelfDestructTypeImmediately(data)
|
|
|
|
case TypeMessageSendOptions:
|
|
return UnmarshalMessageSendOptions(data)
|
|
|
|
case TypeMessageCopyOptions:
|
|
return UnmarshalMessageCopyOptions(data)
|
|
|
|
case TypeInputMessageText:
|
|
return UnmarshalInputMessageText(data)
|
|
|
|
case TypeInputMessageAnimation:
|
|
return UnmarshalInputMessageAnimation(data)
|
|
|
|
case TypeInputMessageAudio:
|
|
return UnmarshalInputMessageAudio(data)
|
|
|
|
case TypeInputMessageDocument:
|
|
return UnmarshalInputMessageDocument(data)
|
|
|
|
case TypeInputMessagePaidMedia:
|
|
return UnmarshalInputMessagePaidMedia(data)
|
|
|
|
case TypeInputMessagePhoto:
|
|
return UnmarshalInputMessagePhoto(data)
|
|
|
|
case TypeInputMessageSticker:
|
|
return UnmarshalInputMessageSticker(data)
|
|
|
|
case TypeInputMessageVideo:
|
|
return UnmarshalInputMessageVideo(data)
|
|
|
|
case TypeInputMessageVideoNote:
|
|
return UnmarshalInputMessageVideoNote(data)
|
|
|
|
case TypeInputMessageVoiceNote:
|
|
return UnmarshalInputMessageVoiceNote(data)
|
|
|
|
case TypeInputMessageLocation:
|
|
return UnmarshalInputMessageLocation(data)
|
|
|
|
case TypeInputMessageVenue:
|
|
return UnmarshalInputMessageVenue(data)
|
|
|
|
case TypeInputMessageContact:
|
|
return UnmarshalInputMessageContact(data)
|
|
|
|
case TypeInputMessageDice:
|
|
return UnmarshalInputMessageDice(data)
|
|
|
|
case TypeInputMessageGame:
|
|
return UnmarshalInputMessageGame(data)
|
|
|
|
case TypeInputMessageInvoice:
|
|
return UnmarshalInputMessageInvoice(data)
|
|
|
|
case TypeInputMessagePoll:
|
|
return UnmarshalInputMessagePoll(data)
|
|
|
|
case TypeInputMessageStakeDice:
|
|
return UnmarshalInputMessageStakeDice(data)
|
|
|
|
case TypeInputMessageStory:
|
|
return UnmarshalInputMessageStory(data)
|
|
|
|
case TypeInputMessageChecklist:
|
|
return UnmarshalInputMessageChecklist(data)
|
|
|
|
case TypeInputMessageForwarded:
|
|
return UnmarshalInputMessageForwarded(data)
|
|
|
|
case TypeMessageProperties:
|
|
return UnmarshalMessageProperties(data)
|
|
|
|
case TypeSearchMessagesFilterEmpty:
|
|
return UnmarshalSearchMessagesFilterEmpty(data)
|
|
|
|
case TypeSearchMessagesFilterAnimation:
|
|
return UnmarshalSearchMessagesFilterAnimation(data)
|
|
|
|
case TypeSearchMessagesFilterAudio:
|
|
return UnmarshalSearchMessagesFilterAudio(data)
|
|
|
|
case TypeSearchMessagesFilterDocument:
|
|
return UnmarshalSearchMessagesFilterDocument(data)
|
|
|
|
case TypeSearchMessagesFilterPhoto:
|
|
return UnmarshalSearchMessagesFilterPhoto(data)
|
|
|
|
case TypeSearchMessagesFilterVideo:
|
|
return UnmarshalSearchMessagesFilterVideo(data)
|
|
|
|
case TypeSearchMessagesFilterVoiceNote:
|
|
return UnmarshalSearchMessagesFilterVoiceNote(data)
|
|
|
|
case TypeSearchMessagesFilterPhotoAndVideo:
|
|
return UnmarshalSearchMessagesFilterPhotoAndVideo(data)
|
|
|
|
case TypeSearchMessagesFilterUrl:
|
|
return UnmarshalSearchMessagesFilterUrl(data)
|
|
|
|
case TypeSearchMessagesFilterChatPhoto:
|
|
return UnmarshalSearchMessagesFilterChatPhoto(data)
|
|
|
|
case TypeSearchMessagesFilterVideoNote:
|
|
return UnmarshalSearchMessagesFilterVideoNote(data)
|
|
|
|
case TypeSearchMessagesFilterVoiceAndVideoNote:
|
|
return UnmarshalSearchMessagesFilterVoiceAndVideoNote(data)
|
|
|
|
case TypeSearchMessagesFilterMention:
|
|
return UnmarshalSearchMessagesFilterMention(data)
|
|
|
|
case TypeSearchMessagesFilterUnreadMention:
|
|
return UnmarshalSearchMessagesFilterUnreadMention(data)
|
|
|
|
case TypeSearchMessagesFilterUnreadReaction:
|
|
return UnmarshalSearchMessagesFilterUnreadReaction(data)
|
|
|
|
case TypeSearchMessagesFilterFailedToSend:
|
|
return UnmarshalSearchMessagesFilterFailedToSend(data)
|
|
|
|
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)
|
|
|
|
case TypeChatActionRecordingVideo:
|
|
return UnmarshalChatActionRecordingVideo(data)
|
|
|
|
case TypeChatActionUploadingVideo:
|
|
return UnmarshalChatActionUploadingVideo(data)
|
|
|
|
case TypeChatActionRecordingVoiceNote:
|
|
return UnmarshalChatActionRecordingVoiceNote(data)
|
|
|
|
case TypeChatActionUploadingVoiceNote:
|
|
return UnmarshalChatActionUploadingVoiceNote(data)
|
|
|
|
case TypeChatActionUploadingPhoto:
|
|
return UnmarshalChatActionUploadingPhoto(data)
|
|
|
|
case TypeChatActionUploadingDocument:
|
|
return UnmarshalChatActionUploadingDocument(data)
|
|
|
|
case TypeChatActionChoosingSticker:
|
|
return UnmarshalChatActionChoosingSticker(data)
|
|
|
|
case TypeChatActionChoosingLocation:
|
|
return UnmarshalChatActionChoosingLocation(data)
|
|
|
|
case TypeChatActionChoosingContact:
|
|
return UnmarshalChatActionChoosingContact(data)
|
|
|
|
case TypeChatActionStartPlayingGame:
|
|
return UnmarshalChatActionStartPlayingGame(data)
|
|
|
|
case TypeChatActionRecordingVideoNote:
|
|
return UnmarshalChatActionRecordingVideoNote(data)
|
|
|
|
case TypeChatActionUploadingVideoNote:
|
|
return UnmarshalChatActionUploadingVideoNote(data)
|
|
|
|
case TypeChatActionWatchingAnimations:
|
|
return UnmarshalChatActionWatchingAnimations(data)
|
|
|
|
case TypeChatActionCancel:
|
|
return UnmarshalChatActionCancel(data)
|
|
|
|
case TypeUserStatusEmpty:
|
|
return UnmarshalUserStatusEmpty(data)
|
|
|
|
case TypeUserStatusOnline:
|
|
return UnmarshalUserStatusOnline(data)
|
|
|
|
case TypeUserStatusOffline:
|
|
return UnmarshalUserStatusOffline(data)
|
|
|
|
case TypeUserStatusRecently:
|
|
return UnmarshalUserStatusRecently(data)
|
|
|
|
case TypeUserStatusLastWeek:
|
|
return UnmarshalUserStatusLastWeek(data)
|
|
|
|
case TypeUserStatusLastMonth:
|
|
return UnmarshalUserStatusLastMonth(data)
|
|
|
|
case TypeEmojiKeyword:
|
|
return UnmarshalEmojiKeyword(data)
|
|
|
|
case TypeEmojiKeywords:
|
|
return UnmarshalEmojiKeywords(data)
|
|
|
|
case TypeStickers:
|
|
return UnmarshalStickers(data)
|
|
|
|
case TypeEmojis:
|
|
return UnmarshalEmojis(data)
|
|
|
|
case TypeStickerSet:
|
|
return UnmarshalStickerSet(data)
|
|
|
|
case TypeStickerSetInfo:
|
|
return UnmarshalStickerSetInfo(data)
|
|
|
|
case TypeStickerSets:
|
|
return UnmarshalStickerSets(data)
|
|
|
|
case TypeTrendingStickerSets:
|
|
return UnmarshalTrendingStickerSets(data)
|
|
|
|
case TypeEmojiCategorySourceSearch:
|
|
return UnmarshalEmojiCategorySourceSearch(data)
|
|
|
|
case TypeEmojiCategorySourcePremium:
|
|
return UnmarshalEmojiCategorySourcePremium(data)
|
|
|
|
case TypeEmojiCategory:
|
|
return UnmarshalEmojiCategory(data)
|
|
|
|
case TypeEmojiCategories:
|
|
return UnmarshalEmojiCategories(data)
|
|
|
|
case TypeEmojiCategoryTypeDefault:
|
|
return UnmarshalEmojiCategoryTypeDefault(data)
|
|
|
|
case TypeEmojiCategoryTypeRegularStickers:
|
|
return UnmarshalEmojiCategoryTypeRegularStickers(data)
|
|
|
|
case TypeEmojiCategoryTypeEmojiStatus:
|
|
return UnmarshalEmojiCategoryTypeEmojiStatus(data)
|
|
|
|
case TypeEmojiCategoryTypeChatPhoto:
|
|
return UnmarshalEmojiCategoryTypeChatPhoto(data)
|
|
|
|
case TypeCurrentWeather:
|
|
return UnmarshalCurrentWeather(data)
|
|
|
|
case TypeStoryAreaPosition:
|
|
return UnmarshalStoryAreaPosition(data)
|
|
|
|
case TypeStoryAreaTypeLocation:
|
|
return UnmarshalStoryAreaTypeLocation(data)
|
|
|
|
case TypeStoryAreaTypeVenue:
|
|
return UnmarshalStoryAreaTypeVenue(data)
|
|
|
|
case TypeStoryAreaTypeSuggestedReaction:
|
|
return UnmarshalStoryAreaTypeSuggestedReaction(data)
|
|
|
|
case TypeStoryAreaTypeMessage:
|
|
return UnmarshalStoryAreaTypeMessage(data)
|
|
|
|
case TypeStoryAreaTypeLink:
|
|
return UnmarshalStoryAreaTypeLink(data)
|
|
|
|
case TypeStoryAreaTypeWeather:
|
|
return UnmarshalStoryAreaTypeWeather(data)
|
|
|
|
case TypeStoryAreaTypeUpgradedGift:
|
|
return UnmarshalStoryAreaTypeUpgradedGift(data)
|
|
|
|
case TypeStoryArea:
|
|
return UnmarshalStoryArea(data)
|
|
|
|
case TypeInputStoryAreaTypeLocation:
|
|
return UnmarshalInputStoryAreaTypeLocation(data)
|
|
|
|
case TypeInputStoryAreaTypeFoundVenue:
|
|
return UnmarshalInputStoryAreaTypeFoundVenue(data)
|
|
|
|
case TypeInputStoryAreaTypePreviousVenue:
|
|
return UnmarshalInputStoryAreaTypePreviousVenue(data)
|
|
|
|
case TypeInputStoryAreaTypeSuggestedReaction:
|
|
return UnmarshalInputStoryAreaTypeSuggestedReaction(data)
|
|
|
|
case TypeInputStoryAreaTypeMessage:
|
|
return UnmarshalInputStoryAreaTypeMessage(data)
|
|
|
|
case TypeInputStoryAreaTypeLink:
|
|
return UnmarshalInputStoryAreaTypeLink(data)
|
|
|
|
case TypeInputStoryAreaTypeWeather:
|
|
return UnmarshalInputStoryAreaTypeWeather(data)
|
|
|
|
case TypeInputStoryAreaTypeUpgradedGift:
|
|
return UnmarshalInputStoryAreaTypeUpgradedGift(data)
|
|
|
|
case TypeInputStoryArea:
|
|
return UnmarshalInputStoryArea(data)
|
|
|
|
case TypeInputStoryAreas:
|
|
return UnmarshalInputStoryAreas(data)
|
|
|
|
case TypeStoryVideo:
|
|
return UnmarshalStoryVideo(data)
|
|
|
|
case TypeStoryContentTypePhoto:
|
|
return UnmarshalStoryContentTypePhoto(data)
|
|
|
|
case TypeStoryContentTypeVideo:
|
|
return UnmarshalStoryContentTypeVideo(data)
|
|
|
|
case TypeStoryContentTypeLive:
|
|
return UnmarshalStoryContentTypeLive(data)
|
|
|
|
case TypeStoryContentTypeUnsupported:
|
|
return UnmarshalStoryContentTypeUnsupported(data)
|
|
|
|
case TypeStoryContentPhoto:
|
|
return UnmarshalStoryContentPhoto(data)
|
|
|
|
case TypeStoryContentVideo:
|
|
return UnmarshalStoryContentVideo(data)
|
|
|
|
case TypeStoryContentLive:
|
|
return UnmarshalStoryContentLive(data)
|
|
|
|
case TypeStoryContentUnsupported:
|
|
return UnmarshalStoryContentUnsupported(data)
|
|
|
|
case TypeInputStoryContentPhoto:
|
|
return UnmarshalInputStoryContentPhoto(data)
|
|
|
|
case TypeInputStoryContentVideo:
|
|
return UnmarshalInputStoryContentVideo(data)
|
|
|
|
case TypeStoryListMain:
|
|
return UnmarshalStoryListMain(data)
|
|
|
|
case TypeStoryListArchive:
|
|
return UnmarshalStoryListArchive(data)
|
|
|
|
case TypeStoryOriginPublicStory:
|
|
return UnmarshalStoryOriginPublicStory(data)
|
|
|
|
case TypeStoryOriginHiddenUser:
|
|
return UnmarshalStoryOriginHiddenUser(data)
|
|
|
|
case TypeStoryRepostInfo:
|
|
return UnmarshalStoryRepostInfo(data)
|
|
|
|
case TypeStoryInteractionInfo:
|
|
return UnmarshalStoryInteractionInfo(data)
|
|
|
|
case TypeStory:
|
|
return UnmarshalStory(data)
|
|
|
|
case TypeStories:
|
|
return UnmarshalStories(data)
|
|
|
|
case TypeFoundStories:
|
|
return UnmarshalFoundStories(data)
|
|
|
|
case TypeStoryAlbum:
|
|
return UnmarshalStoryAlbum(data)
|
|
|
|
case TypeStoryAlbums:
|
|
return UnmarshalStoryAlbums(data)
|
|
|
|
case TypeStoryFullId:
|
|
return UnmarshalStoryFullId(data)
|
|
|
|
case TypeStoryInfo:
|
|
return UnmarshalStoryInfo(data)
|
|
|
|
case TypeChatActiveStories:
|
|
return UnmarshalChatActiveStories(data)
|
|
|
|
case TypeStoryInteractionTypeView:
|
|
return UnmarshalStoryInteractionTypeView(data)
|
|
|
|
case TypeStoryInteractionTypeForward:
|
|
return UnmarshalStoryInteractionTypeForward(data)
|
|
|
|
case TypeStoryInteractionTypeRepost:
|
|
return UnmarshalStoryInteractionTypeRepost(data)
|
|
|
|
case TypeStoryInteraction:
|
|
return UnmarshalStoryInteraction(data)
|
|
|
|
case TypeStoryInteractions:
|
|
return UnmarshalStoryInteractions(data)
|
|
|
|
case TypeQuickReplyMessage:
|
|
return UnmarshalQuickReplyMessage(data)
|
|
|
|
case TypeQuickReplyMessages:
|
|
return UnmarshalQuickReplyMessages(data)
|
|
|
|
case TypeQuickReplyShortcut:
|
|
return UnmarshalQuickReplyShortcut(data)
|
|
|
|
case TypePublicForwardMessage:
|
|
return UnmarshalPublicForwardMessage(data)
|
|
|
|
case TypePublicForwardStory:
|
|
return UnmarshalPublicForwardStory(data)
|
|
|
|
case TypePublicForwards:
|
|
return UnmarshalPublicForwards(data)
|
|
|
|
case TypeBotMediaPreview:
|
|
return UnmarshalBotMediaPreview(data)
|
|
|
|
case TypeBotMediaPreviews:
|
|
return UnmarshalBotMediaPreviews(data)
|
|
|
|
case TypeBotMediaPreviewInfo:
|
|
return UnmarshalBotMediaPreviewInfo(data)
|
|
|
|
case TypeChatBoostLevelFeatures:
|
|
return UnmarshalChatBoostLevelFeatures(data)
|
|
|
|
case TypeChatBoostFeatures:
|
|
return UnmarshalChatBoostFeatures(data)
|
|
|
|
case TypeChatBoostSourceGiftCode:
|
|
return UnmarshalChatBoostSourceGiftCode(data)
|
|
|
|
case TypeChatBoostSourceGiveaway:
|
|
return UnmarshalChatBoostSourceGiveaway(data)
|
|
|
|
case TypeChatBoostSourcePremium:
|
|
return UnmarshalChatBoostSourcePremium(data)
|
|
|
|
case TypePrepaidGiveaway:
|
|
return UnmarshalPrepaidGiveaway(data)
|
|
|
|
case TypeChatBoostStatus:
|
|
return UnmarshalChatBoostStatus(data)
|
|
|
|
case TypeChatBoost:
|
|
return UnmarshalChatBoost(data)
|
|
|
|
case TypeFoundChatBoosts:
|
|
return UnmarshalFoundChatBoosts(data)
|
|
|
|
case TypeChatBoostSlot:
|
|
return UnmarshalChatBoostSlot(data)
|
|
|
|
case TypeChatBoostSlots:
|
|
return UnmarshalChatBoostSlots(data)
|
|
|
|
case TypeResendCodeReasonUserRequest:
|
|
return UnmarshalResendCodeReasonUserRequest(data)
|
|
|
|
case TypeResendCodeReasonVerificationFailed:
|
|
return UnmarshalResendCodeReasonVerificationFailed(data)
|
|
|
|
case TypeCallDiscardReasonEmpty:
|
|
return UnmarshalCallDiscardReasonEmpty(data)
|
|
|
|
case TypeCallDiscardReasonMissed:
|
|
return UnmarshalCallDiscardReasonMissed(data)
|
|
|
|
case TypeCallDiscardReasonDeclined:
|
|
return UnmarshalCallDiscardReasonDeclined(data)
|
|
|
|
case TypeCallDiscardReasonDisconnected:
|
|
return UnmarshalCallDiscardReasonDisconnected(data)
|
|
|
|
case TypeCallDiscardReasonHungUp:
|
|
return UnmarshalCallDiscardReasonHungUp(data)
|
|
|
|
case TypeCallDiscardReasonUpgradeToGroupCall:
|
|
return UnmarshalCallDiscardReasonUpgradeToGroupCall(data)
|
|
|
|
case TypeCallProtocol:
|
|
return UnmarshalCallProtocol(data)
|
|
|
|
case TypeCallServerTypeTelegramReflector:
|
|
return UnmarshalCallServerTypeTelegramReflector(data)
|
|
|
|
case TypeCallServerTypeWebrtc:
|
|
return UnmarshalCallServerTypeWebrtc(data)
|
|
|
|
case TypeCallServer:
|
|
return UnmarshalCallServer(data)
|
|
|
|
case TypeCallId:
|
|
return UnmarshalCallId(data)
|
|
|
|
case TypeGroupCallId:
|
|
return UnmarshalGroupCallId(data)
|
|
|
|
case TypeCallStatePending:
|
|
return UnmarshalCallStatePending(data)
|
|
|
|
case TypeCallStateExchangingKeys:
|
|
return UnmarshalCallStateExchangingKeys(data)
|
|
|
|
case TypeCallStateReady:
|
|
return UnmarshalCallStateReady(data)
|
|
|
|
case TypeCallStateHangingUp:
|
|
return UnmarshalCallStateHangingUp(data)
|
|
|
|
case TypeCallStateDiscarded:
|
|
return UnmarshalCallStateDiscarded(data)
|
|
|
|
case TypeCallStateError:
|
|
return UnmarshalCallStateError(data)
|
|
|
|
case TypeGroupCallJoinParameters:
|
|
return UnmarshalGroupCallJoinParameters(data)
|
|
|
|
case TypeGroupCallVideoQualityThumbnail:
|
|
return UnmarshalGroupCallVideoQualityThumbnail(data)
|
|
|
|
case TypeGroupCallVideoQualityMedium:
|
|
return UnmarshalGroupCallVideoQualityMedium(data)
|
|
|
|
case TypeGroupCallVideoQualityFull:
|
|
return UnmarshalGroupCallVideoQualityFull(data)
|
|
|
|
case TypeGroupCallStream:
|
|
return UnmarshalGroupCallStream(data)
|
|
|
|
case TypeGroupCallStreams:
|
|
return UnmarshalGroupCallStreams(data)
|
|
|
|
case TypeRtmpUrl:
|
|
return UnmarshalRtmpUrl(data)
|
|
|
|
case TypeGroupCallRecentSpeaker:
|
|
return UnmarshalGroupCallRecentSpeaker(data)
|
|
|
|
case TypeGroupCall:
|
|
return UnmarshalGroupCall(data)
|
|
|
|
case TypeGroupCallVideoSourceGroup:
|
|
return UnmarshalGroupCallVideoSourceGroup(data)
|
|
|
|
case TypeGroupCallParticipantVideoInfo:
|
|
return UnmarshalGroupCallParticipantVideoInfo(data)
|
|
|
|
case TypeGroupCallParticipant:
|
|
return UnmarshalGroupCallParticipant(data)
|
|
|
|
case TypeGroupCallParticipants:
|
|
return UnmarshalGroupCallParticipants(data)
|
|
|
|
case TypeGroupCallInfo:
|
|
return UnmarshalGroupCallInfo(data)
|
|
|
|
case TypeGroupCallMessage:
|
|
return UnmarshalGroupCallMessage(data)
|
|
|
|
case TypeGroupCallMessageLevel:
|
|
return UnmarshalGroupCallMessageLevel(data)
|
|
|
|
case TypeInviteGroupCallParticipantResultUserPrivacyRestricted:
|
|
return UnmarshalInviteGroupCallParticipantResultUserPrivacyRestricted(data)
|
|
|
|
case TypeInviteGroupCallParticipantResultUserAlreadyParticipant:
|
|
return UnmarshalInviteGroupCallParticipantResultUserAlreadyParticipant(data)
|
|
|
|
case TypeInviteGroupCallParticipantResultUserWasBanned:
|
|
return UnmarshalInviteGroupCallParticipantResultUserWasBanned(data)
|
|
|
|
case TypeInviteGroupCallParticipantResultSuccess:
|
|
return UnmarshalInviteGroupCallParticipantResultSuccess(data)
|
|
|
|
case TypeGroupCallDataChannelMain:
|
|
return UnmarshalGroupCallDataChannelMain(data)
|
|
|
|
case TypeGroupCallDataChannelScreenSharing:
|
|
return UnmarshalGroupCallDataChannelScreenSharing(data)
|
|
|
|
case TypeInputGroupCallLink:
|
|
return UnmarshalInputGroupCallLink(data)
|
|
|
|
case TypeInputGroupCallMessage:
|
|
return UnmarshalInputGroupCallMessage(data)
|
|
|
|
case TypeCallProblemEcho:
|
|
return UnmarshalCallProblemEcho(data)
|
|
|
|
case TypeCallProblemNoise:
|
|
return UnmarshalCallProblemNoise(data)
|
|
|
|
case TypeCallProblemInterruptions:
|
|
return UnmarshalCallProblemInterruptions(data)
|
|
|
|
case TypeCallProblemDistortedSpeech:
|
|
return UnmarshalCallProblemDistortedSpeech(data)
|
|
|
|
case TypeCallProblemSilentLocal:
|
|
return UnmarshalCallProblemSilentLocal(data)
|
|
|
|
case TypeCallProblemSilentRemote:
|
|
return UnmarshalCallProblemSilentRemote(data)
|
|
|
|
case TypeCallProblemDropped:
|
|
return UnmarshalCallProblemDropped(data)
|
|
|
|
case TypeCallProblemDistortedVideo:
|
|
return UnmarshalCallProblemDistortedVideo(data)
|
|
|
|
case TypeCallProblemPixelatedVideo:
|
|
return UnmarshalCallProblemPixelatedVideo(data)
|
|
|
|
case TypeCall:
|
|
return UnmarshalCall(data)
|
|
|
|
case TypeFirebaseAuthenticationSettingsAndroid:
|
|
return UnmarshalFirebaseAuthenticationSettingsAndroid(data)
|
|
|
|
case TypeFirebaseAuthenticationSettingsIos:
|
|
return UnmarshalFirebaseAuthenticationSettingsIos(data)
|
|
|
|
case TypePhoneNumberAuthenticationSettings:
|
|
return UnmarshalPhoneNumberAuthenticationSettings(data)
|
|
|
|
case TypeAddedReaction:
|
|
return UnmarshalAddedReaction(data)
|
|
|
|
case TypeAddedReactions:
|
|
return UnmarshalAddedReactions(data)
|
|
|
|
case TypeAvailableReaction:
|
|
return UnmarshalAvailableReaction(data)
|
|
|
|
case TypeAvailableReactions:
|
|
return UnmarshalAvailableReactions(data)
|
|
|
|
case TypeEmojiReaction:
|
|
return UnmarshalEmojiReaction(data)
|
|
|
|
case TypeReactionUnavailabilityReasonAnonymousAdministrator:
|
|
return UnmarshalReactionUnavailabilityReasonAnonymousAdministrator(data)
|
|
|
|
case TypeReactionUnavailabilityReasonGuest:
|
|
return UnmarshalReactionUnavailabilityReasonGuest(data)
|
|
|
|
case TypeAnimations:
|
|
return UnmarshalAnimations(data)
|
|
|
|
case TypeDiceStickersRegular:
|
|
return UnmarshalDiceStickersRegular(data)
|
|
|
|
case TypeDiceStickersSlotMachine:
|
|
return UnmarshalDiceStickersSlotMachine(data)
|
|
|
|
case TypeImportedContact:
|
|
return UnmarshalImportedContact(data)
|
|
|
|
case TypeImportedContacts:
|
|
return UnmarshalImportedContacts(data)
|
|
|
|
case TypeSpeechRecognitionResultPending:
|
|
return UnmarshalSpeechRecognitionResultPending(data)
|
|
|
|
case TypeSpeechRecognitionResultText:
|
|
return UnmarshalSpeechRecognitionResultText(data)
|
|
|
|
case TypeSpeechRecognitionResultError:
|
|
return UnmarshalSpeechRecognitionResultError(data)
|
|
|
|
case TypeBusinessConnection:
|
|
return UnmarshalBusinessConnection(data)
|
|
|
|
case TypeAttachmentMenuBotColor:
|
|
return UnmarshalAttachmentMenuBotColor(data)
|
|
|
|
case TypeAttachmentMenuBot:
|
|
return UnmarshalAttachmentMenuBot(data)
|
|
|
|
case TypeSentWebAppMessage:
|
|
return UnmarshalSentWebAppMessage(data)
|
|
|
|
case TypeBotWriteAccessAllowReasonConnectedWebsite:
|
|
return UnmarshalBotWriteAccessAllowReasonConnectedWebsite(data)
|
|
|
|
case TypeBotWriteAccessAllowReasonAddedToAttachmentMenu:
|
|
return UnmarshalBotWriteAccessAllowReasonAddedToAttachmentMenu(data)
|
|
|
|
case TypeBotWriteAccessAllowReasonLaunchedWebApp:
|
|
return UnmarshalBotWriteAccessAllowReasonLaunchedWebApp(data)
|
|
|
|
case TypeBotWriteAccessAllowReasonAcceptedRequest:
|
|
return UnmarshalBotWriteAccessAllowReasonAcceptedRequest(data)
|
|
|
|
case TypeHttpUrl:
|
|
return UnmarshalHttpUrl(data)
|
|
|
|
case TypeUserLink:
|
|
return UnmarshalUserLink(data)
|
|
|
|
case TypeTargetChatTypes:
|
|
return UnmarshalTargetChatTypes(data)
|
|
|
|
case TypeTargetChatCurrent:
|
|
return UnmarshalTargetChatCurrent(data)
|
|
|
|
case TypeTargetChatChosen:
|
|
return UnmarshalTargetChatChosen(data)
|
|
|
|
case TypeTargetChatInternalLink:
|
|
return UnmarshalTargetChatInternalLink(data)
|
|
|
|
case TypeInputInlineQueryResultAnimation:
|
|
return UnmarshalInputInlineQueryResultAnimation(data)
|
|
|
|
case TypeInputInlineQueryResultArticle:
|
|
return UnmarshalInputInlineQueryResultArticle(data)
|
|
|
|
case TypeInputInlineQueryResultAudio:
|
|
return UnmarshalInputInlineQueryResultAudio(data)
|
|
|
|
case TypeInputInlineQueryResultContact:
|
|
return UnmarshalInputInlineQueryResultContact(data)
|
|
|
|
case TypeInputInlineQueryResultDocument:
|
|
return UnmarshalInputInlineQueryResultDocument(data)
|
|
|
|
case TypeInputInlineQueryResultGame:
|
|
return UnmarshalInputInlineQueryResultGame(data)
|
|
|
|
case TypeInputInlineQueryResultLocation:
|
|
return UnmarshalInputInlineQueryResultLocation(data)
|
|
|
|
case TypeInputInlineQueryResultPhoto:
|
|
return UnmarshalInputInlineQueryResultPhoto(data)
|
|
|
|
case TypeInputInlineQueryResultSticker:
|
|
return UnmarshalInputInlineQueryResultSticker(data)
|
|
|
|
case TypeInputInlineQueryResultVenue:
|
|
return UnmarshalInputInlineQueryResultVenue(data)
|
|
|
|
case TypeInputInlineQueryResultVideo:
|
|
return UnmarshalInputInlineQueryResultVideo(data)
|
|
|
|
case TypeInputInlineQueryResultVoiceNote:
|
|
return UnmarshalInputInlineQueryResultVoiceNote(data)
|
|
|
|
case TypeInlineQueryResultArticle:
|
|
return UnmarshalInlineQueryResultArticle(data)
|
|
|
|
case TypeInlineQueryResultContact:
|
|
return UnmarshalInlineQueryResultContact(data)
|
|
|
|
case TypeInlineQueryResultLocation:
|
|
return UnmarshalInlineQueryResultLocation(data)
|
|
|
|
case TypeInlineQueryResultVenue:
|
|
return UnmarshalInlineQueryResultVenue(data)
|
|
|
|
case TypeInlineQueryResultGame:
|
|
return UnmarshalInlineQueryResultGame(data)
|
|
|
|
case TypeInlineQueryResultAnimation:
|
|
return UnmarshalInlineQueryResultAnimation(data)
|
|
|
|
case TypeInlineQueryResultAudio:
|
|
return UnmarshalInlineQueryResultAudio(data)
|
|
|
|
case TypeInlineQueryResultDocument:
|
|
return UnmarshalInlineQueryResultDocument(data)
|
|
|
|
case TypeInlineQueryResultPhoto:
|
|
return UnmarshalInlineQueryResultPhoto(data)
|
|
|
|
case TypeInlineQueryResultSticker:
|
|
return UnmarshalInlineQueryResultSticker(data)
|
|
|
|
case TypeInlineQueryResultVideo:
|
|
return UnmarshalInlineQueryResultVideo(data)
|
|
|
|
case TypeInlineQueryResultVoiceNote:
|
|
return UnmarshalInlineQueryResultVoiceNote(data)
|
|
|
|
case TypeInlineQueryResultsButtonTypeStartBot:
|
|
return UnmarshalInlineQueryResultsButtonTypeStartBot(data)
|
|
|
|
case TypeInlineQueryResultsButtonTypeWebApp:
|
|
return UnmarshalInlineQueryResultsButtonTypeWebApp(data)
|
|
|
|
case TypeInlineQueryResultsButton:
|
|
return UnmarshalInlineQueryResultsButton(data)
|
|
|
|
case TypeInlineQueryResults:
|
|
return UnmarshalInlineQueryResults(data)
|
|
|
|
case TypePreparedInlineMessageId:
|
|
return UnmarshalPreparedInlineMessageId(data)
|
|
|
|
case TypePreparedInlineMessage:
|
|
return UnmarshalPreparedInlineMessage(data)
|
|
|
|
case TypeCallbackQueryPayloadData:
|
|
return UnmarshalCallbackQueryPayloadData(data)
|
|
|
|
case TypeCallbackQueryPayloadDataWithPassword:
|
|
return UnmarshalCallbackQueryPayloadDataWithPassword(data)
|
|
|
|
case TypeCallbackQueryPayloadGame:
|
|
return UnmarshalCallbackQueryPayloadGame(data)
|
|
|
|
case TypeCallbackQueryAnswer:
|
|
return UnmarshalCallbackQueryAnswer(data)
|
|
|
|
case TypeCustomRequestResult:
|
|
return UnmarshalCustomRequestResult(data)
|
|
|
|
case TypeGameHighScore:
|
|
return UnmarshalGameHighScore(data)
|
|
|
|
case TypeGameHighScores:
|
|
return UnmarshalGameHighScores(data)
|
|
|
|
case TypeChatEventMessageEdited:
|
|
return UnmarshalChatEventMessageEdited(data)
|
|
|
|
case TypeChatEventMessageDeleted:
|
|
return UnmarshalChatEventMessageDeleted(data)
|
|
|
|
case TypeChatEventMessagePinned:
|
|
return UnmarshalChatEventMessagePinned(data)
|
|
|
|
case TypeChatEventMessageUnpinned:
|
|
return UnmarshalChatEventMessageUnpinned(data)
|
|
|
|
case TypeChatEventPollStopped:
|
|
return UnmarshalChatEventPollStopped(data)
|
|
|
|
case TypeChatEventMemberJoined:
|
|
return UnmarshalChatEventMemberJoined(data)
|
|
|
|
case TypeChatEventMemberJoinedByInviteLink:
|
|
return UnmarshalChatEventMemberJoinedByInviteLink(data)
|
|
|
|
case TypeChatEventMemberJoinedByRequest:
|
|
return UnmarshalChatEventMemberJoinedByRequest(data)
|
|
|
|
case TypeChatEventMemberInvited:
|
|
return UnmarshalChatEventMemberInvited(data)
|
|
|
|
case TypeChatEventMemberLeft:
|
|
return UnmarshalChatEventMemberLeft(data)
|
|
|
|
case TypeChatEventMemberPromoted:
|
|
return UnmarshalChatEventMemberPromoted(data)
|
|
|
|
case TypeChatEventMemberRestricted:
|
|
return UnmarshalChatEventMemberRestricted(data)
|
|
|
|
case TypeChatEventMemberSubscriptionExtended:
|
|
return UnmarshalChatEventMemberSubscriptionExtended(data)
|
|
|
|
case TypeChatEventAvailableReactionsChanged:
|
|
return UnmarshalChatEventAvailableReactionsChanged(data)
|
|
|
|
case TypeChatEventBackgroundChanged:
|
|
return UnmarshalChatEventBackgroundChanged(data)
|
|
|
|
case TypeChatEventDescriptionChanged:
|
|
return UnmarshalChatEventDescriptionChanged(data)
|
|
|
|
case TypeChatEventEmojiStatusChanged:
|
|
return UnmarshalChatEventEmojiStatusChanged(data)
|
|
|
|
case TypeChatEventLinkedChatChanged:
|
|
return UnmarshalChatEventLinkedChatChanged(data)
|
|
|
|
case TypeChatEventLocationChanged:
|
|
return UnmarshalChatEventLocationChanged(data)
|
|
|
|
case TypeChatEventMessageAutoDeleteTimeChanged:
|
|
return UnmarshalChatEventMessageAutoDeleteTimeChanged(data)
|
|
|
|
case TypeChatEventPermissionsChanged:
|
|
return UnmarshalChatEventPermissionsChanged(data)
|
|
|
|
case TypeChatEventPhotoChanged:
|
|
return UnmarshalChatEventPhotoChanged(data)
|
|
|
|
case TypeChatEventSlowModeDelayChanged:
|
|
return UnmarshalChatEventSlowModeDelayChanged(data)
|
|
|
|
case TypeChatEventStickerSetChanged:
|
|
return UnmarshalChatEventStickerSetChanged(data)
|
|
|
|
case TypeChatEventCustomEmojiStickerSetChanged:
|
|
return UnmarshalChatEventCustomEmojiStickerSetChanged(data)
|
|
|
|
case TypeChatEventTitleChanged:
|
|
return UnmarshalChatEventTitleChanged(data)
|
|
|
|
case TypeChatEventUsernameChanged:
|
|
return UnmarshalChatEventUsernameChanged(data)
|
|
|
|
case TypeChatEventActiveUsernamesChanged:
|
|
return UnmarshalChatEventActiveUsernamesChanged(data)
|
|
|
|
case TypeChatEventAccentColorChanged:
|
|
return UnmarshalChatEventAccentColorChanged(data)
|
|
|
|
case TypeChatEventProfileAccentColorChanged:
|
|
return UnmarshalChatEventProfileAccentColorChanged(data)
|
|
|
|
case TypeChatEventHasProtectedContentToggled:
|
|
return UnmarshalChatEventHasProtectedContentToggled(data)
|
|
|
|
case TypeChatEventInvitesToggled:
|
|
return UnmarshalChatEventInvitesToggled(data)
|
|
|
|
case TypeChatEventIsAllHistoryAvailableToggled:
|
|
return UnmarshalChatEventIsAllHistoryAvailableToggled(data)
|
|
|
|
case TypeChatEventHasAggressiveAntiSpamEnabledToggled:
|
|
return UnmarshalChatEventHasAggressiveAntiSpamEnabledToggled(data)
|
|
|
|
case TypeChatEventSignMessagesToggled:
|
|
return UnmarshalChatEventSignMessagesToggled(data)
|
|
|
|
case TypeChatEventShowMessageSenderToggled:
|
|
return UnmarshalChatEventShowMessageSenderToggled(data)
|
|
|
|
case TypeChatEventAutomaticTranslationToggled:
|
|
return UnmarshalChatEventAutomaticTranslationToggled(data)
|
|
|
|
case TypeChatEventInviteLinkEdited:
|
|
return UnmarshalChatEventInviteLinkEdited(data)
|
|
|
|
case TypeChatEventInviteLinkRevoked:
|
|
return UnmarshalChatEventInviteLinkRevoked(data)
|
|
|
|
case TypeChatEventInviteLinkDeleted:
|
|
return UnmarshalChatEventInviteLinkDeleted(data)
|
|
|
|
case TypeChatEventVideoChatCreated:
|
|
return UnmarshalChatEventVideoChatCreated(data)
|
|
|
|
case TypeChatEventVideoChatEnded:
|
|
return UnmarshalChatEventVideoChatEnded(data)
|
|
|
|
case TypeChatEventVideoChatMuteNewParticipantsToggled:
|
|
return UnmarshalChatEventVideoChatMuteNewParticipantsToggled(data)
|
|
|
|
case TypeChatEventVideoChatParticipantIsMutedToggled:
|
|
return UnmarshalChatEventVideoChatParticipantIsMutedToggled(data)
|
|
|
|
case TypeChatEventVideoChatParticipantVolumeLevelChanged:
|
|
return UnmarshalChatEventVideoChatParticipantVolumeLevelChanged(data)
|
|
|
|
case TypeChatEventIsForumToggled:
|
|
return UnmarshalChatEventIsForumToggled(data)
|
|
|
|
case TypeChatEventForumTopicCreated:
|
|
return UnmarshalChatEventForumTopicCreated(data)
|
|
|
|
case TypeChatEventForumTopicEdited:
|
|
return UnmarshalChatEventForumTopicEdited(data)
|
|
|
|
case TypeChatEventForumTopicToggleIsClosed:
|
|
return UnmarshalChatEventForumTopicToggleIsClosed(data)
|
|
|
|
case TypeChatEventForumTopicToggleIsHidden:
|
|
return UnmarshalChatEventForumTopicToggleIsHidden(data)
|
|
|
|
case TypeChatEventForumTopicDeleted:
|
|
return UnmarshalChatEventForumTopicDeleted(data)
|
|
|
|
case TypeChatEventForumTopicPinned:
|
|
return UnmarshalChatEventForumTopicPinned(data)
|
|
|
|
case TypeChatEvent:
|
|
return UnmarshalChatEvent(data)
|
|
|
|
case TypeChatEvents:
|
|
return UnmarshalChatEvents(data)
|
|
|
|
case TypeChatEventLogFilters:
|
|
return UnmarshalChatEventLogFilters(data)
|
|
|
|
case TypeLanguagePackStringValueOrdinary:
|
|
return UnmarshalLanguagePackStringValueOrdinary(data)
|
|
|
|
case TypeLanguagePackStringValuePluralized:
|
|
return UnmarshalLanguagePackStringValuePluralized(data)
|
|
|
|
case TypeLanguagePackStringValueDeleted:
|
|
return UnmarshalLanguagePackStringValueDeleted(data)
|
|
|
|
case TypeLanguagePackString:
|
|
return UnmarshalLanguagePackString(data)
|
|
|
|
case TypeLanguagePackStrings:
|
|
return UnmarshalLanguagePackStrings(data)
|
|
|
|
case TypeLanguagePackInfo:
|
|
return UnmarshalLanguagePackInfo(data)
|
|
|
|
case TypeLocalizationTargetInfo:
|
|
return UnmarshalLocalizationTargetInfo(data)
|
|
|
|
case TypePremiumLimitTypeSupergroupCount:
|
|
return UnmarshalPremiumLimitTypeSupergroupCount(data)
|
|
|
|
case TypePremiumLimitTypePinnedChatCount:
|
|
return UnmarshalPremiumLimitTypePinnedChatCount(data)
|
|
|
|
case TypePremiumLimitTypeCreatedPublicChatCount:
|
|
return UnmarshalPremiumLimitTypeCreatedPublicChatCount(data)
|
|
|
|
case TypePremiumLimitTypeSavedAnimationCount:
|
|
return UnmarshalPremiumLimitTypeSavedAnimationCount(data)
|
|
|
|
case TypePremiumLimitTypeFavoriteStickerCount:
|
|
return UnmarshalPremiumLimitTypeFavoriteStickerCount(data)
|
|
|
|
case TypePremiumLimitTypeChatFolderCount:
|
|
return UnmarshalPremiumLimitTypeChatFolderCount(data)
|
|
|
|
case TypePremiumLimitTypeChatFolderChosenChatCount:
|
|
return UnmarshalPremiumLimitTypeChatFolderChosenChatCount(data)
|
|
|
|
case TypePremiumLimitTypePinnedArchivedChatCount:
|
|
return UnmarshalPremiumLimitTypePinnedArchivedChatCount(data)
|
|
|
|
case TypePremiumLimitTypePinnedSavedMessagesTopicCount:
|
|
return UnmarshalPremiumLimitTypePinnedSavedMessagesTopicCount(data)
|
|
|
|
case TypePremiumLimitTypeCaptionLength:
|
|
return UnmarshalPremiumLimitTypeCaptionLength(data)
|
|
|
|
case TypePremiumLimitTypeBioLength:
|
|
return UnmarshalPremiumLimitTypeBioLength(data)
|
|
|
|
case TypePremiumLimitTypeChatFolderInviteLinkCount:
|
|
return UnmarshalPremiumLimitTypeChatFolderInviteLinkCount(data)
|
|
|
|
case TypePremiumLimitTypeShareableChatFolderCount:
|
|
return UnmarshalPremiumLimitTypeShareableChatFolderCount(data)
|
|
|
|
case TypePremiumLimitTypeActiveStoryCount:
|
|
return UnmarshalPremiumLimitTypeActiveStoryCount(data)
|
|
|
|
case TypePremiumLimitTypeWeeklyPostedStoryCount:
|
|
return UnmarshalPremiumLimitTypeWeeklyPostedStoryCount(data)
|
|
|
|
case TypePremiumLimitTypeMonthlyPostedStoryCount:
|
|
return UnmarshalPremiumLimitTypeMonthlyPostedStoryCount(data)
|
|
|
|
case TypePremiumLimitTypeStoryCaptionLength:
|
|
return UnmarshalPremiumLimitTypeStoryCaptionLength(data)
|
|
|
|
case TypePremiumLimitTypeStorySuggestedReactionAreaCount:
|
|
return UnmarshalPremiumLimitTypeStorySuggestedReactionAreaCount(data)
|
|
|
|
case TypePremiumLimitTypeSimilarChatCount:
|
|
return UnmarshalPremiumLimitTypeSimilarChatCount(data)
|
|
|
|
case TypePremiumFeatureIncreasedLimits:
|
|
return UnmarshalPremiumFeatureIncreasedLimits(data)
|
|
|
|
case TypePremiumFeatureIncreasedUploadFileSize:
|
|
return UnmarshalPremiumFeatureIncreasedUploadFileSize(data)
|
|
|
|
case TypePremiumFeatureImprovedDownloadSpeed:
|
|
return UnmarshalPremiumFeatureImprovedDownloadSpeed(data)
|
|
|
|
case TypePremiumFeatureVoiceRecognition:
|
|
return UnmarshalPremiumFeatureVoiceRecognition(data)
|
|
|
|
case TypePremiumFeatureDisabledAds:
|
|
return UnmarshalPremiumFeatureDisabledAds(data)
|
|
|
|
case TypePremiumFeatureUniqueReactions:
|
|
return UnmarshalPremiumFeatureUniqueReactions(data)
|
|
|
|
case TypePremiumFeatureUniqueStickers:
|
|
return UnmarshalPremiumFeatureUniqueStickers(data)
|
|
|
|
case TypePremiumFeatureCustomEmoji:
|
|
return UnmarshalPremiumFeatureCustomEmoji(data)
|
|
|
|
case TypePremiumFeatureAdvancedChatManagement:
|
|
return UnmarshalPremiumFeatureAdvancedChatManagement(data)
|
|
|
|
case TypePremiumFeatureProfileBadge:
|
|
return UnmarshalPremiumFeatureProfileBadge(data)
|
|
|
|
case TypePremiumFeatureEmojiStatus:
|
|
return UnmarshalPremiumFeatureEmojiStatus(data)
|
|
|
|
case TypePremiumFeatureAnimatedProfilePhoto:
|
|
return UnmarshalPremiumFeatureAnimatedProfilePhoto(data)
|
|
|
|
case TypePremiumFeatureForumTopicIcon:
|
|
return UnmarshalPremiumFeatureForumTopicIcon(data)
|
|
|
|
case TypePremiumFeatureAppIcons:
|
|
return UnmarshalPremiumFeatureAppIcons(data)
|
|
|
|
case TypePremiumFeatureRealTimeChatTranslation:
|
|
return UnmarshalPremiumFeatureRealTimeChatTranslation(data)
|
|
|
|
case TypePremiumFeatureUpgradedStories:
|
|
return UnmarshalPremiumFeatureUpgradedStories(data)
|
|
|
|
case TypePremiumFeatureChatBoost:
|
|
return UnmarshalPremiumFeatureChatBoost(data)
|
|
|
|
case TypePremiumFeatureAccentColor:
|
|
return UnmarshalPremiumFeatureAccentColor(data)
|
|
|
|
case TypePremiumFeatureBackgroundForBoth:
|
|
return UnmarshalPremiumFeatureBackgroundForBoth(data)
|
|
|
|
case TypePremiumFeatureSavedMessagesTags:
|
|
return UnmarshalPremiumFeatureSavedMessagesTags(data)
|
|
|
|
case TypePremiumFeatureMessagePrivacy:
|
|
return UnmarshalPremiumFeatureMessagePrivacy(data)
|
|
|
|
case TypePremiumFeatureLastSeenTimes:
|
|
return UnmarshalPremiumFeatureLastSeenTimes(data)
|
|
|
|
case TypePremiumFeatureBusiness:
|
|
return UnmarshalPremiumFeatureBusiness(data)
|
|
|
|
case TypePremiumFeatureMessageEffects:
|
|
return UnmarshalPremiumFeatureMessageEffects(data)
|
|
|
|
case TypePremiumFeatureChecklists:
|
|
return UnmarshalPremiumFeatureChecklists(data)
|
|
|
|
case TypePremiumFeaturePaidMessages:
|
|
return UnmarshalPremiumFeaturePaidMessages(data)
|
|
|
|
case TypeBusinessFeatureLocation:
|
|
return UnmarshalBusinessFeatureLocation(data)
|
|
|
|
case TypeBusinessFeatureOpeningHours:
|
|
return UnmarshalBusinessFeatureOpeningHours(data)
|
|
|
|
case TypeBusinessFeatureQuickReplies:
|
|
return UnmarshalBusinessFeatureQuickReplies(data)
|
|
|
|
case TypeBusinessFeatureGreetingMessage:
|
|
return UnmarshalBusinessFeatureGreetingMessage(data)
|
|
|
|
case TypeBusinessFeatureAwayMessage:
|
|
return UnmarshalBusinessFeatureAwayMessage(data)
|
|
|
|
case TypeBusinessFeatureAccountLinks:
|
|
return UnmarshalBusinessFeatureAccountLinks(data)
|
|
|
|
case TypeBusinessFeatureStartPage:
|
|
return UnmarshalBusinessFeatureStartPage(data)
|
|
|
|
case TypeBusinessFeatureBots:
|
|
return UnmarshalBusinessFeatureBots(data)
|
|
|
|
case TypeBusinessFeatureEmojiStatus:
|
|
return UnmarshalBusinessFeatureEmojiStatus(data)
|
|
|
|
case TypeBusinessFeatureChatFolderTags:
|
|
return UnmarshalBusinessFeatureChatFolderTags(data)
|
|
|
|
case TypeBusinessFeatureUpgradedStories:
|
|
return UnmarshalBusinessFeatureUpgradedStories(data)
|
|
|
|
case TypePremiumStoryFeaturePriorityOrder:
|
|
return UnmarshalPremiumStoryFeaturePriorityOrder(data)
|
|
|
|
case TypePremiumStoryFeatureStealthMode:
|
|
return UnmarshalPremiumStoryFeatureStealthMode(data)
|
|
|
|
case TypePremiumStoryFeaturePermanentViewsHistory:
|
|
return UnmarshalPremiumStoryFeaturePermanentViewsHistory(data)
|
|
|
|
case TypePremiumStoryFeatureCustomExpirationDuration:
|
|
return UnmarshalPremiumStoryFeatureCustomExpirationDuration(data)
|
|
|
|
case TypePremiumStoryFeatureSaveStories:
|
|
return UnmarshalPremiumStoryFeatureSaveStories(data)
|
|
|
|
case TypePremiumStoryFeatureLinksAndFormatting:
|
|
return UnmarshalPremiumStoryFeatureLinksAndFormatting(data)
|
|
|
|
case TypePremiumStoryFeatureVideoQuality:
|
|
return UnmarshalPremiumStoryFeatureVideoQuality(data)
|
|
|
|
case TypePremiumLimit:
|
|
return UnmarshalPremiumLimit(data)
|
|
|
|
case TypePremiumFeatures:
|
|
return UnmarshalPremiumFeatures(data)
|
|
|
|
case TypeBusinessFeatures:
|
|
return UnmarshalBusinessFeatures(data)
|
|
|
|
case TypePremiumSourceLimitExceeded:
|
|
return UnmarshalPremiumSourceLimitExceeded(data)
|
|
|
|
case TypePremiumSourceFeature:
|
|
return UnmarshalPremiumSourceFeature(data)
|
|
|
|
case TypePremiumSourceBusinessFeature:
|
|
return UnmarshalPremiumSourceBusinessFeature(data)
|
|
|
|
case TypePremiumSourceStoryFeature:
|
|
return UnmarshalPremiumSourceStoryFeature(data)
|
|
|
|
case TypePremiumSourceLink:
|
|
return UnmarshalPremiumSourceLink(data)
|
|
|
|
case TypePremiumSourceSettings:
|
|
return UnmarshalPremiumSourceSettings(data)
|
|
|
|
case TypePremiumFeaturePromotionAnimation:
|
|
return UnmarshalPremiumFeaturePromotionAnimation(data)
|
|
|
|
case TypeBusinessFeaturePromotionAnimation:
|
|
return UnmarshalBusinessFeaturePromotionAnimation(data)
|
|
|
|
case TypePremiumState:
|
|
return UnmarshalPremiumState(data)
|
|
|
|
case TypeStorePaymentPurposePremiumSubscription:
|
|
return UnmarshalStorePaymentPurposePremiumSubscription(data)
|
|
|
|
case TypeStorePaymentPurposePremiumGift:
|
|
return UnmarshalStorePaymentPurposePremiumGift(data)
|
|
|
|
case TypeStorePaymentPurposePremiumGiftCodes:
|
|
return UnmarshalStorePaymentPurposePremiumGiftCodes(data)
|
|
|
|
case TypeStorePaymentPurposePremiumGiveaway:
|
|
return UnmarshalStorePaymentPurposePremiumGiveaway(data)
|
|
|
|
case TypeStorePaymentPurposeStarGiveaway:
|
|
return UnmarshalStorePaymentPurposeStarGiveaway(data)
|
|
|
|
case TypeStorePaymentPurposeStars:
|
|
return UnmarshalStorePaymentPurposeStars(data)
|
|
|
|
case TypeStorePaymentPurposeGiftedStars:
|
|
return UnmarshalStorePaymentPurposeGiftedStars(data)
|
|
|
|
case TypeStoreTransactionAppStore:
|
|
return UnmarshalStoreTransactionAppStore(data)
|
|
|
|
case TypeStoreTransactionGooglePlay:
|
|
return UnmarshalStoreTransactionGooglePlay(data)
|
|
|
|
case TypeTelegramPaymentPurposePremiumGift:
|
|
return UnmarshalTelegramPaymentPurposePremiumGift(data)
|
|
|
|
case TypeTelegramPaymentPurposePremiumGiftCodes:
|
|
return UnmarshalTelegramPaymentPurposePremiumGiftCodes(data)
|
|
|
|
case TypeTelegramPaymentPurposePremiumGiveaway:
|
|
return UnmarshalTelegramPaymentPurposePremiumGiveaway(data)
|
|
|
|
case TypeTelegramPaymentPurposeStars:
|
|
return UnmarshalTelegramPaymentPurposeStars(data)
|
|
|
|
case TypeTelegramPaymentPurposeGiftedStars:
|
|
return UnmarshalTelegramPaymentPurposeGiftedStars(data)
|
|
|
|
case TypeTelegramPaymentPurposeStarGiveaway:
|
|
return UnmarshalTelegramPaymentPurposeStarGiveaway(data)
|
|
|
|
case TypeTelegramPaymentPurposeJoinChat:
|
|
return UnmarshalTelegramPaymentPurposeJoinChat(data)
|
|
|
|
case TypeDeviceTokenFirebaseCloudMessaging:
|
|
return UnmarshalDeviceTokenFirebaseCloudMessaging(data)
|
|
|
|
case TypeDeviceTokenApplePush:
|
|
return UnmarshalDeviceTokenApplePush(data)
|
|
|
|
case TypeDeviceTokenApplePushVoIP:
|
|
return UnmarshalDeviceTokenApplePushVoIP(data)
|
|
|
|
case TypeDeviceTokenWindowsPush:
|
|
return UnmarshalDeviceTokenWindowsPush(data)
|
|
|
|
case TypeDeviceTokenMicrosoftPush:
|
|
return UnmarshalDeviceTokenMicrosoftPush(data)
|
|
|
|
case TypeDeviceTokenMicrosoftPushVoIP:
|
|
return UnmarshalDeviceTokenMicrosoftPushVoIP(data)
|
|
|
|
case TypeDeviceTokenWebPush:
|
|
return UnmarshalDeviceTokenWebPush(data)
|
|
|
|
case TypeDeviceTokenSimplePush:
|
|
return UnmarshalDeviceTokenSimplePush(data)
|
|
|
|
case TypeDeviceTokenUbuntuPush:
|
|
return UnmarshalDeviceTokenUbuntuPush(data)
|
|
|
|
case TypeDeviceTokenBlackBerryPush:
|
|
return UnmarshalDeviceTokenBlackBerryPush(data)
|
|
|
|
case TypeDeviceTokenTizenPush:
|
|
return UnmarshalDeviceTokenTizenPush(data)
|
|
|
|
case TypeDeviceTokenHuaweiPush:
|
|
return UnmarshalDeviceTokenHuaweiPush(data)
|
|
|
|
case TypePushReceiverId:
|
|
return UnmarshalPushReceiverId(data)
|
|
|
|
case TypeBackgroundFillSolid:
|
|
return UnmarshalBackgroundFillSolid(data)
|
|
|
|
case TypeBackgroundFillGradient:
|
|
return UnmarshalBackgroundFillGradient(data)
|
|
|
|
case TypeBackgroundFillFreeformGradient:
|
|
return UnmarshalBackgroundFillFreeformGradient(data)
|
|
|
|
case TypeBackgroundTypeWallpaper:
|
|
return UnmarshalBackgroundTypeWallpaper(data)
|
|
|
|
case TypeBackgroundTypePattern:
|
|
return UnmarshalBackgroundTypePattern(data)
|
|
|
|
case TypeBackgroundTypeFill:
|
|
return UnmarshalBackgroundTypeFill(data)
|
|
|
|
case TypeBackgroundTypeChatTheme:
|
|
return UnmarshalBackgroundTypeChatTheme(data)
|
|
|
|
case TypeInputBackgroundLocal:
|
|
return UnmarshalInputBackgroundLocal(data)
|
|
|
|
case TypeInputBackgroundRemote:
|
|
return UnmarshalInputBackgroundRemote(data)
|
|
|
|
case TypeInputBackgroundPrevious:
|
|
return UnmarshalInputBackgroundPrevious(data)
|
|
|
|
case TypeEmojiChatTheme:
|
|
return UnmarshalEmojiChatTheme(data)
|
|
|
|
case TypeGiftChatTheme:
|
|
return UnmarshalGiftChatTheme(data)
|
|
|
|
case TypeGiftChatThemes:
|
|
return UnmarshalGiftChatThemes(data)
|
|
|
|
case TypeChatThemeEmoji:
|
|
return UnmarshalChatThemeEmoji(data)
|
|
|
|
case TypeChatThemeGift:
|
|
return UnmarshalChatThemeGift(data)
|
|
|
|
case TypeInputChatThemeEmoji:
|
|
return UnmarshalInputChatThemeEmoji(data)
|
|
|
|
case TypeInputChatThemeGift:
|
|
return UnmarshalInputChatThemeGift(data)
|
|
|
|
case TypeTimeZone:
|
|
return UnmarshalTimeZone(data)
|
|
|
|
case TypeTimeZones:
|
|
return UnmarshalTimeZones(data)
|
|
|
|
case TypeHashtags:
|
|
return UnmarshalHashtags(data)
|
|
|
|
case TypeCanPostStoryResultOk:
|
|
return UnmarshalCanPostStoryResultOk(data)
|
|
|
|
case TypeCanPostStoryResultPremiumNeeded:
|
|
return UnmarshalCanPostStoryResultPremiumNeeded(data)
|
|
|
|
case TypeCanPostStoryResultBoostNeeded:
|
|
return UnmarshalCanPostStoryResultBoostNeeded(data)
|
|
|
|
case TypeCanPostStoryResultActiveStoryLimitExceeded:
|
|
return UnmarshalCanPostStoryResultActiveStoryLimitExceeded(data)
|
|
|
|
case TypeCanPostStoryResultWeeklyLimitExceeded:
|
|
return UnmarshalCanPostStoryResultWeeklyLimitExceeded(data)
|
|
|
|
case TypeCanPostStoryResultMonthlyLimitExceeded:
|
|
return UnmarshalCanPostStoryResultMonthlyLimitExceeded(data)
|
|
|
|
case TypeCanPostStoryResultLiveStoryIsActive:
|
|
return UnmarshalCanPostStoryResultLiveStoryIsActive(data)
|
|
|
|
case TypeStartLiveStoryResultOk:
|
|
return UnmarshalStartLiveStoryResultOk(data)
|
|
|
|
case TypeStartLiveStoryResultFail:
|
|
return UnmarshalStartLiveStoryResultFail(data)
|
|
|
|
case TypeCanTransferOwnershipResultOk:
|
|
return UnmarshalCanTransferOwnershipResultOk(data)
|
|
|
|
case TypeCanTransferOwnershipResultPasswordNeeded:
|
|
return UnmarshalCanTransferOwnershipResultPasswordNeeded(data)
|
|
|
|
case TypeCanTransferOwnershipResultPasswordTooFresh:
|
|
return UnmarshalCanTransferOwnershipResultPasswordTooFresh(data)
|
|
|
|
case TypeCanTransferOwnershipResultSessionTooFresh:
|
|
return UnmarshalCanTransferOwnershipResultSessionTooFresh(data)
|
|
|
|
case TypeCheckChatUsernameResultOk:
|
|
return UnmarshalCheckChatUsernameResultOk(data)
|
|
|
|
case TypeCheckChatUsernameResultUsernameInvalid:
|
|
return UnmarshalCheckChatUsernameResultUsernameInvalid(data)
|
|
|
|
case TypeCheckChatUsernameResultUsernameOccupied:
|
|
return UnmarshalCheckChatUsernameResultUsernameOccupied(data)
|
|
|
|
case TypeCheckChatUsernameResultUsernamePurchasable:
|
|
return UnmarshalCheckChatUsernameResultUsernamePurchasable(data)
|
|
|
|
case TypeCheckChatUsernameResultPublicChatsTooMany:
|
|
return UnmarshalCheckChatUsernameResultPublicChatsTooMany(data)
|
|
|
|
case TypeCheckChatUsernameResultPublicGroupsUnavailable:
|
|
return UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data)
|
|
|
|
case TypeCheckStickerSetNameResultOk:
|
|
return UnmarshalCheckStickerSetNameResultOk(data)
|
|
|
|
case TypeCheckStickerSetNameResultNameInvalid:
|
|
return UnmarshalCheckStickerSetNameResultNameInvalid(data)
|
|
|
|
case TypeCheckStickerSetNameResultNameOccupied:
|
|
return UnmarshalCheckStickerSetNameResultNameOccupied(data)
|
|
|
|
case TypeResetPasswordResultOk:
|
|
return UnmarshalResetPasswordResultOk(data)
|
|
|
|
case TypeResetPasswordResultPending:
|
|
return UnmarshalResetPasswordResultPending(data)
|
|
|
|
case TypeResetPasswordResultDeclined:
|
|
return UnmarshalResetPasswordResultDeclined(data)
|
|
|
|
case TypeMessageFileTypePrivate:
|
|
return UnmarshalMessageFileTypePrivate(data)
|
|
|
|
case TypeMessageFileTypeGroup:
|
|
return UnmarshalMessageFileTypeGroup(data)
|
|
|
|
case TypeMessageFileTypeUnknown:
|
|
return UnmarshalMessageFileTypeUnknown(data)
|
|
|
|
case TypePushMessageContentHidden:
|
|
return UnmarshalPushMessageContentHidden(data)
|
|
|
|
case TypePushMessageContentAnimation:
|
|
return UnmarshalPushMessageContentAnimation(data)
|
|
|
|
case TypePushMessageContentAudio:
|
|
return UnmarshalPushMessageContentAudio(data)
|
|
|
|
case TypePushMessageContentContact:
|
|
return UnmarshalPushMessageContentContact(data)
|
|
|
|
case TypePushMessageContentContactRegistered:
|
|
return UnmarshalPushMessageContentContactRegistered(data)
|
|
|
|
case TypePushMessageContentDocument:
|
|
return UnmarshalPushMessageContentDocument(data)
|
|
|
|
case TypePushMessageContentGame:
|
|
return UnmarshalPushMessageContentGame(data)
|
|
|
|
case TypePushMessageContentGameScore:
|
|
return UnmarshalPushMessageContentGameScore(data)
|
|
|
|
case TypePushMessageContentInvoice:
|
|
return UnmarshalPushMessageContentInvoice(data)
|
|
|
|
case TypePushMessageContentLocation:
|
|
return UnmarshalPushMessageContentLocation(data)
|
|
|
|
case TypePushMessageContentPaidMedia:
|
|
return UnmarshalPushMessageContentPaidMedia(data)
|
|
|
|
case TypePushMessageContentPhoto:
|
|
return UnmarshalPushMessageContentPhoto(data)
|
|
|
|
case TypePushMessageContentPoll:
|
|
return UnmarshalPushMessageContentPoll(data)
|
|
|
|
case TypePushMessageContentPremiumGiftCode:
|
|
return UnmarshalPushMessageContentPremiumGiftCode(data)
|
|
|
|
case TypePushMessageContentGiveaway:
|
|
return UnmarshalPushMessageContentGiveaway(data)
|
|
|
|
case TypePushMessageContentGift:
|
|
return UnmarshalPushMessageContentGift(data)
|
|
|
|
case TypePushMessageContentUpgradedGift:
|
|
return UnmarshalPushMessageContentUpgradedGift(data)
|
|
|
|
case TypePushMessageContentScreenshotTaken:
|
|
return UnmarshalPushMessageContentScreenshotTaken(data)
|
|
|
|
case TypePushMessageContentSticker:
|
|
return UnmarshalPushMessageContentSticker(data)
|
|
|
|
case TypePushMessageContentStory:
|
|
return UnmarshalPushMessageContentStory(data)
|
|
|
|
case TypePushMessageContentText:
|
|
return UnmarshalPushMessageContentText(data)
|
|
|
|
case TypePushMessageContentChecklist:
|
|
return UnmarshalPushMessageContentChecklist(data)
|
|
|
|
case TypePushMessageContentVideo:
|
|
return UnmarshalPushMessageContentVideo(data)
|
|
|
|
case TypePushMessageContentVideoNote:
|
|
return UnmarshalPushMessageContentVideoNote(data)
|
|
|
|
case TypePushMessageContentVoiceNote:
|
|
return UnmarshalPushMessageContentVoiceNote(data)
|
|
|
|
case TypePushMessageContentBasicGroupChatCreate:
|
|
return UnmarshalPushMessageContentBasicGroupChatCreate(data)
|
|
|
|
case TypePushMessageContentVideoChatStarted:
|
|
return UnmarshalPushMessageContentVideoChatStarted(data)
|
|
|
|
case TypePushMessageContentVideoChatEnded:
|
|
return UnmarshalPushMessageContentVideoChatEnded(data)
|
|
|
|
case TypePushMessageContentInviteVideoChatParticipants:
|
|
return UnmarshalPushMessageContentInviteVideoChatParticipants(data)
|
|
|
|
case TypePushMessageContentChatAddMembers:
|
|
return UnmarshalPushMessageContentChatAddMembers(data)
|
|
|
|
case TypePushMessageContentChatChangePhoto:
|
|
return UnmarshalPushMessageContentChatChangePhoto(data)
|
|
|
|
case TypePushMessageContentChatChangeTitle:
|
|
return UnmarshalPushMessageContentChatChangeTitle(data)
|
|
|
|
case TypePushMessageContentChatSetBackground:
|
|
return UnmarshalPushMessageContentChatSetBackground(data)
|
|
|
|
case TypePushMessageContentChatSetTheme:
|
|
return UnmarshalPushMessageContentChatSetTheme(data)
|
|
|
|
case TypePushMessageContentChatDeleteMember:
|
|
return UnmarshalPushMessageContentChatDeleteMember(data)
|
|
|
|
case TypePushMessageContentChatJoinByLink:
|
|
return UnmarshalPushMessageContentChatJoinByLink(data)
|
|
|
|
case TypePushMessageContentChatJoinByRequest:
|
|
return UnmarshalPushMessageContentChatJoinByRequest(data)
|
|
|
|
case TypePushMessageContentRecurringPayment:
|
|
return UnmarshalPushMessageContentRecurringPayment(data)
|
|
|
|
case TypePushMessageContentSuggestProfilePhoto:
|
|
return UnmarshalPushMessageContentSuggestProfilePhoto(data)
|
|
|
|
case TypePushMessageContentSuggestBirthdate:
|
|
return UnmarshalPushMessageContentSuggestBirthdate(data)
|
|
|
|
case TypePushMessageContentProximityAlertTriggered:
|
|
return UnmarshalPushMessageContentProximityAlertTriggered(data)
|
|
|
|
case TypePushMessageContentChecklistTasksAdded:
|
|
return UnmarshalPushMessageContentChecklistTasksAdded(data)
|
|
|
|
case TypePushMessageContentChecklistTasksDone:
|
|
return UnmarshalPushMessageContentChecklistTasksDone(data)
|
|
|
|
case TypePushMessageContentMessageForwards:
|
|
return UnmarshalPushMessageContentMessageForwards(data)
|
|
|
|
case TypePushMessageContentMediaAlbum:
|
|
return UnmarshalPushMessageContentMediaAlbum(data)
|
|
|
|
case TypeNotificationTypeNewMessage:
|
|
return UnmarshalNotificationTypeNewMessage(data)
|
|
|
|
case TypeNotificationTypeNewSecretChat:
|
|
return UnmarshalNotificationTypeNewSecretChat(data)
|
|
|
|
case TypeNotificationTypeNewCall:
|
|
return UnmarshalNotificationTypeNewCall(data)
|
|
|
|
case TypeNotificationTypeNewPushMessage:
|
|
return UnmarshalNotificationTypeNewPushMessage(data)
|
|
|
|
case TypeNotificationGroupTypeMessages:
|
|
return UnmarshalNotificationGroupTypeMessages(data)
|
|
|
|
case TypeNotificationGroupTypeMentions:
|
|
return UnmarshalNotificationGroupTypeMentions(data)
|
|
|
|
case TypeNotificationGroupTypeSecretChat:
|
|
return UnmarshalNotificationGroupTypeSecretChat(data)
|
|
|
|
case TypeNotificationGroupTypeCalls:
|
|
return UnmarshalNotificationGroupTypeCalls(data)
|
|
|
|
case TypeNotificationSound:
|
|
return UnmarshalNotificationSound(data)
|
|
|
|
case TypeNotificationSounds:
|
|
return UnmarshalNotificationSounds(data)
|
|
|
|
case TypeNotification:
|
|
return UnmarshalNotification(data)
|
|
|
|
case TypeNotificationGroup:
|
|
return UnmarshalNotificationGroup(data)
|
|
|
|
case TypeProxy:
|
|
return UnmarshalProxy(data)
|
|
|
|
case TypeOptionValueBoolean:
|
|
return UnmarshalOptionValueBoolean(data)
|
|
|
|
case TypeOptionValueEmpty:
|
|
return UnmarshalOptionValueEmpty(data)
|
|
|
|
case TypeOptionValueInteger:
|
|
return UnmarshalOptionValueInteger(data)
|
|
|
|
case TypeOptionValueString:
|
|
return UnmarshalOptionValueString(data)
|
|
|
|
case TypeJsonObjectMember:
|
|
return UnmarshalJsonObjectMember(data)
|
|
|
|
case TypeJsonValueNull:
|
|
return UnmarshalJsonValueNull(data)
|
|
|
|
case TypeJsonValueBoolean:
|
|
return UnmarshalJsonValueBoolean(data)
|
|
|
|
case TypeJsonValueNumber:
|
|
return UnmarshalJsonValueNumber(data)
|
|
|
|
case TypeJsonValueString:
|
|
return UnmarshalJsonValueString(data)
|
|
|
|
case TypeJsonValueArray:
|
|
return UnmarshalJsonValueArray(data)
|
|
|
|
case TypeJsonValueObject:
|
|
return UnmarshalJsonValueObject(data)
|
|
|
|
case TypeStoryPrivacySettingsEveryone:
|
|
return UnmarshalStoryPrivacySettingsEveryone(data)
|
|
|
|
case TypeStoryPrivacySettingsContacts:
|
|
return UnmarshalStoryPrivacySettingsContacts(data)
|
|
|
|
case TypeStoryPrivacySettingsCloseFriends:
|
|
return UnmarshalStoryPrivacySettingsCloseFriends(data)
|
|
|
|
case TypeStoryPrivacySettingsSelectedUsers:
|
|
return UnmarshalStoryPrivacySettingsSelectedUsers(data)
|
|
|
|
case TypeUserPrivacySettingRuleAllowAll:
|
|
return UnmarshalUserPrivacySettingRuleAllowAll(data)
|
|
|
|
case TypeUserPrivacySettingRuleAllowContacts:
|
|
return UnmarshalUserPrivacySettingRuleAllowContacts(data)
|
|
|
|
case TypeUserPrivacySettingRuleAllowBots:
|
|
return UnmarshalUserPrivacySettingRuleAllowBots(data)
|
|
|
|
case TypeUserPrivacySettingRuleAllowPremiumUsers:
|
|
return UnmarshalUserPrivacySettingRuleAllowPremiumUsers(data)
|
|
|
|
case TypeUserPrivacySettingRuleAllowUsers:
|
|
return UnmarshalUserPrivacySettingRuleAllowUsers(data)
|
|
|
|
case TypeUserPrivacySettingRuleAllowChatMembers:
|
|
return UnmarshalUserPrivacySettingRuleAllowChatMembers(data)
|
|
|
|
case TypeUserPrivacySettingRuleRestrictAll:
|
|
return UnmarshalUserPrivacySettingRuleRestrictAll(data)
|
|
|
|
case TypeUserPrivacySettingRuleRestrictContacts:
|
|
return UnmarshalUserPrivacySettingRuleRestrictContacts(data)
|
|
|
|
case TypeUserPrivacySettingRuleRestrictBots:
|
|
return UnmarshalUserPrivacySettingRuleRestrictBots(data)
|
|
|
|
case TypeUserPrivacySettingRuleRestrictUsers:
|
|
return UnmarshalUserPrivacySettingRuleRestrictUsers(data)
|
|
|
|
case TypeUserPrivacySettingRuleRestrictChatMembers:
|
|
return UnmarshalUserPrivacySettingRuleRestrictChatMembers(data)
|
|
|
|
case TypeUserPrivacySettingRules:
|
|
return UnmarshalUserPrivacySettingRules(data)
|
|
|
|
case TypeUserPrivacySettingShowStatus:
|
|
return UnmarshalUserPrivacySettingShowStatus(data)
|
|
|
|
case TypeUserPrivacySettingShowProfilePhoto:
|
|
return UnmarshalUserPrivacySettingShowProfilePhoto(data)
|
|
|
|
case TypeUserPrivacySettingShowLinkInForwardedMessages:
|
|
return UnmarshalUserPrivacySettingShowLinkInForwardedMessages(data)
|
|
|
|
case TypeUserPrivacySettingShowPhoneNumber:
|
|
return UnmarshalUserPrivacySettingShowPhoneNumber(data)
|
|
|
|
case TypeUserPrivacySettingShowBio:
|
|
return UnmarshalUserPrivacySettingShowBio(data)
|
|
|
|
case TypeUserPrivacySettingShowBirthdate:
|
|
return UnmarshalUserPrivacySettingShowBirthdate(data)
|
|
|
|
case TypeUserPrivacySettingShowProfileAudio:
|
|
return UnmarshalUserPrivacySettingShowProfileAudio(data)
|
|
|
|
case TypeUserPrivacySettingAllowChatInvites:
|
|
return UnmarshalUserPrivacySettingAllowChatInvites(data)
|
|
|
|
case TypeUserPrivacySettingAllowCalls:
|
|
return UnmarshalUserPrivacySettingAllowCalls(data)
|
|
|
|
case TypeUserPrivacySettingAllowPeerToPeerCalls:
|
|
return UnmarshalUserPrivacySettingAllowPeerToPeerCalls(data)
|
|
|
|
case TypeUserPrivacySettingAllowFindingByPhoneNumber:
|
|
return UnmarshalUserPrivacySettingAllowFindingByPhoneNumber(data)
|
|
|
|
case TypeUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages:
|
|
return UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data)
|
|
|
|
case TypeUserPrivacySettingAutosaveGifts:
|
|
return UnmarshalUserPrivacySettingAutosaveGifts(data)
|
|
|
|
case TypeUserPrivacySettingAllowUnpaidMessages:
|
|
return UnmarshalUserPrivacySettingAllowUnpaidMessages(data)
|
|
|
|
case TypeReadDatePrivacySettings:
|
|
return UnmarshalReadDatePrivacySettings(data)
|
|
|
|
case TypeNewChatPrivacySettings:
|
|
return UnmarshalNewChatPrivacySettings(data)
|
|
|
|
case TypeCanSendMessageToUserResultOk:
|
|
return UnmarshalCanSendMessageToUserResultOk(data)
|
|
|
|
case TypeCanSendMessageToUserResultUserHasPaidMessages:
|
|
return UnmarshalCanSendMessageToUserResultUserHasPaidMessages(data)
|
|
|
|
case TypeCanSendMessageToUserResultUserIsDeleted:
|
|
return UnmarshalCanSendMessageToUserResultUserIsDeleted(data)
|
|
|
|
case TypeCanSendMessageToUserResultUserRestrictsNewChats:
|
|
return UnmarshalCanSendMessageToUserResultUserRestrictsNewChats(data)
|
|
|
|
case TypeAccountTtl:
|
|
return UnmarshalAccountTtl(data)
|
|
|
|
case TypeMessageAutoDeleteTime:
|
|
return UnmarshalMessageAutoDeleteTime(data)
|
|
|
|
case TypeSessionTypeAndroid:
|
|
return UnmarshalSessionTypeAndroid(data)
|
|
|
|
case TypeSessionTypeApple:
|
|
return UnmarshalSessionTypeApple(data)
|
|
|
|
case TypeSessionTypeBrave:
|
|
return UnmarshalSessionTypeBrave(data)
|
|
|
|
case TypeSessionTypeChrome:
|
|
return UnmarshalSessionTypeChrome(data)
|
|
|
|
case TypeSessionTypeEdge:
|
|
return UnmarshalSessionTypeEdge(data)
|
|
|
|
case TypeSessionTypeFirefox:
|
|
return UnmarshalSessionTypeFirefox(data)
|
|
|
|
case TypeSessionTypeIpad:
|
|
return UnmarshalSessionTypeIpad(data)
|
|
|
|
case TypeSessionTypeIphone:
|
|
return UnmarshalSessionTypeIphone(data)
|
|
|
|
case TypeSessionTypeLinux:
|
|
return UnmarshalSessionTypeLinux(data)
|
|
|
|
case TypeSessionTypeMac:
|
|
return UnmarshalSessionTypeMac(data)
|
|
|
|
case TypeSessionTypeOpera:
|
|
return UnmarshalSessionTypeOpera(data)
|
|
|
|
case TypeSessionTypeSafari:
|
|
return UnmarshalSessionTypeSafari(data)
|
|
|
|
case TypeSessionTypeUbuntu:
|
|
return UnmarshalSessionTypeUbuntu(data)
|
|
|
|
case TypeSessionTypeUnknown:
|
|
return UnmarshalSessionTypeUnknown(data)
|
|
|
|
case TypeSessionTypeVivaldi:
|
|
return UnmarshalSessionTypeVivaldi(data)
|
|
|
|
case TypeSessionTypeWindows:
|
|
return UnmarshalSessionTypeWindows(data)
|
|
|
|
case TypeSessionTypeXbox:
|
|
return UnmarshalSessionTypeXbox(data)
|
|
|
|
case TypeSession:
|
|
return UnmarshalSession(data)
|
|
|
|
case TypeSessions:
|
|
return UnmarshalSessions(data)
|
|
|
|
case TypeUnconfirmedSession:
|
|
return UnmarshalUnconfirmedSession(data)
|
|
|
|
case TypeConnectedWebsite:
|
|
return UnmarshalConnectedWebsite(data)
|
|
|
|
case TypeConnectedWebsites:
|
|
return UnmarshalConnectedWebsites(data)
|
|
|
|
case TypeReportReasonSpam:
|
|
return UnmarshalReportReasonSpam(data)
|
|
|
|
case TypeReportReasonViolence:
|
|
return UnmarshalReportReasonViolence(data)
|
|
|
|
case TypeReportReasonPornography:
|
|
return UnmarshalReportReasonPornography(data)
|
|
|
|
case TypeReportReasonChildAbuse:
|
|
return UnmarshalReportReasonChildAbuse(data)
|
|
|
|
case TypeReportReasonCopyright:
|
|
return UnmarshalReportReasonCopyright(data)
|
|
|
|
case TypeReportReasonUnrelatedLocation:
|
|
return UnmarshalReportReasonUnrelatedLocation(data)
|
|
|
|
case TypeReportReasonFake:
|
|
return UnmarshalReportReasonFake(data)
|
|
|
|
case TypeReportReasonIllegalDrugs:
|
|
return UnmarshalReportReasonIllegalDrugs(data)
|
|
|
|
case TypeReportReasonPersonalDetails:
|
|
return UnmarshalReportReasonPersonalDetails(data)
|
|
|
|
case TypeReportReasonCustom:
|
|
return UnmarshalReportReasonCustom(data)
|
|
|
|
case TypeReportChatResultOk:
|
|
return UnmarshalReportChatResultOk(data)
|
|
|
|
case TypeReportChatResultOptionRequired:
|
|
return UnmarshalReportChatResultOptionRequired(data)
|
|
|
|
case TypeReportChatResultTextRequired:
|
|
return UnmarshalReportChatResultTextRequired(data)
|
|
|
|
case TypeReportChatResultMessagesRequired:
|
|
return UnmarshalReportChatResultMessagesRequired(data)
|
|
|
|
case TypeReportStoryResultOk:
|
|
return UnmarshalReportStoryResultOk(data)
|
|
|
|
case TypeReportStoryResultOptionRequired:
|
|
return UnmarshalReportStoryResultOptionRequired(data)
|
|
|
|
case TypeReportStoryResultTextRequired:
|
|
return UnmarshalReportStoryResultTextRequired(data)
|
|
|
|
case TypeSettingsSectionAppearance:
|
|
return UnmarshalSettingsSectionAppearance(data)
|
|
|
|
case TypeSettingsSectionAskQuestion:
|
|
return UnmarshalSettingsSectionAskQuestion(data)
|
|
|
|
case TypeSettingsSectionBusiness:
|
|
return UnmarshalSettingsSectionBusiness(data)
|
|
|
|
case TypeSettingsSectionChatFolders:
|
|
return UnmarshalSettingsSectionChatFolders(data)
|
|
|
|
case TypeSettingsSectionDataAndStorage:
|
|
return UnmarshalSettingsSectionDataAndStorage(data)
|
|
|
|
case TypeSettingsSectionDevices:
|
|
return UnmarshalSettingsSectionDevices(data)
|
|
|
|
case TypeSettingsSectionEditProfile:
|
|
return UnmarshalSettingsSectionEditProfile(data)
|
|
|
|
case TypeSettingsSectionFaq:
|
|
return UnmarshalSettingsSectionFaq(data)
|
|
|
|
case TypeSettingsSectionFeatures:
|
|
return UnmarshalSettingsSectionFeatures(data)
|
|
|
|
case TypeSettingsSectionInAppBrowser:
|
|
return UnmarshalSettingsSectionInAppBrowser(data)
|
|
|
|
case TypeSettingsSectionLanguage:
|
|
return UnmarshalSettingsSectionLanguage(data)
|
|
|
|
case TypeSettingsSectionMyStars:
|
|
return UnmarshalSettingsSectionMyStars(data)
|
|
|
|
case TypeSettingsSectionMyToncoins:
|
|
return UnmarshalSettingsSectionMyToncoins(data)
|
|
|
|
case TypeSettingsSectionNotifications:
|
|
return UnmarshalSettingsSectionNotifications(data)
|
|
|
|
case TypeSettingsSectionPowerSaving:
|
|
return UnmarshalSettingsSectionPowerSaving(data)
|
|
|
|
case TypeSettingsSectionPremium:
|
|
return UnmarshalSettingsSectionPremium(data)
|
|
|
|
case TypeSettingsSectionPrivacyAndSecurity:
|
|
return UnmarshalSettingsSectionPrivacyAndSecurity(data)
|
|
|
|
case TypeSettingsSectionPrivacyPolicy:
|
|
return UnmarshalSettingsSectionPrivacyPolicy(data)
|
|
|
|
case TypeSettingsSectionQrCode:
|
|
return UnmarshalSettingsSectionQrCode(data)
|
|
|
|
case TypeSettingsSectionSearch:
|
|
return UnmarshalSettingsSectionSearch(data)
|
|
|
|
case TypeSettingsSectionSendGift:
|
|
return UnmarshalSettingsSectionSendGift(data)
|
|
|
|
case TypeInternalLinkTypeAttachmentMenuBot:
|
|
return UnmarshalInternalLinkTypeAttachmentMenuBot(data)
|
|
|
|
case TypeInternalLinkTypeAuthenticationCode:
|
|
return UnmarshalInternalLinkTypeAuthenticationCode(data)
|
|
|
|
case TypeInternalLinkTypeBackground:
|
|
return UnmarshalInternalLinkTypeBackground(data)
|
|
|
|
case TypeInternalLinkTypeBotAddToChannel:
|
|
return UnmarshalInternalLinkTypeBotAddToChannel(data)
|
|
|
|
case TypeInternalLinkTypeBotStart:
|
|
return UnmarshalInternalLinkTypeBotStart(data)
|
|
|
|
case TypeInternalLinkTypeBotStartInGroup:
|
|
return UnmarshalInternalLinkTypeBotStartInGroup(data)
|
|
|
|
case TypeInternalLinkTypeBusinessChat:
|
|
return UnmarshalInternalLinkTypeBusinessChat(data)
|
|
|
|
case TypeInternalLinkTypeCallsPage:
|
|
return UnmarshalInternalLinkTypeCallsPage(data)
|
|
|
|
case TypeInternalLinkTypeChatAffiliateProgram:
|
|
return UnmarshalInternalLinkTypeChatAffiliateProgram(data)
|
|
|
|
case TypeInternalLinkTypeChatBoost:
|
|
return UnmarshalInternalLinkTypeChatBoost(data)
|
|
|
|
case TypeInternalLinkTypeChatFolderInvite:
|
|
return UnmarshalInternalLinkTypeChatFolderInvite(data)
|
|
|
|
case TypeInternalLinkTypeChatInvite:
|
|
return UnmarshalInternalLinkTypeChatInvite(data)
|
|
|
|
case TypeInternalLinkTypeChatSelection:
|
|
return UnmarshalInternalLinkTypeChatSelection(data)
|
|
|
|
case TypeInternalLinkTypeContactsPage:
|
|
return UnmarshalInternalLinkTypeContactsPage(data)
|
|
|
|
case TypeInternalLinkTypeDirectMessagesChat:
|
|
return UnmarshalInternalLinkTypeDirectMessagesChat(data)
|
|
|
|
case TypeInternalLinkTypeGame:
|
|
return UnmarshalInternalLinkTypeGame(data)
|
|
|
|
case TypeInternalLinkTypeGiftAuction:
|
|
return UnmarshalInternalLinkTypeGiftAuction(data)
|
|
|
|
case TypeInternalLinkTypeGiftCollection:
|
|
return UnmarshalInternalLinkTypeGiftCollection(data)
|
|
|
|
case TypeInternalLinkTypeGroupCall:
|
|
return UnmarshalInternalLinkTypeGroupCall(data)
|
|
|
|
case TypeInternalLinkTypeInstantView:
|
|
return UnmarshalInternalLinkTypeInstantView(data)
|
|
|
|
case TypeInternalLinkTypeInvoice:
|
|
return UnmarshalInternalLinkTypeInvoice(data)
|
|
|
|
case TypeInternalLinkTypeLanguagePack:
|
|
return UnmarshalInternalLinkTypeLanguagePack(data)
|
|
|
|
case TypeInternalLinkTypeLiveStory:
|
|
return UnmarshalInternalLinkTypeLiveStory(data)
|
|
|
|
case TypeInternalLinkTypeMainWebApp:
|
|
return UnmarshalInternalLinkTypeMainWebApp(data)
|
|
|
|
case TypeInternalLinkTypeMessage:
|
|
return UnmarshalInternalLinkTypeMessage(data)
|
|
|
|
case TypeInternalLinkTypeMessageDraft:
|
|
return UnmarshalInternalLinkTypeMessageDraft(data)
|
|
|
|
case TypeInternalLinkTypeMyProfilePage:
|
|
return UnmarshalInternalLinkTypeMyProfilePage(data)
|
|
|
|
case TypeInternalLinkTypeNewChannelChat:
|
|
return UnmarshalInternalLinkTypeNewChannelChat(data)
|
|
|
|
case TypeInternalLinkTypeNewGroupChat:
|
|
return UnmarshalInternalLinkTypeNewGroupChat(data)
|
|
|
|
case TypeInternalLinkTypeNewPrivateChat:
|
|
return UnmarshalInternalLinkTypeNewPrivateChat(data)
|
|
|
|
case TypeInternalLinkTypeNewStory:
|
|
return UnmarshalInternalLinkTypeNewStory(data)
|
|
|
|
case TypeInternalLinkTypePassportDataRequest:
|
|
return UnmarshalInternalLinkTypePassportDataRequest(data)
|
|
|
|
case TypeInternalLinkTypePhoneNumberConfirmation:
|
|
return UnmarshalInternalLinkTypePhoneNumberConfirmation(data)
|
|
|
|
case TypeInternalLinkTypePremiumFeaturesPage:
|
|
return UnmarshalInternalLinkTypePremiumFeaturesPage(data)
|
|
|
|
case TypeInternalLinkTypePremiumGiftCode:
|
|
return UnmarshalInternalLinkTypePremiumGiftCode(data)
|
|
|
|
case TypeInternalLinkTypePremiumGiftPurchase:
|
|
return UnmarshalInternalLinkTypePremiumGiftPurchase(data)
|
|
|
|
case TypeInternalLinkTypeProxy:
|
|
return UnmarshalInternalLinkTypeProxy(data)
|
|
|
|
case TypeInternalLinkTypePublicChat:
|
|
return UnmarshalInternalLinkTypePublicChat(data)
|
|
|
|
case TypeInternalLinkTypeQrCodeAuthentication:
|
|
return UnmarshalInternalLinkTypeQrCodeAuthentication(data)
|
|
|
|
case TypeInternalLinkTypeRestorePurchases:
|
|
return UnmarshalInternalLinkTypeRestorePurchases(data)
|
|
|
|
case TypeInternalLinkTypeSavedMessages:
|
|
return UnmarshalInternalLinkTypeSavedMessages(data)
|
|
|
|
case TypeInternalLinkTypeSearch:
|
|
return UnmarshalInternalLinkTypeSearch(data)
|
|
|
|
case TypeInternalLinkTypeSettings:
|
|
return UnmarshalInternalLinkTypeSettings(data)
|
|
|
|
case TypeInternalLinkTypeStarPurchase:
|
|
return UnmarshalInternalLinkTypeStarPurchase(data)
|
|
|
|
case TypeInternalLinkTypeStickerSet:
|
|
return UnmarshalInternalLinkTypeStickerSet(data)
|
|
|
|
case TypeInternalLinkTypeStory:
|
|
return UnmarshalInternalLinkTypeStory(data)
|
|
|
|
case TypeInternalLinkTypeStoryAlbum:
|
|
return UnmarshalInternalLinkTypeStoryAlbum(data)
|
|
|
|
case TypeInternalLinkTypeTheme:
|
|
return UnmarshalInternalLinkTypeTheme(data)
|
|
|
|
case TypeInternalLinkTypeUnknownDeepLink:
|
|
return UnmarshalInternalLinkTypeUnknownDeepLink(data)
|
|
|
|
case TypeInternalLinkTypeUpgradedGift:
|
|
return UnmarshalInternalLinkTypeUpgradedGift(data)
|
|
|
|
case TypeInternalLinkTypeUserPhoneNumber:
|
|
return UnmarshalInternalLinkTypeUserPhoneNumber(data)
|
|
|
|
case TypeInternalLinkTypeUserToken:
|
|
return UnmarshalInternalLinkTypeUserToken(data)
|
|
|
|
case TypeInternalLinkTypeVideoChat:
|
|
return UnmarshalInternalLinkTypeVideoChat(data)
|
|
|
|
case TypeInternalLinkTypeWebApp:
|
|
return UnmarshalInternalLinkTypeWebApp(data)
|
|
|
|
case TypeMessageLink:
|
|
return UnmarshalMessageLink(data)
|
|
|
|
case TypeMessageLinkInfo:
|
|
return UnmarshalMessageLinkInfo(data)
|
|
|
|
case TypeChatBoostLink:
|
|
return UnmarshalChatBoostLink(data)
|
|
|
|
case TypeChatBoostLinkInfo:
|
|
return UnmarshalChatBoostLinkInfo(data)
|
|
|
|
case TypeBlockListMain:
|
|
return UnmarshalBlockListMain(data)
|
|
|
|
case TypeBlockListStories:
|
|
return UnmarshalBlockListStories(data)
|
|
|
|
case TypeFileTypeNone:
|
|
return UnmarshalFileTypeNone(data)
|
|
|
|
case TypeFileTypeAnimation:
|
|
return UnmarshalFileTypeAnimation(data)
|
|
|
|
case TypeFileTypeAudio:
|
|
return UnmarshalFileTypeAudio(data)
|
|
|
|
case TypeFileTypeDocument:
|
|
return UnmarshalFileTypeDocument(data)
|
|
|
|
case TypeFileTypeNotificationSound:
|
|
return UnmarshalFileTypeNotificationSound(data)
|
|
|
|
case TypeFileTypePhoto:
|
|
return UnmarshalFileTypePhoto(data)
|
|
|
|
case TypeFileTypePhotoStory:
|
|
return UnmarshalFileTypePhotoStory(data)
|
|
|
|
case TypeFileTypeProfilePhoto:
|
|
return UnmarshalFileTypeProfilePhoto(data)
|
|
|
|
case TypeFileTypeSecret:
|
|
return UnmarshalFileTypeSecret(data)
|
|
|
|
case TypeFileTypeSecretThumbnail:
|
|
return UnmarshalFileTypeSecretThumbnail(data)
|
|
|
|
case TypeFileTypeSecure:
|
|
return UnmarshalFileTypeSecure(data)
|
|
|
|
case TypeFileTypeSelfDestructingPhoto:
|
|
return UnmarshalFileTypeSelfDestructingPhoto(data)
|
|
|
|
case TypeFileTypeSelfDestructingVideo:
|
|
return UnmarshalFileTypeSelfDestructingVideo(data)
|
|
|
|
case TypeFileTypeSelfDestructingVideoNote:
|
|
return UnmarshalFileTypeSelfDestructingVideoNote(data)
|
|
|
|
case TypeFileTypeSelfDestructingVoiceNote:
|
|
return UnmarshalFileTypeSelfDestructingVoiceNote(data)
|
|
|
|
case TypeFileTypeSticker:
|
|
return UnmarshalFileTypeSticker(data)
|
|
|
|
case TypeFileTypeThumbnail:
|
|
return UnmarshalFileTypeThumbnail(data)
|
|
|
|
case TypeFileTypeUnknown:
|
|
return UnmarshalFileTypeUnknown(data)
|
|
|
|
case TypeFileTypeVideo:
|
|
return UnmarshalFileTypeVideo(data)
|
|
|
|
case TypeFileTypeVideoNote:
|
|
return UnmarshalFileTypeVideoNote(data)
|
|
|
|
case TypeFileTypeVideoStory:
|
|
return UnmarshalFileTypeVideoStory(data)
|
|
|
|
case TypeFileTypeVoiceNote:
|
|
return UnmarshalFileTypeVoiceNote(data)
|
|
|
|
case TypeFileTypeWallpaper:
|
|
return UnmarshalFileTypeWallpaper(data)
|
|
|
|
case TypeStorageStatisticsByFileType:
|
|
return UnmarshalStorageStatisticsByFileType(data)
|
|
|
|
case TypeStorageStatisticsByChat:
|
|
return UnmarshalStorageStatisticsByChat(data)
|
|
|
|
case TypeStorageStatistics:
|
|
return UnmarshalStorageStatistics(data)
|
|
|
|
case TypeStorageStatisticsFast:
|
|
return UnmarshalStorageStatisticsFast(data)
|
|
|
|
case TypeDatabaseStatistics:
|
|
return UnmarshalDatabaseStatistics(data)
|
|
|
|
case TypeNetworkTypeNone:
|
|
return UnmarshalNetworkTypeNone(data)
|
|
|
|
case TypeNetworkTypeMobile:
|
|
return UnmarshalNetworkTypeMobile(data)
|
|
|
|
case TypeNetworkTypeMobileRoaming:
|
|
return UnmarshalNetworkTypeMobileRoaming(data)
|
|
|
|
case TypeNetworkTypeWiFi:
|
|
return UnmarshalNetworkTypeWiFi(data)
|
|
|
|
case TypeNetworkTypeOther:
|
|
return UnmarshalNetworkTypeOther(data)
|
|
|
|
case TypeNetworkStatisticsEntryFile:
|
|
return UnmarshalNetworkStatisticsEntryFile(data)
|
|
|
|
case TypeNetworkStatisticsEntryCall:
|
|
return UnmarshalNetworkStatisticsEntryCall(data)
|
|
|
|
case TypeNetworkStatistics:
|
|
return UnmarshalNetworkStatistics(data)
|
|
|
|
case TypeAutoDownloadSettings:
|
|
return UnmarshalAutoDownloadSettings(data)
|
|
|
|
case TypeAutoDownloadSettingsPresets:
|
|
return UnmarshalAutoDownloadSettingsPresets(data)
|
|
|
|
case TypeAutosaveSettingsScopePrivateChats:
|
|
return UnmarshalAutosaveSettingsScopePrivateChats(data)
|
|
|
|
case TypeAutosaveSettingsScopeGroupChats:
|
|
return UnmarshalAutosaveSettingsScopeGroupChats(data)
|
|
|
|
case TypeAutosaveSettingsScopeChannelChats:
|
|
return UnmarshalAutosaveSettingsScopeChannelChats(data)
|
|
|
|
case TypeAutosaveSettingsScopeChat:
|
|
return UnmarshalAutosaveSettingsScopeChat(data)
|
|
|
|
case TypeScopeAutosaveSettings:
|
|
return UnmarshalScopeAutosaveSettings(data)
|
|
|
|
case TypeAutosaveSettingsException:
|
|
return UnmarshalAutosaveSettingsException(data)
|
|
|
|
case TypeAutosaveSettings:
|
|
return UnmarshalAutosaveSettings(data)
|
|
|
|
case TypeConnectionStateWaitingForNetwork:
|
|
return UnmarshalConnectionStateWaitingForNetwork(data)
|
|
|
|
case TypeConnectionStateConnectingToProxy:
|
|
return UnmarshalConnectionStateConnectingToProxy(data)
|
|
|
|
case TypeConnectionStateConnecting:
|
|
return UnmarshalConnectionStateConnecting(data)
|
|
|
|
case TypeConnectionStateUpdating:
|
|
return UnmarshalConnectionStateUpdating(data)
|
|
|
|
case TypeConnectionStateReady:
|
|
return UnmarshalConnectionStateReady(data)
|
|
|
|
case TypeAgeVerificationParameters:
|
|
return UnmarshalAgeVerificationParameters(data)
|
|
|
|
case TypeTopChatCategoryUsers:
|
|
return UnmarshalTopChatCategoryUsers(data)
|
|
|
|
case TypeTopChatCategoryBots:
|
|
return UnmarshalTopChatCategoryBots(data)
|
|
|
|
case TypeTopChatCategoryGroups:
|
|
return UnmarshalTopChatCategoryGroups(data)
|
|
|
|
case TypeTopChatCategoryChannels:
|
|
return UnmarshalTopChatCategoryChannels(data)
|
|
|
|
case TypeTopChatCategoryInlineBots:
|
|
return UnmarshalTopChatCategoryInlineBots(data)
|
|
|
|
case TypeTopChatCategoryWebAppBots:
|
|
return UnmarshalTopChatCategoryWebAppBots(data)
|
|
|
|
case TypeTopChatCategoryCalls:
|
|
return UnmarshalTopChatCategoryCalls(data)
|
|
|
|
case TypeTopChatCategoryForwardChats:
|
|
return UnmarshalTopChatCategoryForwardChats(data)
|
|
|
|
case TypeFoundPosition:
|
|
return UnmarshalFoundPosition(data)
|
|
|
|
case TypeFoundPositions:
|
|
return UnmarshalFoundPositions(data)
|
|
|
|
case TypeTMeUrlTypeUser:
|
|
return UnmarshalTMeUrlTypeUser(data)
|
|
|
|
case TypeTMeUrlTypeSupergroup:
|
|
return UnmarshalTMeUrlTypeSupergroup(data)
|
|
|
|
case TypeTMeUrlTypeChatInvite:
|
|
return UnmarshalTMeUrlTypeChatInvite(data)
|
|
|
|
case TypeTMeUrlTypeStickerSet:
|
|
return UnmarshalTMeUrlTypeStickerSet(data)
|
|
|
|
case TypeTMeUrl:
|
|
return UnmarshalTMeUrl(data)
|
|
|
|
case TypeTMeUrls:
|
|
return UnmarshalTMeUrls(data)
|
|
|
|
case TypeSuggestedActionEnableArchiveAndMuteNewChats:
|
|
return UnmarshalSuggestedActionEnableArchiveAndMuteNewChats(data)
|
|
|
|
case TypeSuggestedActionCheckPassword:
|
|
return UnmarshalSuggestedActionCheckPassword(data)
|
|
|
|
case TypeSuggestedActionCheckPhoneNumber:
|
|
return UnmarshalSuggestedActionCheckPhoneNumber(data)
|
|
|
|
case TypeSuggestedActionViewChecksHint:
|
|
return UnmarshalSuggestedActionViewChecksHint(data)
|
|
|
|
case TypeSuggestedActionConvertToBroadcastGroup:
|
|
return UnmarshalSuggestedActionConvertToBroadcastGroup(data)
|
|
|
|
case TypeSuggestedActionSetPassword:
|
|
return UnmarshalSuggestedActionSetPassword(data)
|
|
|
|
case TypeSuggestedActionUpgradePremium:
|
|
return UnmarshalSuggestedActionUpgradePremium(data)
|
|
|
|
case TypeSuggestedActionRestorePremium:
|
|
return UnmarshalSuggestedActionRestorePremium(data)
|
|
|
|
case TypeSuggestedActionSubscribeToAnnualPremium:
|
|
return UnmarshalSuggestedActionSubscribeToAnnualPremium(data)
|
|
|
|
case TypeSuggestedActionGiftPremiumForChristmas:
|
|
return UnmarshalSuggestedActionGiftPremiumForChristmas(data)
|
|
|
|
case TypeSuggestedActionSetBirthdate:
|
|
return UnmarshalSuggestedActionSetBirthdate(data)
|
|
|
|
case TypeSuggestedActionSetProfilePhoto:
|
|
return UnmarshalSuggestedActionSetProfilePhoto(data)
|
|
|
|
case TypeSuggestedActionExtendPremium:
|
|
return UnmarshalSuggestedActionExtendPremium(data)
|
|
|
|
case TypeSuggestedActionExtendStarSubscriptions:
|
|
return UnmarshalSuggestedActionExtendStarSubscriptions(data)
|
|
|
|
case TypeSuggestedActionCustom:
|
|
return UnmarshalSuggestedActionCustom(data)
|
|
|
|
case TypeSuggestedActionSetLoginEmailAddress:
|
|
return UnmarshalSuggestedActionSetLoginEmailAddress(data)
|
|
|
|
case TypeSuggestedActionAddLoginPasskey:
|
|
return UnmarshalSuggestedActionAddLoginPasskey(data)
|
|
|
|
case TypeCount:
|
|
return UnmarshalCount(data)
|
|
|
|
case TypeText:
|
|
return UnmarshalText(data)
|
|
|
|
case TypeData:
|
|
return UnmarshalData(data)
|
|
|
|
case TypeSeconds:
|
|
return UnmarshalSeconds(data)
|
|
|
|
case TypeFileDownloadedPrefixSize:
|
|
return UnmarshalFileDownloadedPrefixSize(data)
|
|
|
|
case TypeStarCount:
|
|
return UnmarshalStarCount(data)
|
|
|
|
case TypeDeepLinkInfo:
|
|
return UnmarshalDeepLinkInfo(data)
|
|
|
|
case TypeTextParseModeMarkdown:
|
|
return UnmarshalTextParseModeMarkdown(data)
|
|
|
|
case TypeTextParseModeHTML:
|
|
return UnmarshalTextParseModeHTML(data)
|
|
|
|
case TypeProxyTypeSocks5:
|
|
return UnmarshalProxyTypeSocks5(data)
|
|
|
|
case TypeProxyTypeHttp:
|
|
return UnmarshalProxyTypeHttp(data)
|
|
|
|
case TypeProxyTypeMtproto:
|
|
return UnmarshalProxyTypeMtproto(data)
|
|
|
|
case TypeAddedProxy:
|
|
return UnmarshalAddedProxy(data)
|
|
|
|
case TypeAddedProxies:
|
|
return UnmarshalAddedProxies(data)
|
|
|
|
case TypeInputSticker:
|
|
return UnmarshalInputSticker(data)
|
|
|
|
case TypeDateRange:
|
|
return UnmarshalDateRange(data)
|
|
|
|
case TypeStatisticalValue:
|
|
return UnmarshalStatisticalValue(data)
|
|
|
|
case TypeStatisticalGraphData:
|
|
return UnmarshalStatisticalGraphData(data)
|
|
|
|
case TypeStatisticalGraphAsync:
|
|
return UnmarshalStatisticalGraphAsync(data)
|
|
|
|
case TypeStatisticalGraphError:
|
|
return UnmarshalStatisticalGraphError(data)
|
|
|
|
case TypeChatStatisticsObjectTypeMessage:
|
|
return UnmarshalChatStatisticsObjectTypeMessage(data)
|
|
|
|
case TypeChatStatisticsObjectTypeStory:
|
|
return UnmarshalChatStatisticsObjectTypeStory(data)
|
|
|
|
case TypeChatStatisticsInteractionInfo:
|
|
return UnmarshalChatStatisticsInteractionInfo(data)
|
|
|
|
case TypeChatStatisticsMessageSenderInfo:
|
|
return UnmarshalChatStatisticsMessageSenderInfo(data)
|
|
|
|
case TypeChatStatisticsAdministratorActionsInfo:
|
|
return UnmarshalChatStatisticsAdministratorActionsInfo(data)
|
|
|
|
case TypeChatStatisticsInviterInfo:
|
|
return UnmarshalChatStatisticsInviterInfo(data)
|
|
|
|
case TypeChatStatisticsSupergroup:
|
|
return UnmarshalChatStatisticsSupergroup(data)
|
|
|
|
case TypeChatStatisticsChannel:
|
|
return UnmarshalChatStatisticsChannel(data)
|
|
|
|
case TypeChatRevenueAmount:
|
|
return UnmarshalChatRevenueAmount(data)
|
|
|
|
case TypeChatRevenueStatistics:
|
|
return UnmarshalChatRevenueStatistics(data)
|
|
|
|
case TypeMessageStatistics:
|
|
return UnmarshalMessageStatistics(data)
|
|
|
|
case TypeStoryStatistics:
|
|
return UnmarshalStoryStatistics(data)
|
|
|
|
case TypeRevenueWithdrawalStatePending:
|
|
return UnmarshalRevenueWithdrawalStatePending(data)
|
|
|
|
case TypeRevenueWithdrawalStateSucceeded:
|
|
return UnmarshalRevenueWithdrawalStateSucceeded(data)
|
|
|
|
case TypeRevenueWithdrawalStateFailed:
|
|
return UnmarshalRevenueWithdrawalStateFailed(data)
|
|
|
|
case TypeChatRevenueTransactionTypeUnsupported:
|
|
return UnmarshalChatRevenueTransactionTypeUnsupported(data)
|
|
|
|
case TypeChatRevenueTransactionTypeSponsoredMessageEarnings:
|
|
return UnmarshalChatRevenueTransactionTypeSponsoredMessageEarnings(data)
|
|
|
|
case TypeChatRevenueTransactionTypeSuggestedPostEarnings:
|
|
return UnmarshalChatRevenueTransactionTypeSuggestedPostEarnings(data)
|
|
|
|
case TypeChatRevenueTransactionTypeFragmentWithdrawal:
|
|
return UnmarshalChatRevenueTransactionTypeFragmentWithdrawal(data)
|
|
|
|
case TypeChatRevenueTransactionTypeFragmentRefund:
|
|
return UnmarshalChatRevenueTransactionTypeFragmentRefund(data)
|
|
|
|
case TypeChatRevenueTransaction:
|
|
return UnmarshalChatRevenueTransaction(data)
|
|
|
|
case TypeChatRevenueTransactions:
|
|
return UnmarshalChatRevenueTransactions(data)
|
|
|
|
case TypeStarRevenueStatus:
|
|
return UnmarshalStarRevenueStatus(data)
|
|
|
|
case TypeStarRevenueStatistics:
|
|
return UnmarshalStarRevenueStatistics(data)
|
|
|
|
case TypeTonRevenueStatus:
|
|
return UnmarshalTonRevenueStatus(data)
|
|
|
|
case TypeTonRevenueStatistics:
|
|
return UnmarshalTonRevenueStatistics(data)
|
|
|
|
case TypePoint:
|
|
return UnmarshalPoint(data)
|
|
|
|
case TypeVectorPathCommandLine:
|
|
return UnmarshalVectorPathCommandLine(data)
|
|
|
|
case TypeVectorPathCommandCubicBezierCurve:
|
|
return UnmarshalVectorPathCommandCubicBezierCurve(data)
|
|
|
|
case TypeBotCommandScopeDefault:
|
|
return UnmarshalBotCommandScopeDefault(data)
|
|
|
|
case TypeBotCommandScopeAllPrivateChats:
|
|
return UnmarshalBotCommandScopeAllPrivateChats(data)
|
|
|
|
case TypeBotCommandScopeAllGroupChats:
|
|
return UnmarshalBotCommandScopeAllGroupChats(data)
|
|
|
|
case TypeBotCommandScopeAllChatAdministrators:
|
|
return UnmarshalBotCommandScopeAllChatAdministrators(data)
|
|
|
|
case TypeBotCommandScopeChat:
|
|
return UnmarshalBotCommandScopeChat(data)
|
|
|
|
case TypeBotCommandScopeChatAdministrators:
|
|
return UnmarshalBotCommandScopeChatAdministrators(data)
|
|
|
|
case TypeBotCommandScopeChatMember:
|
|
return UnmarshalBotCommandScopeChatMember(data)
|
|
|
|
case TypePhoneNumberCodeTypeChange:
|
|
return UnmarshalPhoneNumberCodeTypeChange(data)
|
|
|
|
case TypePhoneNumberCodeTypeVerify:
|
|
return UnmarshalPhoneNumberCodeTypeVerify(data)
|
|
|
|
case TypePhoneNumberCodeTypeConfirmOwnership:
|
|
return UnmarshalPhoneNumberCodeTypeConfirmOwnership(data)
|
|
|
|
case TypeUpdateAuthorizationState:
|
|
return UnmarshalUpdateAuthorizationState(data)
|
|
|
|
case TypeUpdateNewMessage:
|
|
return UnmarshalUpdateNewMessage(data)
|
|
|
|
case TypeUpdateMessageSendAcknowledged:
|
|
return UnmarshalUpdateMessageSendAcknowledged(data)
|
|
|
|
case TypeUpdateMessageSendSucceeded:
|
|
return UnmarshalUpdateMessageSendSucceeded(data)
|
|
|
|
case TypeUpdateMessageSendFailed:
|
|
return UnmarshalUpdateMessageSendFailed(data)
|
|
|
|
case TypeUpdateMessageContent:
|
|
return UnmarshalUpdateMessageContent(data)
|
|
|
|
case TypeUpdateMessageEdited:
|
|
return UnmarshalUpdateMessageEdited(data)
|
|
|
|
case TypeUpdateMessageIsPinned:
|
|
return UnmarshalUpdateMessageIsPinned(data)
|
|
|
|
case TypeUpdateMessageInteractionInfo:
|
|
return UnmarshalUpdateMessageInteractionInfo(data)
|
|
|
|
case TypeUpdateMessageContentOpened:
|
|
return UnmarshalUpdateMessageContentOpened(data)
|
|
|
|
case TypeUpdateMessageMentionRead:
|
|
return UnmarshalUpdateMessageMentionRead(data)
|
|
|
|
case TypeUpdateMessageUnreadReactions:
|
|
return UnmarshalUpdateMessageUnreadReactions(data)
|
|
|
|
case TypeUpdateMessageFactCheck:
|
|
return UnmarshalUpdateMessageFactCheck(data)
|
|
|
|
case TypeUpdateMessageSuggestedPostInfo:
|
|
return UnmarshalUpdateMessageSuggestedPostInfo(data)
|
|
|
|
case TypeUpdateMessageLiveLocationViewed:
|
|
return UnmarshalUpdateMessageLiveLocationViewed(data)
|
|
|
|
case TypeUpdateVideoPublished:
|
|
return UnmarshalUpdateVideoPublished(data)
|
|
|
|
case TypeUpdateNewChat:
|
|
return UnmarshalUpdateNewChat(data)
|
|
|
|
case TypeUpdateChatTitle:
|
|
return UnmarshalUpdateChatTitle(data)
|
|
|
|
case TypeUpdateChatPhoto:
|
|
return UnmarshalUpdateChatPhoto(data)
|
|
|
|
case TypeUpdateChatAccentColors:
|
|
return UnmarshalUpdateChatAccentColors(data)
|
|
|
|
case TypeUpdateChatPermissions:
|
|
return UnmarshalUpdateChatPermissions(data)
|
|
|
|
case TypeUpdateChatLastMessage:
|
|
return UnmarshalUpdateChatLastMessage(data)
|
|
|
|
case TypeUpdateChatPosition:
|
|
return UnmarshalUpdateChatPosition(data)
|
|
|
|
case TypeUpdateChatAddedToList:
|
|
return UnmarshalUpdateChatAddedToList(data)
|
|
|
|
case TypeUpdateChatRemovedFromList:
|
|
return UnmarshalUpdateChatRemovedFromList(data)
|
|
|
|
case TypeUpdateChatReadInbox:
|
|
return UnmarshalUpdateChatReadInbox(data)
|
|
|
|
case TypeUpdateChatReadOutbox:
|
|
return UnmarshalUpdateChatReadOutbox(data)
|
|
|
|
case TypeUpdateChatActionBar:
|
|
return UnmarshalUpdateChatActionBar(data)
|
|
|
|
case TypeUpdateChatBusinessBotManageBar:
|
|
return UnmarshalUpdateChatBusinessBotManageBar(data)
|
|
|
|
case TypeUpdateChatAvailableReactions:
|
|
return UnmarshalUpdateChatAvailableReactions(data)
|
|
|
|
case TypeUpdateChatDraftMessage:
|
|
return UnmarshalUpdateChatDraftMessage(data)
|
|
|
|
case TypeUpdateChatEmojiStatus:
|
|
return UnmarshalUpdateChatEmojiStatus(data)
|
|
|
|
case TypeUpdateChatMessageSender:
|
|
return UnmarshalUpdateChatMessageSender(data)
|
|
|
|
case TypeUpdateChatMessageAutoDeleteTime:
|
|
return UnmarshalUpdateChatMessageAutoDeleteTime(data)
|
|
|
|
case TypeUpdateChatNotificationSettings:
|
|
return UnmarshalUpdateChatNotificationSettings(data)
|
|
|
|
case TypeUpdateChatPendingJoinRequests:
|
|
return UnmarshalUpdateChatPendingJoinRequests(data)
|
|
|
|
case TypeUpdateChatReplyMarkup:
|
|
return UnmarshalUpdateChatReplyMarkup(data)
|
|
|
|
case TypeUpdateChatBackground:
|
|
return UnmarshalUpdateChatBackground(data)
|
|
|
|
case TypeUpdateChatTheme:
|
|
return UnmarshalUpdateChatTheme(data)
|
|
|
|
case TypeUpdateChatUnreadMentionCount:
|
|
return UnmarshalUpdateChatUnreadMentionCount(data)
|
|
|
|
case TypeUpdateChatUnreadReactionCount:
|
|
return UnmarshalUpdateChatUnreadReactionCount(data)
|
|
|
|
case TypeUpdateChatVideoChat:
|
|
return UnmarshalUpdateChatVideoChat(data)
|
|
|
|
case TypeUpdateChatDefaultDisableNotification:
|
|
return UnmarshalUpdateChatDefaultDisableNotification(data)
|
|
|
|
case TypeUpdateChatHasProtectedContent:
|
|
return UnmarshalUpdateChatHasProtectedContent(data)
|
|
|
|
case TypeUpdateChatIsTranslatable:
|
|
return UnmarshalUpdateChatIsTranslatable(data)
|
|
|
|
case TypeUpdateChatIsMarkedAsUnread:
|
|
return UnmarshalUpdateChatIsMarkedAsUnread(data)
|
|
|
|
case TypeUpdateChatViewAsTopics:
|
|
return UnmarshalUpdateChatViewAsTopics(data)
|
|
|
|
case TypeUpdateChatBlockList:
|
|
return UnmarshalUpdateChatBlockList(data)
|
|
|
|
case TypeUpdateChatHasScheduledMessages:
|
|
return UnmarshalUpdateChatHasScheduledMessages(data)
|
|
|
|
case TypeUpdateChatFolders:
|
|
return UnmarshalUpdateChatFolders(data)
|
|
|
|
case TypeUpdateChatOnlineMemberCount:
|
|
return UnmarshalUpdateChatOnlineMemberCount(data)
|
|
|
|
case TypeUpdateSavedMessagesTopic:
|
|
return UnmarshalUpdateSavedMessagesTopic(data)
|
|
|
|
case TypeUpdateSavedMessagesTopicCount:
|
|
return UnmarshalUpdateSavedMessagesTopicCount(data)
|
|
|
|
case TypeUpdateDirectMessagesChatTopic:
|
|
return UnmarshalUpdateDirectMessagesChatTopic(data)
|
|
|
|
case TypeUpdateTopicMessageCount:
|
|
return UnmarshalUpdateTopicMessageCount(data)
|
|
|
|
case TypeUpdateQuickReplyShortcut:
|
|
return UnmarshalUpdateQuickReplyShortcut(data)
|
|
|
|
case TypeUpdateQuickReplyShortcutDeleted:
|
|
return UnmarshalUpdateQuickReplyShortcutDeleted(data)
|
|
|
|
case TypeUpdateQuickReplyShortcuts:
|
|
return UnmarshalUpdateQuickReplyShortcuts(data)
|
|
|
|
case TypeUpdateQuickReplyShortcutMessages:
|
|
return UnmarshalUpdateQuickReplyShortcutMessages(data)
|
|
|
|
case TypeUpdateForumTopicInfo:
|
|
return UnmarshalUpdateForumTopicInfo(data)
|
|
|
|
case TypeUpdateForumTopic:
|
|
return UnmarshalUpdateForumTopic(data)
|
|
|
|
case TypeUpdateScopeNotificationSettings:
|
|
return UnmarshalUpdateScopeNotificationSettings(data)
|
|
|
|
case TypeUpdateReactionNotificationSettings:
|
|
return UnmarshalUpdateReactionNotificationSettings(data)
|
|
|
|
case TypeUpdateNotification:
|
|
return UnmarshalUpdateNotification(data)
|
|
|
|
case TypeUpdateNotificationGroup:
|
|
return UnmarshalUpdateNotificationGroup(data)
|
|
|
|
case TypeUpdateActiveNotifications:
|
|
return UnmarshalUpdateActiveNotifications(data)
|
|
|
|
case TypeUpdateHavePendingNotifications:
|
|
return UnmarshalUpdateHavePendingNotifications(data)
|
|
|
|
case TypeUpdateDeleteMessages:
|
|
return UnmarshalUpdateDeleteMessages(data)
|
|
|
|
case TypeUpdateChatAction:
|
|
return UnmarshalUpdateChatAction(data)
|
|
|
|
case TypeUpdatePendingTextMessage:
|
|
return UnmarshalUpdatePendingTextMessage(data)
|
|
|
|
case TypeUpdateUserStatus:
|
|
return UnmarshalUpdateUserStatus(data)
|
|
|
|
case TypeUpdateUser:
|
|
return UnmarshalUpdateUser(data)
|
|
|
|
case TypeUpdateBasicGroup:
|
|
return UnmarshalUpdateBasicGroup(data)
|
|
|
|
case TypeUpdateSupergroup:
|
|
return UnmarshalUpdateSupergroup(data)
|
|
|
|
case TypeUpdateSecretChat:
|
|
return UnmarshalUpdateSecretChat(data)
|
|
|
|
case TypeUpdateUserFullInfo:
|
|
return UnmarshalUpdateUserFullInfo(data)
|
|
|
|
case TypeUpdateBasicGroupFullInfo:
|
|
return UnmarshalUpdateBasicGroupFullInfo(data)
|
|
|
|
case TypeUpdateSupergroupFullInfo:
|
|
return UnmarshalUpdateSupergroupFullInfo(data)
|
|
|
|
case TypeUpdateServiceNotification:
|
|
return UnmarshalUpdateServiceNotification(data)
|
|
|
|
case TypeUpdateFile:
|
|
return UnmarshalUpdateFile(data)
|
|
|
|
case TypeUpdateFileGenerationStart:
|
|
return UnmarshalUpdateFileGenerationStart(data)
|
|
|
|
case TypeUpdateFileGenerationStop:
|
|
return UnmarshalUpdateFileGenerationStop(data)
|
|
|
|
case TypeUpdateFileDownloads:
|
|
return UnmarshalUpdateFileDownloads(data)
|
|
|
|
case TypeUpdateFileAddedToDownloads:
|
|
return UnmarshalUpdateFileAddedToDownloads(data)
|
|
|
|
case TypeUpdateFileDownload:
|
|
return UnmarshalUpdateFileDownload(data)
|
|
|
|
case TypeUpdateFileRemovedFromDownloads:
|
|
return UnmarshalUpdateFileRemovedFromDownloads(data)
|
|
|
|
case TypeUpdateApplicationVerificationRequired:
|
|
return UnmarshalUpdateApplicationVerificationRequired(data)
|
|
|
|
case TypeUpdateApplicationRecaptchaVerificationRequired:
|
|
return UnmarshalUpdateApplicationRecaptchaVerificationRequired(data)
|
|
|
|
case TypeUpdateCall:
|
|
return UnmarshalUpdateCall(data)
|
|
|
|
case TypeUpdateGroupCall:
|
|
return UnmarshalUpdateGroupCall(data)
|
|
|
|
case TypeUpdateGroupCallParticipant:
|
|
return UnmarshalUpdateGroupCallParticipant(data)
|
|
|
|
case TypeUpdateGroupCallParticipants:
|
|
return UnmarshalUpdateGroupCallParticipants(data)
|
|
|
|
case TypeUpdateGroupCallVerificationState:
|
|
return UnmarshalUpdateGroupCallVerificationState(data)
|
|
|
|
case TypeUpdateNewGroupCallMessage:
|
|
return UnmarshalUpdateNewGroupCallMessage(data)
|
|
|
|
case TypeUpdateNewGroupCallPaidReaction:
|
|
return UnmarshalUpdateNewGroupCallPaidReaction(data)
|
|
|
|
case TypeUpdateGroupCallMessageSendFailed:
|
|
return UnmarshalUpdateGroupCallMessageSendFailed(data)
|
|
|
|
case TypeUpdateGroupCallMessagesDeleted:
|
|
return UnmarshalUpdateGroupCallMessagesDeleted(data)
|
|
|
|
case TypeUpdateLiveStoryTopDonors:
|
|
return UnmarshalUpdateLiveStoryTopDonors(data)
|
|
|
|
case TypeUpdateNewCallSignalingData:
|
|
return UnmarshalUpdateNewCallSignalingData(data)
|
|
|
|
case TypeUpdateGiftAuctionState:
|
|
return UnmarshalUpdateGiftAuctionState(data)
|
|
|
|
case TypeUpdateActiveGiftAuctions:
|
|
return UnmarshalUpdateActiveGiftAuctions(data)
|
|
|
|
case TypeUpdateUserPrivacySettingRules:
|
|
return UnmarshalUpdateUserPrivacySettingRules(data)
|
|
|
|
case TypeUpdateUnreadMessageCount:
|
|
return UnmarshalUpdateUnreadMessageCount(data)
|
|
|
|
case TypeUpdateUnreadChatCount:
|
|
return UnmarshalUpdateUnreadChatCount(data)
|
|
|
|
case TypeUpdateStory:
|
|
return UnmarshalUpdateStory(data)
|
|
|
|
case TypeUpdateStoryDeleted:
|
|
return UnmarshalUpdateStoryDeleted(data)
|
|
|
|
case TypeUpdateStoryPostSucceeded:
|
|
return UnmarshalUpdateStoryPostSucceeded(data)
|
|
|
|
case TypeUpdateStoryPostFailed:
|
|
return UnmarshalUpdateStoryPostFailed(data)
|
|
|
|
case TypeUpdateChatActiveStories:
|
|
return UnmarshalUpdateChatActiveStories(data)
|
|
|
|
case TypeUpdateStoryListChatCount:
|
|
return UnmarshalUpdateStoryListChatCount(data)
|
|
|
|
case TypeUpdateStoryStealthMode:
|
|
return UnmarshalUpdateStoryStealthMode(data)
|
|
|
|
case TypeUpdateTrustedMiniAppBots:
|
|
return UnmarshalUpdateTrustedMiniAppBots(data)
|
|
|
|
case TypeUpdateOption:
|
|
return UnmarshalUpdateOption(data)
|
|
|
|
case TypeUpdateStickerSet:
|
|
return UnmarshalUpdateStickerSet(data)
|
|
|
|
case TypeUpdateInstalledStickerSets:
|
|
return UnmarshalUpdateInstalledStickerSets(data)
|
|
|
|
case TypeUpdateTrendingStickerSets:
|
|
return UnmarshalUpdateTrendingStickerSets(data)
|
|
|
|
case TypeUpdateRecentStickers:
|
|
return UnmarshalUpdateRecentStickers(data)
|
|
|
|
case TypeUpdateFavoriteStickers:
|
|
return UnmarshalUpdateFavoriteStickers(data)
|
|
|
|
case TypeUpdateSavedAnimations:
|
|
return UnmarshalUpdateSavedAnimations(data)
|
|
|
|
case TypeUpdateSavedNotificationSounds:
|
|
return UnmarshalUpdateSavedNotificationSounds(data)
|
|
|
|
case TypeUpdateDefaultBackground:
|
|
return UnmarshalUpdateDefaultBackground(data)
|
|
|
|
case TypeUpdateEmojiChatThemes:
|
|
return UnmarshalUpdateEmojiChatThemes(data)
|
|
|
|
case TypeUpdateAccentColors:
|
|
return UnmarshalUpdateAccentColors(data)
|
|
|
|
case TypeUpdateProfileAccentColors:
|
|
return UnmarshalUpdateProfileAccentColors(data)
|
|
|
|
case TypeUpdateLanguagePackStrings:
|
|
return UnmarshalUpdateLanguagePackStrings(data)
|
|
|
|
case TypeUpdateConnectionState:
|
|
return UnmarshalUpdateConnectionState(data)
|
|
|
|
case TypeUpdateFreezeState:
|
|
return UnmarshalUpdateFreezeState(data)
|
|
|
|
case TypeUpdateAgeVerificationParameters:
|
|
return UnmarshalUpdateAgeVerificationParameters(data)
|
|
|
|
case TypeUpdateTermsOfService:
|
|
return UnmarshalUpdateTermsOfService(data)
|
|
|
|
case TypeUpdateUnconfirmedSession:
|
|
return UnmarshalUpdateUnconfirmedSession(data)
|
|
|
|
case TypeUpdateAttachmentMenuBots:
|
|
return UnmarshalUpdateAttachmentMenuBots(data)
|
|
|
|
case TypeUpdateWebAppMessageSent:
|
|
return UnmarshalUpdateWebAppMessageSent(data)
|
|
|
|
case TypeUpdateActiveEmojiReactions:
|
|
return UnmarshalUpdateActiveEmojiReactions(data)
|
|
|
|
case TypeUpdateAvailableMessageEffects:
|
|
return UnmarshalUpdateAvailableMessageEffects(data)
|
|
|
|
case TypeUpdateDefaultReactionType:
|
|
return UnmarshalUpdateDefaultReactionType(data)
|
|
|
|
case TypeUpdateDefaultPaidReactionType:
|
|
return UnmarshalUpdateDefaultPaidReactionType(data)
|
|
|
|
case TypeUpdateSavedMessagesTags:
|
|
return UnmarshalUpdateSavedMessagesTags(data)
|
|
|
|
case TypeUpdateActiveLiveLocationMessages:
|
|
return UnmarshalUpdateActiveLiveLocationMessages(data)
|
|
|
|
case TypeUpdateOwnedStarCount:
|
|
return UnmarshalUpdateOwnedStarCount(data)
|
|
|
|
case TypeUpdateOwnedTonCount:
|
|
return UnmarshalUpdateOwnedTonCount(data)
|
|
|
|
case TypeUpdateChatRevenueAmount:
|
|
return UnmarshalUpdateChatRevenueAmount(data)
|
|
|
|
case TypeUpdateStarRevenueStatus:
|
|
return UnmarshalUpdateStarRevenueStatus(data)
|
|
|
|
case TypeUpdateTonRevenueStatus:
|
|
return UnmarshalUpdateTonRevenueStatus(data)
|
|
|
|
case TypeUpdateSpeechRecognitionTrial:
|
|
return UnmarshalUpdateSpeechRecognitionTrial(data)
|
|
|
|
case TypeUpdateGroupCallMessageLevels:
|
|
return UnmarshalUpdateGroupCallMessageLevels(data)
|
|
|
|
case TypeUpdateDiceEmojis:
|
|
return UnmarshalUpdateDiceEmojis(data)
|
|
|
|
case TypeUpdateStakeDiceState:
|
|
return UnmarshalUpdateStakeDiceState(data)
|
|
|
|
case TypeUpdateAnimatedEmojiMessageClicked:
|
|
return UnmarshalUpdateAnimatedEmojiMessageClicked(data)
|
|
|
|
case TypeUpdateAnimationSearchParameters:
|
|
return UnmarshalUpdateAnimationSearchParameters(data)
|
|
|
|
case TypeUpdateSuggestedActions:
|
|
return UnmarshalUpdateSuggestedActions(data)
|
|
|
|
case TypeUpdateSpeedLimitNotification:
|
|
return UnmarshalUpdateSpeedLimitNotification(data)
|
|
|
|
case TypeUpdateContactCloseBirthdays:
|
|
return UnmarshalUpdateContactCloseBirthdays(data)
|
|
|
|
case TypeUpdateAutosaveSettings:
|
|
return UnmarshalUpdateAutosaveSettings(data)
|
|
|
|
case TypeUpdateBusinessConnection:
|
|
return UnmarshalUpdateBusinessConnection(data)
|
|
|
|
case TypeUpdateNewBusinessMessage:
|
|
return UnmarshalUpdateNewBusinessMessage(data)
|
|
|
|
case TypeUpdateBusinessMessageEdited:
|
|
return UnmarshalUpdateBusinessMessageEdited(data)
|
|
|
|
case TypeUpdateBusinessMessagesDeleted:
|
|
return UnmarshalUpdateBusinessMessagesDeleted(data)
|
|
|
|
case TypeUpdateNewInlineQuery:
|
|
return UnmarshalUpdateNewInlineQuery(data)
|
|
|
|
case TypeUpdateNewChosenInlineResult:
|
|
return UnmarshalUpdateNewChosenInlineResult(data)
|
|
|
|
case TypeUpdateNewCallbackQuery:
|
|
return UnmarshalUpdateNewCallbackQuery(data)
|
|
|
|
case TypeUpdateNewInlineCallbackQuery:
|
|
return UnmarshalUpdateNewInlineCallbackQuery(data)
|
|
|
|
case TypeUpdateNewBusinessCallbackQuery:
|
|
return UnmarshalUpdateNewBusinessCallbackQuery(data)
|
|
|
|
case TypeUpdateNewShippingQuery:
|
|
return UnmarshalUpdateNewShippingQuery(data)
|
|
|
|
case TypeUpdateNewPreCheckoutQuery:
|
|
return UnmarshalUpdateNewPreCheckoutQuery(data)
|
|
|
|
case TypeUpdateNewCustomEvent:
|
|
return UnmarshalUpdateNewCustomEvent(data)
|
|
|
|
case TypeUpdateNewCustomQuery:
|
|
return UnmarshalUpdateNewCustomQuery(data)
|
|
|
|
case TypeUpdatePoll:
|
|
return UnmarshalUpdatePoll(data)
|
|
|
|
case TypeUpdatePollAnswer:
|
|
return UnmarshalUpdatePollAnswer(data)
|
|
|
|
case TypeUpdateChatMember:
|
|
return UnmarshalUpdateChatMember(data)
|
|
|
|
case TypeUpdateNewChatJoinRequest:
|
|
return UnmarshalUpdateNewChatJoinRequest(data)
|
|
|
|
case TypeUpdateChatBoost:
|
|
return UnmarshalUpdateChatBoost(data)
|
|
|
|
case TypeUpdateMessageReaction:
|
|
return UnmarshalUpdateMessageReaction(data)
|
|
|
|
case TypeUpdateMessageReactions:
|
|
return UnmarshalUpdateMessageReactions(data)
|
|
|
|
case TypeUpdatePaidMediaPurchased:
|
|
return UnmarshalUpdatePaidMediaPurchased(data)
|
|
|
|
case TypeUpdates:
|
|
return UnmarshalUpdates(data)
|
|
|
|
case TypeLogStreamDefault:
|
|
return UnmarshalLogStreamDefault(data)
|
|
|
|
case TypeLogStreamFile:
|
|
return UnmarshalLogStreamFile(data)
|
|
|
|
case TypeLogStreamEmpty:
|
|
return UnmarshalLogStreamEmpty(data)
|
|
|
|
case TypeLogVerbosityLevel:
|
|
return UnmarshalLogVerbosityLevel(data)
|
|
|
|
case TypeLogTags:
|
|
return UnmarshalLogTags(data)
|
|
|
|
case TypeUserSupportInfo:
|
|
return UnmarshalUserSupportInfo(data)
|
|
|
|
case TypeTestInt:
|
|
return UnmarshalTestInt(data)
|
|
|
|
case TypeTestString:
|
|
return UnmarshalTestString(data)
|
|
|
|
case TypeTestBytes:
|
|
return UnmarshalTestBytes(data)
|
|
|
|
case TypeTestVectorInt:
|
|
return UnmarshalTestVectorInt(data)
|
|
|
|
case TypeTestVectorIntObject:
|
|
return UnmarshalTestVectorIntObject(data)
|
|
|
|
case TypeTestVectorString:
|
|
return UnmarshalTestVectorString(data)
|
|
|
|
case TypeTestVectorStringObject:
|
|
return UnmarshalTestVectorStringObject(data)
|
|
|
|
default:
|
|
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
|
|
}
|
|
}
|