go-tdlib/client/unmarshaler.go

23298 lines
612 KiB
Go
Raw Normal View History

2021-10-22 16:24:12 +02:00
// AUTOGENERATED
package client
import (
2024-10-06 19:09:53 +02:00
"encoding/json"
"fmt"
2021-10-22 16:24:12 +02:00
)
func UnmarshalAuthenticationCodeType(data json.RawMessage) (AuthenticationCodeType, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeAuthenticationCodeTypeTelegramMessage:
return UnmarshalAuthenticationCodeTypeTelegramMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthenticationCodeTypeSms:
return UnmarshalAuthenticationCodeTypeSms(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthenticationCodeTypeCall:
return UnmarshalAuthenticationCodeTypeCall(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthenticationCodeTypeFlashCall:
return UnmarshalAuthenticationCodeTypeFlashCall(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthenticationCodeTypeMissedCall:
return UnmarshalAuthenticationCodeTypeMissedCall(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeAuthenticationCodeTypeFragment:
return UnmarshalAuthenticationCodeTypeFragment(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthenticationCodeTypeFirebaseAndroid:
return UnmarshalAuthenticationCodeTypeFirebaseAndroid(data)
case TypeAuthenticationCodeTypeFirebaseIos:
return UnmarshalAuthenticationCodeTypeFirebaseIos(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfAuthenticationCodeType(dataList []json.RawMessage) ([]AuthenticationCodeType, error) {
2024-10-06 19:09:53 +02:00
list := []AuthenticationCodeType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalAuthenticationCodeType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2023-06-04 22:58:07 +02:00
func UnmarshalEmailAddressAuthentication(data json.RawMessage) (EmailAddressAuthentication, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeEmailAddressAuthenticationCode:
return UnmarshalEmailAddressAuthenticationCode(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmailAddressAuthenticationAppleId:
return UnmarshalEmailAddressAuthenticationAppleId(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmailAddressAuthenticationGoogleId:
return UnmarshalEmailAddressAuthenticationGoogleId(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
func UnmarshalListOfEmailAddressAuthentication(dataList []json.RawMessage) ([]EmailAddressAuthentication, error) {
2024-10-06 19:09:53 +02:00
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)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmailAddressResetStatePending:
return UnmarshalEmailAddressResetStatePending(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
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
2023-06-04 22:58:07 +02:00
}
2021-10-22 16:24:12 +02:00
func UnmarshalAuthorizationState(data json.RawMessage) (AuthorizationState, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeAuthorizationStateWaitTdlibParameters:
return UnmarshalAuthorizationStateWaitTdlibParameters(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthorizationStateWaitPhoneNumber:
return UnmarshalAuthorizationStateWaitPhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthorizationStateWaitEmailAddress:
return UnmarshalAuthorizationStateWaitEmailAddress(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthorizationStateWaitEmailCode:
return UnmarshalAuthorizationStateWaitEmailCode(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthorizationStateWaitCode:
return UnmarshalAuthorizationStateWaitCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthorizationStateWaitOtherDeviceConfirmation:
return UnmarshalAuthorizationStateWaitOtherDeviceConfirmation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthorizationStateWaitRegistration:
return UnmarshalAuthorizationStateWaitRegistration(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthorizationStateWaitPassword:
return UnmarshalAuthorizationStateWaitPassword(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthorizationStateReady:
return UnmarshalAuthorizationStateReady(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthorizationStateLoggingOut:
return UnmarshalAuthorizationStateLoggingOut(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthorizationStateClosing:
return UnmarshalAuthorizationStateClosing(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAuthorizationStateClosed:
return UnmarshalAuthorizationStateClosed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfAuthorizationState(dataList []json.RawMessage) ([]AuthorizationState, error) {
2024-10-06 19:09:53 +02:00
list := []AuthorizationState{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalAuthorizationState(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalInputFile(data json.RawMessage) (InputFile, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInputFileId:
return UnmarshalInputFileId(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputFileRemote:
return UnmarshalInputFileRemote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputFileLocal:
return UnmarshalInputFileLocal(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputFileGenerated:
return UnmarshalInputFileGenerated(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfInputFile(dataList []json.RawMessage) ([]InputFile, error) {
2024-10-06 19:09:53 +02:00
list := []InputFile{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInputFile(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalThumbnailFormat(data json.RawMessage) (ThumbnailFormat, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeThumbnailFormatJpeg:
return UnmarshalThumbnailFormatJpeg(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeThumbnailFormatGif:
return UnmarshalThumbnailFormatGif(data)
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
case TypeThumbnailFormatMpeg4:
return UnmarshalThumbnailFormatMpeg4(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeThumbnailFormatPng:
return UnmarshalThumbnailFormatPng(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeThumbnailFormatTgs:
return UnmarshalThumbnailFormatTgs(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeThumbnailFormatWebm:
return UnmarshalThumbnailFormatWebm(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeThumbnailFormatWebp:
return UnmarshalThumbnailFormatWebp(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfThumbnailFormat(dataList []json.RawMessage) ([]ThumbnailFormat, error) {
2024-10-06 19:09:53 +02:00
list := []ThumbnailFormat{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalThumbnailFormat(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalMaskPoint(data json.RawMessage) (MaskPoint, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeMaskPointForehead:
return UnmarshalMaskPointForehead(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMaskPointEyes:
return UnmarshalMaskPointEyes(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMaskPointMouth:
return UnmarshalMaskPointMouth(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMaskPointChin:
return UnmarshalMaskPointChin(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfMaskPoint(dataList []json.RawMessage) ([]MaskPoint, error) {
2024-10-06 19:09:53 +02:00
list := []MaskPoint{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalMaskPoint(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2023-06-04 22:58:07 +02:00
func UnmarshalStickerFormat(data json.RawMessage) (StickerFormat, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeStickerFormatWebp:
return UnmarshalStickerFormatWebp(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeStickerFormatTgs:
return UnmarshalStickerFormatTgs(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeStickerFormatWebm:
return UnmarshalStickerFormatWebm(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
func UnmarshalListOfStickerFormat(dataList []json.RawMessage) ([]StickerFormat, error) {
2024-10-06 19:09:53 +02:00
list := []StickerFormat{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalStickerFormat(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
func UnmarshalStickerType(data json.RawMessage) (StickerType, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeStickerTypeRegular:
return UnmarshalStickerTypeRegular(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeStickerTypeMask:
return UnmarshalStickerTypeMask(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeStickerTypeCustomEmoji:
return UnmarshalStickerTypeCustomEmoji(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
func UnmarshalListOfStickerType(dataList []json.RawMessage) ([]StickerType, error) {
2024-10-06 19:09:53 +02:00
list := []StickerType{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalStickerType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
func UnmarshalStickerFullType(data json.RawMessage) (StickerFullType, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeStickerFullTypeRegular:
return UnmarshalStickerFullTypeRegular(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeStickerFullTypeMask:
return UnmarshalStickerFullTypeMask(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeStickerFullTypeCustomEmoji:
return UnmarshalStickerFullTypeCustomEmoji(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
func UnmarshalListOfStickerFullType(dataList []json.RawMessage) ([]StickerFullType, error) {
2024-10-06 19:09:53 +02:00
list := []StickerFullType{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalStickerFullType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
2021-10-22 16:24:12 +02:00
func UnmarshalPollType(data json.RawMessage) (PollType, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePollTypeRegular:
return UnmarshalPollTypeRegular(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePollTypeQuiz:
return UnmarshalPollTypeQuiz(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfPollType(dataList []json.RawMessage) ([]PollType, error) {
2024-10-06 19:09:53 +02:00
list := []PollType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPollType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalUserType(data json.RawMessage) (UserType, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeUserTypeRegular:
return UnmarshalUserTypeRegular(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserTypeDeleted:
return UnmarshalUserTypeDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserTypeBot:
return UnmarshalUserTypeBot(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserTypeUnknown:
return UnmarshalUserTypeUnknown(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfUserType(dataList []json.RawMessage) ([]UserType, error) {
2024-10-06 19:09:53 +02:00
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)
}
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfChatPhotoStickerType(dataList []json.RawMessage) ([]ChatPhotoStickerType, error) {
list := []ChatPhotoStickerType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatPhotoStickerType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalInputChatPhoto(data json.RawMessage) (InputChatPhoto, error) {
2024-10-06 19:09:53 +02:00
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInputChatPhotoPrevious:
return UnmarshalInputChatPhotoPrevious(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputChatPhotoStatic:
return UnmarshalInputChatPhotoStatic(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputChatPhotoAnimation:
return UnmarshalInputChatPhotoAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputChatPhotoSticker:
return UnmarshalInputChatPhotoSticker(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfInputChatPhoto(dataList []json.RawMessage) ([]InputChatPhoto, error) {
2024-10-06 19:09:53 +02:00
list := []InputChatPhoto{}
for _, data := range dataList {
entity, err := UnmarshalInputChatPhoto(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
func UnmarshalPremiumGiveawayParticipantStatus(data json.RawMessage) (PremiumGiveawayParticipantStatus, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypePremiumGiveawayParticipantStatusEligible:
return UnmarshalPremiumGiveawayParticipantStatusEligible(data)
case TypePremiumGiveawayParticipantStatusParticipating:
return UnmarshalPremiumGiveawayParticipantStatusParticipating(data)
case TypePremiumGiveawayParticipantStatusAlreadyWasMember:
return UnmarshalPremiumGiveawayParticipantStatusAlreadyWasMember(data)
case TypePremiumGiveawayParticipantStatusAdministrator:
return UnmarshalPremiumGiveawayParticipantStatusAdministrator(data)
case TypePremiumGiveawayParticipantStatusDisallowedCountry:
return UnmarshalPremiumGiveawayParticipantStatusDisallowedCountry(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfPremiumGiveawayParticipantStatus(dataList []json.RawMessage) ([]PremiumGiveawayParticipantStatus, error) {
list := []PremiumGiveawayParticipantStatus{}
for _, data := range dataList {
entity, err := UnmarshalPremiumGiveawayParticipantStatus(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
func UnmarshalPremiumGiveawayInfo(data json.RawMessage) (PremiumGiveawayInfo, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypePremiumGiveawayInfoOngoing:
return UnmarshalPremiumGiveawayInfoOngoing(data)
case TypePremiumGiveawayInfoCompleted:
return UnmarshalPremiumGiveawayInfoCompleted(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfPremiumGiveawayInfo(dataList []json.RawMessage) ([]PremiumGiveawayInfo, error) {
list := []PremiumGiveawayInfo{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPremiumGiveawayInfo(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalChatMemberStatus(data json.RawMessage) (ChatMemberStatus, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeChatMemberStatusCreator:
return UnmarshalChatMemberStatusCreator(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatMemberStatusAdministrator:
return UnmarshalChatMemberStatusAdministrator(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatMemberStatusMember:
return UnmarshalChatMemberStatusMember(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatMemberStatusRestricted:
return UnmarshalChatMemberStatusRestricted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatMemberStatusLeft:
return UnmarshalChatMemberStatusLeft(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatMemberStatusBanned:
return UnmarshalChatMemberStatusBanned(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfChatMemberStatus(dataList []json.RawMessage) ([]ChatMemberStatus, error) {
2024-10-06 19:09:53 +02:00
list := []ChatMemberStatus{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatMemberStatus(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalChatMembersFilter(data json.RawMessage) (ChatMembersFilter, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeChatMembersFilterContacts:
return UnmarshalChatMembersFilterContacts(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatMembersFilterAdministrators:
return UnmarshalChatMembersFilterAdministrators(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatMembersFilterMembers:
return UnmarshalChatMembersFilterMembers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatMembersFilterMention:
return UnmarshalChatMembersFilterMention(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatMembersFilterRestricted:
return UnmarshalChatMembersFilterRestricted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatMembersFilterBanned:
return UnmarshalChatMembersFilterBanned(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatMembersFilterBots:
return UnmarshalChatMembersFilterBots(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfChatMembersFilter(dataList []json.RawMessage) ([]ChatMembersFilter, error) {
2024-10-06 19:09:53 +02:00
list := []ChatMembersFilter{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatMembersFilter(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalSupergroupMembersFilter(data json.RawMessage) (SupergroupMembersFilter, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeSupergroupMembersFilterRecent:
return UnmarshalSupergroupMembersFilterRecent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSupergroupMembersFilterContacts:
return UnmarshalSupergroupMembersFilterContacts(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSupergroupMembersFilterAdministrators:
return UnmarshalSupergroupMembersFilterAdministrators(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSupergroupMembersFilterSearch:
return UnmarshalSupergroupMembersFilterSearch(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSupergroupMembersFilterRestricted:
return UnmarshalSupergroupMembersFilterRestricted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSupergroupMembersFilterBanned:
return UnmarshalSupergroupMembersFilterBanned(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSupergroupMembersFilterMention:
return UnmarshalSupergroupMembersFilterMention(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSupergroupMembersFilterBots:
return UnmarshalSupergroupMembersFilterBots(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfSupergroupMembersFilter(dataList []json.RawMessage) ([]SupergroupMembersFilter, error) {
2024-10-06 19:09:53 +02:00
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)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInviteLinkChatTypeChannel:
return UnmarshalInviteLinkChatTypeChannel(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
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
2021-10-22 16:24:12 +02:00
}
func UnmarshalSecretChatState(data json.RawMessage) (SecretChatState, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeSecretChatStatePending:
return UnmarshalSecretChatStatePending(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSecretChatStateReady:
return UnmarshalSecretChatStateReady(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSecretChatStateClosed:
return UnmarshalSecretChatStateClosed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfSecretChatState(dataList []json.RawMessage) ([]SecretChatState, error) {
2024-10-06 19:09:53 +02:00
list := []SecretChatState{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalSecretChatState(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalMessageSender(data json.RawMessage) (MessageSender, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeMessageSenderUser:
return UnmarshalMessageSenderUser(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSenderChat:
return UnmarshalMessageSenderChat(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfMessageSender(dataList []json.RawMessage) ([]MessageSender, error) {
2024-10-06 19:09:53 +02:00
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
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
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)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
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
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalMessageOrigin(data json.RawMessage) (MessageOrigin, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeMessageOriginUser:
return UnmarshalMessageOriginUser(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageOriginHiddenUser:
return UnmarshalMessageOriginHiddenUser(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageOriginChat:
return UnmarshalMessageOriginChat(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageOriginChannel:
return UnmarshalMessageOriginChannel(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfMessageOrigin(dataList []json.RawMessage) ([]MessageOrigin, error) {
list := []MessageOrigin{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalMessageOrigin(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2023-06-04 22:58:07 +02:00
func UnmarshalReactionType(data json.RawMessage) (ReactionType, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeReactionTypeEmoji:
return UnmarshalReactionTypeEmoji(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeReactionTypeCustomEmoji:
return UnmarshalReactionTypeCustomEmoji(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
func UnmarshalListOfReactionType(dataList []json.RawMessage) ([]ReactionType, error) {
2024-10-06 19:09:53 +02:00
list := []ReactionType{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalReactionType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
2021-10-22 16:24:12 +02:00
func UnmarshalMessageSendingState(data json.RawMessage) (MessageSendingState, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeMessageSendingStatePending:
return UnmarshalMessageSendingStatePending(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSendingStateFailed:
return UnmarshalMessageSendingStateFailed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfMessageSendingState(dataList []json.RawMessage) ([]MessageSendingState, error) {
2024-10-06 19:09:53 +02:00
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 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 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 UnmarshalMessageSponsorType(data json.RawMessage) (MessageSponsorType, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeMessageSponsorTypeBot:
return UnmarshalMessageSponsorTypeBot(data)
case TypeMessageSponsorTypeWebApp:
return UnmarshalMessageSponsorTypeWebApp(data)
case TypeMessageSponsorTypePublicChannel:
return UnmarshalMessageSponsorTypePublicChannel(data)
case TypeMessageSponsorTypePrivateChannel:
return UnmarshalMessageSponsorTypePrivateChannel(data)
case TypeMessageSponsorTypeWebsite:
return UnmarshalMessageSponsorTypeWebsite(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfMessageSponsorType(dataList []json.RawMessage) ([]MessageSponsorType, error) {
list := []MessageSponsorType{}
for _, data := range dataList {
entity, err := UnmarshalMessageSponsorType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
func UnmarshalReportChatSponsoredMessageResult(data json.RawMessage) (ReportChatSponsoredMessageResult, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeReportChatSponsoredMessageResultOk:
return UnmarshalReportChatSponsoredMessageResultOk(data)
case TypeReportChatSponsoredMessageResultFailed:
return UnmarshalReportChatSponsoredMessageResultFailed(data)
case TypeReportChatSponsoredMessageResultOptionRequired:
return UnmarshalReportChatSponsoredMessageResultOptionRequired(data)
case TypeReportChatSponsoredMessageResultAdsHidden:
return UnmarshalReportChatSponsoredMessageResultAdsHidden(data)
case TypeReportChatSponsoredMessageResultPremiumRequired:
return UnmarshalReportChatSponsoredMessageResultPremiumRequired(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfReportChatSponsoredMessageResult(dataList []json.RawMessage) ([]ReportChatSponsoredMessageResult, error) {
list := []ReportChatSponsoredMessageResult{}
for _, data := range dataList {
entity, err := UnmarshalReportChatSponsoredMessageResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalNotificationSettingsScope(data json.RawMessage) (NotificationSettingsScope, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeNotificationSettingsScopePrivateChats:
return UnmarshalNotificationSettingsScopePrivateChats(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationSettingsScopeGroupChats:
return UnmarshalNotificationSettingsScopeGroupChats(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationSettingsScopeChannelChats:
return UnmarshalNotificationSettingsScopeChannelChats(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfNotificationSettingsScope(dataList []json.RawMessage) ([]NotificationSettingsScope, error) {
2024-10-06 19:09:53 +02:00
list := []NotificationSettingsScope{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalNotificationSettingsScope(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalChatType(data json.RawMessage) (ChatType, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeChatTypePrivate:
return UnmarshalChatTypePrivate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatTypeBasicGroup:
return UnmarshalChatTypeBasicGroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatTypeSupergroup:
return UnmarshalChatTypeSupergroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatTypeSecret:
return UnmarshalChatTypeSecret(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfChatType(dataList []json.RawMessage) ([]ChatType, error) {
2024-10-06 19:09:53 +02:00
list := []ChatType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalChatList(data json.RawMessage) (ChatList, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeChatListMain:
return UnmarshalChatListMain(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatListArchive:
return UnmarshalChatListArchive(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatListFolder:
return UnmarshalChatListFolder(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfChatList(dataList []json.RawMessage) ([]ChatList, error) {
2024-10-06 19:09:53 +02:00
list := []ChatList{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatList(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalChatSource(data json.RawMessage) (ChatSource, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeChatSourceMtprotoProxy:
return UnmarshalChatSourceMtprotoProxy(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatSourcePublicServiceAnnouncement:
return UnmarshalChatSourcePublicServiceAnnouncement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfChatSource(dataList []json.RawMessage) ([]ChatSource, error) {
2024-10-06 19:09:53 +02:00
list := []ChatSource{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatSource(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2023-06-04 22:58:07 +02:00
func UnmarshalChatAvailableReactions(data json.RawMessage) (ChatAvailableReactions, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeChatAvailableReactionsAll:
return UnmarshalChatAvailableReactionsAll(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatAvailableReactionsSome:
return UnmarshalChatAvailableReactionsSome(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
func UnmarshalListOfChatAvailableReactions(dataList []json.RawMessage) ([]ChatAvailableReactions, error) {
2024-10-06 19:09:53 +02:00
list := []ChatAvailableReactions{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatAvailableReactions(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
2021-10-22 16:24:12 +02:00
func UnmarshalPublicChatType(data json.RawMessage) (PublicChatType, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePublicChatTypeHasUsername:
return UnmarshalPublicChatTypeHasUsername(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePublicChatTypeIsLocationBased:
return UnmarshalPublicChatTypeIsLocationBased(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfPublicChatType(dataList []json.RawMessage) ([]PublicChatType, error) {
2024-10-06 19:09:53 +02:00
list := []PublicChatType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPublicChatType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalChatActionBar(data json.RawMessage) (ChatActionBar, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeChatActionBarReportSpam:
return UnmarshalChatActionBarReportSpam(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionBarReportUnrelatedLocation:
return UnmarshalChatActionBarReportUnrelatedLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionBarInviteMembers:
return UnmarshalChatActionBarInviteMembers(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeChatActionBarReportAddBlock:
return UnmarshalChatActionBarReportAddBlock(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionBarAddContact:
return UnmarshalChatActionBarAddContact(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionBarSharePhoneNumber:
return UnmarshalChatActionBarSharePhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionBarJoinRequest:
return UnmarshalChatActionBarJoinRequest(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfChatActionBar(dataList []json.RawMessage) ([]ChatActionBar, error) {
2024-10-06 19:09:53 +02:00
list := []ChatActionBar{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatActionBar(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalKeyboardButtonType(data json.RawMessage) (KeyboardButtonType, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeKeyboardButtonTypeText:
return UnmarshalKeyboardButtonTypeText(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeKeyboardButtonTypeRequestPhoneNumber:
return UnmarshalKeyboardButtonTypeRequestPhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeKeyboardButtonTypeRequestLocation:
return UnmarshalKeyboardButtonTypeRequestLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeKeyboardButtonTypeRequestPoll:
return UnmarshalKeyboardButtonTypeRequestPoll(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeKeyboardButtonTypeRequestUsers:
return UnmarshalKeyboardButtonTypeRequestUsers(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeKeyboardButtonTypeRequestChat:
return UnmarshalKeyboardButtonTypeRequestChat(data)
case TypeKeyboardButtonTypeWebApp:
return UnmarshalKeyboardButtonTypeWebApp(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfKeyboardButtonType(dataList []json.RawMessage) ([]KeyboardButtonType, error) {
2024-10-06 19:09:53 +02:00
list := []KeyboardButtonType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalKeyboardButtonType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalInlineKeyboardButtonType(data json.RawMessage) (InlineKeyboardButtonType, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInlineKeyboardButtonTypeUrl:
return UnmarshalInlineKeyboardButtonTypeUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineKeyboardButtonTypeLoginUrl:
return UnmarshalInlineKeyboardButtonTypeLoginUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineKeyboardButtonTypeWebApp:
return UnmarshalInlineKeyboardButtonTypeWebApp(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineKeyboardButtonTypeCallback:
return UnmarshalInlineKeyboardButtonTypeCallback(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineKeyboardButtonTypeCallbackWithPassword:
return UnmarshalInlineKeyboardButtonTypeCallbackWithPassword(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineKeyboardButtonTypeCallbackGame:
return UnmarshalInlineKeyboardButtonTypeCallbackGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineKeyboardButtonTypeSwitchInline:
return UnmarshalInlineKeyboardButtonTypeSwitchInline(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineKeyboardButtonTypeBuy:
return UnmarshalInlineKeyboardButtonTypeBuy(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineKeyboardButtonTypeUser:
return UnmarshalInlineKeyboardButtonTypeUser(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfInlineKeyboardButtonType(dataList []json.RawMessage) ([]InlineKeyboardButtonType, error) {
2024-10-06 19:09:53 +02:00
list := []InlineKeyboardButtonType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInlineKeyboardButtonType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalReplyMarkup(data json.RawMessage) (ReplyMarkup, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeReplyMarkupRemoveKeyboard:
return UnmarshalReplyMarkupRemoveKeyboard(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReplyMarkupForceReply:
return UnmarshalReplyMarkupForceReply(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReplyMarkupShowKeyboard:
return UnmarshalReplyMarkupShowKeyboard(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReplyMarkupInlineKeyboard:
return UnmarshalReplyMarkupInlineKeyboard(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfReplyMarkup(dataList []json.RawMessage) ([]ReplyMarkup, error) {
2024-10-06 19:09:53 +02:00
list := []ReplyMarkup{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalReplyMarkup(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalLoginUrlInfo(data json.RawMessage) (LoginUrlInfo, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeLoginUrlInfoOpen:
return UnmarshalLoginUrlInfoOpen(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLoginUrlInfoRequestConfirmation:
return UnmarshalLoginUrlInfoRequestConfirmation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfLoginUrlInfo(dataList []json.RawMessage) ([]LoginUrlInfo, error) {
2024-10-06 19:09:53 +02:00
list := []LoginUrlInfo{}
for _, data := range dataList {
entity, err := UnmarshalLoginUrlInfo(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)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSavedMessagesTopicTypeAuthorHidden:
return UnmarshalSavedMessagesTopicTypeAuthorHidden(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
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
2021-10-22 16:24:12 +02:00
}
func UnmarshalRichText(data json.RawMessage) (RichText, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeRichTextPlain:
return UnmarshalRichTextPlain(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextBold:
return UnmarshalRichTextBold(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextItalic:
return UnmarshalRichTextItalic(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextUnderline:
return UnmarshalRichTextUnderline(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextStrikethrough:
return UnmarshalRichTextStrikethrough(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextFixed:
return UnmarshalRichTextFixed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextUrl:
return UnmarshalRichTextUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextEmailAddress:
return UnmarshalRichTextEmailAddress(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextSubscript:
return UnmarshalRichTextSubscript(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextSuperscript:
return UnmarshalRichTextSuperscript(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextMarked:
return UnmarshalRichTextMarked(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextPhoneNumber:
return UnmarshalRichTextPhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextIcon:
return UnmarshalRichTextIcon(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextReference:
return UnmarshalRichTextReference(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextAnchor:
return UnmarshalRichTextAnchor(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextAnchorLink:
return UnmarshalRichTextAnchorLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTexts:
return UnmarshalRichTexts(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfRichText(dataList []json.RawMessage) ([]RichText, error) {
2024-10-06 19:09:53 +02:00
list := []RichText{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalRichText(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalPageBlockHorizontalAlignment(data json.RawMessage) (PageBlockHorizontalAlignment, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePageBlockHorizontalAlignmentLeft:
return UnmarshalPageBlockHorizontalAlignmentLeft(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockHorizontalAlignmentCenter:
return UnmarshalPageBlockHorizontalAlignmentCenter(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockHorizontalAlignmentRight:
return UnmarshalPageBlockHorizontalAlignmentRight(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfPageBlockHorizontalAlignment(dataList []json.RawMessage) ([]PageBlockHorizontalAlignment, error) {
2024-10-06 19:09:53 +02:00
list := []PageBlockHorizontalAlignment{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPageBlockHorizontalAlignment(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalPageBlockVerticalAlignment(data json.RawMessage) (PageBlockVerticalAlignment, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePageBlockVerticalAlignmentTop:
return UnmarshalPageBlockVerticalAlignmentTop(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockVerticalAlignmentMiddle:
return UnmarshalPageBlockVerticalAlignmentMiddle(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockVerticalAlignmentBottom:
return UnmarshalPageBlockVerticalAlignmentBottom(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfPageBlockVerticalAlignment(dataList []json.RawMessage) ([]PageBlockVerticalAlignment, error) {
2024-10-06 19:09:53 +02:00
list := []PageBlockVerticalAlignment{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPageBlockVerticalAlignment(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalPageBlock(data json.RawMessage) (PageBlock, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePageBlockTitle:
return UnmarshalPageBlockTitle(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockSubtitle:
return UnmarshalPageBlockSubtitle(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockAuthorDate:
return UnmarshalPageBlockAuthorDate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockHeader:
return UnmarshalPageBlockHeader(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockSubheader:
return UnmarshalPageBlockSubheader(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockKicker:
return UnmarshalPageBlockKicker(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockParagraph:
return UnmarshalPageBlockParagraph(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockPreformatted:
return UnmarshalPageBlockPreformatted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockFooter:
return UnmarshalPageBlockFooter(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockDivider:
return UnmarshalPageBlockDivider(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockAnchor:
return UnmarshalPageBlockAnchor(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockList:
return UnmarshalPageBlockList(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockBlockQuote:
return UnmarshalPageBlockBlockQuote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockPullQuote:
return UnmarshalPageBlockPullQuote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockAnimation:
return UnmarshalPageBlockAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockAudio:
return UnmarshalPageBlockAudio(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockPhoto:
return UnmarshalPageBlockPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockVideo:
return UnmarshalPageBlockVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockVoiceNote:
return UnmarshalPageBlockVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockCover:
return UnmarshalPageBlockCover(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockEmbedded:
return UnmarshalPageBlockEmbedded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockEmbeddedPost:
return UnmarshalPageBlockEmbeddedPost(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockCollage:
return UnmarshalPageBlockCollage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockSlideshow:
return UnmarshalPageBlockSlideshow(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockChatLink:
return UnmarshalPageBlockChatLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockTable:
return UnmarshalPageBlockTable(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockDetails:
return UnmarshalPageBlockDetails(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockRelatedArticles:
return UnmarshalPageBlockRelatedArticles(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockMap:
return UnmarshalPageBlockMap(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfPageBlock(dataList []json.RawMessage) ([]PageBlock, error) {
2024-10-06 19:09:53 +02:00
list := []PageBlock{}
for _, data := range dataList {
entity, err := UnmarshalPageBlock(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalCollectibleItemType(data json.RawMessage) (CollectibleItemType, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
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
2021-10-22 16:24:12 +02:00
}
func UnmarshalInputCredentials(data json.RawMessage) (InputCredentials, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInputCredentialsSaved:
return UnmarshalInputCredentialsSaved(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputCredentialsNew:
return UnmarshalInputCredentialsNew(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputCredentialsApplePay:
return UnmarshalInputCredentialsApplePay(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputCredentialsGooglePay:
return UnmarshalInputCredentialsGooglePay(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfInputCredentials(dataList []json.RawMessage) ([]InputCredentials, error) {
2024-10-06 19:09:53 +02:00
list := []InputCredentials{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInputCredentials(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2023-06-04 22:58:07 +02:00
func UnmarshalPaymentProvider(data json.RawMessage) (PaymentProvider, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePaymentProviderSmartGlocal:
return UnmarshalPaymentProviderSmartGlocal(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePaymentProviderStripe:
return UnmarshalPaymentProviderStripe(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePaymentProviderOther:
return UnmarshalPaymentProviderOther(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
2021-10-22 16:24:12 +02:00
2023-06-04 22:58:07 +02:00
func UnmarshalListOfPaymentProvider(dataList []json.RawMessage) ([]PaymentProvider, error) {
2024-10-06 19:09:53 +02:00
list := []PaymentProvider{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPaymentProvider(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
2021-10-22 16:24:12 +02:00
2023-06-04 22:58:07 +02:00
func UnmarshalInputInvoice(data json.RawMessage) (InputInvoice, error) {
2024-10-06 19:09:53 +02:00
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInputInvoiceMessage:
return UnmarshalInputInvoiceMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInvoiceName:
return UnmarshalInputInvoiceName(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInvoiceTelegram:
return UnmarshalInputInvoiceTelegram(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2023-06-04 22:58:07 +02:00
func UnmarshalListOfInputInvoice(dataList []json.RawMessage) ([]InputInvoice, error) {
2024-10-06 19:09:53 +02:00
list := []InputInvoice{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInputInvoice(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2023-06-04 22:58:07 +02:00
func UnmarshalMessageExtendedMedia(data json.RawMessage) (MessageExtendedMedia, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeMessageExtendedMediaPreview:
return UnmarshalMessageExtendedMediaPreview(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExtendedMediaPhoto:
return UnmarshalMessageExtendedMediaPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExtendedMediaVideo:
return UnmarshalMessageExtendedMediaVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExtendedMediaUnsupported:
return UnmarshalMessageExtendedMediaUnsupported(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
2021-10-22 16:24:12 +02:00
2023-06-04 22:58:07 +02:00
func UnmarshalListOfMessageExtendedMedia(dataList []json.RawMessage) ([]MessageExtendedMedia, error) {
2024-10-06 19:09:53 +02:00
list := []MessageExtendedMedia{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalMessageExtendedMedia(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
func UnmarshalPassportElementType(data json.RawMessage) (PassportElementType, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePassportElementTypePersonalDetails:
return UnmarshalPassportElementTypePersonalDetails(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypePassport:
return UnmarshalPassportElementTypePassport(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeDriverLicense:
return UnmarshalPassportElementTypeDriverLicense(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeIdentityCard:
return UnmarshalPassportElementTypeIdentityCard(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeInternalPassport:
return UnmarshalPassportElementTypeInternalPassport(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeAddress:
return UnmarshalPassportElementTypeAddress(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeUtilityBill:
return UnmarshalPassportElementTypeUtilityBill(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeBankStatement:
return UnmarshalPassportElementTypeBankStatement(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeRentalAgreement:
return UnmarshalPassportElementTypeRentalAgreement(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypePassportRegistration:
return UnmarshalPassportElementTypePassportRegistration(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeTemporaryRegistration:
return UnmarshalPassportElementTypeTemporaryRegistration(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypePhoneNumber:
return UnmarshalPassportElementTypePhoneNumber(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeEmailAddress:
return UnmarshalPassportElementTypeEmailAddress(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
func UnmarshalListOfPassportElementType(dataList []json.RawMessage) ([]PassportElementType, error) {
2024-10-06 19:09:53 +02:00
list := []PassportElementType{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPassportElementType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
func UnmarshalPassportElement(data json.RawMessage) (PassportElement, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePassportElementPersonalDetails:
return UnmarshalPassportElementPersonalDetails(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementPassport:
return UnmarshalPassportElementPassport(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementDriverLicense:
return UnmarshalPassportElementDriverLicense(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementIdentityCard:
return UnmarshalPassportElementIdentityCard(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementInternalPassport:
return UnmarshalPassportElementInternalPassport(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementAddress:
return UnmarshalPassportElementAddress(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementUtilityBill:
return UnmarshalPassportElementUtilityBill(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementBankStatement:
return UnmarshalPassportElementBankStatement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementRentalAgreement:
return UnmarshalPassportElementRentalAgreement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementPassportRegistration:
return UnmarshalPassportElementPassportRegistration(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTemporaryRegistration:
return UnmarshalPassportElementTemporaryRegistration(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementPhoneNumber:
return UnmarshalPassportElementPhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementEmailAddress:
return UnmarshalPassportElementEmailAddress(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfPassportElement(dataList []json.RawMessage) ([]PassportElement, error) {
2024-10-06 19:09:53 +02:00
list := []PassportElement{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPassportElement(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalInputPassportElement(data json.RawMessage) (InputPassportElement, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInputPassportElementPersonalDetails:
return UnmarshalInputPassportElementPersonalDetails(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementPassport:
return UnmarshalInputPassportElementPassport(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementDriverLicense:
return UnmarshalInputPassportElementDriverLicense(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementIdentityCard:
return UnmarshalInputPassportElementIdentityCard(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementInternalPassport:
return UnmarshalInputPassportElementInternalPassport(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementAddress:
return UnmarshalInputPassportElementAddress(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementUtilityBill:
return UnmarshalInputPassportElementUtilityBill(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementBankStatement:
return UnmarshalInputPassportElementBankStatement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementRentalAgreement:
return UnmarshalInputPassportElementRentalAgreement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementPassportRegistration:
return UnmarshalInputPassportElementPassportRegistration(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementTemporaryRegistration:
return UnmarshalInputPassportElementTemporaryRegistration(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementPhoneNumber:
return UnmarshalInputPassportElementPhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementEmailAddress:
return UnmarshalInputPassportElementEmailAddress(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfInputPassportElement(dataList []json.RawMessage) ([]InputPassportElement, error) {
2024-10-06 19:09:53 +02:00
list := []InputPassportElement{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInputPassportElement(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalPassportElementErrorSource(data json.RawMessage) (PassportElementErrorSource, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePassportElementErrorSourceUnspecified:
return UnmarshalPassportElementErrorSourceUnspecified(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceDataField:
return UnmarshalPassportElementErrorSourceDataField(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceFrontSide:
return UnmarshalPassportElementErrorSourceFrontSide(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceReverseSide:
return UnmarshalPassportElementErrorSourceReverseSide(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceSelfie:
return UnmarshalPassportElementErrorSourceSelfie(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceTranslationFile:
return UnmarshalPassportElementErrorSourceTranslationFile(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceTranslationFiles:
return UnmarshalPassportElementErrorSourceTranslationFiles(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceFile:
return UnmarshalPassportElementErrorSourceFile(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceFiles:
return UnmarshalPassportElementErrorSourceFiles(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfPassportElementErrorSource(dataList []json.RawMessage) ([]PassportElementErrorSource, error) {
2024-10-06 19:09:53 +02:00
list := []PassportElementErrorSource{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPassportElementErrorSource(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalInputPassportElementErrorSource(data json.RawMessage) (InputPassportElementErrorSource, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInputPassportElementErrorSourceUnspecified:
return UnmarshalInputPassportElementErrorSourceUnspecified(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceDataField:
return UnmarshalInputPassportElementErrorSourceDataField(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceFrontSide:
return UnmarshalInputPassportElementErrorSourceFrontSide(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceReverseSide:
return UnmarshalInputPassportElementErrorSourceReverseSide(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceSelfie:
return UnmarshalInputPassportElementErrorSourceSelfie(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceTranslationFile:
return UnmarshalInputPassportElementErrorSourceTranslationFile(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceTranslationFiles:
return UnmarshalInputPassportElementErrorSourceTranslationFiles(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceFile:
return UnmarshalInputPassportElementErrorSourceFile(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceFiles:
return UnmarshalInputPassportElementErrorSourceFiles(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfInputPassportElementErrorSource(dataList []json.RawMessage) ([]InputPassportElementErrorSource, error) {
2024-10-06 19:09:53 +02:00
list := []InputPassportElementErrorSource{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInputPassportElementErrorSource(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
2024-10-06 19:09:53 +02:00
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 TypeMessagePhoto:
return UnmarshalMessagePhoto(data)
case TypeMessageSticker:
return UnmarshalMessageSticker(data)
case TypeMessageVideo:
return UnmarshalMessageVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageVideoNote:
return UnmarshalMessageVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageVoiceNote:
return UnmarshalMessageVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExpiredPhoto:
return UnmarshalMessageExpiredPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExpiredVideo:
return UnmarshalMessageExpiredVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExpiredVideoNote:
return UnmarshalMessageExpiredVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExpiredVoiceNote:
return UnmarshalMessageExpiredVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageLocation:
return UnmarshalMessageLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageVenue:
return UnmarshalMessageVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageContact:
return UnmarshalMessageContact(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageAnimatedEmoji:
return UnmarshalMessageAnimatedEmoji(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageDice:
return UnmarshalMessageDice(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageGame:
return UnmarshalMessageGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePoll:
return UnmarshalMessagePoll(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageStory:
return UnmarshalMessageStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageInvoice:
return UnmarshalMessageInvoice(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageCall:
return UnmarshalMessageCall(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeMessageVideoChatScheduled:
return UnmarshalMessageVideoChatScheduled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageVideoChatStarted:
return UnmarshalMessageVideoChatStarted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageVideoChatEnded:
return UnmarshalMessageVideoChatEnded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageInviteVideoChatParticipants:
return UnmarshalMessageInviteVideoChatParticipants(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageBasicGroupChatCreate:
return UnmarshalMessageBasicGroupChatCreate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSupergroupChatCreate:
return UnmarshalMessageSupergroupChatCreate(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatChangeTitle:
return UnmarshalMessageChatChangeTitle(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatChangePhoto:
return UnmarshalMessageChatChangePhoto(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatDeletePhoto:
return UnmarshalMessageChatDeletePhoto(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatAddMembers:
return UnmarshalMessageChatAddMembers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatJoinByLink:
return UnmarshalMessageChatJoinByLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatJoinByRequest:
return UnmarshalMessageChatJoinByRequest(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatDeleteMember:
return UnmarshalMessageChatDeleteMember(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatUpgradeTo:
return UnmarshalMessageChatUpgradeTo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatUpgradeFrom:
return UnmarshalMessageChatUpgradeFrom(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePinMessage:
return UnmarshalMessagePinMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageScreenshotTaken:
return UnmarshalMessageScreenshotTaken(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatSetBackground:
return UnmarshalMessageChatSetBackground(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatSetTheme:
return UnmarshalMessageChatSetTheme(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatSetMessageAutoDeleteTime:
return UnmarshalMessageChatSetMessageAutoDeleteTime(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatBoost:
return UnmarshalMessageChatBoost(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageForumTopicCreated:
return UnmarshalMessageForumTopicCreated(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageForumTopicEdited:
return UnmarshalMessageForumTopicEdited(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeMessageForumTopicIsClosedToggled:
return UnmarshalMessageForumTopicIsClosedToggled(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageForumTopicIsHiddenToggled:
return UnmarshalMessageForumTopicIsHiddenToggled(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSuggestProfilePhoto:
return UnmarshalMessageSuggestProfilePhoto(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageCustomServiceAction:
return UnmarshalMessageCustomServiceAction(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageGameScore:
return UnmarshalMessageGameScore(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePaymentSuccessful:
return UnmarshalMessagePaymentSuccessful(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePaymentSuccessfulBot:
return UnmarshalMessagePaymentSuccessfulBot(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageGiftedPremium:
return UnmarshalMessageGiftedPremium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePremiumGiftCode:
return UnmarshalMessagePremiumGiftCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePremiumGiveawayCreated:
return UnmarshalMessagePremiumGiveawayCreated(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePremiumGiveaway:
return UnmarshalMessagePremiumGiveaway(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePremiumGiveawayCompleted:
return UnmarshalMessagePremiumGiveawayCompleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePremiumGiveawayWinners:
return UnmarshalMessagePremiumGiveawayWinners(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageContactRegistered:
return UnmarshalMessageContactRegistered(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageUsersShared:
return UnmarshalMessageUsersShared(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatShared:
return UnmarshalMessageChatShared(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageBotWriteAccessAllowed:
return UnmarshalMessageBotWriteAccessAllowed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageWebAppDataSent:
return UnmarshalMessageWebAppDataSent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageWebAppDataReceived:
return UnmarshalMessageWebAppDataReceived(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePassportDataSent:
return UnmarshalMessagePassportDataSent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
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)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfMessageContent(dataList []json.RawMessage) ([]MessageContent, error) {
2024-10-06 19:09:53 +02:00
list := []MessageContent{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalMessageContent(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalTextEntityType(data json.RawMessage) (TextEntityType, error) {
2024-10-06 19:09:53 +02:00
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeTextEntityTypeMention:
return UnmarshalTextEntityTypeMention(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeHashtag:
return UnmarshalTextEntityTypeHashtag(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeCashtag:
return UnmarshalTextEntityTypeCashtag(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeBotCommand:
return UnmarshalTextEntityTypeBotCommand(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeUrl:
return UnmarshalTextEntityTypeUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeEmailAddress:
return UnmarshalTextEntityTypeEmailAddress(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypePhoneNumber:
return UnmarshalTextEntityTypePhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeBankCardNumber:
return UnmarshalTextEntityTypeBankCardNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeBold:
return UnmarshalTextEntityTypeBold(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeItalic:
return UnmarshalTextEntityTypeItalic(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeUnderline:
return UnmarshalTextEntityTypeUnderline(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeStrikethrough:
return UnmarshalTextEntityTypeStrikethrough(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeSpoiler:
return UnmarshalTextEntityTypeSpoiler(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeCode:
return UnmarshalTextEntityTypeCode(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypePre:
return UnmarshalTextEntityTypePre(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypePreCode:
return UnmarshalTextEntityTypePreCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeBlockQuote:
return UnmarshalTextEntityTypeBlockQuote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeTextUrl:
return UnmarshalTextEntityTypeTextUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeMentionName:
return UnmarshalTextEntityTypeMentionName(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeCustomEmoji:
return UnmarshalTextEntityTypeCustomEmoji(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeMediaTimestamp:
return UnmarshalTextEntityTypeMediaTimestamp(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfTextEntityType(dataList []json.RawMessage) ([]TextEntityType, error) {
2024-10-06 19:09:53 +02:00
list := []TextEntityType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalTextEntityType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalMessageSchedulingState(data json.RawMessage) (MessageSchedulingState, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeMessageSchedulingStateSendAtDate:
return UnmarshalMessageSchedulingStateSendAtDate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSchedulingStateSendWhenOnline:
return UnmarshalMessageSchedulingStateSendWhenOnline(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfMessageSchedulingState(dataList []json.RawMessage) ([]MessageSchedulingState, error) {
2024-10-06 19:09:53 +02:00
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
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
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
2021-10-22 16:24:12 +02:00
}
func UnmarshalInputMessageContent(data json.RawMessage) (InputMessageContent, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInputMessageText:
return UnmarshalInputMessageText(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageAnimation:
return UnmarshalInputMessageAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageAudio:
return UnmarshalInputMessageAudio(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageDocument:
return UnmarshalInputMessageDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessagePhoto:
return UnmarshalInputMessagePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageSticker:
return UnmarshalInputMessageSticker(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageVideo:
return UnmarshalInputMessageVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageVideoNote:
return UnmarshalInputMessageVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageVoiceNote:
return UnmarshalInputMessageVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageLocation:
return UnmarshalInputMessageLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageVenue:
return UnmarshalInputMessageVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageContact:
return UnmarshalInputMessageContact(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageDice:
return UnmarshalInputMessageDice(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageGame:
return UnmarshalInputMessageGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageInvoice:
return UnmarshalInputMessageInvoice(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessagePoll:
return UnmarshalInputMessagePoll(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageStory:
return UnmarshalInputMessageStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageForwarded:
return UnmarshalInputMessageForwarded(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfInputMessageContent(dataList []json.RawMessage) ([]InputMessageContent, error) {
2024-10-06 19:09:53 +02:00
list := []InputMessageContent{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInputMessageContent(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalSearchMessagesFilter(data json.RawMessage) (SearchMessagesFilter, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeSearchMessagesFilterEmpty:
return UnmarshalSearchMessagesFilterEmpty(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterAnimation:
return UnmarshalSearchMessagesFilterAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterAudio:
return UnmarshalSearchMessagesFilterAudio(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterDocument:
return UnmarshalSearchMessagesFilterDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterPhoto:
return UnmarshalSearchMessagesFilterPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterVideo:
return UnmarshalSearchMessagesFilterVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterVoiceNote:
return UnmarshalSearchMessagesFilterVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterPhotoAndVideo:
return UnmarshalSearchMessagesFilterPhotoAndVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterUrl:
return UnmarshalSearchMessagesFilterUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterChatPhoto:
return UnmarshalSearchMessagesFilterChatPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterVideoNote:
return UnmarshalSearchMessagesFilterVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterVoiceAndVideoNote:
return UnmarshalSearchMessagesFilterVoiceAndVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterMention:
return UnmarshalSearchMessagesFilterMention(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterUnreadMention:
return UnmarshalSearchMessagesFilterUnreadMention(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterUnreadReaction:
return UnmarshalSearchMessagesFilterUnreadReaction(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterFailedToSend:
return UnmarshalSearchMessagesFilterFailedToSend(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterPinned:
return UnmarshalSearchMessagesFilterPinned(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfSearchMessagesFilter(dataList []json.RawMessage) ([]SearchMessagesFilter, error) {
2024-10-06 19:09:53 +02:00
list := []SearchMessagesFilter{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalSearchMessagesFilter(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalChatAction(data json.RawMessage) (ChatAction, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeChatActionTyping:
return UnmarshalChatActionTyping(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionRecordingVideo:
return UnmarshalChatActionRecordingVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionUploadingVideo:
return UnmarshalChatActionUploadingVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionRecordingVoiceNote:
return UnmarshalChatActionRecordingVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionUploadingVoiceNote:
return UnmarshalChatActionUploadingVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionUploadingPhoto:
return UnmarshalChatActionUploadingPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionUploadingDocument:
return UnmarshalChatActionUploadingDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionChoosingSticker:
return UnmarshalChatActionChoosingSticker(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeChatActionChoosingLocation:
return UnmarshalChatActionChoosingLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionChoosingContact:
return UnmarshalChatActionChoosingContact(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionStartPlayingGame:
return UnmarshalChatActionStartPlayingGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionRecordingVideoNote:
return UnmarshalChatActionRecordingVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionUploadingVideoNote:
return UnmarshalChatActionUploadingVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionWatchingAnimations:
return UnmarshalChatActionWatchingAnimations(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeChatActionCancel:
return UnmarshalChatActionCancel(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfChatAction(dataList []json.RawMessage) ([]ChatAction, error) {
2024-10-06 19:09:53 +02:00
list := []ChatAction{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatAction(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
func UnmarshalUserStatus(data json.RawMessage) (UserStatus, error) {
2024-10-06 19:09:53 +02:00
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeUserStatusEmpty:
return UnmarshalUserStatusEmpty(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserStatusOnline:
return UnmarshalUserStatusOnline(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserStatusOffline:
return UnmarshalUserStatusOffline(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserStatusRecently:
return UnmarshalUserStatusRecently(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserStatusLastWeek:
return UnmarshalUserStatusLastWeek(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserStatusLastMonth:
return UnmarshalUserStatusLastMonth(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
func UnmarshalListOfUserStatus(dataList []json.RawMessage) ([]UserStatus, error) {
2024-10-06 19:09:53 +02:00
list := []UserStatus{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalUserStatus(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmojiCategoryType(data json.RawMessage) (EmojiCategoryType, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeEmojiCategoryTypeDefault:
return UnmarshalEmojiCategoryTypeDefault(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmojiCategoryTypeEmojiStatus:
return UnmarshalEmojiCategoryTypeEmojiStatus(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmojiCategoryTypeChatPhoto:
return UnmarshalEmojiCategoryTypeChatPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfEmojiCategoryType(dataList []json.RawMessage) ([]EmojiCategoryType, error) {
list := []EmojiCategoryType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalEmojiCategoryType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryAreaType(data json.RawMessage) (StoryAreaType, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeStoryAreaTypeLocation:
return UnmarshalStoryAreaTypeLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryAreaTypeVenue:
return UnmarshalStoryAreaTypeVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryAreaTypeSuggestedReaction:
return UnmarshalStoryAreaTypeSuggestedReaction(data)
case TypeStoryAreaTypeMessage:
return UnmarshalStoryAreaTypeMessage(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfStoryAreaType(dataList []json.RawMessage) ([]StoryAreaType, error) {
list := []StoryAreaType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalStoryAreaType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputStoryAreaType(data json.RawMessage) (InputStoryAreaType, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInputStoryAreaTypeLocation:
return UnmarshalInputStoryAreaTypeLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryAreaTypeFoundVenue:
return UnmarshalInputStoryAreaTypeFoundVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryAreaTypePreviousVenue:
return UnmarshalInputStoryAreaTypePreviousVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryAreaTypeSuggestedReaction:
return UnmarshalInputStoryAreaTypeSuggestedReaction(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryAreaTypeMessage:
return UnmarshalInputStoryAreaTypeMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfInputStoryAreaType(dataList []json.RawMessage) ([]InputStoryAreaType, error) {
list := []InputStoryAreaType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInputStoryAreaType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryContent(data json.RawMessage) (StoryContent, error) {
var meta meta
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeStoryContentPhoto:
return UnmarshalStoryContentPhoto(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeStoryContentVideo:
return UnmarshalStoryContentVideo(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeStoryContentUnsupported:
return UnmarshalStoryContentUnsupported(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfStoryContent(dataList []json.RawMessage) ([]StoryContent, error) {
list := []StoryContent{}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalStoryContent(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputStoryContent(data json.RawMessage) (InputStoryContent, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInputStoryContentPhoto:
return UnmarshalInputStoryContentPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryContentVideo:
return UnmarshalInputStoryContentVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfInputStoryContent(dataList []json.RawMessage) ([]InputStoryContent, error) {
list := []InputStoryContent{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInputStoryContent(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalStoryList(data json.RawMessage) (StoryList, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeStoryListMain:
return UnmarshalStoryListMain(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryListArchive:
return UnmarshalStoryListArchive(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfStoryList(dataList []json.RawMessage) ([]StoryList, error) {
list := []StoryList{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalStoryList(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryOrigin(data json.RawMessage) (StoryOrigin, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeStoryOriginPublicStory:
return UnmarshalStoryOriginPublicStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryOriginHiddenUser:
return UnmarshalStoryOriginHiddenUser(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfStoryOrigin(dataList []json.RawMessage) ([]StoryOrigin, error) {
list := []StoryOrigin{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalStoryOrigin(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryInteractionType(data json.RawMessage) (StoryInteractionType, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeStoryInteractionTypeView:
return UnmarshalStoryInteractionTypeView(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryInteractionTypeForward:
return UnmarshalStoryInteractionTypeForward(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryInteractionTypeRepost:
return UnmarshalStoryInteractionTypeRepost(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfStoryInteractionType(dataList []json.RawMessage) ([]StoryInteractionType, error) {
list := []StoryInteractionType{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalStoryInteractionType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPublicForward(data json.RawMessage) (PublicForward, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePublicForwardMessage:
return UnmarshalPublicForwardMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePublicForwardStory:
return UnmarshalPublicForwardStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfPublicForward(dataList []json.RawMessage) ([]PublicForward, error) {
list := []PublicForward{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPublicForward(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalChatBoostSource(data json.RawMessage) (ChatBoostSource, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeChatBoostSourceGiftCode:
return UnmarshalChatBoostSourceGiftCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoostSourceGiveaway:
return UnmarshalChatBoostSourceGiveaway(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoostSourcePremium:
return UnmarshalChatBoostSourcePremium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfChatBoostSource(dataList []json.RawMessage) ([]ChatBoostSource, error) {
list := []ChatBoostSource{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatBoostSource(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallDiscardReason(data json.RawMessage) (CallDiscardReason, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeCallDiscardReasonEmpty:
return UnmarshalCallDiscardReasonEmpty(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallDiscardReasonMissed:
return UnmarshalCallDiscardReasonMissed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallDiscardReasonDeclined:
return UnmarshalCallDiscardReasonDeclined(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallDiscardReasonDisconnected:
return UnmarshalCallDiscardReasonDisconnected(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallDiscardReasonHungUp:
return UnmarshalCallDiscardReasonHungUp(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfCallDiscardReason(dataList []json.RawMessage) ([]CallDiscardReason, error) {
list := []CallDiscardReason{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalCallDiscardReason(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalCallServerType(data json.RawMessage) (CallServerType, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeCallServerTypeTelegramReflector:
return UnmarshalCallServerTypeTelegramReflector(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallServerTypeWebrtc:
return UnmarshalCallServerTypeWebrtc(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfCallServerType(dataList []json.RawMessage) ([]CallServerType, error) {
list := []CallServerType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalCallServerType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallState(data json.RawMessage) (CallState, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeCallStatePending:
return UnmarshalCallStatePending(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallStateExchangingKeys:
return UnmarshalCallStateExchangingKeys(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallStateReady:
return UnmarshalCallStateReady(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallStateHangingUp:
return UnmarshalCallStateHangingUp(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallStateDiscarded:
return UnmarshalCallStateDiscarded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallStateError:
return UnmarshalCallStateError(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
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)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalGroupCallVideoQuality(data json.RawMessage) (GroupCallVideoQuality, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeGroupCallVideoQualityThumbnail:
return UnmarshalGroupCallVideoQualityThumbnail(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGroupCallVideoQualityMedium:
return UnmarshalGroupCallVideoQualityMedium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGroupCallVideoQualityFull:
return UnmarshalGroupCallVideoQualityFull(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfGroupCallVideoQuality(dataList []json.RawMessage) ([]GroupCallVideoQuality, error) {
list := []GroupCallVideoQuality{}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalGroupCallVideoQuality(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalCallProblem(data json.RawMessage) (CallProblem, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeCallProblemEcho:
return UnmarshalCallProblemEcho(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemNoise:
return UnmarshalCallProblemNoise(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemInterruptions:
return UnmarshalCallProblemInterruptions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemDistortedSpeech:
return UnmarshalCallProblemDistortedSpeech(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemSilentLocal:
return UnmarshalCallProblemSilentLocal(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemSilentRemote:
return UnmarshalCallProblemSilentRemote(data)
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemDropped:
return UnmarshalCallProblemDropped(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemDistortedVideo:
return UnmarshalCallProblemDistortedVideo(data)
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemPixelatedVideo:
return UnmarshalCallProblemPixelatedVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfCallProblem(dataList []json.RawMessage) ([]CallProblem, error) {
list := []CallProblem{}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalCallProblem(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalFirebaseAuthenticationSettings(data json.RawMessage) (FirebaseAuthenticationSettings, error) {
var meta meta
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeFirebaseAuthenticationSettingsAndroid:
return UnmarshalFirebaseAuthenticationSettingsAndroid(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFirebaseAuthenticationSettingsIos:
return UnmarshalFirebaseAuthenticationSettingsIos(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfFirebaseAuthenticationSettings(dataList []json.RawMessage) ([]FirebaseAuthenticationSettings, error) {
list := []FirebaseAuthenticationSettings{}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalFirebaseAuthenticationSettings(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
func UnmarshalReactionUnavailabilityReason(data json.RawMessage) (ReactionUnavailabilityReason, error) {
var meta meta
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeReactionUnavailabilityReasonAnonymousAdministrator:
return UnmarshalReactionUnavailabilityReasonAnonymousAdministrator(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeReactionUnavailabilityReasonGuest:
return UnmarshalReactionUnavailabilityReasonGuest(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfReactionUnavailabilityReason(dataList []json.RawMessage) ([]ReactionUnavailabilityReason, error) {
list := []ReactionUnavailabilityReason{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalReactionUnavailabilityReason(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalDiceStickers(data json.RawMessage) (DiceStickers, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeDiceStickersRegular:
return UnmarshalDiceStickersRegular(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeDiceStickersSlotMachine:
return UnmarshalDiceStickersSlotMachine(data)
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfDiceStickers(dataList []json.RawMessage) ([]DiceStickers, error) {
list := []DiceStickers{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalDiceStickers(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSpeechRecognitionResult(data json.RawMessage) (SpeechRecognitionResult, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeSpeechRecognitionResultPending:
return UnmarshalSpeechRecognitionResultPending(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSpeechRecognitionResultText:
return UnmarshalSpeechRecognitionResultText(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSpeechRecognitionResultError:
return UnmarshalSpeechRecognitionResultError(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfSpeechRecognitionResult(dataList []json.RawMessage) ([]SpeechRecognitionResult, error) {
list := []SpeechRecognitionResult{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalSpeechRecognitionResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBotWriteAccessAllowReason(data json.RawMessage) (BotWriteAccessAllowReason, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeBotWriteAccessAllowReasonConnectedWebsite:
return UnmarshalBotWriteAccessAllowReasonConnectedWebsite(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotWriteAccessAllowReasonAddedToAttachmentMenu:
return UnmarshalBotWriteAccessAllowReasonAddedToAttachmentMenu(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotWriteAccessAllowReasonLaunchedWebApp:
return UnmarshalBotWriteAccessAllowReasonLaunchedWebApp(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotWriteAccessAllowReasonAcceptedRequest:
return UnmarshalBotWriteAccessAllowReasonAcceptedRequest(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfBotWriteAccessAllowReason(dataList []json.RawMessage) ([]BotWriteAccessAllowReason, error) {
list := []BotWriteAccessAllowReason{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalBotWriteAccessAllowReason(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResult(data json.RawMessage) (InputInlineQueryResult, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInputInlineQueryResultAnimation:
return UnmarshalInputInlineQueryResultAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultArticle:
return UnmarshalInputInlineQueryResultArticle(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultAudio:
return UnmarshalInputInlineQueryResultAudio(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultContact:
return UnmarshalInputInlineQueryResultContact(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultDocument:
return UnmarshalInputInlineQueryResultDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultGame:
return UnmarshalInputInlineQueryResultGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultLocation:
return UnmarshalInputInlineQueryResultLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultPhoto:
return UnmarshalInputInlineQueryResultPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultSticker:
return UnmarshalInputInlineQueryResultSticker(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultVenue:
return UnmarshalInputInlineQueryResultVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultVideo:
return UnmarshalInputInlineQueryResultVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultVoiceNote:
return UnmarshalInputInlineQueryResultVoiceNote(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfInputInlineQueryResult(dataList []json.RawMessage) ([]InputInlineQueryResult, error) {
list := []InputInlineQueryResult{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInputInlineQueryResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResult(data json.RawMessage) (InlineQueryResult, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInlineQueryResultArticle:
return UnmarshalInlineQueryResultArticle(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultContact:
return UnmarshalInlineQueryResultContact(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultLocation:
return UnmarshalInlineQueryResultLocation(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultVenue:
return UnmarshalInlineQueryResultVenue(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultGame:
return UnmarshalInlineQueryResultGame(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultAnimation:
return UnmarshalInlineQueryResultAnimation(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultAudio:
return UnmarshalInlineQueryResultAudio(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultDocument:
return UnmarshalInlineQueryResultDocument(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultPhoto:
return UnmarshalInlineQueryResultPhoto(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultSticker:
return UnmarshalInlineQueryResultSticker(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultVideo:
return UnmarshalInlineQueryResultVideo(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultVoiceNote:
return UnmarshalInlineQueryResultVoiceNote(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfInlineQueryResult(dataList []json.RawMessage) ([]InlineQueryResult, error) {
list := []InlineQueryResult{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInlineQueryResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultsButtonType(data json.RawMessage) (InlineQueryResultsButtonType, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInlineQueryResultsButtonTypeStartBot:
return UnmarshalInlineQueryResultsButtonTypeStartBot(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultsButtonTypeWebApp:
return UnmarshalInlineQueryResultsButtonTypeWebApp(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfInlineQueryResultsButtonType(dataList []json.RawMessage) ([]InlineQueryResultsButtonType, error) {
list := []InlineQueryResultsButtonType{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInlineQueryResultsButtonType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallbackQueryPayload(data json.RawMessage) (CallbackQueryPayload, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeCallbackQueryPayloadData:
return UnmarshalCallbackQueryPayloadData(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallbackQueryPayloadDataWithPassword:
return UnmarshalCallbackQueryPayloadDataWithPassword(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallbackQueryPayloadGame:
return UnmarshalCallbackQueryPayloadGame(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfCallbackQueryPayload(dataList []json.RawMessage) ([]CallbackQueryPayload, error) {
list := []CallbackQueryPayload{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalCallbackQueryPayload(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventAction(data json.RawMessage) (ChatEventAction, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeChatEventMessageEdited:
return UnmarshalChatEventMessageEdited(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMessageDeleted:
return UnmarshalChatEventMessageDeleted(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMessagePinned:
return UnmarshalChatEventMessagePinned(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMessageUnpinned:
return UnmarshalChatEventMessageUnpinned(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventPollStopped:
return UnmarshalChatEventPollStopped(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberJoined:
return UnmarshalChatEventMemberJoined(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberJoinedByInviteLink:
return UnmarshalChatEventMemberJoinedByInviteLink(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberJoinedByRequest:
return UnmarshalChatEventMemberJoinedByRequest(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberInvited:
return UnmarshalChatEventMemberInvited(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberLeft:
return UnmarshalChatEventMemberLeft(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberPromoted:
return UnmarshalChatEventMemberPromoted(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberRestricted:
return UnmarshalChatEventMemberRestricted(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventAvailableReactionsChanged:
return UnmarshalChatEventAvailableReactionsChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventBackgroundChanged:
return UnmarshalChatEventBackgroundChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventDescriptionChanged:
return UnmarshalChatEventDescriptionChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventEmojiStatusChanged:
return UnmarshalChatEventEmojiStatusChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventLinkedChatChanged:
return UnmarshalChatEventLinkedChatChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventLocationChanged:
return UnmarshalChatEventLocationChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMessageAutoDeleteTimeChanged:
return UnmarshalChatEventMessageAutoDeleteTimeChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventPermissionsChanged:
return UnmarshalChatEventPermissionsChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventPhotoChanged:
return UnmarshalChatEventPhotoChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventSlowModeDelayChanged:
return UnmarshalChatEventSlowModeDelayChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventStickerSetChanged:
return UnmarshalChatEventStickerSetChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventCustomEmojiStickerSetChanged:
return UnmarshalChatEventCustomEmojiStickerSetChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventTitleChanged:
return UnmarshalChatEventTitleChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventUsernameChanged:
return UnmarshalChatEventUsernameChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventActiveUsernamesChanged:
return UnmarshalChatEventActiveUsernamesChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventAccentColorChanged:
return UnmarshalChatEventAccentColorChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventProfileAccentColorChanged:
return UnmarshalChatEventProfileAccentColorChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventHasProtectedContentToggled:
return UnmarshalChatEventHasProtectedContentToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventInvitesToggled:
return UnmarshalChatEventInvitesToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventIsAllHistoryAvailableToggled:
return UnmarshalChatEventIsAllHistoryAvailableToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventHasAggressiveAntiSpamEnabledToggled:
return UnmarshalChatEventHasAggressiveAntiSpamEnabledToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventSignMessagesToggled:
return UnmarshalChatEventSignMessagesToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventInviteLinkEdited:
return UnmarshalChatEventInviteLinkEdited(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventInviteLinkRevoked:
return UnmarshalChatEventInviteLinkRevoked(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventInviteLinkDeleted:
return UnmarshalChatEventInviteLinkDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventVideoChatCreated:
return UnmarshalChatEventVideoChatCreated(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventVideoChatEnded:
return UnmarshalChatEventVideoChatEnded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventVideoChatMuteNewParticipantsToggled:
return UnmarshalChatEventVideoChatMuteNewParticipantsToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventVideoChatParticipantIsMutedToggled:
return UnmarshalChatEventVideoChatParticipantIsMutedToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventVideoChatParticipantVolumeLevelChanged:
return UnmarshalChatEventVideoChatParticipantVolumeLevelChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventIsForumToggled:
return UnmarshalChatEventIsForumToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventForumTopicCreated:
return UnmarshalChatEventForumTopicCreated(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventForumTopicEdited:
return UnmarshalChatEventForumTopicEdited(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventForumTopicToggleIsClosed:
return UnmarshalChatEventForumTopicToggleIsClosed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventForumTopicToggleIsHidden:
return UnmarshalChatEventForumTopicToggleIsHidden(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventForumTopicDeleted:
return UnmarshalChatEventForumTopicDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventForumTopicPinned:
return UnmarshalChatEventForumTopicPinned(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfChatEventAction(dataList []json.RawMessage) ([]ChatEventAction, error) {
list := []ChatEventAction{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatEventAction(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLanguagePackStringValue(data json.RawMessage) (LanguagePackStringValue, error) {
var meta meta
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeLanguagePackStringValueOrdinary:
return UnmarshalLanguagePackStringValueOrdinary(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeLanguagePackStringValuePluralized:
return UnmarshalLanguagePackStringValuePluralized(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeLanguagePackStringValueDeleted:
return UnmarshalLanguagePackStringValueDeleted(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfLanguagePackStringValue(dataList []json.RawMessage) ([]LanguagePackStringValue, error) {
list := []LanguagePackStringValue{}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalLanguagePackStringValue(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitType(data json.RawMessage) (PremiumLimitType, error) {
var meta meta
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePremiumLimitTypeSupergroupCount:
return UnmarshalPremiumLimitTypeSupergroupCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypePinnedChatCount:
return UnmarshalPremiumLimitTypePinnedChatCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeCreatedPublicChatCount:
return UnmarshalPremiumLimitTypeCreatedPublicChatCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeSavedAnimationCount:
return UnmarshalPremiumLimitTypeSavedAnimationCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeFavoriteStickerCount:
return UnmarshalPremiumLimitTypeFavoriteStickerCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeChatFolderCount:
return UnmarshalPremiumLimitTypeChatFolderCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeChatFolderChosenChatCount:
return UnmarshalPremiumLimitTypeChatFolderChosenChatCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypePinnedArchivedChatCount:
return UnmarshalPremiumLimitTypePinnedArchivedChatCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypePinnedSavedMessagesTopicCount:
return UnmarshalPremiumLimitTypePinnedSavedMessagesTopicCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeCaptionLength:
return UnmarshalPremiumLimitTypeCaptionLength(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeBioLength:
return UnmarshalPremiumLimitTypeBioLength(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeChatFolderInviteLinkCount:
return UnmarshalPremiumLimitTypeChatFolderInviteLinkCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeShareableChatFolderCount:
return UnmarshalPremiumLimitTypeShareableChatFolderCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeActiveStoryCount:
return UnmarshalPremiumLimitTypeActiveStoryCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeWeeklySentStoryCount:
return UnmarshalPremiumLimitTypeWeeklySentStoryCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeMonthlySentStoryCount:
return UnmarshalPremiumLimitTypeMonthlySentStoryCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeStoryCaptionLength:
return UnmarshalPremiumLimitTypeStoryCaptionLength(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeStorySuggestedReactionAreaCount:
return UnmarshalPremiumLimitTypeStorySuggestedReactionAreaCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeSimilarChatCount:
return UnmarshalPremiumLimitTypeSimilarChatCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfPremiumLimitType(dataList []json.RawMessage) ([]PremiumLimitType, error) {
list := []PremiumLimitType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPremiumLimitType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeature(data json.RawMessage) (PremiumFeature, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePremiumFeatureIncreasedLimits:
return UnmarshalPremiumFeatureIncreasedLimits(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureIncreasedUploadFileSize:
return UnmarshalPremiumFeatureIncreasedUploadFileSize(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureImprovedDownloadSpeed:
return UnmarshalPremiumFeatureImprovedDownloadSpeed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureVoiceRecognition:
return UnmarshalPremiumFeatureVoiceRecognition(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureDisabledAds:
return UnmarshalPremiumFeatureDisabledAds(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureUniqueReactions:
return UnmarshalPremiumFeatureUniqueReactions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureUniqueStickers:
return UnmarshalPremiumFeatureUniqueStickers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureCustomEmoji:
return UnmarshalPremiumFeatureCustomEmoji(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureAdvancedChatManagement:
return UnmarshalPremiumFeatureAdvancedChatManagement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureProfileBadge:
return UnmarshalPremiumFeatureProfileBadge(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureEmojiStatus:
return UnmarshalPremiumFeatureEmojiStatus(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureAnimatedProfilePhoto:
return UnmarshalPremiumFeatureAnimatedProfilePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureForumTopicIcon:
return UnmarshalPremiumFeatureForumTopicIcon(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureAppIcons:
return UnmarshalPremiumFeatureAppIcons(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureRealTimeChatTranslation:
return UnmarshalPremiumFeatureRealTimeChatTranslation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureUpgradedStories:
return UnmarshalPremiumFeatureUpgradedStories(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureChatBoost:
return UnmarshalPremiumFeatureChatBoost(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureAccentColor:
return UnmarshalPremiumFeatureAccentColor(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureBackgroundForBoth:
return UnmarshalPremiumFeatureBackgroundForBoth(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureSavedMessagesTags:
return UnmarshalPremiumFeatureSavedMessagesTags(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureMessagePrivacy:
return UnmarshalPremiumFeatureMessagePrivacy(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureLastSeenTimes:
return UnmarshalPremiumFeatureLastSeenTimes(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureBusiness:
return UnmarshalPremiumFeatureBusiness(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfPremiumFeature(dataList []json.RawMessage) ([]PremiumFeature, error) {
list := []PremiumFeature{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPremiumFeature(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeature(data json.RawMessage) (BusinessFeature, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeBusinessFeatureLocation:
return UnmarshalBusinessFeatureLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureOpeningHours:
return UnmarshalBusinessFeatureOpeningHours(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureQuickReplies:
return UnmarshalBusinessFeatureQuickReplies(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureGreetingMessage:
return UnmarshalBusinessFeatureGreetingMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureAwayMessage:
return UnmarshalBusinessFeatureAwayMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureAccountLinks:
return UnmarshalBusinessFeatureAccountLinks(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureIntro:
return UnmarshalBusinessFeatureIntro(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureBots:
return UnmarshalBusinessFeatureBots(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureEmojiStatus:
return UnmarshalBusinessFeatureEmojiStatus(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureChatFolderTags:
return UnmarshalBusinessFeatureChatFolderTags(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureUpgradedStories:
return UnmarshalBusinessFeatureUpgradedStories(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfBusinessFeature(dataList []json.RawMessage) ([]BusinessFeature, error) {
list := []BusinessFeature{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalBusinessFeature(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumStoryFeature(data json.RawMessage) (PremiumStoryFeature, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePremiumStoryFeaturePriorityOrder:
return UnmarshalPremiumStoryFeaturePriorityOrder(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeatureStealthMode:
return UnmarshalPremiumStoryFeatureStealthMode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeaturePermanentViewsHistory:
return UnmarshalPremiumStoryFeaturePermanentViewsHistory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeatureCustomExpirationDuration:
return UnmarshalPremiumStoryFeatureCustomExpirationDuration(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeatureSaveStories:
return UnmarshalPremiumStoryFeatureSaveStories(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeatureLinksAndFormatting:
return UnmarshalPremiumStoryFeatureLinksAndFormatting(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeatureVideoQuality:
return UnmarshalPremiumStoryFeatureVideoQuality(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfPremiumStoryFeature(dataList []json.RawMessage) ([]PremiumStoryFeature, error) {
list := []PremiumStoryFeature{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPremiumStoryFeature(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumSource(data json.RawMessage) (PremiumSource, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePremiumSourceLimitExceeded:
return UnmarshalPremiumSourceLimitExceeded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumSourceFeature:
return UnmarshalPremiumSourceFeature(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumSourceBusinessFeature:
return UnmarshalPremiumSourceBusinessFeature(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumSourceStoryFeature:
return UnmarshalPremiumSourceStoryFeature(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumSourceLink:
return UnmarshalPremiumSourceLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumSourceSettings:
return UnmarshalPremiumSourceSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfPremiumSource(dataList []json.RawMessage) ([]PremiumSource, error) {
list := []PremiumSource{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPremiumSource(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStorePaymentPurpose(data json.RawMessage) (StorePaymentPurpose, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeStorePaymentPurposePremiumSubscription:
return UnmarshalStorePaymentPurposePremiumSubscription(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStorePaymentPurposeGiftedPremium:
return UnmarshalStorePaymentPurposeGiftedPremium(data)
case TypeStorePaymentPurposePremiumGiftCodes:
return UnmarshalStorePaymentPurposePremiumGiftCodes(data)
case TypeStorePaymentPurposePremiumGiveaway:
return UnmarshalStorePaymentPurposePremiumGiveaway(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfStorePaymentPurpose(dataList []json.RawMessage) ([]StorePaymentPurpose, error) {
list := []StorePaymentPurpose{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalStorePaymentPurpose(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalTelegramPaymentPurpose(data json.RawMessage) (TelegramPaymentPurpose, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeTelegramPaymentPurposePremiumGiftCodes:
return UnmarshalTelegramPaymentPurposePremiumGiftCodes(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTelegramPaymentPurposePremiumGiveaway:
return UnmarshalTelegramPaymentPurposePremiumGiveaway(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfTelegramPaymentPurpose(dataList []json.RawMessage) ([]TelegramPaymentPurpose, error) {
list := []TelegramPaymentPurpose{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalTelegramPaymentPurpose(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceToken(data json.RawMessage) (DeviceToken, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeDeviceTokenFirebaseCloudMessaging:
return UnmarshalDeviceTokenFirebaseCloudMessaging(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenApplePush:
return UnmarshalDeviceTokenApplePush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenApplePushVoIP:
return UnmarshalDeviceTokenApplePushVoIP(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenWindowsPush:
return UnmarshalDeviceTokenWindowsPush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenMicrosoftPush:
return UnmarshalDeviceTokenMicrosoftPush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenMicrosoftPushVoIP:
return UnmarshalDeviceTokenMicrosoftPushVoIP(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenWebPush:
return UnmarshalDeviceTokenWebPush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenSimplePush:
return UnmarshalDeviceTokenSimplePush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenUbuntuPush:
return UnmarshalDeviceTokenUbuntuPush(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenBlackBerryPush:
return UnmarshalDeviceTokenBlackBerryPush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenTizenPush:
return UnmarshalDeviceTokenTizenPush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenHuaweiPush:
return UnmarshalDeviceTokenHuaweiPush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfDeviceToken(dataList []json.RawMessage) ([]DeviceToken, error) {
list := []DeviceToken{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalDeviceToken(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalBackgroundFill(data json.RawMessage) (BackgroundFill, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeBackgroundFillSolid:
return UnmarshalBackgroundFillSolid(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBackgroundFillGradient:
return UnmarshalBackgroundFillGradient(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBackgroundFillFreeformGradient:
return UnmarshalBackgroundFillFreeformGradient(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfBackgroundFill(dataList []json.RawMessage) ([]BackgroundFill, error) {
list := []BackgroundFill{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalBackgroundFill(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalBackgroundType(data json.RawMessage) (BackgroundType, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeBackgroundTypeWallpaper:
return UnmarshalBackgroundTypeWallpaper(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBackgroundTypePattern:
return UnmarshalBackgroundTypePattern(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBackgroundTypeFill:
return UnmarshalBackgroundTypeFill(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBackgroundTypeChatTheme:
return UnmarshalBackgroundTypeChatTheme(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfBackgroundType(dataList []json.RawMessage) ([]BackgroundType, error) {
list := []BackgroundType{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalBackgroundType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputBackground(data json.RawMessage) (InputBackground, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInputBackgroundLocal:
return UnmarshalInputBackgroundLocal(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputBackgroundRemote:
return UnmarshalInputBackgroundRemote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputBackgroundPrevious:
return UnmarshalInputBackgroundPrevious(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfInputBackground(dataList []json.RawMessage) ([]InputBackground, error) {
list := []InputBackground{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInputBackground(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalCanSendStoryResult(data json.RawMessage) (CanSendStoryResult, error) {
var meta meta
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeCanSendStoryResultOk:
return UnmarshalCanSendStoryResultOk(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanSendStoryResultPremiumNeeded:
return UnmarshalCanSendStoryResultPremiumNeeded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanSendStoryResultBoostNeeded:
return UnmarshalCanSendStoryResultBoostNeeded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanSendStoryResultActiveStoryLimitExceeded:
return UnmarshalCanSendStoryResultActiveStoryLimitExceeded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanSendStoryResultWeeklyLimitExceeded:
return UnmarshalCanSendStoryResultWeeklyLimitExceeded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanSendStoryResultMonthlyLimitExceeded:
return UnmarshalCanSendStoryResultMonthlyLimitExceeded(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfCanSendStoryResult(dataList []json.RawMessage) ([]CanSendStoryResult, error) {
list := []CanSendStoryResult{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalCanSendStoryResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalCanTransferOwnershipResult(data json.RawMessage) (CanTransferOwnershipResult, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeCanTransferOwnershipResultOk:
return UnmarshalCanTransferOwnershipResultOk(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanTransferOwnershipResultPasswordNeeded:
return UnmarshalCanTransferOwnershipResultPasswordNeeded(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanTransferOwnershipResultPasswordTooFresh:
return UnmarshalCanTransferOwnershipResultPasswordTooFresh(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanTransferOwnershipResultSessionTooFresh:
return UnmarshalCanTransferOwnershipResultSessionTooFresh(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfCanTransferOwnershipResult(dataList []json.RawMessage) ([]CanTransferOwnershipResult, error) {
list := []CanTransferOwnershipResult{}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalCanTransferOwnershipResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
func UnmarshalCheckChatUsernameResult(data json.RawMessage) (CheckChatUsernameResult, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeCheckChatUsernameResultOk:
return UnmarshalCheckChatUsernameResultOk(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCheckChatUsernameResultUsernameInvalid:
return UnmarshalCheckChatUsernameResultUsernameInvalid(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCheckChatUsernameResultUsernameOccupied:
return UnmarshalCheckChatUsernameResultUsernameOccupied(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCheckChatUsernameResultUsernamePurchasable:
return UnmarshalCheckChatUsernameResultUsernamePurchasable(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCheckChatUsernameResultPublicChatsTooMany:
return UnmarshalCheckChatUsernameResultPublicChatsTooMany(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCheckChatUsernameResultPublicGroupsUnavailable:
return UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfCheckChatUsernameResult(dataList []json.RawMessage) ([]CheckChatUsernameResult, error) {
list := []CheckChatUsernameResult{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalCheckChatUsernameResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
func UnmarshalCheckStickerSetNameResult(data json.RawMessage) (CheckStickerSetNameResult, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeCheckStickerSetNameResultOk:
return UnmarshalCheckStickerSetNameResultOk(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCheckStickerSetNameResultNameInvalid:
return UnmarshalCheckStickerSetNameResultNameInvalid(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCheckStickerSetNameResultNameOccupied:
return UnmarshalCheckStickerSetNameResultNameOccupied(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfCheckStickerSetNameResult(dataList []json.RawMessage) ([]CheckStickerSetNameResult, error) {
list := []CheckStickerSetNameResult{}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalCheckStickerSetNameResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalResetPasswordResult(data json.RawMessage) (ResetPasswordResult, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeResetPasswordResultOk:
return UnmarshalResetPasswordResultOk(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeResetPasswordResultPending:
return UnmarshalResetPasswordResultPending(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeResetPasswordResultDeclined:
return UnmarshalResetPasswordResultDeclined(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfResetPasswordResult(dataList []json.RawMessage) ([]ResetPasswordResult, error) {
list := []ResetPasswordResult{}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalResetPasswordResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
func UnmarshalMessageFileType(data json.RawMessage) (MessageFileType, error) {
var meta meta
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeMessageFileTypePrivate:
return UnmarshalMessageFileTypePrivate(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageFileTypeGroup:
return UnmarshalMessageFileTypeGroup(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageFileTypeUnknown:
return UnmarshalMessageFileTypeUnknown(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfMessageFileType(dataList []json.RawMessage) ([]MessageFileType, error) {
list := []MessageFileType{}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalMessageFileType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPushMessageContent(data json.RawMessage) (PushMessageContent, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypePushMessageContentHidden:
return UnmarshalPushMessageContentHidden(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentAnimation:
return UnmarshalPushMessageContentAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentAudio:
return UnmarshalPushMessageContentAudio(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentContact:
return UnmarshalPushMessageContentContact(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentContactRegistered:
return UnmarshalPushMessageContentContactRegistered(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentDocument:
return UnmarshalPushMessageContentDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentGame:
return UnmarshalPushMessageContentGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentGameScore:
return UnmarshalPushMessageContentGameScore(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentInvoice:
return UnmarshalPushMessageContentInvoice(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentLocation:
return UnmarshalPushMessageContentLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentPhoto:
return UnmarshalPushMessageContentPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentPoll:
return UnmarshalPushMessageContentPoll(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentPremiumGiftCode:
return UnmarshalPushMessageContentPremiumGiftCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentPremiumGiveaway:
return UnmarshalPushMessageContentPremiumGiveaway(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentScreenshotTaken:
return UnmarshalPushMessageContentScreenshotTaken(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentSticker:
return UnmarshalPushMessageContentSticker(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentStory:
return UnmarshalPushMessageContentStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentText:
return UnmarshalPushMessageContentText(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentVideo:
return UnmarshalPushMessageContentVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentVideoNote:
return UnmarshalPushMessageContentVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentVoiceNote:
return UnmarshalPushMessageContentVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentBasicGroupChatCreate:
return UnmarshalPushMessageContentBasicGroupChatCreate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatAddMembers:
return UnmarshalPushMessageContentChatAddMembers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatChangePhoto:
return UnmarshalPushMessageContentChatChangePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatChangeTitle:
return UnmarshalPushMessageContentChatChangeTitle(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatSetBackground:
return UnmarshalPushMessageContentChatSetBackground(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatSetTheme:
return UnmarshalPushMessageContentChatSetTheme(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatDeleteMember:
return UnmarshalPushMessageContentChatDeleteMember(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatJoinByLink:
return UnmarshalPushMessageContentChatJoinByLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatJoinByRequest:
return UnmarshalPushMessageContentChatJoinByRequest(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentRecurringPayment:
return UnmarshalPushMessageContentRecurringPayment(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentSuggestProfilePhoto:
return UnmarshalPushMessageContentSuggestProfilePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentMessageForwards:
return UnmarshalPushMessageContentMessageForwards(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentMediaAlbum:
return UnmarshalPushMessageContentMediaAlbum(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfPushMessageContent(dataList []json.RawMessage) ([]PushMessageContent, error) {
list := []PushMessageContent{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalPushMessageContent(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalNotificationType(data json.RawMessage) (NotificationType, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeNotificationTypeNewMessage:
return UnmarshalNotificationTypeNewMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationTypeNewSecretChat:
return UnmarshalNotificationTypeNewSecretChat(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationTypeNewCall:
return UnmarshalNotificationTypeNewCall(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationTypeNewPushMessage:
return UnmarshalNotificationTypeNewPushMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfNotificationType(dataList []json.RawMessage) ([]NotificationType, error) {
list := []NotificationType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalNotificationType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalNotificationGroupType(data json.RawMessage) (NotificationGroupType, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeNotificationGroupTypeMessages:
return UnmarshalNotificationGroupTypeMessages(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationGroupTypeMentions:
return UnmarshalNotificationGroupTypeMentions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationGroupTypeSecretChat:
return UnmarshalNotificationGroupTypeSecretChat(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationGroupTypeCalls:
return UnmarshalNotificationGroupTypeCalls(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfNotificationGroupType(dataList []json.RawMessage) ([]NotificationGroupType, error) {
list := []NotificationGroupType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalNotificationGroupType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalOptionValue(data json.RawMessage) (OptionValue, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeOptionValueBoolean:
return UnmarshalOptionValueBoolean(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeOptionValueEmpty:
return UnmarshalOptionValueEmpty(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeOptionValueInteger:
return UnmarshalOptionValueInteger(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeOptionValueString:
return UnmarshalOptionValueString(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfOptionValue(dataList []json.RawMessage) ([]OptionValue, error) {
list := []OptionValue{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalOptionValue(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalJsonValue(data json.RawMessage) (JsonValue, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeJsonValueNull:
return UnmarshalJsonValueNull(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeJsonValueBoolean:
return UnmarshalJsonValueBoolean(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeJsonValueNumber:
return UnmarshalJsonValueNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeJsonValueString:
return UnmarshalJsonValueString(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeJsonValueArray:
return UnmarshalJsonValueArray(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeJsonValueObject:
return UnmarshalJsonValueObject(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfJsonValue(dataList []json.RawMessage) ([]JsonValue, error) {
list := []JsonValue{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalJsonValue(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryPrivacySettings(data json.RawMessage) (StoryPrivacySettings, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeStoryPrivacySettingsEveryone:
return UnmarshalStoryPrivacySettingsEveryone(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryPrivacySettingsContacts:
return UnmarshalStoryPrivacySettingsContacts(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryPrivacySettingsCloseFriends:
return UnmarshalStoryPrivacySettingsCloseFriends(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryPrivacySettingsSelectedUsers:
return UnmarshalStoryPrivacySettingsSelectedUsers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfStoryPrivacySettings(dataList []json.RawMessage) ([]StoryPrivacySettings, error) {
list := []StoryPrivacySettings{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalStoryPrivacySettings(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalUserPrivacySettingRule(data json.RawMessage) (UserPrivacySettingRule, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeUserPrivacySettingRuleAllowAll:
return UnmarshalUserPrivacySettingRuleAllowAll(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleAllowContacts:
return UnmarshalUserPrivacySettingRuleAllowContacts(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleAllowPremiumUsers:
return UnmarshalUserPrivacySettingRuleAllowPremiumUsers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleAllowUsers:
return UnmarshalUserPrivacySettingRuleAllowUsers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleAllowChatMembers:
return UnmarshalUserPrivacySettingRuleAllowChatMembers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleRestrictAll:
return UnmarshalUserPrivacySettingRuleRestrictAll(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleRestrictContacts:
return UnmarshalUserPrivacySettingRuleRestrictContacts(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleRestrictUsers:
return UnmarshalUserPrivacySettingRuleRestrictUsers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleRestrictChatMembers:
return UnmarshalUserPrivacySettingRuleRestrictChatMembers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfUserPrivacySettingRule(dataList []json.RawMessage) ([]UserPrivacySettingRule, error) {
list := []UserPrivacySettingRule{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalUserPrivacySettingRule(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserPrivacySetting(data json.RawMessage) (UserPrivacySetting, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeUserPrivacySettingShowStatus:
return UnmarshalUserPrivacySettingShowStatus(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingShowProfilePhoto:
return UnmarshalUserPrivacySettingShowProfilePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingShowLinkInForwardedMessages:
return UnmarshalUserPrivacySettingShowLinkInForwardedMessages(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingShowPhoneNumber:
return UnmarshalUserPrivacySettingShowPhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingShowBio:
return UnmarshalUserPrivacySettingShowBio(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingShowBirthdate:
return UnmarshalUserPrivacySettingShowBirthdate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingAllowChatInvites:
return UnmarshalUserPrivacySettingAllowChatInvites(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingAllowCalls:
return UnmarshalUserPrivacySettingAllowCalls(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingAllowPeerToPeerCalls:
return UnmarshalUserPrivacySettingAllowPeerToPeerCalls(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingAllowFindingByPhoneNumber:
return UnmarshalUserPrivacySettingAllowFindingByPhoneNumber(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages:
return UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfUserPrivacySetting(dataList []json.RawMessage) ([]UserPrivacySetting, error) {
list := []UserPrivacySetting{}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalUserPrivacySetting(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCanSendMessageToUserResult(data json.RawMessage) (CanSendMessageToUserResult, error) {
var meta meta
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeCanSendMessageToUserResultOk:
return UnmarshalCanSendMessageToUserResultOk(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCanSendMessageToUserResultUserIsDeleted:
return UnmarshalCanSendMessageToUserResultUserIsDeleted(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCanSendMessageToUserResultUserRestrictsNewChats:
return UnmarshalCanSendMessageToUserResultUserRestrictsNewChats(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfCanSendMessageToUserResult(dataList []json.RawMessage) ([]CanSendMessageToUserResult, error) {
list := []CanSendMessageToUserResult{}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalCanSendMessageToUserResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSessionType(data json.RawMessage) (SessionType, error) {
var meta meta
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeSessionTypeAndroid:
return UnmarshalSessionTypeAndroid(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeApple:
return UnmarshalSessionTypeApple(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeBrave:
return UnmarshalSessionTypeBrave(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeChrome:
return UnmarshalSessionTypeChrome(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeEdge:
return UnmarshalSessionTypeEdge(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeFirefox:
return UnmarshalSessionTypeFirefox(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeIpad:
return UnmarshalSessionTypeIpad(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeIphone:
return UnmarshalSessionTypeIphone(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeLinux:
return UnmarshalSessionTypeLinux(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeMac:
return UnmarshalSessionTypeMac(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeOpera:
return UnmarshalSessionTypeOpera(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeSafari:
return UnmarshalSessionTypeSafari(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeUbuntu:
return UnmarshalSessionTypeUbuntu(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeUnknown:
return UnmarshalSessionTypeUnknown(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeVivaldi:
return UnmarshalSessionTypeVivaldi(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeWindows:
return UnmarshalSessionTypeWindows(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeXbox:
return UnmarshalSessionTypeXbox(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfSessionType(dataList []json.RawMessage) ([]SessionType, error) {
list := []SessionType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalSessionType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalReportReason(data json.RawMessage) (ReportReason, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeReportReasonSpam:
return UnmarshalReportReasonSpam(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonViolence:
return UnmarshalReportReasonViolence(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonPornography:
return UnmarshalReportReasonPornography(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonChildAbuse:
return UnmarshalReportReasonChildAbuse(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonCopyright:
return UnmarshalReportReasonCopyright(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonUnrelatedLocation:
return UnmarshalReportReasonUnrelatedLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonFake:
return UnmarshalReportReasonFake(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonIllegalDrugs:
return UnmarshalReportReasonIllegalDrugs(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonPersonalDetails:
return UnmarshalReportReasonPersonalDetails(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonCustom:
return UnmarshalReportReasonCustom(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfReportReason(dataList []json.RawMessage) ([]ReportReason, error) {
list := []ReportReason{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalReportReason(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalTargetChat(data json.RawMessage) (TargetChat, error) {
var meta meta
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeTargetChatCurrent:
return UnmarshalTargetChatCurrent(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeTargetChatChosen:
return UnmarshalTargetChatChosen(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTargetChatInternalLink:
return UnmarshalTargetChatInternalLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfTargetChat(dataList []json.RawMessage) ([]TargetChat, error) {
list := []TargetChat{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalTargetChat(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalInternalLinkType(data json.RawMessage) (InternalLinkType, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeInternalLinkTypeActiveSessions:
return UnmarshalInternalLinkTypeActiveSessions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeAttachmentMenuBot:
return UnmarshalInternalLinkTypeAttachmentMenuBot(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeAuthenticationCode:
return UnmarshalInternalLinkTypeAuthenticationCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeBackground:
return UnmarshalInternalLinkTypeBackground(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeBotAddToChannel:
return UnmarshalInternalLinkTypeBotAddToChannel(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeBotStart:
return UnmarshalInternalLinkTypeBotStart(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeBotStartInGroup:
return UnmarshalInternalLinkTypeBotStartInGroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeChangePhoneNumber:
return UnmarshalInternalLinkTypeChangePhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeChatBoost:
return UnmarshalInternalLinkTypeChatBoost(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeChatFolderInvite:
return UnmarshalInternalLinkTypeChatFolderInvite(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeChatFolderSettings:
return UnmarshalInternalLinkTypeChatFolderSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeChatInvite:
return UnmarshalInternalLinkTypeChatInvite(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeDefaultMessageAutoDeleteTimerSettings:
return UnmarshalInternalLinkTypeDefaultMessageAutoDeleteTimerSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeEditProfileSettings:
return UnmarshalInternalLinkTypeEditProfileSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeGame:
return UnmarshalInternalLinkTypeGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeInstantView:
return UnmarshalInternalLinkTypeInstantView(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeInvoice:
return UnmarshalInternalLinkTypeInvoice(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeLanguagePack:
return UnmarshalInternalLinkTypeLanguagePack(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeLanguageSettings:
return UnmarshalInternalLinkTypeLanguageSettings(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeMessage:
return UnmarshalInternalLinkTypeMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeMessageDraft:
return UnmarshalInternalLinkTypeMessageDraft(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePassportDataRequest:
return UnmarshalInternalLinkTypePassportDataRequest(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePhoneNumberConfirmation:
return UnmarshalInternalLinkTypePhoneNumberConfirmation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePremiumFeatures:
return UnmarshalInternalLinkTypePremiumFeatures(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePremiumGift:
return UnmarshalInternalLinkTypePremiumGift(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePremiumGiftCode:
return UnmarshalInternalLinkTypePremiumGiftCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePrivacyAndSecuritySettings:
return UnmarshalInternalLinkTypePrivacyAndSecuritySettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeProxy:
return UnmarshalInternalLinkTypeProxy(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePublicChat:
return UnmarshalInternalLinkTypePublicChat(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeQrCodeAuthentication:
return UnmarshalInternalLinkTypeQrCodeAuthentication(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeRestorePurchases:
return UnmarshalInternalLinkTypeRestorePurchases(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeSettings:
return UnmarshalInternalLinkTypeSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeSideMenuBot:
return UnmarshalInternalLinkTypeSideMenuBot(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeStickerSet:
return UnmarshalInternalLinkTypeStickerSet(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeStory:
return UnmarshalInternalLinkTypeStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeTheme:
return UnmarshalInternalLinkTypeTheme(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeThemeSettings:
return UnmarshalInternalLinkTypeThemeSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeUnknownDeepLink:
return UnmarshalInternalLinkTypeUnknownDeepLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeUnsupportedProxy:
return UnmarshalInternalLinkTypeUnsupportedProxy(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeUserPhoneNumber:
return UnmarshalInternalLinkTypeUserPhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeUserToken:
return UnmarshalInternalLinkTypeUserToken(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeVideoChat:
return UnmarshalInternalLinkTypeVideoChat(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeWebApp:
return UnmarshalInternalLinkTypeWebApp(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfInternalLinkType(dataList []json.RawMessage) ([]InternalLinkType, error) {
list := []InternalLinkType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalInternalLinkType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalBlockList(data json.RawMessage) (BlockList, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeBlockListMain:
return UnmarshalBlockListMain(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBlockListStories:
return UnmarshalBlockListStories(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalListOfBlockList(dataList []json.RawMessage) ([]BlockList, error) {
list := []BlockList{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalBlockList(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
func UnmarshalFileType(data json.RawMessage) (FileType, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeFileTypeNone:
return UnmarshalFileTypeNone(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeAnimation:
return UnmarshalFileTypeAnimation(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeAudio:
return UnmarshalFileTypeAudio(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeDocument:
return UnmarshalFileTypeDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeNotificationSound:
return UnmarshalFileTypeNotificationSound(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypePhoto:
return UnmarshalFileTypePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypePhotoStory:
return UnmarshalFileTypePhotoStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeProfilePhoto:
return UnmarshalFileTypeProfilePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeSecret:
return UnmarshalFileTypeSecret(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeSecretThumbnail:
return UnmarshalFileTypeSecretThumbnail(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeSecure:
return UnmarshalFileTypeSecure(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeSticker:
return UnmarshalFileTypeSticker(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeThumbnail:
return UnmarshalFileTypeThumbnail(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeUnknown:
return UnmarshalFileTypeUnknown(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeVideo:
return UnmarshalFileTypeVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeVideoNote:
return UnmarshalFileTypeVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeVideoStory:
return UnmarshalFileTypeVideoStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeVoiceNote:
return UnmarshalFileTypeVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeWallpaper:
return UnmarshalFileTypeWallpaper(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfFileType(dataList []json.RawMessage) ([]FileType, error) {
list := []FileType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalFileType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalNetworkType(data json.RawMessage) (NetworkType, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeNetworkTypeNone:
return UnmarshalNetworkTypeNone(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNetworkTypeMobile:
return UnmarshalNetworkTypeMobile(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNetworkTypeMobileRoaming:
return UnmarshalNetworkTypeMobileRoaming(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNetworkTypeWiFi:
return UnmarshalNetworkTypeWiFi(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNetworkTypeOther:
return UnmarshalNetworkTypeOther(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfNetworkType(dataList []json.RawMessage) ([]NetworkType, error) {
list := []NetworkType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalNetworkType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalNetworkStatisticsEntry(data json.RawMessage) (NetworkStatisticsEntry, error) {
var meta meta
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeNetworkStatisticsEntryFile:
return UnmarshalNetworkStatisticsEntryFile(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeNetworkStatisticsEntryCall:
return UnmarshalNetworkStatisticsEntryCall(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfNetworkStatisticsEntry(dataList []json.RawMessage) ([]NetworkStatisticsEntry, error) {
list := []NetworkStatisticsEntry{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalNetworkStatisticsEntry(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAutosaveSettingsScope(data json.RawMessage) (AutosaveSettingsScope, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeAutosaveSettingsScopePrivateChats:
return UnmarshalAutosaveSettingsScopePrivateChats(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAutosaveSettingsScopeGroupChats:
return UnmarshalAutosaveSettingsScopeGroupChats(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeAutosaveSettingsScopeChannelChats:
return UnmarshalAutosaveSettingsScopeChannelChats(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeAutosaveSettingsScopeChat:
return UnmarshalAutosaveSettingsScopeChat(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfAutosaveSettingsScope(dataList []json.RawMessage) ([]AutosaveSettingsScope, error) {
list := []AutosaveSettingsScope{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalAutosaveSettingsScope(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalConnectionState(data json.RawMessage) (ConnectionState, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeConnectionStateWaitingForNetwork:
return UnmarshalConnectionStateWaitingForNetwork(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeConnectionStateConnectingToProxy:
return UnmarshalConnectionStateConnectingToProxy(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeConnectionStateConnecting:
return UnmarshalConnectionStateConnecting(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeConnectionStateUpdating:
return UnmarshalConnectionStateUpdating(data)
case TypeConnectionStateReady:
return UnmarshalConnectionStateReady(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfConnectionState(dataList []json.RawMessage) ([]ConnectionState, error) {
list := []ConnectionState{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalConnectionState(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTopChatCategory(data json.RawMessage) (TopChatCategory, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeTopChatCategoryUsers:
return UnmarshalTopChatCategoryUsers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryBots:
return UnmarshalTopChatCategoryBots(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryGroups:
return UnmarshalTopChatCategoryGroups(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryChannels:
return UnmarshalTopChatCategoryChannels(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryInlineBots:
return UnmarshalTopChatCategoryInlineBots(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryCalls:
return UnmarshalTopChatCategoryCalls(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryForwardChats:
return UnmarshalTopChatCategoryForwardChats(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfTopChatCategory(dataList []json.RawMessage) ([]TopChatCategory, error) {
list := []TopChatCategory{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalTopChatCategory(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTMeUrlType(data json.RawMessage) (TMeUrlType, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeTMeUrlTypeUser:
return UnmarshalTMeUrlTypeUser(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeTMeUrlTypeSupergroup:
return UnmarshalTMeUrlTypeSupergroup(data)
case TypeTMeUrlTypeChatInvite:
return UnmarshalTMeUrlTypeChatInvite(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTMeUrlTypeStickerSet:
return UnmarshalTMeUrlTypeStickerSet(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfTMeUrlType(dataList []json.RawMessage) ([]TMeUrlType, error) {
list := []TMeUrlType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalTMeUrlType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSuggestedAction(data json.RawMessage) (SuggestedAction, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeSuggestedActionEnableArchiveAndMuteNewChats:
return UnmarshalSuggestedActionEnableArchiveAndMuteNewChats(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionCheckPassword:
return UnmarshalSuggestedActionCheckPassword(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionCheckPhoneNumber:
return UnmarshalSuggestedActionCheckPhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionViewChecksHint:
return UnmarshalSuggestedActionViewChecksHint(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionConvertToBroadcastGroup:
return UnmarshalSuggestedActionConvertToBroadcastGroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionSetPassword:
return UnmarshalSuggestedActionSetPassword(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionUpgradePremium:
return UnmarshalSuggestedActionUpgradePremium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionRestorePremium:
return UnmarshalSuggestedActionRestorePremium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionSubscribeToAnnualPremium:
return UnmarshalSuggestedActionSubscribeToAnnualPremium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionGiftPremiumForChristmas:
return UnmarshalSuggestedActionGiftPremiumForChristmas(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionSetBirthdate:
return UnmarshalSuggestedActionSetBirthdate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfSuggestedAction(dataList []json.RawMessage) ([]SuggestedAction, error) {
list := []SuggestedAction{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalSuggestedAction(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextParseMode(data json.RawMessage) (TextParseMode, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeTextParseModeMarkdown:
return UnmarshalTextParseModeMarkdown(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextParseModeHTML:
return UnmarshalTextParseModeHTML(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfTextParseMode(dataList []json.RawMessage) ([]TextParseMode, error) {
list := []TextParseMode{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalTextParseMode(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalProxyType(data json.RawMessage) (ProxyType, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeProxyTypeSocks5:
return UnmarshalProxyTypeSocks5(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeProxyTypeHttp:
return UnmarshalProxyTypeHttp(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeProxyTypeMtproto:
return UnmarshalProxyTypeMtproto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfProxyType(dataList []json.RawMessage) ([]ProxyType, error) {
list := []ProxyType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalProxyType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStatisticalGraph(data json.RawMessage) (StatisticalGraph, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeStatisticalGraphData:
return UnmarshalStatisticalGraphData(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStatisticalGraphAsync:
return UnmarshalStatisticalGraphAsync(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStatisticalGraphError:
return UnmarshalStatisticalGraphError(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfStatisticalGraph(dataList []json.RawMessage) ([]StatisticalGraph, error) {
list := []StatisticalGraph{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalStatisticalGraph(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatStatisticsObjectType(data json.RawMessage) (ChatStatisticsObjectType, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeChatStatisticsObjectTypeMessage:
return UnmarshalChatStatisticsObjectTypeMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatStatisticsObjectTypeStory:
return UnmarshalChatStatisticsObjectTypeStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfChatStatisticsObjectType(dataList []json.RawMessage) ([]ChatStatisticsObjectType, error) {
list := []ChatStatisticsObjectType{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatStatisticsObjectType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatStatistics(data json.RawMessage) (ChatStatistics, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeChatStatisticsSupergroup:
return UnmarshalChatStatisticsSupergroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatStatisticsChannel:
return UnmarshalChatStatisticsChannel(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfChatStatistics(dataList []json.RawMessage) ([]ChatStatistics, error) {
list := []ChatStatistics{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalChatStatistics(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalVectorPathCommand(data json.RawMessage) (VectorPathCommand, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeVectorPathCommandLine:
return UnmarshalVectorPathCommandLine(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeVectorPathCommandCubicBezierCurve:
return UnmarshalVectorPathCommandCubicBezierCurve(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfVectorPathCommand(dataList []json.RawMessage) ([]VectorPathCommand, error) {
list := []VectorPathCommand{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalVectorPathCommand(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBotCommandScope(data json.RawMessage) (BotCommandScope, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeBotCommandScopeDefault:
return UnmarshalBotCommandScopeDefault(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotCommandScopeAllPrivateChats:
return UnmarshalBotCommandScopeAllPrivateChats(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotCommandScopeAllGroupChats:
return UnmarshalBotCommandScopeAllGroupChats(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotCommandScopeAllChatAdministrators:
return UnmarshalBotCommandScopeAllChatAdministrators(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotCommandScopeChat:
return UnmarshalBotCommandScopeChat(data)
case TypeBotCommandScopeChatAdministrators:
return UnmarshalBotCommandScopeChatAdministrators(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotCommandScopeChatMember:
return UnmarshalBotCommandScopeChatMember(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfBotCommandScope(dataList []json.RawMessage) ([]BotCommandScope, error) {
list := []BotCommandScope{}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalBotCommandScope(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUpdate(data json.RawMessage) (Update, error) {
var meta meta
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeUpdateAuthorizationState:
return UnmarshalUpdateAuthorizationState(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewMessage:
return UnmarshalUpdateNewMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageSendAcknowledged:
return UnmarshalUpdateMessageSendAcknowledged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageSendSucceeded:
return UnmarshalUpdateMessageSendSucceeded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageSendFailed:
return UnmarshalUpdateMessageSendFailed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageContent:
return UnmarshalUpdateMessageContent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageEdited:
return UnmarshalUpdateMessageEdited(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageIsPinned:
return UnmarshalUpdateMessageIsPinned(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageInteractionInfo:
return UnmarshalUpdateMessageInteractionInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageContentOpened:
return UnmarshalUpdateMessageContentOpened(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageMentionRead:
return UnmarshalUpdateMessageMentionRead(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageUnreadReactions:
return UnmarshalUpdateMessageUnreadReactions(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageLiveLocationViewed:
return UnmarshalUpdateMessageLiveLocationViewed(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewChat:
return UnmarshalUpdateNewChat(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatTitle:
return UnmarshalUpdateChatTitle(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatPhoto:
return UnmarshalUpdateChatPhoto(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatAccentColors:
return UnmarshalUpdateChatAccentColors(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatPermissions:
return UnmarshalUpdateChatPermissions(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatLastMessage:
return UnmarshalUpdateChatLastMessage(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatPosition:
return UnmarshalUpdateChatPosition(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatAddedToList:
return UnmarshalUpdateChatAddedToList(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatRemovedFromList:
return UnmarshalUpdateChatRemovedFromList(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatReadInbox:
return UnmarshalUpdateChatReadInbox(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatReadOutbox:
return UnmarshalUpdateChatReadOutbox(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatActionBar:
return UnmarshalUpdateChatActionBar(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatAvailableReactions:
return UnmarshalUpdateChatAvailableReactions(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatDraftMessage:
return UnmarshalUpdateChatDraftMessage(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatEmojiStatus:
return UnmarshalUpdateChatEmojiStatus(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatMessageSender:
return UnmarshalUpdateChatMessageSender(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatMessageAutoDeleteTime:
return UnmarshalUpdateChatMessageAutoDeleteTime(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatNotificationSettings:
return UnmarshalUpdateChatNotificationSettings(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatPendingJoinRequests:
return UnmarshalUpdateChatPendingJoinRequests(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatReplyMarkup:
return UnmarshalUpdateChatReplyMarkup(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatBackground:
return UnmarshalUpdateChatBackground(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatTheme:
return UnmarshalUpdateChatTheme(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatUnreadMentionCount:
return UnmarshalUpdateChatUnreadMentionCount(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatUnreadReactionCount:
return UnmarshalUpdateChatUnreadReactionCount(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatVideoChat:
return UnmarshalUpdateChatVideoChat(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatDefaultDisableNotification:
return UnmarshalUpdateChatDefaultDisableNotification(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatHasProtectedContent:
return UnmarshalUpdateChatHasProtectedContent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatIsTranslatable:
return UnmarshalUpdateChatIsTranslatable(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatIsMarkedAsUnread:
return UnmarshalUpdateChatIsMarkedAsUnread(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatViewAsTopics:
return UnmarshalUpdateChatViewAsTopics(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatBlockList:
return UnmarshalUpdateChatBlockList(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatHasScheduledMessages:
return UnmarshalUpdateChatHasScheduledMessages(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatFolders:
return UnmarshalUpdateChatFolders(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatOnlineMemberCount:
return UnmarshalUpdateChatOnlineMemberCount(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSavedMessagesTopic:
return UnmarshalUpdateSavedMessagesTopic(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSavedMessagesTopicCount:
return UnmarshalUpdateSavedMessagesTopicCount(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateQuickReplyShortcut:
return UnmarshalUpdateQuickReplyShortcut(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateQuickReplyShortcutDeleted:
return UnmarshalUpdateQuickReplyShortcutDeleted(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateQuickReplyShortcuts:
return UnmarshalUpdateQuickReplyShortcuts(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateQuickReplyShortcutMessages:
return UnmarshalUpdateQuickReplyShortcutMessages(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateForumTopicInfo:
return UnmarshalUpdateForumTopicInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateScopeNotificationSettings:
return UnmarshalUpdateScopeNotificationSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNotification:
return UnmarshalUpdateNotification(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNotificationGroup:
return UnmarshalUpdateNotificationGroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateActiveNotifications:
return UnmarshalUpdateActiveNotifications(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateHavePendingNotifications:
return UnmarshalUpdateHavePendingNotifications(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateDeleteMessages:
return UnmarshalUpdateDeleteMessages(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatAction:
return UnmarshalUpdateChatAction(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUserStatus:
return UnmarshalUpdateUserStatus(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUser:
return UnmarshalUpdateUser(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateBasicGroup:
return UnmarshalUpdateBasicGroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSupergroup:
return UnmarshalUpdateSupergroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSecretChat:
return UnmarshalUpdateSecretChat(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUserFullInfo:
return UnmarshalUpdateUserFullInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateBasicGroupFullInfo:
return UnmarshalUpdateBasicGroupFullInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSupergroupFullInfo:
return UnmarshalUpdateSupergroupFullInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateServiceNotification:
return UnmarshalUpdateServiceNotification(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFile:
return UnmarshalUpdateFile(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFileGenerationStart:
return UnmarshalUpdateFileGenerationStart(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFileGenerationStop:
return UnmarshalUpdateFileGenerationStop(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFileDownloads:
return UnmarshalUpdateFileDownloads(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFileAddedToDownloads:
return UnmarshalUpdateFileAddedToDownloads(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFileDownload:
return UnmarshalUpdateFileDownload(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFileRemovedFromDownloads:
return UnmarshalUpdateFileRemovedFromDownloads(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateCall:
return UnmarshalUpdateCall(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateGroupCall:
return UnmarshalUpdateGroupCall(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateGroupCallParticipant:
return UnmarshalUpdateGroupCallParticipant(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewCallSignalingData:
return UnmarshalUpdateNewCallSignalingData(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUserPrivacySettingRules:
return UnmarshalUpdateUserPrivacySettingRules(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUnreadMessageCount:
return UnmarshalUpdateUnreadMessageCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUnreadChatCount:
return UnmarshalUpdateUnreadChatCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStory:
return UnmarshalUpdateStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStoryDeleted:
return UnmarshalUpdateStoryDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStorySendSucceeded:
return UnmarshalUpdateStorySendSucceeded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStorySendFailed:
return UnmarshalUpdateStorySendFailed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatActiveStories:
return UnmarshalUpdateChatActiveStories(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStoryListChatCount:
return UnmarshalUpdateStoryListChatCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStoryStealthMode:
return UnmarshalUpdateStoryStealthMode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateOption:
return UnmarshalUpdateOption(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStickerSet:
return UnmarshalUpdateStickerSet(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateInstalledStickerSets:
return UnmarshalUpdateInstalledStickerSets(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateTrendingStickerSets:
return UnmarshalUpdateTrendingStickerSets(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateRecentStickers:
return UnmarshalUpdateRecentStickers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFavoriteStickers:
return UnmarshalUpdateFavoriteStickers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSavedAnimations:
return UnmarshalUpdateSavedAnimations(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSavedNotificationSounds:
return UnmarshalUpdateSavedNotificationSounds(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateDefaultBackground:
return UnmarshalUpdateDefaultBackground(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatThemes:
return UnmarshalUpdateChatThemes(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAccentColors:
return UnmarshalUpdateAccentColors(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateProfileAccentColors:
return UnmarshalUpdateProfileAccentColors(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateLanguagePackStrings:
return UnmarshalUpdateLanguagePackStrings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateConnectionState:
return UnmarshalUpdateConnectionState(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateTermsOfService:
return UnmarshalUpdateTermsOfService(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUsersNearby:
return UnmarshalUpdateUsersNearby(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUnconfirmedSession:
return UnmarshalUpdateUnconfirmedSession(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAttachmentMenuBots:
return UnmarshalUpdateAttachmentMenuBots(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateWebAppMessageSent:
return UnmarshalUpdateWebAppMessageSent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateActiveEmojiReactions:
return UnmarshalUpdateActiveEmojiReactions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateDefaultReactionType:
return UnmarshalUpdateDefaultReactionType(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSavedMessagesTags:
return UnmarshalUpdateSavedMessagesTags(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSpeechRecognitionTrial:
return UnmarshalUpdateSpeechRecognitionTrial(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateDiceEmojis:
return UnmarshalUpdateDiceEmojis(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAnimatedEmojiMessageClicked:
return UnmarshalUpdateAnimatedEmojiMessageClicked(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAnimationSearchParameters:
return UnmarshalUpdateAnimationSearchParameters(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSuggestedActions:
return UnmarshalUpdateSuggestedActions(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateContactCloseBirthdays:
return UnmarshalUpdateContactCloseBirthdays(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAddChatMembersPrivacyForbidden:
return UnmarshalUpdateAddChatMembersPrivacyForbidden(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAutosaveSettings:
return UnmarshalUpdateAutosaveSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateBusinessConnection:
return UnmarshalUpdateBusinessConnection(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewBusinessMessage:
return UnmarshalUpdateNewBusinessMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateBusinessMessageEdited:
return UnmarshalUpdateBusinessMessageEdited(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateBusinessMessagesDeleted:
return UnmarshalUpdateBusinessMessagesDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewInlineQuery:
return UnmarshalUpdateNewInlineQuery(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewChosenInlineResult:
return UnmarshalUpdateNewChosenInlineResult(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewCallbackQuery:
return UnmarshalUpdateNewCallbackQuery(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewInlineCallbackQuery:
return UnmarshalUpdateNewInlineCallbackQuery(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewShippingQuery:
return UnmarshalUpdateNewShippingQuery(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewPreCheckoutQuery:
return UnmarshalUpdateNewPreCheckoutQuery(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewCustomEvent:
return UnmarshalUpdateNewCustomEvent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewCustomQuery:
return UnmarshalUpdateNewCustomQuery(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdatePoll:
return UnmarshalUpdatePoll(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdatePollAnswer:
return UnmarshalUpdatePollAnswer(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatMember:
return UnmarshalUpdateChatMember(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewChatJoinRequest:
return UnmarshalUpdateNewChatJoinRequest(data)
case TypeUpdateChatBoost:
return UnmarshalUpdateChatBoost(data)
case TypeUpdateMessageReaction:
return UnmarshalUpdateMessageReaction(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageReactions:
return UnmarshalUpdateMessageReactions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfUpdate(dataList []json.RawMessage) ([]Update, error) {
list := []Update{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalUpdate(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLogStream(data json.RawMessage) (LogStream, error) {
var meta meta
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
switch meta.Type {
case TypeLogStreamDefault:
return UnmarshalLogStreamDefault(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeLogStreamFile:
return UnmarshalLogStreamFile(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeLogStreamEmpty:
return UnmarshalLogStreamEmpty(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalListOfLogStream(dataList []json.RawMessage) ([]LogStream, error) {
list := []LogStream{}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
for _, data := range dataList {
entity, err := UnmarshalLogStream(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return list, nil
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalError(data json.RawMessage) (*Error, error) {
var resp Error
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalOk(data json.RawMessage) (*Ok, error) {
var resp Ok
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthenticationCodeTypeTelegramMessage(data json.RawMessage) (*AuthenticationCodeTypeTelegramMessage, error) {
var resp AuthenticationCodeTypeTelegramMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthenticationCodeTypeSms(data json.RawMessage) (*AuthenticationCodeTypeSms, error) {
var resp AuthenticationCodeTypeSms
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthenticationCodeTypeCall(data json.RawMessage) (*AuthenticationCodeTypeCall, error) {
var resp AuthenticationCodeTypeCall
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthenticationCodeTypeFlashCall(data json.RawMessage) (*AuthenticationCodeTypeFlashCall, error) {
var resp AuthenticationCodeTypeFlashCall
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthenticationCodeTypeMissedCall(data json.RawMessage) (*AuthenticationCodeTypeMissedCall, error) {
var resp AuthenticationCodeTypeMissedCall
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthenticationCodeTypeFragment(data json.RawMessage) (*AuthenticationCodeTypeFragment, error) {
var resp AuthenticationCodeTypeFragment
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthenticationCodeTypeFirebaseAndroid(data json.RawMessage) (*AuthenticationCodeTypeFirebaseAndroid, error) {
var resp AuthenticationCodeTypeFirebaseAndroid
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthenticationCodeTypeFirebaseIos(data json.RawMessage) (*AuthenticationCodeTypeFirebaseIos, error) {
var resp AuthenticationCodeTypeFirebaseIos
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthenticationCodeInfo(data json.RawMessage) (*AuthenticationCodeInfo, error) {
var resp AuthenticationCodeInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmailAddressAuthenticationCodeInfo(data json.RawMessage) (*EmailAddressAuthenticationCodeInfo, error) {
var resp EmailAddressAuthenticationCodeInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmailAddressAuthenticationCode(data json.RawMessage) (*EmailAddressAuthenticationCode, error) {
var resp EmailAddressAuthenticationCode
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmailAddressAuthenticationAppleId(data json.RawMessage) (*EmailAddressAuthenticationAppleId, error) {
var resp EmailAddressAuthenticationAppleId
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmailAddressAuthenticationGoogleId(data json.RawMessage) (*EmailAddressAuthenticationGoogleId, error) {
var resp EmailAddressAuthenticationGoogleId
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmailAddressResetStateAvailable(data json.RawMessage) (*EmailAddressResetStateAvailable, error) {
var resp EmailAddressResetStateAvailable
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmailAddressResetStatePending(data json.RawMessage) (*EmailAddressResetStatePending, error) {
var resp EmailAddressResetStatePending
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntity(data json.RawMessage) (*TextEntity, error) {
var resp TextEntity
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntities(data json.RawMessage) (*TextEntities, error) {
var resp TextEntities
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalFormattedText(data json.RawMessage) (*FormattedText, error) {
var resp FormattedText
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTermsOfService(data json.RawMessage) (*TermsOfService, error) {
var resp TermsOfService
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthorizationStateWaitTdlibParameters(data json.RawMessage) (*AuthorizationStateWaitTdlibParameters, error) {
var resp AuthorizationStateWaitTdlibParameters
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthorizationStateWaitPhoneNumber(data json.RawMessage) (*AuthorizationStateWaitPhoneNumber, error) {
var resp AuthorizationStateWaitPhoneNumber
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthorizationStateWaitEmailAddress(data json.RawMessage) (*AuthorizationStateWaitEmailAddress, error) {
var resp AuthorizationStateWaitEmailAddress
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthorizationStateWaitEmailCode(data json.RawMessage) (*AuthorizationStateWaitEmailCode, error) {
var resp AuthorizationStateWaitEmailCode
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthorizationStateWaitCode(data json.RawMessage) (*AuthorizationStateWaitCode, error) {
var resp AuthorizationStateWaitCode
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthorizationStateWaitOtherDeviceConfirmation(data json.RawMessage) (*AuthorizationStateWaitOtherDeviceConfirmation, error) {
var resp AuthorizationStateWaitOtherDeviceConfirmation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthorizationStateWaitRegistration(data json.RawMessage) (*AuthorizationStateWaitRegistration, error) {
var resp AuthorizationStateWaitRegistration
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthorizationStateWaitPassword(data json.RawMessage) (*AuthorizationStateWaitPassword, error) {
var resp AuthorizationStateWaitPassword
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthorizationStateReady(data json.RawMessage) (*AuthorizationStateReady, error) {
var resp AuthorizationStateReady
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthorizationStateLoggingOut(data json.RawMessage) (*AuthorizationStateLoggingOut, error) {
var resp AuthorizationStateLoggingOut
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthorizationStateClosing(data json.RawMessage) (*AuthorizationStateClosing, error) {
var resp AuthorizationStateClosing
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAuthorizationStateClosed(data json.RawMessage) (*AuthorizationStateClosed, error) {
var resp AuthorizationStateClosed
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPasswordState(data json.RawMessage) (*PasswordState, error) {
var resp PasswordState
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRecoveryEmailAddress(data json.RawMessage) (*RecoveryEmailAddress, error) {
var resp RecoveryEmailAddress
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTemporaryPasswordState(data json.RawMessage) (*TemporaryPasswordState, error) {
var resp TemporaryPasswordState
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLocalFile(data json.RawMessage) (*LocalFile, error) {
var resp LocalFile
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRemoteFile(data json.RawMessage) (*RemoteFile, error) {
var resp RemoteFile
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalFile(data json.RawMessage) (*File, error) {
var resp File
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputFileId(data json.RawMessage) (*InputFileId, error) {
var resp InputFileId
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputFileRemote(data json.RawMessage) (*InputFileRemote, error) {
var resp InputFileRemote
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputFileLocal(data json.RawMessage) (*InputFileLocal, error) {
var resp InputFileLocal
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputFileGenerated(data json.RawMessage) (*InputFileGenerated, error) {
var resp InputFileGenerated
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPhotoSize(data json.RawMessage) (*PhotoSize, error) {
var resp PhotoSize
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMinithumbnail(data json.RawMessage) (*Minithumbnail, error) {
var resp Minithumbnail
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalThumbnailFormatJpeg(data json.RawMessage) (*ThumbnailFormatJpeg, error) {
var resp ThumbnailFormatJpeg
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalThumbnailFormatGif(data json.RawMessage) (*ThumbnailFormatGif, error) {
var resp ThumbnailFormatGif
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalThumbnailFormatMpeg4(data json.RawMessage) (*ThumbnailFormatMpeg4, error) {
var resp ThumbnailFormatMpeg4
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalThumbnailFormatPng(data json.RawMessage) (*ThumbnailFormatPng, error) {
var resp ThumbnailFormatPng
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalThumbnailFormatTgs(data json.RawMessage) (*ThumbnailFormatTgs, error) {
var resp ThumbnailFormatTgs
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalThumbnailFormatWebm(data json.RawMessage) (*ThumbnailFormatWebm, error) {
var resp ThumbnailFormatWebm
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalThumbnailFormatWebp(data json.RawMessage) (*ThumbnailFormatWebp, error) {
var resp ThumbnailFormatWebp
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalThumbnail(data json.RawMessage) (*Thumbnail, error) {
var resp Thumbnail
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMaskPointForehead(data json.RawMessage) (*MaskPointForehead, error) {
var resp MaskPointForehead
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMaskPointEyes(data json.RawMessage) (*MaskPointEyes, error) {
var resp MaskPointEyes
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMaskPointMouth(data json.RawMessage) (*MaskPointMouth, error) {
var resp MaskPointMouth
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMaskPointChin(data json.RawMessage) (*MaskPointChin, error) {
var resp MaskPointChin
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMaskPosition(data json.RawMessage) (*MaskPosition, error) {
var resp MaskPosition
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickerFormatWebp(data json.RawMessage) (*StickerFormatWebp, error) {
var resp StickerFormatWebp
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickerFormatTgs(data json.RawMessage) (*StickerFormatTgs, error) {
var resp StickerFormatTgs
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickerFormatWebm(data json.RawMessage) (*StickerFormatWebm, error) {
var resp StickerFormatWebm
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickerTypeRegular(data json.RawMessage) (*StickerTypeRegular, error) {
var resp StickerTypeRegular
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickerTypeMask(data json.RawMessage) (*StickerTypeMask, error) {
var resp StickerTypeMask
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickerTypeCustomEmoji(data json.RawMessage) (*StickerTypeCustomEmoji, error) {
var resp StickerTypeCustomEmoji
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickerFullTypeRegular(data json.RawMessage) (*StickerFullTypeRegular, error) {
var resp StickerFullTypeRegular
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickerFullTypeMask(data json.RawMessage) (*StickerFullTypeMask, error) {
var resp StickerFullTypeMask
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickerFullTypeCustomEmoji(data json.RawMessage) (*StickerFullTypeCustomEmoji, error) {
var resp StickerFullTypeCustomEmoji
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalClosedVectorPath(data json.RawMessage) (*ClosedVectorPath, error) {
var resp ClosedVectorPath
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPollOption(data json.RawMessage) (*PollOption, error) {
var resp PollOption
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPollTypeRegular(data json.RawMessage) (*PollTypeRegular, error) {
var resp PollTypeRegular
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPollTypeQuiz(data json.RawMessage) (*PollTypeQuiz, error) {
var resp PollTypeQuiz
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAnimation(data json.RawMessage) (*Animation, error) {
var resp Animation
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAudio(data json.RawMessage) (*Audio, error) {
var resp Audio
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDocument(data json.RawMessage) (*Document, error) {
var resp Document
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPhoto(data json.RawMessage) (*Photo, error) {
var resp Photo
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSticker(data json.RawMessage) (*Sticker, error) {
var resp Sticker
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalVideo(data json.RawMessage) (*Video, error) {
var resp Video
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalVideoNote(data json.RawMessage) (*VideoNote, error) {
var resp VideoNote
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalVoiceNote(data json.RawMessage) (*VoiceNote, error) {
var resp VoiceNote
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAnimatedEmoji(data json.RawMessage) (*AnimatedEmoji, error) {
var resp AnimatedEmoji
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalContact(data json.RawMessage) (*Contact, error) {
var resp Contact
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLocation(data json.RawMessage) (*Location, error) {
var resp Location
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2022-04-18 22:45:01 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalVenue(data json.RawMessage) (*Venue, error) {
var resp Venue
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGame(data json.RawMessage) (*Game, error) {
var resp Game
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalWebApp(data json.RawMessage) (*WebApp, error) {
var resp WebApp
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPoll(data json.RawMessage) (*Poll, error) {
var resp Poll
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBackground(data json.RawMessage) (*Background, error) {
var resp Background
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBackgrounds(data json.RawMessage) (*Backgrounds, error) {
var resp Backgrounds
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatBackground(data json.RawMessage) (*ChatBackground, error) {
var resp ChatBackground
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalProfilePhoto(data json.RawMessage) (*ProfilePhoto, error) {
var resp ProfilePhoto
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatPhotoInfo(data json.RawMessage) (*ChatPhotoInfo, error) {
var resp ChatPhotoInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserTypeRegular(data json.RawMessage) (*UserTypeRegular, error) {
var resp UserTypeRegular
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserTypeDeleted(data json.RawMessage) (*UserTypeDeleted, error) {
var resp UserTypeDeleted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserTypeBot(data json.RawMessage) (*UserTypeBot, error) {
var resp UserTypeBot
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserTypeUnknown(data json.RawMessage) (*UserTypeUnknown, error) {
var resp UserTypeUnknown
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBotCommand(data json.RawMessage) (*BotCommand, error) {
var resp BotCommand
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBotCommands(data json.RawMessage) (*BotCommands, error) {
var resp BotCommands
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBotMenuButton(data json.RawMessage) (*BotMenuButton, error) {
var resp BotMenuButton
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatLocation(data json.RawMessage) (*ChatLocation, error) {
var resp ChatLocation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBirthdate(data json.RawMessage) (*Birthdate, error) {
var resp Birthdate
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCloseBirthdayUser(data json.RawMessage) (*CloseBirthdayUser, error) {
var resp CloseBirthdayUser
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessAwayMessageScheduleAlways(data json.RawMessage) (*BusinessAwayMessageScheduleAlways, error) {
var resp BusinessAwayMessageScheduleAlways
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessAwayMessageScheduleOutsideOfOpeningHours(data json.RawMessage) (*BusinessAwayMessageScheduleOutsideOfOpeningHours, error) {
var resp BusinessAwayMessageScheduleOutsideOfOpeningHours
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessAwayMessageScheduleCustom(data json.RawMessage) (*BusinessAwayMessageScheduleCustom, error) {
var resp BusinessAwayMessageScheduleCustom
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessLocation(data json.RawMessage) (*BusinessLocation, error) {
var resp BusinessLocation
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessRecipients(data json.RawMessage) (*BusinessRecipients, error) {
var resp BusinessRecipients
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessAwayMessageSettings(data json.RawMessage) (*BusinessAwayMessageSettings, error) {
var resp BusinessAwayMessageSettings
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessGreetingMessageSettings(data json.RawMessage) (*BusinessGreetingMessageSettings, error) {
var resp BusinessGreetingMessageSettings
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessConnectedBot(data json.RawMessage) (*BusinessConnectedBot, error) {
var resp BusinessConnectedBot
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessIntro(data json.RawMessage) (*BusinessIntro, error) {
var resp BusinessIntro
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputBusinessIntro(data json.RawMessage) (*InputBusinessIntro, error) {
var resp InputBusinessIntro
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessOpeningHoursInterval(data json.RawMessage) (*BusinessOpeningHoursInterval, error) {
var resp BusinessOpeningHoursInterval
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessOpeningHours(data json.RawMessage) (*BusinessOpeningHours, error) {
var resp BusinessOpeningHours
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessInfo(data json.RawMessage) (*BusinessInfo, error) {
var resp BusinessInfo
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatPhotoStickerTypeRegularOrMask(data json.RawMessage) (*ChatPhotoStickerTypeRegularOrMask, error) {
var resp ChatPhotoStickerTypeRegularOrMask
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatPhotoStickerTypeCustomEmoji(data json.RawMessage) (*ChatPhotoStickerTypeCustomEmoji, error) {
var resp ChatPhotoStickerTypeCustomEmoji
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatPhotoSticker(data json.RawMessage) (*ChatPhotoSticker, error) {
var resp ChatPhotoSticker
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAnimatedChatPhoto(data json.RawMessage) (*AnimatedChatPhoto, error) {
var resp AnimatedChatPhoto
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatPhoto(data json.RawMessage) (*ChatPhoto, error) {
var resp ChatPhoto
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatPhotos(data json.RawMessage) (*ChatPhotos, error) {
var resp ChatPhotos
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputChatPhotoPrevious(data json.RawMessage) (*InputChatPhotoPrevious, error) {
var resp InputChatPhotoPrevious
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputChatPhotoStatic(data json.RawMessage) (*InputChatPhotoStatic, error) {
var resp InputChatPhotoStatic
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputChatPhotoAnimation(data json.RawMessage) (*InputChatPhotoAnimation, error) {
var resp InputChatPhotoAnimation
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputChatPhotoSticker(data json.RawMessage) (*InputChatPhotoSticker, error) {
var resp InputChatPhotoSticker
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatPermissions(data json.RawMessage) (*ChatPermissions, error) {
var resp ChatPermissions
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatAdministratorRights(data json.RawMessage) (*ChatAdministratorRights, error) {
var resp ChatAdministratorRights
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumPaymentOption(data json.RawMessage) (*PremiumPaymentOption, error) {
var resp PremiumPaymentOption
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumStatePaymentOption(data json.RawMessage) (*PremiumStatePaymentOption, error) {
var resp PremiumStatePaymentOption
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumGiftCodePaymentOption(data json.RawMessage) (*PremiumGiftCodePaymentOption, error) {
var resp PremiumGiftCodePaymentOption
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumGiftCodePaymentOptions(data json.RawMessage) (*PremiumGiftCodePaymentOptions, error) {
var resp PremiumGiftCodePaymentOptions
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumGiftCodeInfo(data json.RawMessage) (*PremiumGiftCodeInfo, error) {
var resp PremiumGiftCodeInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumGiveawayParticipantStatusEligible(data json.RawMessage) (*PremiumGiveawayParticipantStatusEligible, error) {
var resp PremiumGiveawayParticipantStatusEligible
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumGiveawayParticipantStatusParticipating(data json.RawMessage) (*PremiumGiveawayParticipantStatusParticipating, error) {
var resp PremiumGiveawayParticipantStatusParticipating
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumGiveawayParticipantStatusAlreadyWasMember(data json.RawMessage) (*PremiumGiveawayParticipantStatusAlreadyWasMember, error) {
var resp PremiumGiveawayParticipantStatusAlreadyWasMember
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumGiveawayParticipantStatusAdministrator(data json.RawMessage) (*PremiumGiveawayParticipantStatusAdministrator, error) {
var resp PremiumGiveawayParticipantStatusAdministrator
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumGiveawayParticipantStatusDisallowedCountry(data json.RawMessage) (*PremiumGiveawayParticipantStatusDisallowedCountry, error) {
var resp PremiumGiveawayParticipantStatusDisallowedCountry
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumGiveawayInfoOngoing(data json.RawMessage) (*PremiumGiveawayInfoOngoing, error) {
var resp PremiumGiveawayInfoOngoing
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumGiveawayInfoCompleted(data json.RawMessage) (*PremiumGiveawayInfoCompleted, error) {
var resp PremiumGiveawayInfoCompleted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAccentColor(data json.RawMessage) (*AccentColor, error) {
var resp AccentColor
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalProfileAccentColors(data json.RawMessage) (*ProfileAccentColors, error) {
var resp ProfileAccentColors
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalProfileAccentColor(data json.RawMessage) (*ProfileAccentColor, error) {
var resp ProfileAccentColor
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmojiStatus(data json.RawMessage) (*EmojiStatus, error) {
var resp EmojiStatus
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmojiStatuses(data json.RawMessage) (*EmojiStatuses, error) {
var resp EmojiStatuses
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUsernames(data json.RawMessage) (*Usernames, error) {
var resp Usernames
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUser(data json.RawMessage) (*User, error) {
var resp User
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBotInfo(data json.RawMessage) (*BotInfo, error) {
var resp BotInfo
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserFullInfo(data json.RawMessage) (*UserFullInfo, error) {
var resp UserFullInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUsers(data json.RawMessage) (*Users, error) {
var resp Users
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatAdministrator(data json.RawMessage) (*ChatAdministrator, error) {
var resp ChatAdministrator
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatAdministrators(data json.RawMessage) (*ChatAdministrators, error) {
var resp ChatAdministrators
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMemberStatusCreator(data json.RawMessage) (*ChatMemberStatusCreator, error) {
var resp ChatMemberStatusCreator
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMemberStatusAdministrator(data json.RawMessage) (*ChatMemberStatusAdministrator, error) {
var resp ChatMemberStatusAdministrator
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMemberStatusMember(data json.RawMessage) (*ChatMemberStatusMember, error) {
var resp ChatMemberStatusMember
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMemberStatusRestricted(data json.RawMessage) (*ChatMemberStatusRestricted, error) {
var resp ChatMemberStatusRestricted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMemberStatusLeft(data json.RawMessage) (*ChatMemberStatusLeft, error) {
var resp ChatMemberStatusLeft
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMemberStatusBanned(data json.RawMessage) (*ChatMemberStatusBanned, error) {
var resp ChatMemberStatusBanned
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMember(data json.RawMessage) (*ChatMember, error) {
var resp ChatMember
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMembers(data json.RawMessage) (*ChatMembers, error) {
var resp ChatMembers
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMembersFilterContacts(data json.RawMessage) (*ChatMembersFilterContacts, error) {
var resp ChatMembersFilterContacts
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMembersFilterAdministrators(data json.RawMessage) (*ChatMembersFilterAdministrators, error) {
var resp ChatMembersFilterAdministrators
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMembersFilterMembers(data json.RawMessage) (*ChatMembersFilterMembers, error) {
var resp ChatMembersFilterMembers
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMembersFilterMention(data json.RawMessage) (*ChatMembersFilterMention, error) {
var resp ChatMembersFilterMention
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMembersFilterRestricted(data json.RawMessage) (*ChatMembersFilterRestricted, error) {
var resp ChatMembersFilterRestricted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMembersFilterBanned(data json.RawMessage) (*ChatMembersFilterBanned, error) {
var resp ChatMembersFilterBanned
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMembersFilterBots(data json.RawMessage) (*ChatMembersFilterBots, error) {
var resp ChatMembersFilterBots
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSupergroupMembersFilterRecent(data json.RawMessage) (*SupergroupMembersFilterRecent, error) {
var resp SupergroupMembersFilterRecent
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSupergroupMembersFilterContacts(data json.RawMessage) (*SupergroupMembersFilterContacts, error) {
var resp SupergroupMembersFilterContacts
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSupergroupMembersFilterAdministrators(data json.RawMessage) (*SupergroupMembersFilterAdministrators, error) {
var resp SupergroupMembersFilterAdministrators
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSupergroupMembersFilterSearch(data json.RawMessage) (*SupergroupMembersFilterSearch, error) {
var resp SupergroupMembersFilterSearch
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSupergroupMembersFilterRestricted(data json.RawMessage) (*SupergroupMembersFilterRestricted, error) {
var resp SupergroupMembersFilterRestricted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSupergroupMembersFilterBanned(data json.RawMessage) (*SupergroupMembersFilterBanned, error) {
var resp SupergroupMembersFilterBanned
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSupergroupMembersFilterMention(data json.RawMessage) (*SupergroupMembersFilterMention, error) {
var resp SupergroupMembersFilterMention
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSupergroupMembersFilterBots(data json.RawMessage) (*SupergroupMembersFilterBots, error) {
var resp SupergroupMembersFilterBots
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatInviteLink(data json.RawMessage) (*ChatInviteLink, error) {
var resp ChatInviteLink
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatInviteLinks(data json.RawMessage) (*ChatInviteLinks, error) {
var resp ChatInviteLinks
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatInviteLinkCount(data json.RawMessage) (*ChatInviteLinkCount, error) {
var resp ChatInviteLinkCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatInviteLinkCounts(data json.RawMessage) (*ChatInviteLinkCounts, error) {
var resp ChatInviteLinkCounts
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatInviteLinkMember(data json.RawMessage) (*ChatInviteLinkMember, error) {
var resp ChatInviteLinkMember
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatInviteLinkMembers(data json.RawMessage) (*ChatInviteLinkMembers, error) {
var resp ChatInviteLinkMembers
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInviteLinkChatTypeBasicGroup(data json.RawMessage) (*InviteLinkChatTypeBasicGroup, error) {
var resp InviteLinkChatTypeBasicGroup
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInviteLinkChatTypeSupergroup(data json.RawMessage) (*InviteLinkChatTypeSupergroup, error) {
var resp InviteLinkChatTypeSupergroup
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInviteLinkChatTypeChannel(data json.RawMessage) (*InviteLinkChatTypeChannel, error) {
var resp InviteLinkChatTypeChannel
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatInviteLinkInfo(data json.RawMessage) (*ChatInviteLinkInfo, error) {
var resp ChatInviteLinkInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatJoinRequest(data json.RawMessage) (*ChatJoinRequest, error) {
var resp ChatJoinRequest
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatJoinRequests(data json.RawMessage) (*ChatJoinRequests, error) {
var resp ChatJoinRequests
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatJoinRequestsInfo(data json.RawMessage) (*ChatJoinRequestsInfo, error) {
var resp ChatJoinRequestsInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBasicGroup(data json.RawMessage) (*BasicGroup, error) {
var resp BasicGroup
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBasicGroupFullInfo(data json.RawMessage) (*BasicGroupFullInfo, error) {
var resp BasicGroupFullInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSupergroup(data json.RawMessage) (*Supergroup, error) {
var resp Supergroup
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSupergroupFullInfo(data json.RawMessage) (*SupergroupFullInfo, error) {
var resp SupergroupFullInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSecretChatStatePending(data json.RawMessage) (*SecretChatStatePending, error) {
var resp SecretChatStatePending
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSecretChatStateReady(data json.RawMessage) (*SecretChatStateReady, error) {
var resp SecretChatStateReady
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSecretChatStateClosed(data json.RawMessage) (*SecretChatStateClosed, error) {
var resp SecretChatStateClosed
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSecretChat(data json.RawMessage) (*SecretChat, error) {
var resp SecretChat
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSenderUser(data json.RawMessage) (*MessageSenderUser, error) {
var resp MessageSenderUser
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSenderChat(data json.RawMessage) (*MessageSenderChat, error) {
var resp MessageSenderChat
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSenders(data json.RawMessage) (*MessageSenders, error) {
var resp MessageSenders
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMessageSender(data json.RawMessage) (*ChatMessageSender, error) {
var resp ChatMessageSender
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatMessageSenders(data json.RawMessage) (*ChatMessageSenders, error) {
var resp ChatMessageSenders
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageReadDateRead(data json.RawMessage) (*MessageReadDateRead, error) {
var resp MessageReadDateRead
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageReadDateUnread(data json.RawMessage) (*MessageReadDateUnread, error) {
var resp MessageReadDateUnread
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageReadDateTooOld(data json.RawMessage) (*MessageReadDateTooOld, error) {
var resp MessageReadDateTooOld
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageReadDateUserPrivacyRestricted(data json.RawMessage) (*MessageReadDateUserPrivacyRestricted, error) {
var resp MessageReadDateUserPrivacyRestricted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageReadDateMyPrivacyRestricted(data json.RawMessage) (*MessageReadDateMyPrivacyRestricted, error) {
var resp MessageReadDateMyPrivacyRestricted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageViewer(data json.RawMessage) (*MessageViewer, error) {
var resp MessageViewer
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageViewers(data json.RawMessage) (*MessageViewers, error) {
var resp MessageViewers
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageOriginUser(data json.RawMessage) (*MessageOriginUser, error) {
var resp MessageOriginUser
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageOriginHiddenUser(data json.RawMessage) (*MessageOriginHiddenUser, error) {
var resp MessageOriginHiddenUser
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageOriginChat(data json.RawMessage) (*MessageOriginChat, error) {
var resp MessageOriginChat
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageOriginChannel(data json.RawMessage) (*MessageOriginChannel, error) {
var resp MessageOriginChannel
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalForwardSource(data json.RawMessage) (*ForwardSource, error) {
var resp ForwardSource
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReactionTypeEmoji(data json.RawMessage) (*ReactionTypeEmoji, error) {
var resp ReactionTypeEmoji
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReactionTypeCustomEmoji(data json.RawMessage) (*ReactionTypeCustomEmoji, error) {
var resp ReactionTypeCustomEmoji
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageForwardInfo(data json.RawMessage) (*MessageForwardInfo, error) {
var resp MessageForwardInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageImportInfo(data json.RawMessage) (*MessageImportInfo, error) {
var resp MessageImportInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageReplyInfo(data json.RawMessage) (*MessageReplyInfo, error) {
var resp MessageReplyInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageReaction(data json.RawMessage) (*MessageReaction, error) {
var resp MessageReaction
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageReactions(data json.RawMessage) (*MessageReactions, error) {
var resp MessageReactions
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageInteractionInfo(data json.RawMessage) (*MessageInteractionInfo, error) {
var resp MessageInteractionInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUnreadReaction(data json.RawMessage) (*UnreadReaction, error) {
var resp UnreadReaction
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSendingStatePending(data json.RawMessage) (*MessageSendingStatePending, error) {
var resp MessageSendingStatePending
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSendingStateFailed(data json.RawMessage) (*MessageSendingStateFailed, error) {
var resp MessageSendingStateFailed
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextQuote(data json.RawMessage) (*TextQuote, error) {
var resp TextQuote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputTextQuote(data json.RawMessage) (*InputTextQuote, error) {
var resp InputTextQuote
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:53:18 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageReplyToMessage(data json.RawMessage) (*MessageReplyToMessage, error) {
var resp MessageReplyToMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageReplyToStory(data json.RawMessage) (*MessageReplyToStory, error) {
var resp MessageReplyToStory
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageReplyToMessage(data json.RawMessage) (*InputMessageReplyToMessage, error) {
var resp InputMessageReplyToMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageReplyToStory(data json.RawMessage) (*InputMessageReplyToStory, error) {
var resp InputMessageReplyToStory
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessage(data json.RawMessage) (*Message, error) {
var resp Message
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessages(data json.RawMessage) (*Messages, error) {
var resp Messages
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalFoundMessages(data json.RawMessage) (*FoundMessages, error) {
var resp FoundMessages
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalFoundChatMessages(data json.RawMessage) (*FoundChatMessages, error) {
var resp FoundChatMessages
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePosition(data json.RawMessage) (*MessagePosition, error) {
var resp MessagePosition
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePositions(data json.RawMessage) (*MessagePositions, error) {
var resp MessagePositions
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageCalendarDay(data json.RawMessage) (*MessageCalendarDay, error) {
var resp MessageCalendarDay
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageCalendar(data json.RawMessage) (*MessageCalendar, error) {
var resp MessageCalendar
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessMessage(data json.RawMessage) (*BusinessMessage, error) {
var resp BusinessMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessMessages(data json.RawMessage) (*BusinessMessages, error) {
var resp BusinessMessages
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSourceChatHistory(data json.RawMessage) (*MessageSourceChatHistory, error) {
var resp MessageSourceChatHistory
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSourceMessageThreadHistory(data json.RawMessage) (*MessageSourceMessageThreadHistory, error) {
var resp MessageSourceMessageThreadHistory
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSourceForumTopicHistory(data json.RawMessage) (*MessageSourceForumTopicHistory, error) {
var resp MessageSourceForumTopicHistory
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSourceHistoryPreview(data json.RawMessage) (*MessageSourceHistoryPreview, error) {
var resp MessageSourceHistoryPreview
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSourceChatList(data json.RawMessage) (*MessageSourceChatList, error) {
var resp MessageSourceChatList
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSourceSearch(data json.RawMessage) (*MessageSourceSearch, error) {
var resp MessageSourceSearch
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSourceChatEventLog(data json.RawMessage) (*MessageSourceChatEventLog, error) {
var resp MessageSourceChatEventLog
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSourceNotification(data json.RawMessage) (*MessageSourceNotification, error) {
var resp MessageSourceNotification
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSourceScreenshot(data json.RawMessage) (*MessageSourceScreenshot, error) {
var resp MessageSourceScreenshot
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSourceOther(data json.RawMessage) (*MessageSourceOther, error) {
var resp MessageSourceOther
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSponsorTypeBot(data json.RawMessage) (*MessageSponsorTypeBot, error) {
var resp MessageSponsorTypeBot
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSponsorTypeWebApp(data json.RawMessage) (*MessageSponsorTypeWebApp, error) {
var resp MessageSponsorTypeWebApp
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSponsorTypePublicChannel(data json.RawMessage) (*MessageSponsorTypePublicChannel, error) {
var resp MessageSponsorTypePublicChannel
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSponsorTypePrivateChannel(data json.RawMessage) (*MessageSponsorTypePrivateChannel, error) {
var resp MessageSponsorTypePrivateChannel
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSponsorTypeWebsite(data json.RawMessage) (*MessageSponsorTypeWebsite, error) {
var resp MessageSponsorTypeWebsite
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSponsor(data json.RawMessage) (*MessageSponsor, error) {
var resp MessageSponsor
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSponsoredMessage(data json.RawMessage) (*SponsoredMessage, error) {
var resp SponsoredMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSponsoredMessages(data json.RawMessage) (*SponsoredMessages, error) {
var resp SponsoredMessages
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReportChatSponsoredMessageOption(data json.RawMessage) (*ReportChatSponsoredMessageOption, error) {
var resp ReportChatSponsoredMessageOption
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReportChatSponsoredMessageResultOk(data json.RawMessage) (*ReportChatSponsoredMessageResultOk, error) {
var resp ReportChatSponsoredMessageResultOk
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReportChatSponsoredMessageResultFailed(data json.RawMessage) (*ReportChatSponsoredMessageResultFailed, error) {
var resp ReportChatSponsoredMessageResultFailed
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReportChatSponsoredMessageResultOptionRequired(data json.RawMessage) (*ReportChatSponsoredMessageResultOptionRequired, error) {
var resp ReportChatSponsoredMessageResultOptionRequired
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReportChatSponsoredMessageResultAdsHidden(data json.RawMessage) (*ReportChatSponsoredMessageResultAdsHidden, error) {
var resp ReportChatSponsoredMessageResultAdsHidden
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReportChatSponsoredMessageResultPremiumRequired(data json.RawMessage) (*ReportChatSponsoredMessageResultPremiumRequired, error) {
var resp ReportChatSponsoredMessageResultPremiumRequired
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalFileDownload(data json.RawMessage) (*FileDownload, error) {
var resp FileDownload
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDownloadedFileCounts(data json.RawMessage) (*DownloadedFileCounts, error) {
var resp DownloadedFileCounts
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalFoundFileDownloads(data json.RawMessage) (*FoundFileDownloads, error) {
var resp FoundFileDownloads
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalNotificationSettingsScopePrivateChats(data json.RawMessage) (*NotificationSettingsScopePrivateChats, error) {
var resp NotificationSettingsScopePrivateChats
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalNotificationSettingsScopeGroupChats(data json.RawMessage) (*NotificationSettingsScopeGroupChats, error) {
var resp NotificationSettingsScopeGroupChats
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalNotificationSettingsScopeChannelChats(data json.RawMessage) (*NotificationSettingsScopeChannelChats, error) {
var resp NotificationSettingsScopeChannelChats
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatNotificationSettings(data json.RawMessage) (*ChatNotificationSettings, error) {
var resp ChatNotificationSettings
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalScopeNotificationSettings(data json.RawMessage) (*ScopeNotificationSettings, error) {
var resp ScopeNotificationSettings
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDraftMessage(data json.RawMessage) (*DraftMessage, error) {
var resp DraftMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatTypePrivate(data json.RawMessage) (*ChatTypePrivate, error) {
var resp ChatTypePrivate
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatTypeBasicGroup(data json.RawMessage) (*ChatTypeBasicGroup, error) {
var resp ChatTypeBasicGroup
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatTypeSupergroup(data json.RawMessage) (*ChatTypeSupergroup, error) {
var resp ChatTypeSupergroup
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatTypeSecret(data json.RawMessage) (*ChatTypeSecret, error) {
var resp ChatTypeSecret
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatFolderIcon(data json.RawMessage) (*ChatFolderIcon, error) {
var resp ChatFolderIcon
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatFolder(data json.RawMessage) (*ChatFolder, error) {
var resp ChatFolder
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatFolderInfo(data json.RawMessage) (*ChatFolderInfo, error) {
var resp ChatFolderInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatFolderInviteLink(data json.RawMessage) (*ChatFolderInviteLink, error) {
var resp ChatFolderInviteLink
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatFolderInviteLinks(data json.RawMessage) (*ChatFolderInviteLinks, error) {
var resp ChatFolderInviteLinks
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatFolderInviteLinkInfo(data json.RawMessage) (*ChatFolderInviteLinkInfo, error) {
var resp ChatFolderInviteLinkInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRecommendedChatFolder(data json.RawMessage) (*RecommendedChatFolder, error) {
var resp RecommendedChatFolder
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRecommendedChatFolders(data json.RawMessage) (*RecommendedChatFolders, error) {
var resp RecommendedChatFolders
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalArchiveChatListSettings(data json.RawMessage) (*ArchiveChatListSettings, error) {
var resp ArchiveChatListSettings
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatListMain(data json.RawMessage) (*ChatListMain, error) {
var resp ChatListMain
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatListArchive(data json.RawMessage) (*ChatListArchive, error) {
var resp ChatListArchive
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatListFolder(data json.RawMessage) (*ChatListFolder, error) {
var resp ChatListFolder
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatLists(data json.RawMessage) (*ChatLists, error) {
var resp ChatLists
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatSourceMtprotoProxy(data json.RawMessage) (*ChatSourceMtprotoProxy, error) {
var resp ChatSourceMtprotoProxy
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatSourcePublicServiceAnnouncement(data json.RawMessage) (*ChatSourcePublicServiceAnnouncement, error) {
var resp ChatSourcePublicServiceAnnouncement
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatPosition(data json.RawMessage) (*ChatPosition, error) {
var resp ChatPosition
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatAvailableReactionsAll(data json.RawMessage) (*ChatAvailableReactionsAll, error) {
var resp ChatAvailableReactionsAll
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatAvailableReactionsSome(data json.RawMessage) (*ChatAvailableReactionsSome, error) {
var resp ChatAvailableReactionsSome
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSavedMessagesTag(data json.RawMessage) (*SavedMessagesTag, error) {
var resp SavedMessagesTag
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSavedMessagesTags(data json.RawMessage) (*SavedMessagesTags, error) {
var resp SavedMessagesTags
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalVideoChat(data json.RawMessage) (*VideoChat, error) {
var resp VideoChat
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChat(data json.RawMessage) (*Chat, error) {
var resp Chat
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChats(data json.RawMessage) (*Chats, error) {
var resp Chats
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatNearby(data json.RawMessage) (*ChatNearby, error) {
var resp ChatNearby
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatsNearby(data json.RawMessage) (*ChatsNearby, error) {
var resp ChatsNearby
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPublicChatTypeHasUsername(data json.RawMessage) (*PublicChatTypeHasUsername, error) {
var resp PublicChatTypeHasUsername
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPublicChatTypeIsLocationBased(data json.RawMessage) (*PublicChatTypeIsLocationBased, error) {
var resp PublicChatTypeIsLocationBased
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionBarReportSpam(data json.RawMessage) (*ChatActionBarReportSpam, error) {
var resp ChatActionBarReportSpam
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionBarReportUnrelatedLocation(data json.RawMessage) (*ChatActionBarReportUnrelatedLocation, error) {
var resp ChatActionBarReportUnrelatedLocation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionBarInviteMembers(data json.RawMessage) (*ChatActionBarInviteMembers, error) {
var resp ChatActionBarInviteMembers
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionBarReportAddBlock(data json.RawMessage) (*ChatActionBarReportAddBlock, error) {
var resp ChatActionBarReportAddBlock
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionBarAddContact(data json.RawMessage) (*ChatActionBarAddContact, error) {
var resp ChatActionBarAddContact
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionBarSharePhoneNumber(data json.RawMessage) (*ChatActionBarSharePhoneNumber, error) {
var resp ChatActionBarSharePhoneNumber
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionBarJoinRequest(data json.RawMessage) (*ChatActionBarJoinRequest, error) {
var resp ChatActionBarJoinRequest
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalKeyboardButtonTypeText(data json.RawMessage) (*KeyboardButtonTypeText, error) {
var resp KeyboardButtonTypeText
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalKeyboardButtonTypeRequestPhoneNumber(data json.RawMessage) (*KeyboardButtonTypeRequestPhoneNumber, error) {
var resp KeyboardButtonTypeRequestPhoneNumber
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalKeyboardButtonTypeRequestLocation(data json.RawMessage) (*KeyboardButtonTypeRequestLocation, error) {
var resp KeyboardButtonTypeRequestLocation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalKeyboardButtonTypeRequestPoll(data json.RawMessage) (*KeyboardButtonTypeRequestPoll, error) {
var resp KeyboardButtonTypeRequestPoll
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalKeyboardButtonTypeRequestUsers(data json.RawMessage) (*KeyboardButtonTypeRequestUsers, error) {
var resp KeyboardButtonTypeRequestUsers
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalKeyboardButtonTypeRequestChat(data json.RawMessage) (*KeyboardButtonTypeRequestChat, error) {
var resp KeyboardButtonTypeRequestChat
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalKeyboardButtonTypeWebApp(data json.RawMessage) (*KeyboardButtonTypeWebApp, error) {
var resp KeyboardButtonTypeWebApp
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalKeyboardButton(data json.RawMessage) (*KeyboardButton, error) {
var resp KeyboardButton
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineKeyboardButtonTypeUrl(data json.RawMessage) (*InlineKeyboardButtonTypeUrl, error) {
var resp InlineKeyboardButtonTypeUrl
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineKeyboardButtonTypeLoginUrl(data json.RawMessage) (*InlineKeyboardButtonTypeLoginUrl, error) {
var resp InlineKeyboardButtonTypeLoginUrl
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineKeyboardButtonTypeWebApp(data json.RawMessage) (*InlineKeyboardButtonTypeWebApp, error) {
var resp InlineKeyboardButtonTypeWebApp
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineKeyboardButtonTypeCallback(data json.RawMessage) (*InlineKeyboardButtonTypeCallback, error) {
var resp InlineKeyboardButtonTypeCallback
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineKeyboardButtonTypeCallbackWithPassword(data json.RawMessage) (*InlineKeyboardButtonTypeCallbackWithPassword, error) {
var resp InlineKeyboardButtonTypeCallbackWithPassword
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineKeyboardButtonTypeCallbackGame(data json.RawMessage) (*InlineKeyboardButtonTypeCallbackGame, error) {
var resp InlineKeyboardButtonTypeCallbackGame
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineKeyboardButtonTypeSwitchInline(data json.RawMessage) (*InlineKeyboardButtonTypeSwitchInline, error) {
var resp InlineKeyboardButtonTypeSwitchInline
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineKeyboardButtonTypeBuy(data json.RawMessage) (*InlineKeyboardButtonTypeBuy, error) {
var resp InlineKeyboardButtonTypeBuy
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineKeyboardButtonTypeUser(data json.RawMessage) (*InlineKeyboardButtonTypeUser, error) {
var resp InlineKeyboardButtonTypeUser
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineKeyboardButton(data json.RawMessage) (*InlineKeyboardButton, error) {
var resp InlineKeyboardButton
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReplyMarkupRemoveKeyboard(data json.RawMessage) (*ReplyMarkupRemoveKeyboard, error) {
var resp ReplyMarkupRemoveKeyboard
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReplyMarkupForceReply(data json.RawMessage) (*ReplyMarkupForceReply, error) {
var resp ReplyMarkupForceReply
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReplyMarkupShowKeyboard(data json.RawMessage) (*ReplyMarkupShowKeyboard, error) {
var resp ReplyMarkupShowKeyboard
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReplyMarkupInlineKeyboard(data json.RawMessage) (*ReplyMarkupInlineKeyboard, error) {
var resp ReplyMarkupInlineKeyboard
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLoginUrlInfoOpen(data json.RawMessage) (*LoginUrlInfoOpen, error) {
var resp LoginUrlInfoOpen
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLoginUrlInfoRequestConfirmation(data json.RawMessage) (*LoginUrlInfoRequestConfirmation, error) {
var resp LoginUrlInfoRequestConfirmation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalFoundWebApp(data json.RawMessage) (*FoundWebApp, error) {
var resp FoundWebApp
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalWebAppInfo(data json.RawMessage) (*WebAppInfo, error) {
var resp WebAppInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageThreadInfo(data json.RawMessage) (*MessageThreadInfo, error) {
var resp MessageThreadInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSavedMessagesTopicTypeMyNotes(data json.RawMessage) (*SavedMessagesTopicTypeMyNotes, error) {
var resp SavedMessagesTopicTypeMyNotes
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSavedMessagesTopicTypeAuthorHidden(data json.RawMessage) (*SavedMessagesTopicTypeAuthorHidden, error) {
var resp SavedMessagesTopicTypeAuthorHidden
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSavedMessagesTopicTypeSavedFromChat(data json.RawMessage) (*SavedMessagesTopicTypeSavedFromChat, error) {
var resp SavedMessagesTopicTypeSavedFromChat
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSavedMessagesTopic(data json.RawMessage) (*SavedMessagesTopic, error) {
var resp SavedMessagesTopic
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalForumTopicIcon(data json.RawMessage) (*ForumTopicIcon, error) {
var resp ForumTopicIcon
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalForumTopicInfo(data json.RawMessage) (*ForumTopicInfo, error) {
var resp ForumTopicInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalForumTopic(data json.RawMessage) (*ForumTopic, error) {
var resp ForumTopic
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalForumTopics(data json.RawMessage) (*ForumTopics, error) {
var resp ForumTopics
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLinkPreviewOptions(data json.RawMessage) (*LinkPreviewOptions, error) {
var resp LinkPreviewOptions
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSharedUser(data json.RawMessage) (*SharedUser, error) {
var resp SharedUser
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSharedChat(data json.RawMessage) (*SharedChat, error) {
var resp SharedChat
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextPlain(data json.RawMessage) (*RichTextPlain, error) {
var resp RichTextPlain
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextBold(data json.RawMessage) (*RichTextBold, error) {
var resp RichTextBold
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextItalic(data json.RawMessage) (*RichTextItalic, error) {
var resp RichTextItalic
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextUnderline(data json.RawMessage) (*RichTextUnderline, error) {
var resp RichTextUnderline
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextStrikethrough(data json.RawMessage) (*RichTextStrikethrough, error) {
var resp RichTextStrikethrough
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextFixed(data json.RawMessage) (*RichTextFixed, error) {
var resp RichTextFixed
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextUrl(data json.RawMessage) (*RichTextUrl, error) {
var resp RichTextUrl
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextEmailAddress(data json.RawMessage) (*RichTextEmailAddress, error) {
var resp RichTextEmailAddress
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextSubscript(data json.RawMessage) (*RichTextSubscript, error) {
var resp RichTextSubscript
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextSuperscript(data json.RawMessage) (*RichTextSuperscript, error) {
var resp RichTextSuperscript
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextMarked(data json.RawMessage) (*RichTextMarked, error) {
var resp RichTextMarked
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextPhoneNumber(data json.RawMessage) (*RichTextPhoneNumber, error) {
var resp RichTextPhoneNumber
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextIcon(data json.RawMessage) (*RichTextIcon, error) {
var resp RichTextIcon
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextReference(data json.RawMessage) (*RichTextReference, error) {
var resp RichTextReference
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextAnchor(data json.RawMessage) (*RichTextAnchor, error) {
var resp RichTextAnchor
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTextAnchorLink(data json.RawMessage) (*RichTextAnchorLink, error) {
var resp RichTextAnchorLink
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRichTexts(data json.RawMessage) (*RichTexts, error) {
var resp RichTexts
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockCaption(data json.RawMessage) (*PageBlockCaption, error) {
var resp PageBlockCaption
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockListItem(data json.RawMessage) (*PageBlockListItem, error) {
var resp PageBlockListItem
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockHorizontalAlignmentLeft(data json.RawMessage) (*PageBlockHorizontalAlignmentLeft, error) {
var resp PageBlockHorizontalAlignmentLeft
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockHorizontalAlignmentCenter(data json.RawMessage) (*PageBlockHorizontalAlignmentCenter, error) {
var resp PageBlockHorizontalAlignmentCenter
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockHorizontalAlignmentRight(data json.RawMessage) (*PageBlockHorizontalAlignmentRight, error) {
var resp PageBlockHorizontalAlignmentRight
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockVerticalAlignmentTop(data json.RawMessage) (*PageBlockVerticalAlignmentTop, error) {
var resp PageBlockVerticalAlignmentTop
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockVerticalAlignmentMiddle(data json.RawMessage) (*PageBlockVerticalAlignmentMiddle, error) {
var resp PageBlockVerticalAlignmentMiddle
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockVerticalAlignmentBottom(data json.RawMessage) (*PageBlockVerticalAlignmentBottom, error) {
var resp PageBlockVerticalAlignmentBottom
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockTableCell(data json.RawMessage) (*PageBlockTableCell, error) {
var resp PageBlockTableCell
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockRelatedArticle(data json.RawMessage) (*PageBlockRelatedArticle, error) {
var resp PageBlockRelatedArticle
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockTitle(data json.RawMessage) (*PageBlockTitle, error) {
var resp PageBlockTitle
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockSubtitle(data json.RawMessage) (*PageBlockSubtitle, error) {
var resp PageBlockSubtitle
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockAuthorDate(data json.RawMessage) (*PageBlockAuthorDate, error) {
var resp PageBlockAuthorDate
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockHeader(data json.RawMessage) (*PageBlockHeader, error) {
var resp PageBlockHeader
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockSubheader(data json.RawMessage) (*PageBlockSubheader, error) {
var resp PageBlockSubheader
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockKicker(data json.RawMessage) (*PageBlockKicker, error) {
var resp PageBlockKicker
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockParagraph(data json.RawMessage) (*PageBlockParagraph, error) {
var resp PageBlockParagraph
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockPreformatted(data json.RawMessage) (*PageBlockPreformatted, error) {
var resp PageBlockPreformatted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockFooter(data json.RawMessage) (*PageBlockFooter, error) {
var resp PageBlockFooter
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockDivider(data json.RawMessage) (*PageBlockDivider, error) {
var resp PageBlockDivider
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockAnchor(data json.RawMessage) (*PageBlockAnchor, error) {
var resp PageBlockAnchor
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockList(data json.RawMessage) (*PageBlockList, error) {
var resp PageBlockList
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockBlockQuote(data json.RawMessage) (*PageBlockBlockQuote, error) {
var resp PageBlockBlockQuote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockPullQuote(data json.RawMessage) (*PageBlockPullQuote, error) {
var resp PageBlockPullQuote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockAnimation(data json.RawMessage) (*PageBlockAnimation, error) {
var resp PageBlockAnimation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockAudio(data json.RawMessage) (*PageBlockAudio, error) {
var resp PageBlockAudio
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockPhoto(data json.RawMessage) (*PageBlockPhoto, error) {
var resp PageBlockPhoto
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockVideo(data json.RawMessage) (*PageBlockVideo, error) {
var resp PageBlockVideo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockVoiceNote(data json.RawMessage) (*PageBlockVoiceNote, error) {
var resp PageBlockVoiceNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockCover(data json.RawMessage) (*PageBlockCover, error) {
var resp PageBlockCover
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockEmbedded(data json.RawMessage) (*PageBlockEmbedded, error) {
var resp PageBlockEmbedded
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockEmbeddedPost(data json.RawMessage) (*PageBlockEmbeddedPost, error) {
var resp PageBlockEmbeddedPost
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockCollage(data json.RawMessage) (*PageBlockCollage, error) {
var resp PageBlockCollage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockSlideshow(data json.RawMessage) (*PageBlockSlideshow, error) {
var resp PageBlockSlideshow
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockChatLink(data json.RawMessage) (*PageBlockChatLink, error) {
var resp PageBlockChatLink
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockTable(data json.RawMessage) (*PageBlockTable, error) {
var resp PageBlockTable
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockDetails(data json.RawMessage) (*PageBlockDetails, error) {
var resp PageBlockDetails
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockRelatedArticles(data json.RawMessage) (*PageBlockRelatedArticles, error) {
var resp PageBlockRelatedArticles
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPageBlockMap(data json.RawMessage) (*PageBlockMap, error) {
var resp PageBlockMap
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalWebPageInstantView(data json.RawMessage) (*WebPageInstantView, error) {
var resp WebPageInstantView
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalWebPage(data json.RawMessage) (*WebPage, error) {
var resp WebPage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCountryInfo(data json.RawMessage) (*CountryInfo, error) {
var resp CountryInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCountries(data json.RawMessage) (*Countries, error) {
var resp Countries
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPhoneNumberInfo(data json.RawMessage) (*PhoneNumberInfo, error) {
var resp PhoneNumberInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCollectibleItemTypeUsername(data json.RawMessage) (*CollectibleItemTypeUsername, error) {
var resp CollectibleItemTypeUsername
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCollectibleItemTypePhoneNumber(data json.RawMessage) (*CollectibleItemTypePhoneNumber, error) {
var resp CollectibleItemTypePhoneNumber
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCollectibleItemInfo(data json.RawMessage) (*CollectibleItemInfo, error) {
var resp CollectibleItemInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBankCardActionOpenUrl(data json.RawMessage) (*BankCardActionOpenUrl, error) {
var resp BankCardActionOpenUrl
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBankCardInfo(data json.RawMessage) (*BankCardInfo, error) {
var resp BankCardInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAddress(data json.RawMessage) (*Address, error) {
var resp Address
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalThemeParameters(data json.RawMessage) (*ThemeParameters, error) {
var resp ThemeParameters
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLabeledPricePart(data json.RawMessage) (*LabeledPricePart, error) {
var resp LabeledPricePart
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInvoice(data json.RawMessage) (*Invoice, error) {
var resp Invoice
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalOrderInfo(data json.RawMessage) (*OrderInfo, error) {
var resp OrderInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalShippingOption(data json.RawMessage) (*ShippingOption, error) {
var resp ShippingOption
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSavedCredentials(data json.RawMessage) (*SavedCredentials, error) {
var resp SavedCredentials
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputCredentialsSaved(data json.RawMessage) (*InputCredentialsSaved, error) {
var resp InputCredentialsSaved
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputCredentialsNew(data json.RawMessage) (*InputCredentialsNew, error) {
var resp InputCredentialsNew
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputCredentialsApplePay(data json.RawMessage) (*InputCredentialsApplePay, error) {
var resp InputCredentialsApplePay
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputCredentialsGooglePay(data json.RawMessage) (*InputCredentialsGooglePay, error) {
var resp InputCredentialsGooglePay
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPaymentProviderSmartGlocal(data json.RawMessage) (*PaymentProviderSmartGlocal, error) {
var resp PaymentProviderSmartGlocal
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPaymentProviderStripe(data json.RawMessage) (*PaymentProviderStripe, error) {
var resp PaymentProviderStripe
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPaymentProviderOther(data json.RawMessage) (*PaymentProviderOther, error) {
var resp PaymentProviderOther
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPaymentOption(data json.RawMessage) (*PaymentOption, error) {
var resp PaymentOption
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPaymentForm(data json.RawMessage) (*PaymentForm, error) {
var resp PaymentForm
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalValidatedOrderInfo(data json.RawMessage) (*ValidatedOrderInfo, error) {
var resp ValidatedOrderInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPaymentResult(data json.RawMessage) (*PaymentResult, error) {
var resp PaymentResult
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPaymentReceipt(data json.RawMessage) (*PaymentReceipt, error) {
var resp PaymentReceipt
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInvoiceMessage(data json.RawMessage) (*InputInvoiceMessage, error) {
var resp InputInvoiceMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInvoiceName(data json.RawMessage) (*InputInvoiceName, error) {
var resp InputInvoiceName
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInvoiceTelegram(data json.RawMessage) (*InputInvoiceTelegram, error) {
var resp InputInvoiceTelegram
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageExtendedMediaPreview(data json.RawMessage) (*MessageExtendedMediaPreview, error) {
var resp MessageExtendedMediaPreview
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageExtendedMediaPhoto(data json.RawMessage) (*MessageExtendedMediaPhoto, error) {
var resp MessageExtendedMediaPhoto
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageExtendedMediaVideo(data json.RawMessage) (*MessageExtendedMediaVideo, error) {
var resp MessageExtendedMediaVideo
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageExtendedMediaUnsupported(data json.RawMessage) (*MessageExtendedMediaUnsupported, error) {
var resp MessageExtendedMediaUnsupported
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumGiveawayParameters(data json.RawMessage) (*PremiumGiveawayParameters, error) {
var resp PremiumGiveawayParameters
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDatedFile(data json.RawMessage) (*DatedFile, error) {
var resp DatedFile
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypePersonalDetails(data json.RawMessage) (*PassportElementTypePersonalDetails, error) {
var resp PassportElementTypePersonalDetails
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypePassport(data json.RawMessage) (*PassportElementTypePassport, error) {
var resp PassportElementTypePassport
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypeDriverLicense(data json.RawMessage) (*PassportElementTypeDriverLicense, error) {
var resp PassportElementTypeDriverLicense
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypeIdentityCard(data json.RawMessage) (*PassportElementTypeIdentityCard, error) {
var resp PassportElementTypeIdentityCard
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypeInternalPassport(data json.RawMessage) (*PassportElementTypeInternalPassport, error) {
var resp PassportElementTypeInternalPassport
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypeAddress(data json.RawMessage) (*PassportElementTypeAddress, error) {
var resp PassportElementTypeAddress
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypeUtilityBill(data json.RawMessage) (*PassportElementTypeUtilityBill, error) {
var resp PassportElementTypeUtilityBill
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypeBankStatement(data json.RawMessage) (*PassportElementTypeBankStatement, error) {
var resp PassportElementTypeBankStatement
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypeRentalAgreement(data json.RawMessage) (*PassportElementTypeRentalAgreement, error) {
var resp PassportElementTypeRentalAgreement
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypePassportRegistration(data json.RawMessage) (*PassportElementTypePassportRegistration, error) {
var resp PassportElementTypePassportRegistration
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypeTemporaryRegistration(data json.RawMessage) (*PassportElementTypeTemporaryRegistration, error) {
var resp PassportElementTypeTemporaryRegistration
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypePhoneNumber(data json.RawMessage) (*PassportElementTypePhoneNumber, error) {
var resp PassportElementTypePhoneNumber
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTypeEmailAddress(data json.RawMessage) (*PassportElementTypeEmailAddress, error) {
var resp PassportElementTypeEmailAddress
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDate(data json.RawMessage) (*Date, error) {
var resp Date
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPersonalDetails(data json.RawMessage) (*PersonalDetails, error) {
var resp PersonalDetails
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalIdentityDocument(data json.RawMessage) (*IdentityDocument, error) {
var resp IdentityDocument
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputIdentityDocument(data json.RawMessage) (*InputIdentityDocument, error) {
var resp InputIdentityDocument
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPersonalDocument(data json.RawMessage) (*PersonalDocument, error) {
var resp PersonalDocument
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPersonalDocument(data json.RawMessage) (*InputPersonalDocument, error) {
var resp InputPersonalDocument
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementPersonalDetails(data json.RawMessage) (*PassportElementPersonalDetails, error) {
var resp PassportElementPersonalDetails
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementPassport(data json.RawMessage) (*PassportElementPassport, error) {
var resp PassportElementPassport
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementDriverLicense(data json.RawMessage) (*PassportElementDriverLicense, error) {
var resp PassportElementDriverLicense
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementIdentityCard(data json.RawMessage) (*PassportElementIdentityCard, error) {
var resp PassportElementIdentityCard
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementInternalPassport(data json.RawMessage) (*PassportElementInternalPassport, error) {
var resp PassportElementInternalPassport
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementAddress(data json.RawMessage) (*PassportElementAddress, error) {
var resp PassportElementAddress
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementUtilityBill(data json.RawMessage) (*PassportElementUtilityBill, error) {
var resp PassportElementUtilityBill
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementBankStatement(data json.RawMessage) (*PassportElementBankStatement, error) {
var resp PassportElementBankStatement
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementRentalAgreement(data json.RawMessage) (*PassportElementRentalAgreement, error) {
var resp PassportElementRentalAgreement
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementPassportRegistration(data json.RawMessage) (*PassportElementPassportRegistration, error) {
var resp PassportElementPassportRegistration
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementTemporaryRegistration(data json.RawMessage) (*PassportElementTemporaryRegistration, error) {
var resp PassportElementTemporaryRegistration
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementPhoneNumber(data json.RawMessage) (*PassportElementPhoneNumber, error) {
var resp PassportElementPhoneNumber
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementEmailAddress(data json.RawMessage) (*PassportElementEmailAddress, error) {
var resp PassportElementEmailAddress
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementPersonalDetails(data json.RawMessage) (*InputPassportElementPersonalDetails, error) {
var resp InputPassportElementPersonalDetails
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementPassport(data json.RawMessage) (*InputPassportElementPassport, error) {
var resp InputPassportElementPassport
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementDriverLicense(data json.RawMessage) (*InputPassportElementDriverLicense, error) {
var resp InputPassportElementDriverLicense
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementIdentityCard(data json.RawMessage) (*InputPassportElementIdentityCard, error) {
var resp InputPassportElementIdentityCard
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementInternalPassport(data json.RawMessage) (*InputPassportElementInternalPassport, error) {
var resp InputPassportElementInternalPassport
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementAddress(data json.RawMessage) (*InputPassportElementAddress, error) {
var resp InputPassportElementAddress
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementUtilityBill(data json.RawMessage) (*InputPassportElementUtilityBill, error) {
var resp InputPassportElementUtilityBill
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementBankStatement(data json.RawMessage) (*InputPassportElementBankStatement, error) {
var resp InputPassportElementBankStatement
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementRentalAgreement(data json.RawMessage) (*InputPassportElementRentalAgreement, error) {
var resp InputPassportElementRentalAgreement
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementPassportRegistration(data json.RawMessage) (*InputPassportElementPassportRegistration, error) {
var resp InputPassportElementPassportRegistration
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementTemporaryRegistration(data json.RawMessage) (*InputPassportElementTemporaryRegistration, error) {
var resp InputPassportElementTemporaryRegistration
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementPhoneNumber(data json.RawMessage) (*InputPassportElementPhoneNumber, error) {
var resp InputPassportElementPhoneNumber
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementEmailAddress(data json.RawMessage) (*InputPassportElementEmailAddress, error) {
var resp InputPassportElementEmailAddress
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElements(data json.RawMessage) (*PassportElements, error) {
var resp PassportElements
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementErrorSourceUnspecified(data json.RawMessage) (*PassportElementErrorSourceUnspecified, error) {
var resp PassportElementErrorSourceUnspecified
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementErrorSourceDataField(data json.RawMessage) (*PassportElementErrorSourceDataField, error) {
var resp PassportElementErrorSourceDataField
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementErrorSourceFrontSide(data json.RawMessage) (*PassportElementErrorSourceFrontSide, error) {
var resp PassportElementErrorSourceFrontSide
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementErrorSourceReverseSide(data json.RawMessage) (*PassportElementErrorSourceReverseSide, error) {
var resp PassportElementErrorSourceReverseSide
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementErrorSourceSelfie(data json.RawMessage) (*PassportElementErrorSourceSelfie, error) {
var resp PassportElementErrorSourceSelfie
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementErrorSourceTranslationFile(data json.RawMessage) (*PassportElementErrorSourceTranslationFile, error) {
var resp PassportElementErrorSourceTranslationFile
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementErrorSourceTranslationFiles(data json.RawMessage) (*PassportElementErrorSourceTranslationFiles, error) {
var resp PassportElementErrorSourceTranslationFiles
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementErrorSourceFile(data json.RawMessage) (*PassportElementErrorSourceFile, error) {
var resp PassportElementErrorSourceFile
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementErrorSourceFiles(data json.RawMessage) (*PassportElementErrorSourceFiles, error) {
var resp PassportElementErrorSourceFiles
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementError(data json.RawMessage) (*PassportElementError, error) {
var resp PassportElementError
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportSuitableElement(data json.RawMessage) (*PassportSuitableElement, error) {
var resp PassportSuitableElement
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportRequiredElement(data json.RawMessage) (*PassportRequiredElement, error) {
var resp PassportRequiredElement
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportAuthorizationForm(data json.RawMessage) (*PassportAuthorizationForm, error) {
var resp PassportAuthorizationForm
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPassportElementsWithErrors(data json.RawMessage) (*PassportElementsWithErrors, error) {
var resp PassportElementsWithErrors
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEncryptedCredentials(data json.RawMessage) (*EncryptedCredentials, error) {
var resp EncryptedCredentials
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEncryptedPassportElement(data json.RawMessage) (*EncryptedPassportElement, error) {
var resp EncryptedPassportElement
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementErrorSourceUnspecified(data json.RawMessage) (*InputPassportElementErrorSourceUnspecified, error) {
var resp InputPassportElementErrorSourceUnspecified
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementErrorSourceDataField(data json.RawMessage) (*InputPassportElementErrorSourceDataField, error) {
var resp InputPassportElementErrorSourceDataField
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementErrorSourceFrontSide(data json.RawMessage) (*InputPassportElementErrorSourceFrontSide, error) {
var resp InputPassportElementErrorSourceFrontSide
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementErrorSourceReverseSide(data json.RawMessage) (*InputPassportElementErrorSourceReverseSide, error) {
var resp InputPassportElementErrorSourceReverseSide
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementErrorSourceSelfie(data json.RawMessage) (*InputPassportElementErrorSourceSelfie, error) {
var resp InputPassportElementErrorSourceSelfie
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementErrorSourceTranslationFile(data json.RawMessage) (*InputPassportElementErrorSourceTranslationFile, error) {
var resp InputPassportElementErrorSourceTranslationFile
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementErrorSourceTranslationFiles(data json.RawMessage) (*InputPassportElementErrorSourceTranslationFiles, error) {
var resp InputPassportElementErrorSourceTranslationFiles
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementErrorSourceFile(data json.RawMessage) (*InputPassportElementErrorSourceFile, error) {
var resp InputPassportElementErrorSourceFile
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementErrorSourceFiles(data json.RawMessage) (*InputPassportElementErrorSourceFiles, error) {
var resp InputPassportElementErrorSourceFiles
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputPassportElementError(data json.RawMessage) (*InputPassportElementError, error) {
var resp InputPassportElementError
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageText(data json.RawMessage) (*MessageText, error) {
var resp MessageText
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageAnimation(data json.RawMessage) (*MessageAnimation, error) {
var resp MessageAnimation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageAudio(data json.RawMessage) (*MessageAudio, error) {
var resp MessageAudio
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageDocument(data json.RawMessage) (*MessageDocument, error) {
var resp MessageDocument
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePhoto(data json.RawMessage) (*MessagePhoto, error) {
var resp MessagePhoto
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSticker(data json.RawMessage) (*MessageSticker, error) {
var resp MessageSticker
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageVideo(data json.RawMessage) (*MessageVideo, error) {
var resp MessageVideo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageVideoNote(data json.RawMessage) (*MessageVideoNote, error) {
var resp MessageVideoNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageVoiceNote(data json.RawMessage) (*MessageVoiceNote, error) {
var resp MessageVoiceNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageExpiredPhoto(data json.RawMessage) (*MessageExpiredPhoto, error) {
var resp MessageExpiredPhoto
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageExpiredVideo(data json.RawMessage) (*MessageExpiredVideo, error) {
var resp MessageExpiredVideo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageExpiredVideoNote(data json.RawMessage) (*MessageExpiredVideoNote, error) {
var resp MessageExpiredVideoNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageExpiredVoiceNote(data json.RawMessage) (*MessageExpiredVoiceNote, error) {
var resp MessageExpiredVoiceNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageLocation(data json.RawMessage) (*MessageLocation, error) {
var resp MessageLocation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageVenue(data json.RawMessage) (*MessageVenue, error) {
var resp MessageVenue
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageContact(data json.RawMessage) (*MessageContact, error) {
var resp MessageContact
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageAnimatedEmoji(data json.RawMessage) (*MessageAnimatedEmoji, error) {
var resp MessageAnimatedEmoji
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageDice(data json.RawMessage) (*MessageDice, error) {
var resp MessageDice
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageGame(data json.RawMessage) (*MessageGame, error) {
var resp MessageGame
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePoll(data json.RawMessage) (*MessagePoll, error) {
var resp MessagePoll
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageStory(data json.RawMessage) (*MessageStory, error) {
var resp MessageStory
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageInvoice(data json.RawMessage) (*MessageInvoice, error) {
var resp MessageInvoice
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageCall(data json.RawMessage) (*MessageCall, error) {
var resp MessageCall
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageVideoChatScheduled(data json.RawMessage) (*MessageVideoChatScheduled, error) {
var resp MessageVideoChatScheduled
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageVideoChatStarted(data json.RawMessage) (*MessageVideoChatStarted, error) {
var resp MessageVideoChatStarted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageVideoChatEnded(data json.RawMessage) (*MessageVideoChatEnded, error) {
var resp MessageVideoChatEnded
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageInviteVideoChatParticipants(data json.RawMessage) (*MessageInviteVideoChatParticipants, error) {
var resp MessageInviteVideoChatParticipants
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageBasicGroupChatCreate(data json.RawMessage) (*MessageBasicGroupChatCreate, error) {
var resp MessageBasicGroupChatCreate
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSupergroupChatCreate(data json.RawMessage) (*MessageSupergroupChatCreate, error) {
var resp MessageSupergroupChatCreate
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatChangeTitle(data json.RawMessage) (*MessageChatChangeTitle, error) {
var resp MessageChatChangeTitle
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatChangePhoto(data json.RawMessage) (*MessageChatChangePhoto, error) {
var resp MessageChatChangePhoto
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatDeletePhoto(data json.RawMessage) (*MessageChatDeletePhoto, error) {
var resp MessageChatDeletePhoto
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatAddMembers(data json.RawMessage) (*MessageChatAddMembers, error) {
var resp MessageChatAddMembers
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatJoinByLink(data json.RawMessage) (*MessageChatJoinByLink, error) {
var resp MessageChatJoinByLink
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatJoinByRequest(data json.RawMessage) (*MessageChatJoinByRequest, error) {
var resp MessageChatJoinByRequest
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatDeleteMember(data json.RawMessage) (*MessageChatDeleteMember, error) {
var resp MessageChatDeleteMember
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatUpgradeTo(data json.RawMessage) (*MessageChatUpgradeTo, error) {
var resp MessageChatUpgradeTo
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatUpgradeFrom(data json.RawMessage) (*MessageChatUpgradeFrom, error) {
var resp MessageChatUpgradeFrom
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePinMessage(data json.RawMessage) (*MessagePinMessage, error) {
var resp MessagePinMessage
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageScreenshotTaken(data json.RawMessage) (*MessageScreenshotTaken, error) {
var resp MessageScreenshotTaken
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatSetBackground(data json.RawMessage) (*MessageChatSetBackground, error) {
var resp MessageChatSetBackground
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatSetTheme(data json.RawMessage) (*MessageChatSetTheme, error) {
var resp MessageChatSetTheme
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatSetMessageAutoDeleteTime(data json.RawMessage) (*MessageChatSetMessageAutoDeleteTime, error) {
var resp MessageChatSetMessageAutoDeleteTime
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatBoost(data json.RawMessage) (*MessageChatBoost, error) {
var resp MessageChatBoost
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageForumTopicCreated(data json.RawMessage) (*MessageForumTopicCreated, error) {
var resp MessageForumTopicCreated
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageForumTopicEdited(data json.RawMessage) (*MessageForumTopicEdited, error) {
var resp MessageForumTopicEdited
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageForumTopicIsClosedToggled(data json.RawMessage) (*MessageForumTopicIsClosedToggled, error) {
var resp MessageForumTopicIsClosedToggled
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageForumTopicIsHiddenToggled(data json.RawMessage) (*MessageForumTopicIsHiddenToggled, error) {
var resp MessageForumTopicIsHiddenToggled
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSuggestProfilePhoto(data json.RawMessage) (*MessageSuggestProfilePhoto, error) {
var resp MessageSuggestProfilePhoto
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageCustomServiceAction(data json.RawMessage) (*MessageCustomServiceAction, error) {
var resp MessageCustomServiceAction
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageGameScore(data json.RawMessage) (*MessageGameScore, error) {
var resp MessageGameScore
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePaymentSuccessful(data json.RawMessage) (*MessagePaymentSuccessful, error) {
var resp MessagePaymentSuccessful
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePaymentSuccessfulBot(data json.RawMessage) (*MessagePaymentSuccessfulBot, error) {
var resp MessagePaymentSuccessfulBot
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageGiftedPremium(data json.RawMessage) (*MessageGiftedPremium, error) {
var resp MessageGiftedPremium
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePremiumGiftCode(data json.RawMessage) (*MessagePremiumGiftCode, error) {
var resp MessagePremiumGiftCode
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePremiumGiveawayCreated(data json.RawMessage) (*MessagePremiumGiveawayCreated, error) {
var resp MessagePremiumGiveawayCreated
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePremiumGiveaway(data json.RawMessage) (*MessagePremiumGiveaway, error) {
var resp MessagePremiumGiveaway
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePremiumGiveawayCompleted(data json.RawMessage) (*MessagePremiumGiveawayCompleted, error) {
var resp MessagePremiumGiveawayCompleted
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePremiumGiveawayWinners(data json.RawMessage) (*MessagePremiumGiveawayWinners, error) {
var resp MessagePremiumGiveawayWinners
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageContactRegistered(data json.RawMessage) (*MessageContactRegistered, error) {
var resp MessageContactRegistered
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageUsersShared(data json.RawMessage) (*MessageUsersShared, error) {
var resp MessageUsersShared
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageChatShared(data json.RawMessage) (*MessageChatShared, error) {
var resp MessageChatShared
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageBotWriteAccessAllowed(data json.RawMessage) (*MessageBotWriteAccessAllowed, error) {
var resp MessageBotWriteAccessAllowed
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageWebAppDataSent(data json.RawMessage) (*MessageWebAppDataSent, error) {
var resp MessageWebAppDataSent
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageWebAppDataReceived(data json.RawMessage) (*MessageWebAppDataReceived, error) {
var resp MessageWebAppDataReceived
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePassportDataSent(data json.RawMessage) (*MessagePassportDataSent, error) {
var resp MessagePassportDataSent
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessagePassportDataReceived(data json.RawMessage) (*MessagePassportDataReceived, error) {
var resp MessagePassportDataReceived
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageProximityAlertTriggered(data json.RawMessage) (*MessageProximityAlertTriggered, error) {
var resp MessageProximityAlertTriggered
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageUnsupported(data json.RawMessage) (*MessageUnsupported, error) {
var resp MessageUnsupported
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeMention(data json.RawMessage) (*TextEntityTypeMention, error) {
var resp TextEntityTypeMention
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeHashtag(data json.RawMessage) (*TextEntityTypeHashtag, error) {
var resp TextEntityTypeHashtag
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeCashtag(data json.RawMessage) (*TextEntityTypeCashtag, error) {
var resp TextEntityTypeCashtag
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeBotCommand(data json.RawMessage) (*TextEntityTypeBotCommand, error) {
var resp TextEntityTypeBotCommand
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeUrl(data json.RawMessage) (*TextEntityTypeUrl, error) {
var resp TextEntityTypeUrl
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeEmailAddress(data json.RawMessage) (*TextEntityTypeEmailAddress, error) {
var resp TextEntityTypeEmailAddress
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypePhoneNumber(data json.RawMessage) (*TextEntityTypePhoneNumber, error) {
var resp TextEntityTypePhoneNumber
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeBankCardNumber(data json.RawMessage) (*TextEntityTypeBankCardNumber, error) {
var resp TextEntityTypeBankCardNumber
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeBold(data json.RawMessage) (*TextEntityTypeBold, error) {
var resp TextEntityTypeBold
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeItalic(data json.RawMessage) (*TextEntityTypeItalic, error) {
var resp TextEntityTypeItalic
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeUnderline(data json.RawMessage) (*TextEntityTypeUnderline, error) {
var resp TextEntityTypeUnderline
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeStrikethrough(data json.RawMessage) (*TextEntityTypeStrikethrough, error) {
var resp TextEntityTypeStrikethrough
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeSpoiler(data json.RawMessage) (*TextEntityTypeSpoiler, error) {
var resp TextEntityTypeSpoiler
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeCode(data json.RawMessage) (*TextEntityTypeCode, error) {
var resp TextEntityTypeCode
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypePre(data json.RawMessage) (*TextEntityTypePre, error) {
var resp TextEntityTypePre
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypePreCode(data json.RawMessage) (*TextEntityTypePreCode, error) {
var resp TextEntityTypePreCode
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeBlockQuote(data json.RawMessage) (*TextEntityTypeBlockQuote, error) {
var resp TextEntityTypeBlockQuote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeTextUrl(data json.RawMessage) (*TextEntityTypeTextUrl, error) {
var resp TextEntityTypeTextUrl
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeMentionName(data json.RawMessage) (*TextEntityTypeMentionName, error) {
var resp TextEntityTypeMentionName
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeCustomEmoji(data json.RawMessage) (*TextEntityTypeCustomEmoji, error) {
var resp TextEntityTypeCustomEmoji
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTextEntityTypeMediaTimestamp(data json.RawMessage) (*TextEntityTypeMediaTimestamp, error) {
var resp TextEntityTypeMediaTimestamp
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputThumbnail(data json.RawMessage) (*InputThumbnail, error) {
var resp InputThumbnail
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSchedulingStateSendAtDate(data json.RawMessage) (*MessageSchedulingStateSendAtDate, error) {
var resp MessageSchedulingStateSendAtDate
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSchedulingStateSendWhenOnline(data json.RawMessage) (*MessageSchedulingStateSendWhenOnline, error) {
var resp MessageSchedulingStateSendWhenOnline
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSelfDestructTypeTimer(data json.RawMessage) (*MessageSelfDestructTypeTimer, error) {
var resp MessageSelfDestructTypeTimer
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSelfDestructTypeImmediately(data json.RawMessage) (*MessageSelfDestructTypeImmediately, error) {
var resp MessageSelfDestructTypeImmediately
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageSendOptions(data json.RawMessage) (*MessageSendOptions, error) {
var resp MessageSendOptions
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2022-04-18 22:45:01 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageCopyOptions(data json.RawMessage) (*MessageCopyOptions, error) {
var resp MessageCopyOptions
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageText(data json.RawMessage) (*InputMessageText, error) {
var resp InputMessageText
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageAnimation(data json.RawMessage) (*InputMessageAnimation, error) {
var resp InputMessageAnimation
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageAudio(data json.RawMessage) (*InputMessageAudio, error) {
var resp InputMessageAudio
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageDocument(data json.RawMessage) (*InputMessageDocument, error) {
var resp InputMessageDocument
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessagePhoto(data json.RawMessage) (*InputMessagePhoto, error) {
var resp InputMessagePhoto
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageSticker(data json.RawMessage) (*InputMessageSticker, error) {
var resp InputMessageSticker
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageVideo(data json.RawMessage) (*InputMessageVideo, error) {
var resp InputMessageVideo
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageVideoNote(data json.RawMessage) (*InputMessageVideoNote, error) {
var resp InputMessageVideoNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageVoiceNote(data json.RawMessage) (*InputMessageVoiceNote, error) {
var resp InputMessageVoiceNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageLocation(data json.RawMessage) (*InputMessageLocation, error) {
var resp InputMessageLocation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageVenue(data json.RawMessage) (*InputMessageVenue, error) {
var resp InputMessageVenue
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageContact(data json.RawMessage) (*InputMessageContact, error) {
var resp InputMessageContact
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageDice(data json.RawMessage) (*InputMessageDice, error) {
var resp InputMessageDice
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageGame(data json.RawMessage) (*InputMessageGame, error) {
var resp InputMessageGame
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageInvoice(data json.RawMessage) (*InputMessageInvoice, error) {
var resp InputMessageInvoice
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessagePoll(data json.RawMessage) (*InputMessagePoll, error) {
var resp InputMessagePoll
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageStory(data json.RawMessage) (*InputMessageStory, error) {
var resp InputMessageStory
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputMessageForwarded(data json.RawMessage) (*InputMessageForwarded, error) {
var resp InputMessageForwarded
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterEmpty(data json.RawMessage) (*SearchMessagesFilterEmpty, error) {
var resp SearchMessagesFilterEmpty
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterAnimation(data json.RawMessage) (*SearchMessagesFilterAnimation, error) {
var resp SearchMessagesFilterAnimation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterAudio(data json.RawMessage) (*SearchMessagesFilterAudio, error) {
var resp SearchMessagesFilterAudio
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterDocument(data json.RawMessage) (*SearchMessagesFilterDocument, error) {
var resp SearchMessagesFilterDocument
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterPhoto(data json.RawMessage) (*SearchMessagesFilterPhoto, error) {
var resp SearchMessagesFilterPhoto
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterVideo(data json.RawMessage) (*SearchMessagesFilterVideo, error) {
var resp SearchMessagesFilterVideo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterVoiceNote(data json.RawMessage) (*SearchMessagesFilterVoiceNote, error) {
var resp SearchMessagesFilterVoiceNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterPhotoAndVideo(data json.RawMessage) (*SearchMessagesFilterPhotoAndVideo, error) {
var resp SearchMessagesFilterPhotoAndVideo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterUrl(data json.RawMessage) (*SearchMessagesFilterUrl, error) {
var resp SearchMessagesFilterUrl
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterChatPhoto(data json.RawMessage) (*SearchMessagesFilterChatPhoto, error) {
var resp SearchMessagesFilterChatPhoto
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterVideoNote(data json.RawMessage) (*SearchMessagesFilterVideoNote, error) {
var resp SearchMessagesFilterVideoNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterVoiceAndVideoNote(data json.RawMessage) (*SearchMessagesFilterVoiceAndVideoNote, error) {
var resp SearchMessagesFilterVoiceAndVideoNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterMention(data json.RawMessage) (*SearchMessagesFilterMention, error) {
var resp SearchMessagesFilterMention
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterUnreadMention(data json.RawMessage) (*SearchMessagesFilterUnreadMention, error) {
var resp SearchMessagesFilterUnreadMention
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterUnreadReaction(data json.RawMessage) (*SearchMessagesFilterUnreadReaction, error) {
var resp SearchMessagesFilterUnreadReaction
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterFailedToSend(data json.RawMessage) (*SearchMessagesFilterFailedToSend, error) {
var resp SearchMessagesFilterFailedToSend
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSearchMessagesFilterPinned(data json.RawMessage) (*SearchMessagesFilterPinned, error) {
var resp SearchMessagesFilterPinned
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionTyping(data json.RawMessage) (*ChatActionTyping, error) {
var resp ChatActionTyping
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionRecordingVideo(data json.RawMessage) (*ChatActionRecordingVideo, error) {
var resp ChatActionRecordingVideo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionUploadingVideo(data json.RawMessage) (*ChatActionUploadingVideo, error) {
var resp ChatActionUploadingVideo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionRecordingVoiceNote(data json.RawMessage) (*ChatActionRecordingVoiceNote, error) {
var resp ChatActionRecordingVoiceNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionUploadingVoiceNote(data json.RawMessage) (*ChatActionUploadingVoiceNote, error) {
var resp ChatActionUploadingVoiceNote
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionUploadingPhoto(data json.RawMessage) (*ChatActionUploadingPhoto, error) {
var resp ChatActionUploadingPhoto
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionUploadingDocument(data json.RawMessage) (*ChatActionUploadingDocument, error) {
var resp ChatActionUploadingDocument
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionChoosingSticker(data json.RawMessage) (*ChatActionChoosingSticker, error) {
var resp ChatActionChoosingSticker
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionChoosingLocation(data json.RawMessage) (*ChatActionChoosingLocation, error) {
var resp ChatActionChoosingLocation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionChoosingContact(data json.RawMessage) (*ChatActionChoosingContact, error) {
var resp ChatActionChoosingContact
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionStartPlayingGame(data json.RawMessage) (*ChatActionStartPlayingGame, error) {
var resp ChatActionStartPlayingGame
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionRecordingVideoNote(data json.RawMessage) (*ChatActionRecordingVideoNote, error) {
var resp ChatActionRecordingVideoNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionUploadingVideoNote(data json.RawMessage) (*ChatActionUploadingVideoNote, error) {
var resp ChatActionUploadingVideoNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionWatchingAnimations(data json.RawMessage) (*ChatActionWatchingAnimations, error) {
var resp ChatActionWatchingAnimations
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActionCancel(data json.RawMessage) (*ChatActionCancel, error) {
var resp ChatActionCancel
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserStatusEmpty(data json.RawMessage) (*UserStatusEmpty, error) {
var resp UserStatusEmpty
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserStatusOnline(data json.RawMessage) (*UserStatusOnline, error) {
var resp UserStatusOnline
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserStatusOffline(data json.RawMessage) (*UserStatusOffline, error) {
var resp UserStatusOffline
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserStatusRecently(data json.RawMessage) (*UserStatusRecently, error) {
var resp UserStatusRecently
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserStatusLastWeek(data json.RawMessage) (*UserStatusLastWeek, error) {
var resp UserStatusLastWeek
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserStatusLastMonth(data json.RawMessage) (*UserStatusLastMonth, error) {
var resp UserStatusLastMonth
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmojiKeyword(data json.RawMessage) (*EmojiKeyword, error) {
var resp EmojiKeyword
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmojiKeywords(data json.RawMessage) (*EmojiKeywords, error) {
var resp EmojiKeywords
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickers(data json.RawMessage) (*Stickers, error) {
var resp Stickers
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmojis(data json.RawMessage) (*Emojis, error) {
var resp Emojis
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickerSet(data json.RawMessage) (*StickerSet, error) {
var resp StickerSet
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickerSetInfo(data json.RawMessage) (*StickerSetInfo, error) {
var resp StickerSetInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStickerSets(data json.RawMessage) (*StickerSets, error) {
var resp StickerSets
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTrendingStickerSets(data json.RawMessage) (*TrendingStickerSets, error) {
var resp TrendingStickerSets
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmojiCategory(data json.RawMessage) (*EmojiCategory, error) {
var resp EmojiCategory
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmojiCategories(data json.RawMessage) (*EmojiCategories, error) {
var resp EmojiCategories
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmojiCategoryTypeDefault(data json.RawMessage) (*EmojiCategoryTypeDefault, error) {
var resp EmojiCategoryTypeDefault
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmojiCategoryTypeEmojiStatus(data json.RawMessage) (*EmojiCategoryTypeEmojiStatus, error) {
var resp EmojiCategoryTypeEmojiStatus
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmojiCategoryTypeChatPhoto(data json.RawMessage) (*EmojiCategoryTypeChatPhoto, error) {
var resp EmojiCategoryTypeChatPhoto
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryAreaPosition(data json.RawMessage) (*StoryAreaPosition, error) {
var resp StoryAreaPosition
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryAreaTypeLocation(data json.RawMessage) (*StoryAreaTypeLocation, error) {
var resp StoryAreaTypeLocation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryAreaTypeVenue(data json.RawMessage) (*StoryAreaTypeVenue, error) {
var resp StoryAreaTypeVenue
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryAreaTypeSuggestedReaction(data json.RawMessage) (*StoryAreaTypeSuggestedReaction, error) {
var resp StoryAreaTypeSuggestedReaction
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryAreaTypeMessage(data json.RawMessage) (*StoryAreaTypeMessage, error) {
var resp StoryAreaTypeMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryArea(data json.RawMessage) (*StoryArea, error) {
var resp StoryArea
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputStoryAreaTypeLocation(data json.RawMessage) (*InputStoryAreaTypeLocation, error) {
var resp InputStoryAreaTypeLocation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputStoryAreaTypeFoundVenue(data json.RawMessage) (*InputStoryAreaTypeFoundVenue, error) {
var resp InputStoryAreaTypeFoundVenue
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputStoryAreaTypePreviousVenue(data json.RawMessage) (*InputStoryAreaTypePreviousVenue, error) {
var resp InputStoryAreaTypePreviousVenue
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputStoryAreaTypeSuggestedReaction(data json.RawMessage) (*InputStoryAreaTypeSuggestedReaction, error) {
var resp InputStoryAreaTypeSuggestedReaction
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputStoryAreaTypeMessage(data json.RawMessage) (*InputStoryAreaTypeMessage, error) {
var resp InputStoryAreaTypeMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputStoryArea(data json.RawMessage) (*InputStoryArea, error) {
var resp InputStoryArea
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputStoryAreas(data json.RawMessage) (*InputStoryAreas, error) {
var resp InputStoryAreas
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryVideo(data json.RawMessage) (*StoryVideo, error) {
var resp StoryVideo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryContentPhoto(data json.RawMessage) (*StoryContentPhoto, error) {
var resp StoryContentPhoto
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryContentVideo(data json.RawMessage) (*StoryContentVideo, error) {
var resp StoryContentVideo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryContentUnsupported(data json.RawMessage) (*StoryContentUnsupported, error) {
var resp StoryContentUnsupported
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputStoryContentPhoto(data json.RawMessage) (*InputStoryContentPhoto, error) {
var resp InputStoryContentPhoto
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputStoryContentVideo(data json.RawMessage) (*InputStoryContentVideo, error) {
var resp InputStoryContentVideo
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryListMain(data json.RawMessage) (*StoryListMain, error) {
var resp StoryListMain
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryListArchive(data json.RawMessage) (*StoryListArchive, error) {
var resp StoryListArchive
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryOriginPublicStory(data json.RawMessage) (*StoryOriginPublicStory, error) {
var resp StoryOriginPublicStory
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryOriginHiddenUser(data json.RawMessage) (*StoryOriginHiddenUser, error) {
var resp StoryOriginHiddenUser
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryRepostInfo(data json.RawMessage) (*StoryRepostInfo, error) {
var resp StoryRepostInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryInteractionInfo(data json.RawMessage) (*StoryInteractionInfo, error) {
var resp StoryInteractionInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStory(data json.RawMessage) (*Story, error) {
var resp Story
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStories(data json.RawMessage) (*Stories, error) {
var resp Stories
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryFullId(data json.RawMessage) (*StoryFullId, error) {
var resp StoryFullId
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryInfo(data json.RawMessage) (*StoryInfo, error) {
var resp StoryInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatActiveStories(data json.RawMessage) (*ChatActiveStories, error) {
var resp ChatActiveStories
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryInteractionTypeView(data json.RawMessage) (*StoryInteractionTypeView, error) {
var resp StoryInteractionTypeView
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryInteractionTypeForward(data json.RawMessage) (*StoryInteractionTypeForward, error) {
var resp StoryInteractionTypeForward
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryInteractionTypeRepost(data json.RawMessage) (*StoryInteractionTypeRepost, error) {
var resp StoryInteractionTypeRepost
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryInteraction(data json.RawMessage) (*StoryInteraction, error) {
var resp StoryInteraction
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStoryInteractions(data json.RawMessage) (*StoryInteractions, error) {
var resp StoryInteractions
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalQuickReplyMessage(data json.RawMessage) (*QuickReplyMessage, error) {
var resp QuickReplyMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalQuickReplyShortcut(data json.RawMessage) (*QuickReplyShortcut, error) {
var resp QuickReplyShortcut
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPublicForwardMessage(data json.RawMessage) (*PublicForwardMessage, error) {
var resp PublicForwardMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPublicForwardStory(data json.RawMessage) (*PublicForwardStory, error) {
var resp PublicForwardStory
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPublicForwards(data json.RawMessage) (*PublicForwards, error) {
var resp PublicForwards
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatBoostLevelFeatures(data json.RawMessage) (*ChatBoostLevelFeatures, error) {
var resp ChatBoostLevelFeatures
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatBoostFeatures(data json.RawMessage) (*ChatBoostFeatures, error) {
var resp ChatBoostFeatures
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatBoostSourceGiftCode(data json.RawMessage) (*ChatBoostSourceGiftCode, error) {
var resp ChatBoostSourceGiftCode
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatBoostSourceGiveaway(data json.RawMessage) (*ChatBoostSourceGiveaway, error) {
var resp ChatBoostSourceGiveaway
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatBoostSourcePremium(data json.RawMessage) (*ChatBoostSourcePremium, error) {
var resp ChatBoostSourcePremium
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPrepaidPremiumGiveaway(data json.RawMessage) (*PrepaidPremiumGiveaway, error) {
var resp PrepaidPremiumGiveaway
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatBoostStatus(data json.RawMessage) (*ChatBoostStatus, error) {
var resp ChatBoostStatus
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatBoost(data json.RawMessage) (*ChatBoost, error) {
var resp ChatBoost
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalFoundChatBoosts(data json.RawMessage) (*FoundChatBoosts, error) {
var resp FoundChatBoosts
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatBoostSlot(data json.RawMessage) (*ChatBoostSlot, error) {
var resp ChatBoostSlot
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatBoostSlots(data json.RawMessage) (*ChatBoostSlots, error) {
var resp ChatBoostSlots
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallDiscardReasonEmpty(data json.RawMessage) (*CallDiscardReasonEmpty, error) {
var resp CallDiscardReasonEmpty
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallDiscardReasonMissed(data json.RawMessage) (*CallDiscardReasonMissed, error) {
var resp CallDiscardReasonMissed
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallDiscardReasonDeclined(data json.RawMessage) (*CallDiscardReasonDeclined, error) {
var resp CallDiscardReasonDeclined
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallDiscardReasonDisconnected(data json.RawMessage) (*CallDiscardReasonDisconnected, error) {
var resp CallDiscardReasonDisconnected
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallDiscardReasonHungUp(data json.RawMessage) (*CallDiscardReasonHungUp, error) {
var resp CallDiscardReasonHungUp
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallProtocol(data json.RawMessage) (*CallProtocol, error) {
var resp CallProtocol
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallServerTypeTelegramReflector(data json.RawMessage) (*CallServerTypeTelegramReflector, error) {
var resp CallServerTypeTelegramReflector
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallServerTypeWebrtc(data json.RawMessage) (*CallServerTypeWebrtc, error) {
var resp CallServerTypeWebrtc
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallServer(data json.RawMessage) (*CallServer, error) {
var resp CallServer
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallId(data json.RawMessage) (*CallId, error) {
var resp CallId
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGroupCallId(data json.RawMessage) (*GroupCallId, error) {
var resp GroupCallId
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallStatePending(data json.RawMessage) (*CallStatePending, error) {
var resp CallStatePending
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallStateExchangingKeys(data json.RawMessage) (*CallStateExchangingKeys, error) {
var resp CallStateExchangingKeys
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallStateReady(data json.RawMessage) (*CallStateReady, error) {
var resp CallStateReady
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallStateHangingUp(data json.RawMessage) (*CallStateHangingUp, error) {
var resp CallStateHangingUp
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallStateDiscarded(data json.RawMessage) (*CallStateDiscarded, error) {
var resp CallStateDiscarded
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallStateError(data json.RawMessage) (*CallStateError, error) {
var resp CallStateError
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGroupCallVideoQualityThumbnail(data json.RawMessage) (*GroupCallVideoQualityThumbnail, error) {
var resp GroupCallVideoQualityThumbnail
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGroupCallVideoQualityMedium(data json.RawMessage) (*GroupCallVideoQualityMedium, error) {
var resp GroupCallVideoQualityMedium
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGroupCallVideoQualityFull(data json.RawMessage) (*GroupCallVideoQualityFull, error) {
var resp GroupCallVideoQualityFull
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGroupCallStream(data json.RawMessage) (*GroupCallStream, error) {
var resp GroupCallStream
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGroupCallStreams(data json.RawMessage) (*GroupCallStreams, error) {
var resp GroupCallStreams
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalRtmpUrl(data json.RawMessage) (*RtmpUrl, error) {
var resp RtmpUrl
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGroupCallRecentSpeaker(data json.RawMessage) (*GroupCallRecentSpeaker, error) {
var resp GroupCallRecentSpeaker
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGroupCall(data json.RawMessage) (*GroupCall, error) {
var resp GroupCall
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGroupCallVideoSourceGroup(data json.RawMessage) (*GroupCallVideoSourceGroup, error) {
var resp GroupCallVideoSourceGroup
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGroupCallParticipantVideoInfo(data json.RawMessage) (*GroupCallParticipantVideoInfo, error) {
var resp GroupCallParticipantVideoInfo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGroupCallParticipant(data json.RawMessage) (*GroupCallParticipant, error) {
var resp GroupCallParticipant
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallProblemEcho(data json.RawMessage) (*CallProblemEcho, error) {
var resp CallProblemEcho
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallProblemNoise(data json.RawMessage) (*CallProblemNoise, error) {
var resp CallProblemNoise
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallProblemInterruptions(data json.RawMessage) (*CallProblemInterruptions, error) {
var resp CallProblemInterruptions
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallProblemDistortedSpeech(data json.RawMessage) (*CallProblemDistortedSpeech, error) {
var resp CallProblemDistortedSpeech
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallProblemSilentLocal(data json.RawMessage) (*CallProblemSilentLocal, error) {
var resp CallProblemSilentLocal
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallProblemSilentRemote(data json.RawMessage) (*CallProblemSilentRemote, error) {
var resp CallProblemSilentRemote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallProblemDropped(data json.RawMessage) (*CallProblemDropped, error) {
var resp CallProblemDropped
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallProblemDistortedVideo(data json.RawMessage) (*CallProblemDistortedVideo, error) {
var resp CallProblemDistortedVideo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallProblemPixelatedVideo(data json.RawMessage) (*CallProblemPixelatedVideo, error) {
var resp CallProblemPixelatedVideo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCall(data json.RawMessage) (*Call, error) {
var resp Call
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalFirebaseAuthenticationSettingsAndroid(data json.RawMessage) (*FirebaseAuthenticationSettingsAndroid, error) {
var resp FirebaseAuthenticationSettingsAndroid
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalFirebaseAuthenticationSettingsIos(data json.RawMessage) (*FirebaseAuthenticationSettingsIos, error) {
var resp FirebaseAuthenticationSettingsIos
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPhoneNumberAuthenticationSettings(data json.RawMessage) (*PhoneNumberAuthenticationSettings, error) {
var resp PhoneNumberAuthenticationSettings
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAddedReaction(data json.RawMessage) (*AddedReaction, error) {
var resp AddedReaction
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAddedReactions(data json.RawMessage) (*AddedReactions, error) {
var resp AddedReactions
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAvailableReaction(data json.RawMessage) (*AvailableReaction, error) {
var resp AvailableReaction
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAvailableReactions(data json.RawMessage) (*AvailableReactions, error) {
var resp AvailableReactions
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalEmojiReaction(data json.RawMessage) (*EmojiReaction, error) {
var resp EmojiReaction
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReactionUnavailabilityReasonAnonymousAdministrator(data json.RawMessage) (*ReactionUnavailabilityReasonAnonymousAdministrator, error) {
var resp ReactionUnavailabilityReasonAnonymousAdministrator
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalReactionUnavailabilityReasonGuest(data json.RawMessage) (*ReactionUnavailabilityReasonGuest, error) {
var resp ReactionUnavailabilityReasonGuest
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAnimations(data json.RawMessage) (*Animations, error) {
var resp Animations
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDiceStickersRegular(data json.RawMessage) (*DiceStickersRegular, error) {
var resp DiceStickersRegular
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDiceStickersSlotMachine(data json.RawMessage) (*DiceStickersSlotMachine, error) {
var resp DiceStickersSlotMachine
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalImportedContacts(data json.RawMessage) (*ImportedContacts, error) {
var resp ImportedContacts
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSpeechRecognitionResultPending(data json.RawMessage) (*SpeechRecognitionResultPending, error) {
var resp SpeechRecognitionResultPending
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSpeechRecognitionResultText(data json.RawMessage) (*SpeechRecognitionResultText, error) {
var resp SpeechRecognitionResultText
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSpeechRecognitionResultError(data json.RawMessage) (*SpeechRecognitionResultError, error) {
var resp SpeechRecognitionResultError
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessConnection(data json.RawMessage) (*BusinessConnection, error) {
var resp BusinessConnection
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAttachmentMenuBotColor(data json.RawMessage) (*AttachmentMenuBotColor, error) {
var resp AttachmentMenuBotColor
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalAttachmentMenuBot(data json.RawMessage) (*AttachmentMenuBot, error) {
var resp AttachmentMenuBot
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalSentWebAppMessage(data json.RawMessage) (*SentWebAppMessage, error) {
var resp SentWebAppMessage
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBotWriteAccessAllowReasonConnectedWebsite(data json.RawMessage) (*BotWriteAccessAllowReasonConnectedWebsite, error) {
var resp BotWriteAccessAllowReasonConnectedWebsite
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBotWriteAccessAllowReasonAddedToAttachmentMenu(data json.RawMessage) (*BotWriteAccessAllowReasonAddedToAttachmentMenu, error) {
var resp BotWriteAccessAllowReasonAddedToAttachmentMenu
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBotWriteAccessAllowReasonLaunchedWebApp(data json.RawMessage) (*BotWriteAccessAllowReasonLaunchedWebApp, error) {
var resp BotWriteAccessAllowReasonLaunchedWebApp
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBotWriteAccessAllowReasonAcceptedRequest(data json.RawMessage) (*BotWriteAccessAllowReasonAcceptedRequest, error) {
var resp BotWriteAccessAllowReasonAcceptedRequest
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalHttpUrl(data json.RawMessage) (*HttpUrl, error) {
var resp HttpUrl
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalUserLink(data json.RawMessage) (*UserLink, error) {
var resp UserLink
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResultAnimation(data json.RawMessage) (*InputInlineQueryResultAnimation, error) {
var resp InputInlineQueryResultAnimation
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResultArticle(data json.RawMessage) (*InputInlineQueryResultArticle, error) {
var resp InputInlineQueryResultArticle
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResultAudio(data json.RawMessage) (*InputInlineQueryResultAudio, error) {
var resp InputInlineQueryResultAudio
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResultContact(data json.RawMessage) (*InputInlineQueryResultContact, error) {
var resp InputInlineQueryResultContact
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResultDocument(data json.RawMessage) (*InputInlineQueryResultDocument, error) {
var resp InputInlineQueryResultDocument
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResultGame(data json.RawMessage) (*InputInlineQueryResultGame, error) {
var resp InputInlineQueryResultGame
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResultLocation(data json.RawMessage) (*InputInlineQueryResultLocation, error) {
var resp InputInlineQueryResultLocation
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResultPhoto(data json.RawMessage) (*InputInlineQueryResultPhoto, error) {
var resp InputInlineQueryResultPhoto
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResultSticker(data json.RawMessage) (*InputInlineQueryResultSticker, error) {
var resp InputInlineQueryResultSticker
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResultVenue(data json.RawMessage) (*InputInlineQueryResultVenue, error) {
var resp InputInlineQueryResultVenue
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResultVideo(data json.RawMessage) (*InputInlineQueryResultVideo, error) {
var resp InputInlineQueryResultVideo
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputInlineQueryResultVoiceNote(data json.RawMessage) (*InputInlineQueryResultVoiceNote, error) {
var resp InputInlineQueryResultVoiceNote
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultArticle(data json.RawMessage) (*InlineQueryResultArticle, error) {
var resp InlineQueryResultArticle
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultContact(data json.RawMessage) (*InlineQueryResultContact, error) {
var resp InlineQueryResultContact
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultLocation(data json.RawMessage) (*InlineQueryResultLocation, error) {
var resp InlineQueryResultLocation
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultVenue(data json.RawMessage) (*InlineQueryResultVenue, error) {
var resp InlineQueryResultVenue
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultGame(data json.RawMessage) (*InlineQueryResultGame, error) {
var resp InlineQueryResultGame
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultAnimation(data json.RawMessage) (*InlineQueryResultAnimation, error) {
var resp InlineQueryResultAnimation
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultAudio(data json.RawMessage) (*InlineQueryResultAudio, error) {
var resp InlineQueryResultAudio
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultDocument(data json.RawMessage) (*InlineQueryResultDocument, error) {
var resp InlineQueryResultDocument
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultPhoto(data json.RawMessage) (*InlineQueryResultPhoto, error) {
var resp InlineQueryResultPhoto
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultSticker(data json.RawMessage) (*InlineQueryResultSticker, error) {
var resp InlineQueryResultSticker
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultVideo(data json.RawMessage) (*InlineQueryResultVideo, error) {
var resp InlineQueryResultVideo
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultVoiceNote(data json.RawMessage) (*InlineQueryResultVoiceNote, error) {
var resp InlineQueryResultVoiceNote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultsButtonTypeStartBot(data json.RawMessage) (*InlineQueryResultsButtonTypeStartBot, error) {
var resp InlineQueryResultsButtonTypeStartBot
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultsButtonTypeWebApp(data json.RawMessage) (*InlineQueryResultsButtonTypeWebApp, error) {
var resp InlineQueryResultsButtonTypeWebApp
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResultsButton(data json.RawMessage) (*InlineQueryResultsButton, error) {
var resp InlineQueryResultsButton
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInlineQueryResults(data json.RawMessage) (*InlineQueryResults, error) {
var resp InlineQueryResults
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallbackQueryPayloadData(data json.RawMessage) (*CallbackQueryPayloadData, error) {
var resp CallbackQueryPayloadData
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallbackQueryPayloadDataWithPassword(data json.RawMessage) (*CallbackQueryPayloadDataWithPassword, error) {
var resp CallbackQueryPayloadDataWithPassword
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallbackQueryPayloadGame(data json.RawMessage) (*CallbackQueryPayloadGame, error) {
var resp CallbackQueryPayloadGame
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCallbackQueryAnswer(data json.RawMessage) (*CallbackQueryAnswer, error) {
var resp CallbackQueryAnswer
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCustomRequestResult(data json.RawMessage) (*CustomRequestResult, error) {
var resp CustomRequestResult
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGameHighScore(data json.RawMessage) (*GameHighScore, error) {
var resp GameHighScore
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalGameHighScores(data json.RawMessage) (*GameHighScores, error) {
var resp GameHighScores
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventMessageEdited(data json.RawMessage) (*ChatEventMessageEdited, error) {
var resp ChatEventMessageEdited
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventMessageDeleted(data json.RawMessage) (*ChatEventMessageDeleted, error) {
var resp ChatEventMessageDeleted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventMessagePinned(data json.RawMessage) (*ChatEventMessagePinned, error) {
var resp ChatEventMessagePinned
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventMessageUnpinned(data json.RawMessage) (*ChatEventMessageUnpinned, error) {
var resp ChatEventMessageUnpinned
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventPollStopped(data json.RawMessage) (*ChatEventPollStopped, error) {
var resp ChatEventPollStopped
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventMemberJoined(data json.RawMessage) (*ChatEventMemberJoined, error) {
var resp ChatEventMemberJoined
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventMemberJoinedByInviteLink(data json.RawMessage) (*ChatEventMemberJoinedByInviteLink, error) {
var resp ChatEventMemberJoinedByInviteLink
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventMemberJoinedByRequest(data json.RawMessage) (*ChatEventMemberJoinedByRequest, error) {
var resp ChatEventMemberJoinedByRequest
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventMemberInvited(data json.RawMessage) (*ChatEventMemberInvited, error) {
var resp ChatEventMemberInvited
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventMemberLeft(data json.RawMessage) (*ChatEventMemberLeft, error) {
var resp ChatEventMemberLeft
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventMemberPromoted(data json.RawMessage) (*ChatEventMemberPromoted, error) {
var resp ChatEventMemberPromoted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventMemberRestricted(data json.RawMessage) (*ChatEventMemberRestricted, error) {
var resp ChatEventMemberRestricted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventAvailableReactionsChanged(data json.RawMessage) (*ChatEventAvailableReactionsChanged, error) {
var resp ChatEventAvailableReactionsChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventBackgroundChanged(data json.RawMessage) (*ChatEventBackgroundChanged, error) {
var resp ChatEventBackgroundChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventDescriptionChanged(data json.RawMessage) (*ChatEventDescriptionChanged, error) {
var resp ChatEventDescriptionChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventEmojiStatusChanged(data json.RawMessage) (*ChatEventEmojiStatusChanged, error) {
var resp ChatEventEmojiStatusChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventLinkedChatChanged(data json.RawMessage) (*ChatEventLinkedChatChanged, error) {
var resp ChatEventLinkedChatChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventLocationChanged(data json.RawMessage) (*ChatEventLocationChanged, error) {
var resp ChatEventLocationChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventMessageAutoDeleteTimeChanged(data json.RawMessage) (*ChatEventMessageAutoDeleteTimeChanged, error) {
var resp ChatEventMessageAutoDeleteTimeChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventPermissionsChanged(data json.RawMessage) (*ChatEventPermissionsChanged, error) {
var resp ChatEventPermissionsChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventPhotoChanged(data json.RawMessage) (*ChatEventPhotoChanged, error) {
var resp ChatEventPhotoChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventSlowModeDelayChanged(data json.RawMessage) (*ChatEventSlowModeDelayChanged, error) {
var resp ChatEventSlowModeDelayChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventStickerSetChanged(data json.RawMessage) (*ChatEventStickerSetChanged, error) {
var resp ChatEventStickerSetChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventCustomEmojiStickerSetChanged(data json.RawMessage) (*ChatEventCustomEmojiStickerSetChanged, error) {
var resp ChatEventCustomEmojiStickerSetChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventTitleChanged(data json.RawMessage) (*ChatEventTitleChanged, error) {
var resp ChatEventTitleChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventUsernameChanged(data json.RawMessage) (*ChatEventUsernameChanged, error) {
var resp ChatEventUsernameChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventActiveUsernamesChanged(data json.RawMessage) (*ChatEventActiveUsernamesChanged, error) {
var resp ChatEventActiveUsernamesChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventAccentColorChanged(data json.RawMessage) (*ChatEventAccentColorChanged, error) {
var resp ChatEventAccentColorChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventProfileAccentColorChanged(data json.RawMessage) (*ChatEventProfileAccentColorChanged, error) {
var resp ChatEventProfileAccentColorChanged
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventHasProtectedContentToggled(data json.RawMessage) (*ChatEventHasProtectedContentToggled, error) {
var resp ChatEventHasProtectedContentToggled
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventInvitesToggled(data json.RawMessage) (*ChatEventInvitesToggled, error) {
var resp ChatEventInvitesToggled
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventIsAllHistoryAvailableToggled(data json.RawMessage) (*ChatEventIsAllHistoryAvailableToggled, error) {
var resp ChatEventIsAllHistoryAvailableToggled
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventHasAggressiveAntiSpamEnabledToggled(data json.RawMessage) (*ChatEventHasAggressiveAntiSpamEnabledToggled, error) {
var resp ChatEventHasAggressiveAntiSpamEnabledToggled
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventSignMessagesToggled(data json.RawMessage) (*ChatEventSignMessagesToggled, error) {
var resp ChatEventSignMessagesToggled
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventInviteLinkEdited(data json.RawMessage) (*ChatEventInviteLinkEdited, error) {
var resp ChatEventInviteLinkEdited
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventInviteLinkRevoked(data json.RawMessage) (*ChatEventInviteLinkRevoked, error) {
var resp ChatEventInviteLinkRevoked
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventInviteLinkDeleted(data json.RawMessage) (*ChatEventInviteLinkDeleted, error) {
var resp ChatEventInviteLinkDeleted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventVideoChatCreated(data json.RawMessage) (*ChatEventVideoChatCreated, error) {
var resp ChatEventVideoChatCreated
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventVideoChatEnded(data json.RawMessage) (*ChatEventVideoChatEnded, error) {
var resp ChatEventVideoChatEnded
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventVideoChatMuteNewParticipantsToggled(data json.RawMessage) (*ChatEventVideoChatMuteNewParticipantsToggled, error) {
var resp ChatEventVideoChatMuteNewParticipantsToggled
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventVideoChatParticipantIsMutedToggled(data json.RawMessage) (*ChatEventVideoChatParticipantIsMutedToggled, error) {
var resp ChatEventVideoChatParticipantIsMutedToggled
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventVideoChatParticipantVolumeLevelChanged(data json.RawMessage) (*ChatEventVideoChatParticipantVolumeLevelChanged, error) {
var resp ChatEventVideoChatParticipantVolumeLevelChanged
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventIsForumToggled(data json.RawMessage) (*ChatEventIsForumToggled, error) {
var resp ChatEventIsForumToggled
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventForumTopicCreated(data json.RawMessage) (*ChatEventForumTopicCreated, error) {
var resp ChatEventForumTopicCreated
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventForumTopicEdited(data json.RawMessage) (*ChatEventForumTopicEdited, error) {
var resp ChatEventForumTopicEdited
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventForumTopicToggleIsClosed(data json.RawMessage) (*ChatEventForumTopicToggleIsClosed, error) {
var resp ChatEventForumTopicToggleIsClosed
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventForumTopicToggleIsHidden(data json.RawMessage) (*ChatEventForumTopicToggleIsHidden, error) {
var resp ChatEventForumTopicToggleIsHidden
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventForumTopicDeleted(data json.RawMessage) (*ChatEventForumTopicDeleted, error) {
var resp ChatEventForumTopicDeleted
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventForumTopicPinned(data json.RawMessage) (*ChatEventForumTopicPinned, error) {
var resp ChatEventForumTopicPinned
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEvent(data json.RawMessage) (*ChatEvent, error) {
var resp ChatEvent
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEvents(data json.RawMessage) (*ChatEvents, error) {
var resp ChatEvents
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatEventLogFilters(data json.RawMessage) (*ChatEventLogFilters, error) {
var resp ChatEventLogFilters
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLanguagePackStringValueOrdinary(data json.RawMessage) (*LanguagePackStringValueOrdinary, error) {
var resp LanguagePackStringValueOrdinary
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLanguagePackStringValuePluralized(data json.RawMessage) (*LanguagePackStringValuePluralized, error) {
var resp LanguagePackStringValuePluralized
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLanguagePackStringValueDeleted(data json.RawMessage) (*LanguagePackStringValueDeleted, error) {
var resp LanguagePackStringValueDeleted
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLanguagePackString(data json.RawMessage) (*LanguagePackString, error) {
var resp LanguagePackString
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLanguagePackStrings(data json.RawMessage) (*LanguagePackStrings, error) {
var resp LanguagePackStrings
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLanguagePackInfo(data json.RawMessage) (*LanguagePackInfo, error) {
var resp LanguagePackInfo
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalLocalizationTargetInfo(data json.RawMessage) (*LocalizationTargetInfo, error) {
var resp LocalizationTargetInfo
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeSupergroupCount(data json.RawMessage) (*PremiumLimitTypeSupergroupCount, error) {
var resp PremiumLimitTypeSupergroupCount
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypePinnedChatCount(data json.RawMessage) (*PremiumLimitTypePinnedChatCount, error) {
var resp PremiumLimitTypePinnedChatCount
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeCreatedPublicChatCount(data json.RawMessage) (*PremiumLimitTypeCreatedPublicChatCount, error) {
var resp PremiumLimitTypeCreatedPublicChatCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeSavedAnimationCount(data json.RawMessage) (*PremiumLimitTypeSavedAnimationCount, error) {
var resp PremiumLimitTypeSavedAnimationCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeFavoriteStickerCount(data json.RawMessage) (*PremiumLimitTypeFavoriteStickerCount, error) {
var resp PremiumLimitTypeFavoriteStickerCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeChatFolderCount(data json.RawMessage) (*PremiumLimitTypeChatFolderCount, error) {
var resp PremiumLimitTypeChatFolderCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeChatFolderChosenChatCount(data json.RawMessage) (*PremiumLimitTypeChatFolderChosenChatCount, error) {
var resp PremiumLimitTypeChatFolderChosenChatCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypePinnedArchivedChatCount(data json.RawMessage) (*PremiumLimitTypePinnedArchivedChatCount, error) {
var resp PremiumLimitTypePinnedArchivedChatCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypePinnedSavedMessagesTopicCount(data json.RawMessage) (*PremiumLimitTypePinnedSavedMessagesTopicCount, error) {
var resp PremiumLimitTypePinnedSavedMessagesTopicCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeCaptionLength(data json.RawMessage) (*PremiumLimitTypeCaptionLength, error) {
var resp PremiumLimitTypeCaptionLength
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeBioLength(data json.RawMessage) (*PremiumLimitTypeBioLength, error) {
var resp PremiumLimitTypeBioLength
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeChatFolderInviteLinkCount(data json.RawMessage) (*PremiumLimitTypeChatFolderInviteLinkCount, error) {
var resp PremiumLimitTypeChatFolderInviteLinkCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeShareableChatFolderCount(data json.RawMessage) (*PremiumLimitTypeShareableChatFolderCount, error) {
var resp PremiumLimitTypeShareableChatFolderCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeActiveStoryCount(data json.RawMessage) (*PremiumLimitTypeActiveStoryCount, error) {
var resp PremiumLimitTypeActiveStoryCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeWeeklySentStoryCount(data json.RawMessage) (*PremiumLimitTypeWeeklySentStoryCount, error) {
var resp PremiumLimitTypeWeeklySentStoryCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeMonthlySentStoryCount(data json.RawMessage) (*PremiumLimitTypeMonthlySentStoryCount, error) {
var resp PremiumLimitTypeMonthlySentStoryCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeStoryCaptionLength(data json.RawMessage) (*PremiumLimitTypeStoryCaptionLength, error) {
var resp PremiumLimitTypeStoryCaptionLength
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeStorySuggestedReactionAreaCount(data json.RawMessage) (*PremiumLimitTypeStorySuggestedReactionAreaCount, error) {
var resp PremiumLimitTypeStorySuggestedReactionAreaCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimitTypeSimilarChatCount(data json.RawMessage) (*PremiumLimitTypeSimilarChatCount, error) {
var resp PremiumLimitTypeSimilarChatCount
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureIncreasedLimits(data json.RawMessage) (*PremiumFeatureIncreasedLimits, error) {
var resp PremiumFeatureIncreasedLimits
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureIncreasedUploadFileSize(data json.RawMessage) (*PremiumFeatureIncreasedUploadFileSize, error) {
var resp PremiumFeatureIncreasedUploadFileSize
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureImprovedDownloadSpeed(data json.RawMessage) (*PremiumFeatureImprovedDownloadSpeed, error) {
var resp PremiumFeatureImprovedDownloadSpeed
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureVoiceRecognition(data json.RawMessage) (*PremiumFeatureVoiceRecognition, error) {
var resp PremiumFeatureVoiceRecognition
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureDisabledAds(data json.RawMessage) (*PremiumFeatureDisabledAds, error) {
var resp PremiumFeatureDisabledAds
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureUniqueReactions(data json.RawMessage) (*PremiumFeatureUniqueReactions, error) {
var resp PremiumFeatureUniqueReactions
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureUniqueStickers(data json.RawMessage) (*PremiumFeatureUniqueStickers, error) {
var resp PremiumFeatureUniqueStickers
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureCustomEmoji(data json.RawMessage) (*PremiumFeatureCustomEmoji, error) {
var resp PremiumFeatureCustomEmoji
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureAdvancedChatManagement(data json.RawMessage) (*PremiumFeatureAdvancedChatManagement, error) {
var resp PremiumFeatureAdvancedChatManagement
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureProfileBadge(data json.RawMessage) (*PremiumFeatureProfileBadge, error) {
var resp PremiumFeatureProfileBadge
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureEmojiStatus(data json.RawMessage) (*PremiumFeatureEmojiStatus, error) {
var resp PremiumFeatureEmojiStatus
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureAnimatedProfilePhoto(data json.RawMessage) (*PremiumFeatureAnimatedProfilePhoto, error) {
var resp PremiumFeatureAnimatedProfilePhoto
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureForumTopicIcon(data json.RawMessage) (*PremiumFeatureForumTopicIcon, error) {
var resp PremiumFeatureForumTopicIcon
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureAppIcons(data json.RawMessage) (*PremiumFeatureAppIcons, error) {
var resp PremiumFeatureAppIcons
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureRealTimeChatTranslation(data json.RawMessage) (*PremiumFeatureRealTimeChatTranslation, error) {
var resp PremiumFeatureRealTimeChatTranslation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureUpgradedStories(data json.RawMessage) (*PremiumFeatureUpgradedStories, error) {
var resp PremiumFeatureUpgradedStories
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureChatBoost(data json.RawMessage) (*PremiumFeatureChatBoost, error) {
var resp PremiumFeatureChatBoost
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureAccentColor(data json.RawMessage) (*PremiumFeatureAccentColor, error) {
var resp PremiumFeatureAccentColor
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureBackgroundForBoth(data json.RawMessage) (*PremiumFeatureBackgroundForBoth, error) {
var resp PremiumFeatureBackgroundForBoth
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureSavedMessagesTags(data json.RawMessage) (*PremiumFeatureSavedMessagesTags, error) {
var resp PremiumFeatureSavedMessagesTags
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureMessagePrivacy(data json.RawMessage) (*PremiumFeatureMessagePrivacy, error) {
var resp PremiumFeatureMessagePrivacy
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureLastSeenTimes(data json.RawMessage) (*PremiumFeatureLastSeenTimes, error) {
var resp PremiumFeatureLastSeenTimes
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatureBusiness(data json.RawMessage) (*PremiumFeatureBusiness, error) {
var resp PremiumFeatureBusiness
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeatureLocation(data json.RawMessage) (*BusinessFeatureLocation, error) {
var resp BusinessFeatureLocation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeatureOpeningHours(data json.RawMessage) (*BusinessFeatureOpeningHours, error) {
var resp BusinessFeatureOpeningHours
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeatureQuickReplies(data json.RawMessage) (*BusinessFeatureQuickReplies, error) {
var resp BusinessFeatureQuickReplies
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeatureGreetingMessage(data json.RawMessage) (*BusinessFeatureGreetingMessage, error) {
var resp BusinessFeatureGreetingMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeatureAwayMessage(data json.RawMessage) (*BusinessFeatureAwayMessage, error) {
var resp BusinessFeatureAwayMessage
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeatureAccountLinks(data json.RawMessage) (*BusinessFeatureAccountLinks, error) {
var resp BusinessFeatureAccountLinks
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeatureIntro(data json.RawMessage) (*BusinessFeatureIntro, error) {
var resp BusinessFeatureIntro
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeatureBots(data json.RawMessage) (*BusinessFeatureBots, error) {
var resp BusinessFeatureBots
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeatureEmojiStatus(data json.RawMessage) (*BusinessFeatureEmojiStatus, error) {
var resp BusinessFeatureEmojiStatus
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeatureChatFolderTags(data json.RawMessage) (*BusinessFeatureChatFolderTags, error) {
var resp BusinessFeatureChatFolderTags
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeatureUpgradedStories(data json.RawMessage) (*BusinessFeatureUpgradedStories, error) {
var resp BusinessFeatureUpgradedStories
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumStoryFeaturePriorityOrder(data json.RawMessage) (*PremiumStoryFeaturePriorityOrder, error) {
var resp PremiumStoryFeaturePriorityOrder
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumStoryFeatureStealthMode(data json.RawMessage) (*PremiumStoryFeatureStealthMode, error) {
var resp PremiumStoryFeatureStealthMode
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumStoryFeaturePermanentViewsHistory(data json.RawMessage) (*PremiumStoryFeaturePermanentViewsHistory, error) {
var resp PremiumStoryFeaturePermanentViewsHistory
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2022-04-18 22:45:01 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumStoryFeatureCustomExpirationDuration(data json.RawMessage) (*PremiumStoryFeatureCustomExpirationDuration, error) {
var resp PremiumStoryFeatureCustomExpirationDuration
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumStoryFeatureSaveStories(data json.RawMessage) (*PremiumStoryFeatureSaveStories, error) {
var resp PremiumStoryFeatureSaveStories
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumStoryFeatureLinksAndFormatting(data json.RawMessage) (*PremiumStoryFeatureLinksAndFormatting, error) {
var resp PremiumStoryFeatureLinksAndFormatting
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumStoryFeatureVideoQuality(data json.RawMessage) (*PremiumStoryFeatureVideoQuality, error) {
var resp PremiumStoryFeatureVideoQuality
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumLimit(data json.RawMessage) (*PremiumLimit, error) {
var resp PremiumLimit
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2022-04-18 22:45:01 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeatures(data json.RawMessage) (*PremiumFeatures, error) {
var resp PremiumFeatures
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeatures(data json.RawMessage) (*BusinessFeatures, error) {
var resp BusinessFeatures
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumSourceLimitExceeded(data json.RawMessage) (*PremiumSourceLimitExceeded, error) {
var resp PremiumSourceLimitExceeded
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumSourceFeature(data json.RawMessage) (*PremiumSourceFeature, error) {
var resp PremiumSourceFeature
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumSourceBusinessFeature(data json.RawMessage) (*PremiumSourceBusinessFeature, error) {
var resp PremiumSourceBusinessFeature
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumSourceStoryFeature(data json.RawMessage) (*PremiumSourceStoryFeature, error) {
var resp PremiumSourceStoryFeature
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumSourceLink(data json.RawMessage) (*PremiumSourceLink, error) {
var resp PremiumSourceLink
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumSourceSettings(data json.RawMessage) (*PremiumSourceSettings, error) {
var resp PremiumSourceSettings
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumFeaturePromotionAnimation(data json.RawMessage) (*PremiumFeaturePromotionAnimation, error) {
var resp PremiumFeaturePromotionAnimation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBusinessFeaturePromotionAnimation(data json.RawMessage) (*BusinessFeaturePromotionAnimation, error) {
var resp BusinessFeaturePromotionAnimation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPremiumState(data json.RawMessage) (*PremiumState, error) {
var resp PremiumState
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStorePaymentPurposePremiumSubscription(data json.RawMessage) (*StorePaymentPurposePremiumSubscription, error) {
var resp StorePaymentPurposePremiumSubscription
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStorePaymentPurposeGiftedPremium(data json.RawMessage) (*StorePaymentPurposeGiftedPremium, error) {
var resp StorePaymentPurposeGiftedPremium
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStorePaymentPurposePremiumGiftCodes(data json.RawMessage) (*StorePaymentPurposePremiumGiftCodes, error) {
var resp StorePaymentPurposePremiumGiftCodes
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalStorePaymentPurposePremiumGiveaway(data json.RawMessage) (*StorePaymentPurposePremiumGiveaway, error) {
var resp StorePaymentPurposePremiumGiveaway
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTelegramPaymentPurposePremiumGiftCodes(data json.RawMessage) (*TelegramPaymentPurposePremiumGiftCodes, error) {
var resp TelegramPaymentPurposePremiumGiftCodes
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTelegramPaymentPurposePremiumGiveaway(data json.RawMessage) (*TelegramPaymentPurposePremiumGiveaway, error) {
var resp TelegramPaymentPurposePremiumGiveaway
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func Unmarshal//-To(data json.RawMessage) (*//-To, error) {
var resp //-To
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceTokenFirebaseCloudMessaging(data json.RawMessage) (*DeviceTokenFirebaseCloudMessaging, error) {
var resp DeviceTokenFirebaseCloudMessaging
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceTokenApplePush(data json.RawMessage) (*DeviceTokenApplePush, error) {
var resp DeviceTokenApplePush
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceTokenApplePushVoIP(data json.RawMessage) (*DeviceTokenApplePushVoIP, error) {
var resp DeviceTokenApplePushVoIP
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceTokenWindowsPush(data json.RawMessage) (*DeviceTokenWindowsPush, error) {
var resp DeviceTokenWindowsPush
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceTokenMicrosoftPush(data json.RawMessage) (*DeviceTokenMicrosoftPush, error) {
var resp DeviceTokenMicrosoftPush
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceTokenMicrosoftPushVoIP(data json.RawMessage) (*DeviceTokenMicrosoftPushVoIP, error) {
var resp DeviceTokenMicrosoftPushVoIP
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceTokenWebPush(data json.RawMessage) (*DeviceTokenWebPush, error) {
var resp DeviceTokenWebPush
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceTokenSimplePush(data json.RawMessage) (*DeviceTokenSimplePush, error) {
var resp DeviceTokenSimplePush
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceTokenUbuntuPush(data json.RawMessage) (*DeviceTokenUbuntuPush, error) {
var resp DeviceTokenUbuntuPush
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceTokenBlackBerryPush(data json.RawMessage) (*DeviceTokenBlackBerryPush, error) {
var resp DeviceTokenBlackBerryPush
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceTokenTizenPush(data json.RawMessage) (*DeviceTokenTizenPush, error) {
var resp DeviceTokenTizenPush
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalDeviceTokenHuaweiPush(data json.RawMessage) (*DeviceTokenHuaweiPush, error) {
var resp DeviceTokenHuaweiPush
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPushReceiverId(data json.RawMessage) (*PushReceiverId, error) {
var resp PushReceiverId
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBackgroundFillSolid(data json.RawMessage) (*BackgroundFillSolid, error) {
var resp BackgroundFillSolid
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBackgroundFillGradient(data json.RawMessage) (*BackgroundFillGradient, error) {
var resp BackgroundFillGradient
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBackgroundFillFreeformGradient(data json.RawMessage) (*BackgroundFillFreeformGradient, error) {
var resp BackgroundFillFreeformGradient
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBackgroundTypeWallpaper(data json.RawMessage) (*BackgroundTypeWallpaper, error) {
var resp BackgroundTypeWallpaper
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBackgroundTypePattern(data json.RawMessage) (*BackgroundTypePattern, error) {
var resp BackgroundTypePattern
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBackgroundTypeFill(data json.RawMessage) (*BackgroundTypeFill, error) {
var resp BackgroundTypeFill
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalBackgroundTypeChatTheme(data json.RawMessage) (*BackgroundTypeChatTheme, error) {
var resp BackgroundTypeChatTheme
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputBackgroundLocal(data json.RawMessage) (*InputBackgroundLocal, error) {
var resp InputBackgroundLocal
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputBackgroundRemote(data json.RawMessage) (*InputBackgroundRemote, error) {
var resp InputBackgroundRemote
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalInputBackgroundPrevious(data json.RawMessage) (*InputBackgroundPrevious, error) {
var resp InputBackgroundPrevious
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalThemeSettings(data json.RawMessage) (*ThemeSettings, error) {
var resp ThemeSettings
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalChatTheme(data json.RawMessage) (*ChatTheme, error) {
var resp ChatTheme
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTimeZone(data json.RawMessage) (*TimeZone, error) {
var resp TimeZone
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalTimeZones(data json.RawMessage) (*TimeZones, error) {
var resp TimeZones
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalHashtags(data json.RawMessage) (*Hashtags, error) {
var resp Hashtags
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCanSendStoryResultOk(data json.RawMessage) (*CanSendStoryResultOk, error) {
var resp CanSendStoryResultOk
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCanSendStoryResultPremiumNeeded(data json.RawMessage) (*CanSendStoryResultPremiumNeeded, error) {
var resp CanSendStoryResultPremiumNeeded
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCanSendStoryResultBoostNeeded(data json.RawMessage) (*CanSendStoryResultBoostNeeded, error) {
var resp CanSendStoryResultBoostNeeded
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCanSendStoryResultActiveStoryLimitExceeded(data json.RawMessage) (*CanSendStoryResultActiveStoryLimitExceeded, error) {
var resp CanSendStoryResultActiveStoryLimitExceeded
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCanSendStoryResultWeeklyLimitExceeded(data json.RawMessage) (*CanSendStoryResultWeeklyLimitExceeded, error) {
var resp CanSendStoryResultWeeklyLimitExceeded
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCanSendStoryResultMonthlyLimitExceeded(data json.RawMessage) (*CanSendStoryResultMonthlyLimitExceeded, error) {
var resp CanSendStoryResultMonthlyLimitExceeded
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCanTransferOwnershipResultOk(data json.RawMessage) (*CanTransferOwnershipResultOk, error) {
var resp CanTransferOwnershipResultOk
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCanTransferOwnershipResultPasswordNeeded(data json.RawMessage) (*CanTransferOwnershipResultPasswordNeeded, error) {
var resp CanTransferOwnershipResultPasswordNeeded
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCanTransferOwnershipResultPasswordTooFresh(data json.RawMessage) (*CanTransferOwnershipResultPasswordTooFresh, error) {
var resp CanTransferOwnershipResultPasswordTooFresh
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCanTransferOwnershipResultSessionTooFresh(data json.RawMessage) (*CanTransferOwnershipResultSessionTooFresh, error) {
var resp CanTransferOwnershipResultSessionTooFresh
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCheckChatUsernameResultOk(data json.RawMessage) (*CheckChatUsernameResultOk, error) {
var resp CheckChatUsernameResultOk
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCheckChatUsernameResultUsernameInvalid(data json.RawMessage) (*CheckChatUsernameResultUsernameInvalid, error) {
var resp CheckChatUsernameResultUsernameInvalid
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCheckChatUsernameResultUsernameOccupied(data json.RawMessage) (*CheckChatUsernameResultUsernameOccupied, error) {
var resp CheckChatUsernameResultUsernameOccupied
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCheckChatUsernameResultUsernamePurchasable(data json.RawMessage) (*CheckChatUsernameResultUsernamePurchasable, error) {
var resp CheckChatUsernameResultUsernamePurchasable
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCheckChatUsernameResultPublicChatsTooMany(data json.RawMessage) (*CheckChatUsernameResultPublicChatsTooMany, error) {
var resp CheckChatUsernameResultPublicChatsTooMany
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data json.RawMessage) (*CheckChatUsernameResultPublicGroupsUnavailable, error) {
var resp CheckChatUsernameResultPublicGroupsUnavailable
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCheckStickerSetNameResultOk(data json.RawMessage) (*CheckStickerSetNameResultOk, error) {
var resp CheckStickerSetNameResultOk
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-12-08 10:23:00 +01:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCheckStickerSetNameResultNameInvalid(data json.RawMessage) (*CheckStickerSetNameResultNameInvalid, error) {
var resp CheckStickerSetNameResultNameInvalid
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalCheckStickerSetNameResultNameOccupied(data json.RawMessage) (*CheckStickerSetNameResultNameOccupied, error) {
var resp CheckStickerSetNameResultNameOccupied
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalResetPasswordResultOk(data json.RawMessage) (*ResetPasswordResultOk, error) {
var resp ResetPasswordResultOk
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalResetPasswordResultPending(data json.RawMessage) (*ResetPasswordResultPending, error) {
var resp ResetPasswordResultPending
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalResetPasswordResultDeclined(data json.RawMessage) (*ResetPasswordResultDeclined, error) {
var resp ResetPasswordResultDeclined
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageFileTypePrivate(data json.RawMessage) (*MessageFileTypePrivate, error) {
var resp MessageFileTypePrivate
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageFileTypeGroup(data json.RawMessage) (*MessageFileTypeGroup, error) {
var resp MessageFileTypeGroup
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2023-06-04 22:58:07 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalMessageFileTypeUnknown(data json.RawMessage) (*MessageFileTypeUnknown, error) {
var resp MessageFileTypeUnknown
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPushMessageContentHidden(data json.RawMessage) (*PushMessageContentHidden, error) {
var resp PushMessageContentHidden
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPushMessageContentAnimation(data json.RawMessage) (*PushMessageContentAnimation, error) {
var resp PushMessageContentAnimation
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPushMessageContentAudio(data json.RawMessage) (*PushMessageContentAudio, error) {
var resp PushMessageContentAudio
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPushMessageContentContact(data json.RawMessage) (*PushMessageContentContact, error) {
var resp PushMessageContentContact
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPushMessageContentContactRegistered(data json.RawMessage) (*PushMessageContentContactRegistered, error) {
var resp PushMessageContentContactRegistered
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
func UnmarshalPushMessageContentDocument(data json.RawMessage) (*PushMessageContentDocument, error) {
var resp PushMessageContentDocument
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
err := json.Unmarshal(data, &resp)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
return &resp, err
2021-10-22 16:24:12 +02:00
}
2024-10-06 19:09:53 +02:00
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 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 UnmarshalPushMessageContentPremiumGiveaway(data json.RawMessage) (*PushMessageContentPremiumGiveaway, error) {
var resp PushMessageContentPremiumGiveaway
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 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 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 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 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 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 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 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 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 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 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 UnmarshalInternalLinkTypeActiveSessions(data json.RawMessage) (*InternalLinkTypeActiveSessions, error) {
var resp InternalLinkTypeActiveSessions
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 UnmarshalInternalLinkTypeChangePhoneNumber(data json.RawMessage) (*InternalLinkTypeChangePhoneNumber, error) {
var resp InternalLinkTypeChangePhoneNumber
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 UnmarshalInternalLinkTypeChatFolderSettings(data json.RawMessage) (*InternalLinkTypeChatFolderSettings, error) {
var resp InternalLinkTypeChatFolderSettings
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 UnmarshalInternalLinkTypeDefaultMessageAutoDeleteTimerSettings(data json.RawMessage) (*InternalLinkTypeDefaultMessageAutoDeleteTimerSettings, error) {
var resp InternalLinkTypeDefaultMessageAutoDeleteTimerSettings
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalInternalLinkTypeEditProfileSettings(data json.RawMessage) (*InternalLinkTypeEditProfileSettings, error) {
var resp InternalLinkTypeEditProfileSettings
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 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 UnmarshalInternalLinkTypeLanguageSettings(data json.RawMessage) (*InternalLinkTypeLanguageSettings, error) {
var resp InternalLinkTypeLanguageSettings
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 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 UnmarshalInternalLinkTypePremiumFeatures(data json.RawMessage) (*InternalLinkTypePremiumFeatures, error) {
var resp InternalLinkTypePremiumFeatures
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalInternalLinkTypePremiumGift(data json.RawMessage) (*InternalLinkTypePremiumGift, error) {
var resp InternalLinkTypePremiumGift
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 UnmarshalInternalLinkTypePrivacyAndSecuritySettings(data json.RawMessage) (*InternalLinkTypePrivacyAndSecuritySettings, error) {
var resp InternalLinkTypePrivacyAndSecuritySettings
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 UnmarshalInternalLinkTypeSettings(data json.RawMessage) (*InternalLinkTypeSettings, error) {
var resp InternalLinkTypeSettings
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalInternalLinkTypeSideMenuBot(data json.RawMessage) (*InternalLinkTypeSideMenuBot, error) {
var resp InternalLinkTypeSideMenuBot
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 UnmarshalInternalLinkTypeTheme(data json.RawMessage) (*InternalLinkTypeTheme, error) {
var resp InternalLinkTypeTheme
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalInternalLinkTypeThemeSettings(data json.RawMessage) (*InternalLinkTypeThemeSettings, error) {
var resp InternalLinkTypeThemeSettings
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 UnmarshalInternalLinkTypeUnsupportedProxy(data json.RawMessage) (*InternalLinkTypeUnsupportedProxy, error) {
var resp InternalLinkTypeUnsupportedProxy
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 UnmarshalFilePart(data json.RawMessage) (*FilePart, error) {
var resp FilePart
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 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 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 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 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 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 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 UnmarshalProxy(data json.RawMessage) (*Proxy, error) {
var resp Proxy
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalProxies(data json.RawMessage) (*Proxies, error) {
var resp Proxies
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 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 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 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 UnmarshalUpdateMessageLiveLocationViewed(data json.RawMessage) (*UpdateMessageLiveLocationViewed, error) {
var resp UpdateMessageLiveLocationViewed
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 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 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 UnmarshalUpdateScopeNotificationSettings(data json.RawMessage) (*UpdateScopeNotificationSettings, error) {
var resp UpdateScopeNotificationSettings
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 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 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 UnmarshalUpdateNewCallSignalingData(data json.RawMessage) (*UpdateNewCallSignalingData, error) {
var resp UpdateNewCallSignalingData
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 UnmarshalUpdateStorySendSucceeded(data json.RawMessage) (*UpdateStorySendSucceeded, error) {
var resp UpdateStorySendSucceeded
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateStorySendFailed(data json.RawMessage) (*UpdateStorySendFailed, error) {
var resp UpdateStorySendFailed
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 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 UnmarshalUpdateChatThemes(data json.RawMessage) (*UpdateChatThemes, error) {
var resp UpdateChatThemes
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 UnmarshalUpdateTermsOfService(data json.RawMessage) (*UpdateTermsOfService, error) {
var resp UpdateTermsOfService
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateUsersNearby(data json.RawMessage) (*UpdateUsersNearby, error) {
var resp UpdateUsersNearby
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateUnconfirmedSession(data json.RawMessage) (*UpdateUnconfirmedSession, error) {
var resp UpdateUnconfirmedSession
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 UnmarshalUpdateDefaultReactionType(data json.RawMessage) (*UpdateDefaultReactionType, error) {
var resp UpdateDefaultReactionType
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 UnmarshalUpdateSpeechRecognitionTrial(data json.RawMessage) (*UpdateSpeechRecognitionTrial, error) {
var resp UpdateSpeechRecognitionTrial
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 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 UnmarshalUpdateContactCloseBirthdays(data json.RawMessage) (*UpdateContactCloseBirthdays, error) {
var resp UpdateContactCloseBirthdays
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalUpdateAddChatMembersPrivacyForbidden(data json.RawMessage) (*UpdateAddChatMembersPrivacyForbidden, error) {
var resp UpdateAddChatMembersPrivacyForbidden
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 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 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 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 TypeAuthorizationStateWaitTdlibParameters:
return UnmarshalAuthorizationStateWaitTdlibParameters(data)
case TypeAuthorizationStateWaitPhoneNumber:
return UnmarshalAuthorizationStateWaitPhoneNumber(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 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 TypePollOption:
return UnmarshalPollOption(data)
case TypePollTypeRegular:
return UnmarshalPollTypeRegular(data)
case TypePollTypeQuiz:
return UnmarshalPollTypeQuiz(data)
case TypeAnimation:
return UnmarshalAnimation(data)
case TypeAudio:
return UnmarshalAudio(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 TypeWebApp:
return UnmarshalWebApp(data)
case TypePoll:
return UnmarshalPoll(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 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 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 TypeBusinessConnectedBot:
return UnmarshalBusinessConnectedBot(data)
case TypeBusinessIntro:
return UnmarshalBusinessIntro(data)
case TypeInputBusinessIntro:
return UnmarshalInputBusinessIntro(data)
case TypeBusinessOpeningHoursInterval:
return UnmarshalBusinessOpeningHoursInterval(data)
case TypeBusinessOpeningHours:
return UnmarshalBusinessOpeningHours(data)
case TypeBusinessInfo:
return UnmarshalBusinessInfo(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 TypePremiumPaymentOption:
return UnmarshalPremiumPaymentOption(data)
case TypePremiumStatePaymentOption:
return UnmarshalPremiumStatePaymentOption(data)
case TypePremiumGiftCodePaymentOption:
return UnmarshalPremiumGiftCodePaymentOption(data)
case TypePremiumGiftCodePaymentOptions:
return UnmarshalPremiumGiftCodePaymentOptions(data)
case TypePremiumGiftCodeInfo:
return UnmarshalPremiumGiftCodeInfo(data)
case TypePremiumGiveawayParticipantStatusEligible:
return UnmarshalPremiumGiveawayParticipantStatusEligible(data)
case TypePremiumGiveawayParticipantStatusParticipating:
return UnmarshalPremiumGiveawayParticipantStatusParticipating(data)
case TypePremiumGiveawayParticipantStatusAlreadyWasMember:
return UnmarshalPremiumGiveawayParticipantStatusAlreadyWasMember(data)
case TypePremiumGiveawayParticipantStatusAdministrator:
return UnmarshalPremiumGiveawayParticipantStatusAdministrator(data)
case TypePremiumGiveawayParticipantStatusDisallowedCountry:
return UnmarshalPremiumGiveawayParticipantStatusDisallowedCountry(data)
case TypePremiumGiveawayInfoOngoing:
return UnmarshalPremiumGiveawayInfoOngoing(data)
case TypePremiumGiveawayInfoCompleted:
return UnmarshalPremiumGiveawayInfoCompleted(data)
case TypeAccentColor:
return UnmarshalAccentColor(data)
case TypeProfileAccentColors:
return UnmarshalProfileAccentColors(data)
case TypeProfileAccentColor:
return UnmarshalProfileAccentColor(data)
case TypeEmojiStatus:
return UnmarshalEmojiStatus(data)
case TypeEmojiStatuses:
return UnmarshalEmojiStatuses(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 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 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 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 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 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 TypeInputMessageReplyToStory:
return UnmarshalInputMessageReplyToStory(data)
case TypeMessage:
return UnmarshalMessage(data)
case TypeMessages:
return UnmarshalMessages(data)
case TypeFoundMessages:
return UnmarshalFoundMessages(data)
case TypeFoundChatMessages:
return UnmarshalFoundChatMessages(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 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 TypeMessageSponsorTypeBot:
return UnmarshalMessageSponsorTypeBot(data)
case TypeMessageSponsorTypeWebApp:
return UnmarshalMessageSponsorTypeWebApp(data)
case TypeMessageSponsorTypePublicChannel:
return UnmarshalMessageSponsorTypePublicChannel(data)
case TypeMessageSponsorTypePrivateChannel:
return UnmarshalMessageSponsorTypePrivateChannel(data)
case TypeMessageSponsorTypeWebsite:
return UnmarshalMessageSponsorTypeWebsite(data)
case TypeMessageSponsor:
return UnmarshalMessageSponsor(data)
case TypeSponsoredMessage:
return UnmarshalSponsoredMessage(data)
case TypeSponsoredMessages:
return UnmarshalSponsoredMessages(data)
case TypeReportChatSponsoredMessageOption:
return UnmarshalReportChatSponsoredMessageOption(data)
case TypeReportChatSponsoredMessageResultOk:
return UnmarshalReportChatSponsoredMessageResultOk(data)
case TypeReportChatSponsoredMessageResultFailed:
return UnmarshalReportChatSponsoredMessageResultFailed(data)
case TypeReportChatSponsoredMessageResultOptionRequired:
return UnmarshalReportChatSponsoredMessageResultOptionRequired(data)
case TypeReportChatSponsoredMessageResultAdsHidden:
return UnmarshalReportChatSponsoredMessageResultAdsHidden(data)
case TypeReportChatSponsoredMessageResultPremiumRequired:
return UnmarshalReportChatSponsoredMessageResultPremiumRequired(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 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 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 TypeVideoChat:
return UnmarshalVideoChat(data)
case TypeChat:
return UnmarshalChat(data)
case TypeChats:
return UnmarshalChats(data)
case TypeChatNearby:
return UnmarshalChatNearby(data)
case TypeChatsNearby:
return UnmarshalChatsNearby(data)
case TypePublicChatTypeHasUsername:
return UnmarshalPublicChatTypeHasUsername(data)
case TypePublicChatTypeIsLocationBased:
return UnmarshalPublicChatTypeIsLocationBased(data)
case TypeChatActionBarReportSpam:
return UnmarshalChatActionBarReportSpam(data)
case TypeChatActionBarReportUnrelatedLocation:
return UnmarshalChatActionBarReportUnrelatedLocation(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 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 TypeInlineKeyboardButton:
return UnmarshalInlineKeyboardButton(data)
case TypeReplyMarkupRemoveKeyboard:
return UnmarshalReplyMarkupRemoveKeyboard(data)
case TypeReplyMarkupForceReply:
return UnmarshalReplyMarkupForceReply(data)
case TypeReplyMarkupShowKeyboard:
return UnmarshalReplyMarkupShowKeyboard(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReplyMarkupInlineKeyboard:
return UnmarshalReplyMarkupInlineKeyboard(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLoginUrlInfoOpen:
return UnmarshalLoginUrlInfoOpen(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLoginUrlInfoRequestConfirmation:
return UnmarshalLoginUrlInfoRequestConfirmation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFoundWebApp:
return UnmarshalFoundWebApp(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeWebAppInfo:
return UnmarshalWebAppInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageThreadInfo:
return UnmarshalMessageThreadInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSavedMessagesTopicTypeMyNotes:
return UnmarshalSavedMessagesTopicTypeMyNotes(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSavedMessagesTopicTypeAuthorHidden:
return UnmarshalSavedMessagesTopicTypeAuthorHidden(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeSavedMessagesTopicTypeSavedFromChat:
return UnmarshalSavedMessagesTopicTypeSavedFromChat(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeSavedMessagesTopic:
return UnmarshalSavedMessagesTopic(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeForumTopicIcon:
return UnmarshalForumTopicIcon(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeForumTopicInfo:
return UnmarshalForumTopicInfo(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeForumTopic:
return UnmarshalForumTopic(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeForumTopics:
return UnmarshalForumTopics(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeLinkPreviewOptions:
return UnmarshalLinkPreviewOptions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSharedUser:
return UnmarshalSharedUser(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSharedChat:
return UnmarshalSharedChat(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextPlain:
return UnmarshalRichTextPlain(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextBold:
return UnmarshalRichTextBold(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextItalic:
return UnmarshalRichTextItalic(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextUnderline:
return UnmarshalRichTextUnderline(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextStrikethrough:
return UnmarshalRichTextStrikethrough(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextFixed:
return UnmarshalRichTextFixed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextUrl:
return UnmarshalRichTextUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextEmailAddress:
return UnmarshalRichTextEmailAddress(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextSubscript:
return UnmarshalRichTextSubscript(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextSuperscript:
return UnmarshalRichTextSuperscript(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextMarked:
return UnmarshalRichTextMarked(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextPhoneNumber:
return UnmarshalRichTextPhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextIcon:
return UnmarshalRichTextIcon(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextReference:
return UnmarshalRichTextReference(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextAnchor:
return UnmarshalRichTextAnchor(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTextAnchorLink:
return UnmarshalRichTextAnchorLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRichTexts:
return UnmarshalRichTexts(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockCaption:
return UnmarshalPageBlockCaption(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockListItem:
return UnmarshalPageBlockListItem(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockHorizontalAlignmentLeft:
return UnmarshalPageBlockHorizontalAlignmentLeft(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockHorizontalAlignmentCenter:
return UnmarshalPageBlockHorizontalAlignmentCenter(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockHorizontalAlignmentRight:
return UnmarshalPageBlockHorizontalAlignmentRight(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockVerticalAlignmentTop:
return UnmarshalPageBlockVerticalAlignmentTop(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockVerticalAlignmentMiddle:
return UnmarshalPageBlockVerticalAlignmentMiddle(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockVerticalAlignmentBottom:
return UnmarshalPageBlockVerticalAlignmentBottom(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockTableCell:
return UnmarshalPageBlockTableCell(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockRelatedArticle:
return UnmarshalPageBlockRelatedArticle(data)
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockTitle:
return UnmarshalPageBlockTitle(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockSubtitle:
return UnmarshalPageBlockSubtitle(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockAuthorDate:
return UnmarshalPageBlockAuthorDate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockHeader:
return UnmarshalPageBlockHeader(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockSubheader:
return UnmarshalPageBlockSubheader(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockKicker:
return UnmarshalPageBlockKicker(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockParagraph:
return UnmarshalPageBlockParagraph(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockPreformatted:
return UnmarshalPageBlockPreformatted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockFooter:
return UnmarshalPageBlockFooter(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockDivider:
return UnmarshalPageBlockDivider(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockAnchor:
return UnmarshalPageBlockAnchor(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockList:
return UnmarshalPageBlockList(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockBlockQuote:
return UnmarshalPageBlockBlockQuote(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockPullQuote:
return UnmarshalPageBlockPullQuote(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockAnimation:
return UnmarshalPageBlockAnimation(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockAudio:
return UnmarshalPageBlockAudio(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockPhoto:
return UnmarshalPageBlockPhoto(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockVideo:
return UnmarshalPageBlockVideo(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockVoiceNote:
return UnmarshalPageBlockVoiceNote(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockCover:
return UnmarshalPageBlockCover(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockEmbedded:
return UnmarshalPageBlockEmbedded(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePageBlockEmbeddedPost:
return UnmarshalPageBlockEmbeddedPost(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockCollage:
return UnmarshalPageBlockCollage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockSlideshow:
return UnmarshalPageBlockSlideshow(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockChatLink:
return UnmarshalPageBlockChatLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockTable:
return UnmarshalPageBlockTable(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockDetails:
return UnmarshalPageBlockDetails(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockRelatedArticles:
return UnmarshalPageBlockRelatedArticles(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePageBlockMap:
return UnmarshalPageBlockMap(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeWebPageInstantView:
return UnmarshalWebPageInstantView(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeWebPage:
return UnmarshalWebPage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCountryInfo:
return UnmarshalCountryInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCountries:
return UnmarshalCountries(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePhoneNumberInfo:
return UnmarshalPhoneNumberInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCollectibleItemTypeUsername:
return UnmarshalCollectibleItemTypeUsername(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCollectibleItemTypePhoneNumber:
return UnmarshalCollectibleItemTypePhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCollectibleItemInfo:
return UnmarshalCollectibleItemInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBankCardActionOpenUrl:
return UnmarshalBankCardActionOpenUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBankCardInfo:
return UnmarshalBankCardInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAddress:
return UnmarshalAddress(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeThemeParameters:
return UnmarshalThemeParameters(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLabeledPricePart:
return UnmarshalLabeledPricePart(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInvoice:
return UnmarshalInvoice(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeOrderInfo:
return UnmarshalOrderInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeShippingOption:
return UnmarshalShippingOption(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSavedCredentials:
return UnmarshalSavedCredentials(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputCredentialsSaved:
return UnmarshalInputCredentialsSaved(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputCredentialsNew:
return UnmarshalInputCredentialsNew(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputCredentialsApplePay:
return UnmarshalInputCredentialsApplePay(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputCredentialsGooglePay:
return UnmarshalInputCredentialsGooglePay(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePaymentProviderSmartGlocal:
return UnmarshalPaymentProviderSmartGlocal(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePaymentProviderStripe:
return UnmarshalPaymentProviderStripe(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePaymentProviderOther:
return UnmarshalPaymentProviderOther(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePaymentOption:
return UnmarshalPaymentOption(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePaymentForm:
return UnmarshalPaymentForm(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeValidatedOrderInfo:
return UnmarshalValidatedOrderInfo(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePaymentResult:
return UnmarshalPaymentResult(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePaymentReceipt:
return UnmarshalPaymentReceipt(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInvoiceMessage:
return UnmarshalInputInvoiceMessage(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInvoiceName:
return UnmarshalInputInvoiceName(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInvoiceTelegram:
return UnmarshalInputInvoiceTelegram(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExtendedMediaPreview:
return UnmarshalMessageExtendedMediaPreview(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExtendedMediaPhoto:
return UnmarshalMessageExtendedMediaPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExtendedMediaVideo:
return UnmarshalMessageExtendedMediaVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExtendedMediaUnsupported:
return UnmarshalMessageExtendedMediaUnsupported(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumGiveawayParameters:
return UnmarshalPremiumGiveawayParameters(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDatedFile:
return UnmarshalDatedFile(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypePersonalDetails:
return UnmarshalPassportElementTypePersonalDetails(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypePassport:
return UnmarshalPassportElementTypePassport(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeDriverLicense:
return UnmarshalPassportElementTypeDriverLicense(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeIdentityCard:
return UnmarshalPassportElementTypeIdentityCard(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeInternalPassport:
return UnmarshalPassportElementTypeInternalPassport(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeAddress:
return UnmarshalPassportElementTypeAddress(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeUtilityBill:
return UnmarshalPassportElementTypeUtilityBill(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeBankStatement:
return UnmarshalPassportElementTypeBankStatement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeRentalAgreement:
return UnmarshalPassportElementTypeRentalAgreement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypePassportRegistration:
return UnmarshalPassportElementTypePassportRegistration(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeTemporaryRegistration:
return UnmarshalPassportElementTypeTemporaryRegistration(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypePhoneNumber:
return UnmarshalPassportElementTypePhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTypeEmailAddress:
return UnmarshalPassportElementTypeEmailAddress(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDate:
return UnmarshalDate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePersonalDetails:
return UnmarshalPersonalDetails(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeIdentityDocument:
return UnmarshalIdentityDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputIdentityDocument:
return UnmarshalInputIdentityDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePersonalDocument:
return UnmarshalPersonalDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPersonalDocument:
return UnmarshalInputPersonalDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementPersonalDetails:
return UnmarshalPassportElementPersonalDetails(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementPassport:
return UnmarshalPassportElementPassport(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementDriverLicense:
return UnmarshalPassportElementDriverLicense(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementIdentityCard:
return UnmarshalPassportElementIdentityCard(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePassportElementInternalPassport:
return UnmarshalPassportElementInternalPassport(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePassportElementAddress:
return UnmarshalPassportElementAddress(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePassportElementUtilityBill:
return UnmarshalPassportElementUtilityBill(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePassportElementBankStatement:
return UnmarshalPassportElementBankStatement(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePassportElementRentalAgreement:
return UnmarshalPassportElementRentalAgreement(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePassportElementPassportRegistration:
return UnmarshalPassportElementPassportRegistration(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePassportElementTemporaryRegistration:
return UnmarshalPassportElementTemporaryRegistration(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePassportElementPhoneNumber:
return UnmarshalPassportElementPhoneNumber(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePassportElementEmailAddress:
return UnmarshalPassportElementEmailAddress(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementPersonalDetails:
return UnmarshalInputPassportElementPersonalDetails(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementPassport:
return UnmarshalInputPassportElementPassport(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementDriverLicense:
return UnmarshalInputPassportElementDriverLicense(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementIdentityCard:
return UnmarshalInputPassportElementIdentityCard(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementInternalPassport:
return UnmarshalInputPassportElementInternalPassport(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementAddress:
return UnmarshalInputPassportElementAddress(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementUtilityBill:
return UnmarshalInputPassportElementUtilityBill(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementBankStatement:
return UnmarshalInputPassportElementBankStatement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementRentalAgreement:
return UnmarshalInputPassportElementRentalAgreement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementPassportRegistration:
return UnmarshalInputPassportElementPassportRegistration(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementTemporaryRegistration:
return UnmarshalInputPassportElementTemporaryRegistration(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementPhoneNumber:
return UnmarshalInputPassportElementPhoneNumber(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementEmailAddress:
return UnmarshalInputPassportElementEmailAddress(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElements:
return UnmarshalPassportElements(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceUnspecified:
return UnmarshalPassportElementErrorSourceUnspecified(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceDataField:
return UnmarshalPassportElementErrorSourceDataField(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceFrontSide:
return UnmarshalPassportElementErrorSourceFrontSide(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceReverseSide:
return UnmarshalPassportElementErrorSourceReverseSide(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceSelfie:
return UnmarshalPassportElementErrorSourceSelfie(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceTranslationFile:
return UnmarshalPassportElementErrorSourceTranslationFile(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceTranslationFiles:
return UnmarshalPassportElementErrorSourceTranslationFiles(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceFile:
return UnmarshalPassportElementErrorSourceFile(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementErrorSourceFiles:
return UnmarshalPassportElementErrorSourceFiles(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementError:
return UnmarshalPassportElementError(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportSuitableElement:
return UnmarshalPassportSuitableElement(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportRequiredElement:
return UnmarshalPassportRequiredElement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportAuthorizationForm:
return UnmarshalPassportAuthorizationForm(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePassportElementsWithErrors:
return UnmarshalPassportElementsWithErrors(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeEncryptedCredentials:
return UnmarshalEncryptedCredentials(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeEncryptedPassportElement:
return UnmarshalEncryptedPassportElement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceUnspecified:
return UnmarshalInputPassportElementErrorSourceUnspecified(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceDataField:
return UnmarshalInputPassportElementErrorSourceDataField(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceFrontSide:
return UnmarshalInputPassportElementErrorSourceFrontSide(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceReverseSide:
return UnmarshalInputPassportElementErrorSourceReverseSide(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceSelfie:
return UnmarshalInputPassportElementErrorSourceSelfie(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceTranslationFile:
return UnmarshalInputPassportElementErrorSourceTranslationFile(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceTranslationFiles:
return UnmarshalInputPassportElementErrorSourceTranslationFiles(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceFile:
return UnmarshalInputPassportElementErrorSourceFile(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementErrorSourceFiles:
return UnmarshalInputPassportElementErrorSourceFiles(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputPassportElementError:
return UnmarshalInputPassportElementError(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageText:
return UnmarshalMessageText(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageAnimation:
return UnmarshalMessageAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageAudio:
return UnmarshalMessageAudio(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageDocument:
return UnmarshalMessageDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePhoto:
return UnmarshalMessagePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSticker:
return UnmarshalMessageSticker(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageVideo:
return UnmarshalMessageVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageVideoNote:
return UnmarshalMessageVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageVoiceNote:
return UnmarshalMessageVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExpiredPhoto:
return UnmarshalMessageExpiredPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExpiredVideo:
return UnmarshalMessageExpiredVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExpiredVideoNote:
return UnmarshalMessageExpiredVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageExpiredVoiceNote:
return UnmarshalMessageExpiredVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageLocation:
return UnmarshalMessageLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageVenue:
return UnmarshalMessageVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageContact:
return UnmarshalMessageContact(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageAnimatedEmoji:
return UnmarshalMessageAnimatedEmoji(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageDice:
return UnmarshalMessageDice(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageGame:
return UnmarshalMessageGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePoll:
return UnmarshalMessagePoll(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageStory:
return UnmarshalMessageStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageInvoice:
return UnmarshalMessageInvoice(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageCall:
return UnmarshalMessageCall(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageVideoChatScheduled:
return UnmarshalMessageVideoChatScheduled(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeMessageVideoChatStarted:
return UnmarshalMessageVideoChatStarted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageVideoChatEnded:
return UnmarshalMessageVideoChatEnded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageInviteVideoChatParticipants:
return UnmarshalMessageInviteVideoChatParticipants(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageBasicGroupChatCreate:
return UnmarshalMessageBasicGroupChatCreate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSupergroupChatCreate:
return UnmarshalMessageSupergroupChatCreate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatChangeTitle:
return UnmarshalMessageChatChangeTitle(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatChangePhoto:
return UnmarshalMessageChatChangePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatDeletePhoto:
return UnmarshalMessageChatDeletePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatAddMembers:
return UnmarshalMessageChatAddMembers(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatJoinByLink:
return UnmarshalMessageChatJoinByLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatJoinByRequest:
return UnmarshalMessageChatJoinByRequest(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatDeleteMember:
return UnmarshalMessageChatDeleteMember(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatUpgradeTo:
return UnmarshalMessageChatUpgradeTo(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatUpgradeFrom:
return UnmarshalMessageChatUpgradeFrom(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePinMessage:
return UnmarshalMessagePinMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageScreenshotTaken:
return UnmarshalMessageScreenshotTaken(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatSetBackground:
return UnmarshalMessageChatSetBackground(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatSetTheme:
return UnmarshalMessageChatSetTheme(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatSetMessageAutoDeleteTime:
return UnmarshalMessageChatSetMessageAutoDeleteTime(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatBoost:
return UnmarshalMessageChatBoost(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageForumTopicCreated:
return UnmarshalMessageForumTopicCreated(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageForumTopicEdited:
return UnmarshalMessageForumTopicEdited(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageForumTopicIsClosedToggled:
return UnmarshalMessageForumTopicIsClosedToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageForumTopicIsHiddenToggled:
return UnmarshalMessageForumTopicIsHiddenToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSuggestProfilePhoto:
return UnmarshalMessageSuggestProfilePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageCustomServiceAction:
return UnmarshalMessageCustomServiceAction(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageGameScore:
return UnmarshalMessageGameScore(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePaymentSuccessful:
return UnmarshalMessagePaymentSuccessful(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeMessagePaymentSuccessfulBot:
return UnmarshalMessagePaymentSuccessfulBot(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageGiftedPremium:
return UnmarshalMessageGiftedPremium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePremiumGiftCode:
return UnmarshalMessagePremiumGiftCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePremiumGiveawayCreated:
return UnmarshalMessagePremiumGiveawayCreated(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePremiumGiveaway:
return UnmarshalMessagePremiumGiveaway(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePremiumGiveawayCompleted:
return UnmarshalMessagePremiumGiveawayCompleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePremiumGiveawayWinners:
return UnmarshalMessagePremiumGiveawayWinners(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageContactRegistered:
return UnmarshalMessageContactRegistered(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageUsersShared:
return UnmarshalMessageUsersShared(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageChatShared:
return UnmarshalMessageChatShared(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageBotWriteAccessAllowed:
return UnmarshalMessageBotWriteAccessAllowed(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageWebAppDataSent:
return UnmarshalMessageWebAppDataSent(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageWebAppDataReceived:
return UnmarshalMessageWebAppDataReceived(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePassportDataSent:
return UnmarshalMessagePassportDataSent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessagePassportDataReceived:
return UnmarshalMessagePassportDataReceived(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageProximityAlertTriggered:
return UnmarshalMessageProximityAlertTriggered(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageUnsupported:
return UnmarshalMessageUnsupported(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeMention:
return UnmarshalTextEntityTypeMention(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeHashtag:
return UnmarshalTextEntityTypeHashtag(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeCashtag:
return UnmarshalTextEntityTypeCashtag(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeBotCommand:
return UnmarshalTextEntityTypeBotCommand(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeUrl:
return UnmarshalTextEntityTypeUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeEmailAddress:
return UnmarshalTextEntityTypeEmailAddress(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypePhoneNumber:
return UnmarshalTextEntityTypePhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeBankCardNumber:
return UnmarshalTextEntityTypeBankCardNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeBold:
return UnmarshalTextEntityTypeBold(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeItalic:
return UnmarshalTextEntityTypeItalic(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeUnderline:
return UnmarshalTextEntityTypeUnderline(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeStrikethrough:
return UnmarshalTextEntityTypeStrikethrough(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeSpoiler:
return UnmarshalTextEntityTypeSpoiler(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeCode:
return UnmarshalTextEntityTypeCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypePre:
return UnmarshalTextEntityTypePre(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypePreCode:
return UnmarshalTextEntityTypePreCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeBlockQuote:
return UnmarshalTextEntityTypeBlockQuote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeTextUrl:
return UnmarshalTextEntityTypeTextUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeMentionName:
return UnmarshalTextEntityTypeMentionName(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeCustomEmoji:
return UnmarshalTextEntityTypeCustomEmoji(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextEntityTypeMediaTimestamp:
return UnmarshalTextEntityTypeMediaTimestamp(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputThumbnail:
return UnmarshalInputThumbnail(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSchedulingStateSendAtDate:
return UnmarshalMessageSchedulingStateSendAtDate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSchedulingStateSendWhenOnline:
return UnmarshalMessageSchedulingStateSendWhenOnline(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSelfDestructTypeTimer:
return UnmarshalMessageSelfDestructTypeTimer(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSelfDestructTypeImmediately:
return UnmarshalMessageSelfDestructTypeImmediately(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageSendOptions:
return UnmarshalMessageSendOptions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageCopyOptions:
return UnmarshalMessageCopyOptions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageText:
return UnmarshalInputMessageText(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageAnimation:
return UnmarshalInputMessageAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageAudio:
return UnmarshalInputMessageAudio(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageDocument:
return UnmarshalInputMessageDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessagePhoto:
return UnmarshalInputMessagePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageSticker:
return UnmarshalInputMessageSticker(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageVideo:
return UnmarshalInputMessageVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageVideoNote:
return UnmarshalInputMessageVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageVoiceNote:
return UnmarshalInputMessageVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageLocation:
return UnmarshalInputMessageLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageVenue:
return UnmarshalInputMessageVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageContact:
return UnmarshalInputMessageContact(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageDice:
return UnmarshalInputMessageDice(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageGame:
return UnmarshalInputMessageGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageInvoice:
return UnmarshalInputMessageInvoice(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessagePoll:
return UnmarshalInputMessagePoll(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageStory:
return UnmarshalInputMessageStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputMessageForwarded:
return UnmarshalInputMessageForwarded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterEmpty:
return UnmarshalSearchMessagesFilterEmpty(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterAnimation:
return UnmarshalSearchMessagesFilterAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterAudio:
return UnmarshalSearchMessagesFilterAudio(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterDocument:
return UnmarshalSearchMessagesFilterDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterPhoto:
return UnmarshalSearchMessagesFilterPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterVideo:
return UnmarshalSearchMessagesFilterVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterVoiceNote:
return UnmarshalSearchMessagesFilterVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterPhotoAndVideo:
return UnmarshalSearchMessagesFilterPhotoAndVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterUrl:
return UnmarshalSearchMessagesFilterUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterChatPhoto:
return UnmarshalSearchMessagesFilterChatPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterVideoNote:
return UnmarshalSearchMessagesFilterVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterVoiceAndVideoNote:
return UnmarshalSearchMessagesFilterVoiceAndVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterMention:
return UnmarshalSearchMessagesFilterMention(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterUnreadMention:
return UnmarshalSearchMessagesFilterUnreadMention(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterUnreadReaction:
return UnmarshalSearchMessagesFilterUnreadReaction(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterFailedToSend:
return UnmarshalSearchMessagesFilterFailedToSend(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSearchMessagesFilterPinned:
return UnmarshalSearchMessagesFilterPinned(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionTyping:
return UnmarshalChatActionTyping(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionRecordingVideo:
return UnmarshalChatActionRecordingVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionUploadingVideo:
return UnmarshalChatActionUploadingVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionRecordingVoiceNote:
return UnmarshalChatActionRecordingVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionUploadingVoiceNote:
return UnmarshalChatActionUploadingVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionUploadingPhoto:
return UnmarshalChatActionUploadingPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionUploadingDocument:
return UnmarshalChatActionUploadingDocument(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeChatActionChoosingSticker:
return UnmarshalChatActionChoosingSticker(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionChoosingLocation:
return UnmarshalChatActionChoosingLocation(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionChoosingContact:
return UnmarshalChatActionChoosingContact(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionStartPlayingGame:
return UnmarshalChatActionStartPlayingGame(data)
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionRecordingVideoNote:
return UnmarshalChatActionRecordingVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionUploadingVideoNote:
return UnmarshalChatActionUploadingVideoNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionWatchingAnimations:
return UnmarshalChatActionWatchingAnimations(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActionCancel:
return UnmarshalChatActionCancel(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserStatusEmpty:
return UnmarshalUserStatusEmpty(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserStatusOnline:
return UnmarshalUserStatusOnline(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserStatusOffline:
return UnmarshalUserStatusOffline(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserStatusRecently:
return UnmarshalUserStatusRecently(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserStatusLastWeek:
return UnmarshalUserStatusLastWeek(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserStatusLastMonth:
return UnmarshalUserStatusLastMonth(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmojiKeyword:
return UnmarshalEmojiKeyword(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmojiKeywords:
return UnmarshalEmojiKeywords(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStickers:
return UnmarshalStickers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmojis:
return UnmarshalEmojis(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStickerSet:
return UnmarshalStickerSet(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStickerSetInfo:
return UnmarshalStickerSetInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStickerSets:
return UnmarshalStickerSets(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTrendingStickerSets:
return UnmarshalTrendingStickerSets(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmojiCategory:
return UnmarshalEmojiCategory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmojiCategories:
return UnmarshalEmojiCategories(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmojiCategoryTypeDefault:
return UnmarshalEmojiCategoryTypeDefault(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmojiCategoryTypeEmojiStatus:
return UnmarshalEmojiCategoryTypeEmojiStatus(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmojiCategoryTypeChatPhoto:
return UnmarshalEmojiCategoryTypeChatPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryAreaPosition:
return UnmarshalStoryAreaPosition(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryAreaTypeLocation:
return UnmarshalStoryAreaTypeLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryAreaTypeVenue:
return UnmarshalStoryAreaTypeVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryAreaTypeSuggestedReaction:
return UnmarshalStoryAreaTypeSuggestedReaction(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryAreaTypeMessage:
return UnmarshalStoryAreaTypeMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryArea:
return UnmarshalStoryArea(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryAreaTypeLocation:
return UnmarshalInputStoryAreaTypeLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryAreaTypeFoundVenue:
return UnmarshalInputStoryAreaTypeFoundVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryAreaTypePreviousVenue:
return UnmarshalInputStoryAreaTypePreviousVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryAreaTypeSuggestedReaction:
return UnmarshalInputStoryAreaTypeSuggestedReaction(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryAreaTypeMessage:
return UnmarshalInputStoryAreaTypeMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryArea:
return UnmarshalInputStoryArea(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryAreas:
return UnmarshalInputStoryAreas(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryVideo:
return UnmarshalStoryVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryContentPhoto:
return UnmarshalStoryContentPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryContentVideo:
return UnmarshalStoryContentVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryContentUnsupported:
return UnmarshalStoryContentUnsupported(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryContentPhoto:
return UnmarshalInputStoryContentPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputStoryContentVideo:
return UnmarshalInputStoryContentVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryListMain:
return UnmarshalStoryListMain(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryListArchive:
return UnmarshalStoryListArchive(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryOriginPublicStory:
return UnmarshalStoryOriginPublicStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryOriginHiddenUser:
return UnmarshalStoryOriginHiddenUser(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryRepostInfo:
return UnmarshalStoryRepostInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryInteractionInfo:
return UnmarshalStoryInteractionInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStory:
return UnmarshalStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStories:
return UnmarshalStories(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryFullId:
return UnmarshalStoryFullId(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryInfo:
return UnmarshalStoryInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatActiveStories:
return UnmarshalChatActiveStories(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryInteractionTypeView:
return UnmarshalStoryInteractionTypeView(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryInteractionTypeForward:
return UnmarshalStoryInteractionTypeForward(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryInteractionTypeRepost:
return UnmarshalStoryInteractionTypeRepost(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryInteraction:
return UnmarshalStoryInteraction(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryInteractions:
return UnmarshalStoryInteractions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeQuickReplyMessage:
return UnmarshalQuickReplyMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeQuickReplyShortcut:
return UnmarshalQuickReplyShortcut(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePublicForwardMessage:
return UnmarshalPublicForwardMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePublicForwardStory:
return UnmarshalPublicForwardStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePublicForwards:
return UnmarshalPublicForwards(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoostLevelFeatures:
return UnmarshalChatBoostLevelFeatures(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoostFeatures:
return UnmarshalChatBoostFeatures(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoostSourceGiftCode:
return UnmarshalChatBoostSourceGiftCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoostSourceGiveaway:
return UnmarshalChatBoostSourceGiveaway(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoostSourcePremium:
return UnmarshalChatBoostSourcePremium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePrepaidPremiumGiveaway:
return UnmarshalPrepaidPremiumGiveaway(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoostStatus:
return UnmarshalChatBoostStatus(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoost:
return UnmarshalChatBoost(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFoundChatBoosts:
return UnmarshalFoundChatBoosts(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoostSlot:
return UnmarshalChatBoostSlot(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoostSlots:
return UnmarshalChatBoostSlots(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallDiscardReasonEmpty:
return UnmarshalCallDiscardReasonEmpty(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallDiscardReasonMissed:
return UnmarshalCallDiscardReasonMissed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallDiscardReasonDeclined:
return UnmarshalCallDiscardReasonDeclined(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallDiscardReasonDisconnected:
return UnmarshalCallDiscardReasonDisconnected(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallDiscardReasonHungUp:
return UnmarshalCallDiscardReasonHungUp(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProtocol:
return UnmarshalCallProtocol(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallServerTypeTelegramReflector:
return UnmarshalCallServerTypeTelegramReflector(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallServerTypeWebrtc:
return UnmarshalCallServerTypeWebrtc(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallServer:
return UnmarshalCallServer(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallId:
return UnmarshalCallId(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGroupCallId:
return UnmarshalGroupCallId(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallStatePending:
return UnmarshalCallStatePending(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallStateExchangingKeys:
return UnmarshalCallStateExchangingKeys(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallStateReady:
return UnmarshalCallStateReady(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallStateHangingUp:
return UnmarshalCallStateHangingUp(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallStateDiscarded:
return UnmarshalCallStateDiscarded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallStateError:
return UnmarshalCallStateError(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGroupCallVideoQualityThumbnail:
return UnmarshalGroupCallVideoQualityThumbnail(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGroupCallVideoQualityMedium:
return UnmarshalGroupCallVideoQualityMedium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGroupCallVideoQualityFull:
return UnmarshalGroupCallVideoQualityFull(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGroupCallStream:
return UnmarshalGroupCallStream(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGroupCallStreams:
return UnmarshalGroupCallStreams(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeRtmpUrl:
return UnmarshalRtmpUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGroupCallRecentSpeaker:
return UnmarshalGroupCallRecentSpeaker(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeGroupCall:
return UnmarshalGroupCall(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGroupCallVideoSourceGroup:
return UnmarshalGroupCallVideoSourceGroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGroupCallParticipantVideoInfo:
return UnmarshalGroupCallParticipantVideoInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGroupCallParticipant:
return UnmarshalGroupCallParticipant(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemEcho:
return UnmarshalCallProblemEcho(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemNoise:
return UnmarshalCallProblemNoise(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemInterruptions:
return UnmarshalCallProblemInterruptions(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemDistortedSpeech:
return UnmarshalCallProblemDistortedSpeech(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemSilentLocal:
return UnmarshalCallProblemSilentLocal(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemSilentRemote:
return UnmarshalCallProblemSilentRemote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemDropped:
return UnmarshalCallProblemDropped(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemDistortedVideo:
return UnmarshalCallProblemDistortedVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallProblemPixelatedVideo:
return UnmarshalCallProblemPixelatedVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCall:
return UnmarshalCall(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFirebaseAuthenticationSettingsAndroid:
return UnmarshalFirebaseAuthenticationSettingsAndroid(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFirebaseAuthenticationSettingsIos:
return UnmarshalFirebaseAuthenticationSettingsIos(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePhoneNumberAuthenticationSettings:
return UnmarshalPhoneNumberAuthenticationSettings(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeAddedReaction:
return UnmarshalAddedReaction(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAddedReactions:
return UnmarshalAddedReactions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAvailableReaction:
return UnmarshalAvailableReaction(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAvailableReactions:
return UnmarshalAvailableReactions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeEmojiReaction:
return UnmarshalEmojiReaction(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReactionUnavailabilityReasonAnonymousAdministrator:
return UnmarshalReactionUnavailabilityReasonAnonymousAdministrator(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeReactionUnavailabilityReasonGuest:
return UnmarshalReactionUnavailabilityReasonGuest(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeAnimations:
return UnmarshalAnimations(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeDiceStickersRegular:
return UnmarshalDiceStickersRegular(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeDiceStickersSlotMachine:
return UnmarshalDiceStickersSlotMachine(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeImportedContacts:
return UnmarshalImportedContacts(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeSpeechRecognitionResultPending:
return UnmarshalSpeechRecognitionResultPending(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSpeechRecognitionResultText:
return UnmarshalSpeechRecognitionResultText(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSpeechRecognitionResultError:
return UnmarshalSpeechRecognitionResultError(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessConnection:
return UnmarshalBusinessConnection(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAttachmentMenuBotColor:
return UnmarshalAttachmentMenuBotColor(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAttachmentMenuBot:
return UnmarshalAttachmentMenuBot(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeSentWebAppMessage:
return UnmarshalSentWebAppMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotWriteAccessAllowReasonConnectedWebsite:
return UnmarshalBotWriteAccessAllowReasonConnectedWebsite(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotWriteAccessAllowReasonAddedToAttachmentMenu:
return UnmarshalBotWriteAccessAllowReasonAddedToAttachmentMenu(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotWriteAccessAllowReasonLaunchedWebApp:
return UnmarshalBotWriteAccessAllowReasonLaunchedWebApp(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotWriteAccessAllowReasonAcceptedRequest:
return UnmarshalBotWriteAccessAllowReasonAcceptedRequest(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeHttpUrl:
return UnmarshalHttpUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserLink:
return UnmarshalUserLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultAnimation:
return UnmarshalInputInlineQueryResultAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultArticle:
return UnmarshalInputInlineQueryResultArticle(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultAudio:
return UnmarshalInputInlineQueryResultAudio(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultContact:
return UnmarshalInputInlineQueryResultContact(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultDocument:
return UnmarshalInputInlineQueryResultDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultGame:
return UnmarshalInputInlineQueryResultGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultLocation:
return UnmarshalInputInlineQueryResultLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultPhoto:
return UnmarshalInputInlineQueryResultPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultSticker:
return UnmarshalInputInlineQueryResultSticker(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultVenue:
return UnmarshalInputInlineQueryResultVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultVideo:
return UnmarshalInputInlineQueryResultVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputInlineQueryResultVoiceNote:
return UnmarshalInputInlineQueryResultVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultArticle:
return UnmarshalInlineQueryResultArticle(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultContact:
return UnmarshalInlineQueryResultContact(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultLocation:
return UnmarshalInlineQueryResultLocation(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultVenue:
return UnmarshalInlineQueryResultVenue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultGame:
return UnmarshalInlineQueryResultGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultAnimation:
return UnmarshalInlineQueryResultAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultAudio:
return UnmarshalInlineQueryResultAudio(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultDocument:
return UnmarshalInlineQueryResultDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultPhoto:
return UnmarshalInlineQueryResultPhoto(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultSticker:
return UnmarshalInlineQueryResultSticker(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultVideo:
return UnmarshalInlineQueryResultVideo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultVoiceNote:
return UnmarshalInlineQueryResultVoiceNote(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultsButtonTypeStartBot:
return UnmarshalInlineQueryResultsButtonTypeStartBot(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultsButtonTypeWebApp:
return UnmarshalInlineQueryResultsButtonTypeWebApp(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResultsButton:
return UnmarshalInlineQueryResultsButton(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInlineQueryResults:
return UnmarshalInlineQueryResults(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallbackQueryPayloadData:
return UnmarshalCallbackQueryPayloadData(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallbackQueryPayloadDataWithPassword:
return UnmarshalCallbackQueryPayloadDataWithPassword(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallbackQueryPayloadGame:
return UnmarshalCallbackQueryPayloadGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCallbackQueryAnswer:
return UnmarshalCallbackQueryAnswer(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCustomRequestResult:
return UnmarshalCustomRequestResult(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGameHighScore:
return UnmarshalGameHighScore(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeGameHighScores:
return UnmarshalGameHighScores(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMessageEdited:
return UnmarshalChatEventMessageEdited(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMessageDeleted:
return UnmarshalChatEventMessageDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMessagePinned:
return UnmarshalChatEventMessagePinned(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMessageUnpinned:
return UnmarshalChatEventMessageUnpinned(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventPollStopped:
return UnmarshalChatEventPollStopped(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberJoined:
return UnmarshalChatEventMemberJoined(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberJoinedByInviteLink:
return UnmarshalChatEventMemberJoinedByInviteLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberJoinedByRequest:
return UnmarshalChatEventMemberJoinedByRequest(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberInvited:
return UnmarshalChatEventMemberInvited(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberLeft:
return UnmarshalChatEventMemberLeft(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberPromoted:
return UnmarshalChatEventMemberPromoted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMemberRestricted:
return UnmarshalChatEventMemberRestricted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventAvailableReactionsChanged:
return UnmarshalChatEventAvailableReactionsChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventBackgroundChanged:
return UnmarshalChatEventBackgroundChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventDescriptionChanged:
return UnmarshalChatEventDescriptionChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventEmojiStatusChanged:
return UnmarshalChatEventEmojiStatusChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventLinkedChatChanged:
return UnmarshalChatEventLinkedChatChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventLocationChanged:
return UnmarshalChatEventLocationChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventMessageAutoDeleteTimeChanged:
return UnmarshalChatEventMessageAutoDeleteTimeChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventPermissionsChanged:
return UnmarshalChatEventPermissionsChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventPhotoChanged:
return UnmarshalChatEventPhotoChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventSlowModeDelayChanged:
return UnmarshalChatEventSlowModeDelayChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventStickerSetChanged:
return UnmarshalChatEventStickerSetChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventCustomEmojiStickerSetChanged:
return UnmarshalChatEventCustomEmojiStickerSetChanged(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventTitleChanged:
return UnmarshalChatEventTitleChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventUsernameChanged:
return UnmarshalChatEventUsernameChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventActiveUsernamesChanged:
return UnmarshalChatEventActiveUsernamesChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventAccentColorChanged:
return UnmarshalChatEventAccentColorChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventProfileAccentColorChanged:
return UnmarshalChatEventProfileAccentColorChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventHasProtectedContentToggled:
return UnmarshalChatEventHasProtectedContentToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventInvitesToggled:
return UnmarshalChatEventInvitesToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventIsAllHistoryAvailableToggled:
return UnmarshalChatEventIsAllHistoryAvailableToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventHasAggressiveAntiSpamEnabledToggled:
return UnmarshalChatEventHasAggressiveAntiSpamEnabledToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventSignMessagesToggled:
return UnmarshalChatEventSignMessagesToggled(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeChatEventInviteLinkEdited:
return UnmarshalChatEventInviteLinkEdited(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventInviteLinkRevoked:
return UnmarshalChatEventInviteLinkRevoked(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventInviteLinkDeleted:
return UnmarshalChatEventInviteLinkDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventVideoChatCreated:
return UnmarshalChatEventVideoChatCreated(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventVideoChatEnded:
return UnmarshalChatEventVideoChatEnded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventVideoChatMuteNewParticipantsToggled:
return UnmarshalChatEventVideoChatMuteNewParticipantsToggled(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeChatEventVideoChatParticipantIsMutedToggled:
return UnmarshalChatEventVideoChatParticipantIsMutedToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventVideoChatParticipantVolumeLevelChanged:
return UnmarshalChatEventVideoChatParticipantVolumeLevelChanged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventIsForumToggled:
return UnmarshalChatEventIsForumToggled(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventForumTopicCreated:
return UnmarshalChatEventForumTopicCreated(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventForumTopicEdited:
return UnmarshalChatEventForumTopicEdited(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventForumTopicToggleIsClosed:
return UnmarshalChatEventForumTopicToggleIsClosed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventForumTopicToggleIsHidden:
return UnmarshalChatEventForumTopicToggleIsHidden(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventForumTopicDeleted:
return UnmarshalChatEventForumTopicDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventForumTopicPinned:
return UnmarshalChatEventForumTopicPinned(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEvent:
return UnmarshalChatEvent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEvents:
return UnmarshalChatEvents(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatEventLogFilters:
return UnmarshalChatEventLogFilters(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLanguagePackStringValueOrdinary:
return UnmarshalLanguagePackStringValueOrdinary(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeLanguagePackStringValuePluralized:
return UnmarshalLanguagePackStringValuePluralized(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLanguagePackStringValueDeleted:
return UnmarshalLanguagePackStringValueDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLanguagePackString:
return UnmarshalLanguagePackString(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLanguagePackStrings:
return UnmarshalLanguagePackStrings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLanguagePackInfo:
return UnmarshalLanguagePackInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLocalizationTargetInfo:
return UnmarshalLocalizationTargetInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeSupergroupCount:
return UnmarshalPremiumLimitTypeSupergroupCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypePinnedChatCount:
return UnmarshalPremiumLimitTypePinnedChatCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeCreatedPublicChatCount:
return UnmarshalPremiumLimitTypeCreatedPublicChatCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeSavedAnimationCount:
return UnmarshalPremiumLimitTypeSavedAnimationCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeFavoriteStickerCount:
return UnmarshalPremiumLimitTypeFavoriteStickerCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeChatFolderCount:
return UnmarshalPremiumLimitTypeChatFolderCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeChatFolderChosenChatCount:
return UnmarshalPremiumLimitTypeChatFolderChosenChatCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypePinnedArchivedChatCount:
return UnmarshalPremiumLimitTypePinnedArchivedChatCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypePinnedSavedMessagesTopicCount:
return UnmarshalPremiumLimitTypePinnedSavedMessagesTopicCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeCaptionLength:
return UnmarshalPremiumLimitTypeCaptionLength(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeBioLength:
return UnmarshalPremiumLimitTypeBioLength(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeChatFolderInviteLinkCount:
return UnmarshalPremiumLimitTypeChatFolderInviteLinkCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeShareableChatFolderCount:
return UnmarshalPremiumLimitTypeShareableChatFolderCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeActiveStoryCount:
return UnmarshalPremiumLimitTypeActiveStoryCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeWeeklySentStoryCount:
return UnmarshalPremiumLimitTypeWeeklySentStoryCount(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeMonthlySentStoryCount:
return UnmarshalPremiumLimitTypeMonthlySentStoryCount(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeStoryCaptionLength:
return UnmarshalPremiumLimitTypeStoryCaptionLength(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeStorySuggestedReactionAreaCount:
return UnmarshalPremiumLimitTypeStorySuggestedReactionAreaCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimitTypeSimilarChatCount:
return UnmarshalPremiumLimitTypeSimilarChatCount(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureIncreasedLimits:
return UnmarshalPremiumFeatureIncreasedLimits(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureIncreasedUploadFileSize:
return UnmarshalPremiumFeatureIncreasedUploadFileSize(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureImprovedDownloadSpeed:
return UnmarshalPremiumFeatureImprovedDownloadSpeed(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureVoiceRecognition:
return UnmarshalPremiumFeatureVoiceRecognition(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureDisabledAds:
return UnmarshalPremiumFeatureDisabledAds(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureUniqueReactions:
return UnmarshalPremiumFeatureUniqueReactions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureUniqueStickers:
return UnmarshalPremiumFeatureUniqueStickers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureCustomEmoji:
return UnmarshalPremiumFeatureCustomEmoji(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureAdvancedChatManagement:
return UnmarshalPremiumFeatureAdvancedChatManagement(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureProfileBadge:
return UnmarshalPremiumFeatureProfileBadge(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureEmojiStatus:
return UnmarshalPremiumFeatureEmojiStatus(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureAnimatedProfilePhoto:
return UnmarshalPremiumFeatureAnimatedProfilePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureForumTopicIcon:
return UnmarshalPremiumFeatureForumTopicIcon(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureAppIcons:
return UnmarshalPremiumFeatureAppIcons(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureRealTimeChatTranslation:
return UnmarshalPremiumFeatureRealTimeChatTranslation(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureUpgradedStories:
return UnmarshalPremiumFeatureUpgradedStories(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureChatBoost:
return UnmarshalPremiumFeatureChatBoost(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureAccentColor:
return UnmarshalPremiumFeatureAccentColor(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureBackgroundForBoth:
return UnmarshalPremiumFeatureBackgroundForBoth(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureSavedMessagesTags:
return UnmarshalPremiumFeatureSavedMessagesTags(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureMessagePrivacy:
return UnmarshalPremiumFeatureMessagePrivacy(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureLastSeenTimes:
return UnmarshalPremiumFeatureLastSeenTimes(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatureBusiness:
return UnmarshalPremiumFeatureBusiness(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureLocation:
return UnmarshalBusinessFeatureLocation(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureOpeningHours:
return UnmarshalBusinessFeatureOpeningHours(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureQuickReplies:
return UnmarshalBusinessFeatureQuickReplies(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureGreetingMessage:
return UnmarshalBusinessFeatureGreetingMessage(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureAwayMessage:
return UnmarshalBusinessFeatureAwayMessage(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureAccountLinks:
return UnmarshalBusinessFeatureAccountLinks(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureIntro:
return UnmarshalBusinessFeatureIntro(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureBots:
return UnmarshalBusinessFeatureBots(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureEmojiStatus:
return UnmarshalBusinessFeatureEmojiStatus(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureChatFolderTags:
return UnmarshalBusinessFeatureChatFolderTags(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatureUpgradedStories:
return UnmarshalBusinessFeatureUpgradedStories(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeaturePriorityOrder:
return UnmarshalPremiumStoryFeaturePriorityOrder(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeatureStealthMode:
return UnmarshalPremiumStoryFeatureStealthMode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeaturePermanentViewsHistory:
return UnmarshalPremiumStoryFeaturePermanentViewsHistory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeatureCustomExpirationDuration:
return UnmarshalPremiumStoryFeatureCustomExpirationDuration(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeatureSaveStories:
return UnmarshalPremiumStoryFeatureSaveStories(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeatureLinksAndFormatting:
return UnmarshalPremiumStoryFeatureLinksAndFormatting(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumStoryFeatureVideoQuality:
return UnmarshalPremiumStoryFeatureVideoQuality(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumLimit:
return UnmarshalPremiumLimit(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeatures:
return UnmarshalPremiumFeatures(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeatures:
return UnmarshalBusinessFeatures(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumSourceLimitExceeded:
return UnmarshalPremiumSourceLimitExceeded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumSourceFeature:
return UnmarshalPremiumSourceFeature(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumSourceBusinessFeature:
return UnmarshalPremiumSourceBusinessFeature(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumSourceStoryFeature:
return UnmarshalPremiumSourceStoryFeature(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumSourceLink:
return UnmarshalPremiumSourceLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumSourceSettings:
return UnmarshalPremiumSourceSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumFeaturePromotionAnimation:
return UnmarshalPremiumFeaturePromotionAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBusinessFeaturePromotionAnimation:
return UnmarshalBusinessFeaturePromotionAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePremiumState:
return UnmarshalPremiumState(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStorePaymentPurposePremiumSubscription:
return UnmarshalStorePaymentPurposePremiumSubscription(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStorePaymentPurposeGiftedPremium:
return UnmarshalStorePaymentPurposeGiftedPremium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStorePaymentPurposePremiumGiftCodes:
return UnmarshalStorePaymentPurposePremiumGiftCodes(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStorePaymentPurposePremiumGiveaway:
return UnmarshalStorePaymentPurposePremiumGiveaway(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTelegramPaymentPurposePremiumGiftCodes:
return UnmarshalTelegramPaymentPurposePremiumGiftCodes(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTelegramPaymentPurposePremiumGiveaway:
return UnmarshalTelegramPaymentPurposePremiumGiveaway(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case Type//-To:
return Unmarshal//-To(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenFirebaseCloudMessaging:
return UnmarshalDeviceTokenFirebaseCloudMessaging(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenApplePush:
return UnmarshalDeviceTokenApplePush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenApplePushVoIP:
return UnmarshalDeviceTokenApplePushVoIP(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenWindowsPush:
return UnmarshalDeviceTokenWindowsPush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenMicrosoftPush:
return UnmarshalDeviceTokenMicrosoftPush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenMicrosoftPushVoIP:
return UnmarshalDeviceTokenMicrosoftPushVoIP(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenWebPush:
return UnmarshalDeviceTokenWebPush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenSimplePush:
return UnmarshalDeviceTokenSimplePush(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenUbuntuPush:
return UnmarshalDeviceTokenUbuntuPush(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenBlackBerryPush:
return UnmarshalDeviceTokenBlackBerryPush(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenTizenPush:
return UnmarshalDeviceTokenTizenPush(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeDeviceTokenHuaweiPush:
return UnmarshalDeviceTokenHuaweiPush(data)
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
case TypePushReceiverId:
return UnmarshalPushReceiverId(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBackgroundFillSolid:
return UnmarshalBackgroundFillSolid(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBackgroundFillGradient:
return UnmarshalBackgroundFillGradient(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBackgroundFillFreeformGradient:
return UnmarshalBackgroundFillFreeformGradient(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBackgroundTypeWallpaper:
return UnmarshalBackgroundTypeWallpaper(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBackgroundTypePattern:
return UnmarshalBackgroundTypePattern(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeBackgroundTypeFill:
return UnmarshalBackgroundTypeFill(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBackgroundTypeChatTheme:
return UnmarshalBackgroundTypeChatTheme(data)
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputBackgroundLocal:
return UnmarshalInputBackgroundLocal(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputBackgroundRemote:
return UnmarshalInputBackgroundRemote(data)
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputBackgroundPrevious:
return UnmarshalInputBackgroundPrevious(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeThemeSettings:
return UnmarshalThemeSettings(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatTheme:
return UnmarshalChatTheme(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeTimeZone:
return UnmarshalTimeZone(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeTimeZones:
return UnmarshalTimeZones(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeHashtags:
return UnmarshalHashtags(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCanSendStoryResultOk:
return UnmarshalCanSendStoryResultOk(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanSendStoryResultPremiumNeeded:
return UnmarshalCanSendStoryResultPremiumNeeded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanSendStoryResultBoostNeeded:
return UnmarshalCanSendStoryResultBoostNeeded(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanSendStoryResultActiveStoryLimitExceeded:
return UnmarshalCanSendStoryResultActiveStoryLimitExceeded(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanSendStoryResultWeeklyLimitExceeded:
return UnmarshalCanSendStoryResultWeeklyLimitExceeded(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCanSendStoryResultMonthlyLimitExceeded:
return UnmarshalCanSendStoryResultMonthlyLimitExceeded(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCanTransferOwnershipResultOk:
return UnmarshalCanTransferOwnershipResultOk(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCanTransferOwnershipResultPasswordNeeded:
return UnmarshalCanTransferOwnershipResultPasswordNeeded(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCanTransferOwnershipResultPasswordTooFresh:
return UnmarshalCanTransferOwnershipResultPasswordTooFresh(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanTransferOwnershipResultSessionTooFresh:
return UnmarshalCanTransferOwnershipResultSessionTooFresh(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCheckChatUsernameResultOk:
return UnmarshalCheckChatUsernameResultOk(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCheckChatUsernameResultUsernameInvalid:
return UnmarshalCheckChatUsernameResultUsernameInvalid(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeCheckChatUsernameResultUsernameOccupied:
return UnmarshalCheckChatUsernameResultUsernameOccupied(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCheckChatUsernameResultUsernamePurchasable:
return UnmarshalCheckChatUsernameResultUsernamePurchasable(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCheckChatUsernameResultPublicChatsTooMany:
return UnmarshalCheckChatUsernameResultPublicChatsTooMany(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCheckChatUsernameResultPublicGroupsUnavailable:
return UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCheckStickerSetNameResultOk:
return UnmarshalCheckStickerSetNameResultOk(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCheckStickerSetNameResultNameInvalid:
return UnmarshalCheckStickerSetNameResultNameInvalid(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeCheckStickerSetNameResultNameOccupied:
return UnmarshalCheckStickerSetNameResultNameOccupied(data)
2023-06-04 22:53:18 +02:00
2024-10-06 19:09:53 +02:00
case TypeResetPasswordResultOk:
return UnmarshalResetPasswordResultOk(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeResetPasswordResultPending:
return UnmarshalResetPasswordResultPending(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeResetPasswordResultDeclined:
return UnmarshalResetPasswordResultDeclined(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageFileTypePrivate:
return UnmarshalMessageFileTypePrivate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageFileTypeGroup:
return UnmarshalMessageFileTypeGroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageFileTypeUnknown:
return UnmarshalMessageFileTypeUnknown(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentHidden:
return UnmarshalPushMessageContentHidden(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentAnimation:
return UnmarshalPushMessageContentAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentAudio:
return UnmarshalPushMessageContentAudio(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentContact:
return UnmarshalPushMessageContentContact(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentContactRegistered:
return UnmarshalPushMessageContentContactRegistered(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentDocument:
return UnmarshalPushMessageContentDocument(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentGame:
return UnmarshalPushMessageContentGame(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentGameScore:
return UnmarshalPushMessageContentGameScore(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentInvoice:
return UnmarshalPushMessageContentInvoice(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentLocation:
return UnmarshalPushMessageContentLocation(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentPhoto:
return UnmarshalPushMessageContentPhoto(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentPoll:
return UnmarshalPushMessageContentPoll(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentPremiumGiftCode:
return UnmarshalPushMessageContentPremiumGiftCode(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentPremiumGiveaway:
return UnmarshalPushMessageContentPremiumGiveaway(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentScreenshotTaken:
return UnmarshalPushMessageContentScreenshotTaken(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentSticker:
return UnmarshalPushMessageContentSticker(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentStory:
return UnmarshalPushMessageContentStory(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentText:
return UnmarshalPushMessageContentText(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentVideo:
return UnmarshalPushMessageContentVideo(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentVideoNote:
return UnmarshalPushMessageContentVideoNote(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentVoiceNote:
return UnmarshalPushMessageContentVoiceNote(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentBasicGroupChatCreate:
return UnmarshalPushMessageContentBasicGroupChatCreate(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatAddMembers:
return UnmarshalPushMessageContentChatAddMembers(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatChangePhoto:
return UnmarshalPushMessageContentChatChangePhoto(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatChangeTitle:
return UnmarshalPushMessageContentChatChangeTitle(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatSetBackground:
return UnmarshalPushMessageContentChatSetBackground(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatSetTheme:
return UnmarshalPushMessageContentChatSetTheme(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatDeleteMember:
return UnmarshalPushMessageContentChatDeleteMember(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatJoinByLink:
return UnmarshalPushMessageContentChatJoinByLink(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentChatJoinByRequest:
return UnmarshalPushMessageContentChatJoinByRequest(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentRecurringPayment:
return UnmarshalPushMessageContentRecurringPayment(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentSuggestProfilePhoto:
return UnmarshalPushMessageContentSuggestProfilePhoto(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentMessageForwards:
return UnmarshalPushMessageContentMessageForwards(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypePushMessageContentMediaAlbum:
return UnmarshalPushMessageContentMediaAlbum(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationTypeNewMessage:
return UnmarshalNotificationTypeNewMessage(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationTypeNewSecretChat:
return UnmarshalNotificationTypeNewSecretChat(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationTypeNewCall:
return UnmarshalNotificationTypeNewCall(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationTypeNewPushMessage:
return UnmarshalNotificationTypeNewPushMessage(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationGroupTypeMessages:
return UnmarshalNotificationGroupTypeMessages(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationGroupTypeMentions:
return UnmarshalNotificationGroupTypeMentions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationGroupTypeSecretChat:
return UnmarshalNotificationGroupTypeSecretChat(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationGroupTypeCalls:
return UnmarshalNotificationGroupTypeCalls(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationSound:
return UnmarshalNotificationSound(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationSounds:
return UnmarshalNotificationSounds(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotification:
return UnmarshalNotification(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNotificationGroup:
return UnmarshalNotificationGroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeOptionValueBoolean:
return UnmarshalOptionValueBoolean(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeOptionValueEmpty:
return UnmarshalOptionValueEmpty(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeOptionValueInteger:
return UnmarshalOptionValueInteger(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeOptionValueString:
return UnmarshalOptionValueString(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeJsonObjectMember:
return UnmarshalJsonObjectMember(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeJsonValueNull:
return UnmarshalJsonValueNull(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeJsonValueBoolean:
return UnmarshalJsonValueBoolean(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeJsonValueNumber:
return UnmarshalJsonValueNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeJsonValueString:
return UnmarshalJsonValueString(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeJsonValueArray:
return UnmarshalJsonValueArray(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeJsonValueObject:
return UnmarshalJsonValueObject(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryPrivacySettingsEveryone:
return UnmarshalStoryPrivacySettingsEveryone(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryPrivacySettingsContacts:
return UnmarshalStoryPrivacySettingsContacts(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryPrivacySettingsCloseFriends:
return UnmarshalStoryPrivacySettingsCloseFriends(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryPrivacySettingsSelectedUsers:
return UnmarshalStoryPrivacySettingsSelectedUsers(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleAllowAll:
return UnmarshalUserPrivacySettingRuleAllowAll(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleAllowContacts:
return UnmarshalUserPrivacySettingRuleAllowContacts(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleAllowPremiumUsers:
return UnmarshalUserPrivacySettingRuleAllowPremiumUsers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleAllowUsers:
return UnmarshalUserPrivacySettingRuleAllowUsers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleAllowChatMembers:
return UnmarshalUserPrivacySettingRuleAllowChatMembers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleRestrictAll:
return UnmarshalUserPrivacySettingRuleRestrictAll(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleRestrictContacts:
return UnmarshalUserPrivacySettingRuleRestrictContacts(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleRestrictUsers:
return UnmarshalUserPrivacySettingRuleRestrictUsers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRuleRestrictChatMembers:
return UnmarshalUserPrivacySettingRuleRestrictChatMembers(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingRules:
return UnmarshalUserPrivacySettingRules(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingShowStatus:
return UnmarshalUserPrivacySettingShowStatus(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingShowProfilePhoto:
return UnmarshalUserPrivacySettingShowProfilePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingShowLinkInForwardedMessages:
return UnmarshalUserPrivacySettingShowLinkInForwardedMessages(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingShowPhoneNumber:
return UnmarshalUserPrivacySettingShowPhoneNumber(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingShowBio:
return UnmarshalUserPrivacySettingShowBio(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingShowBirthdate:
return UnmarshalUserPrivacySettingShowBirthdate(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingAllowChatInvites:
return UnmarshalUserPrivacySettingAllowChatInvites(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingAllowCalls:
return UnmarshalUserPrivacySettingAllowCalls(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingAllowPeerToPeerCalls:
return UnmarshalUserPrivacySettingAllowPeerToPeerCalls(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingAllowFindingByPhoneNumber:
return UnmarshalUserPrivacySettingAllowFindingByPhoneNumber(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages:
return UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeReadDatePrivacySettings:
return UnmarshalReadDatePrivacySettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeNewChatPrivacySettings:
return UnmarshalNewChatPrivacySettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanSendMessageToUserResultOk:
return UnmarshalCanSendMessageToUserResultOk(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanSendMessageToUserResultUserIsDeleted:
return UnmarshalCanSendMessageToUserResultUserIsDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCanSendMessageToUserResultUserRestrictsNewChats:
return UnmarshalCanSendMessageToUserResultUserRestrictsNewChats(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeAccountTtl:
return UnmarshalAccountTtl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageAutoDeleteTime:
return UnmarshalMessageAutoDeleteTime(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeAndroid:
return UnmarshalSessionTypeAndroid(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeApple:
return UnmarshalSessionTypeApple(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeBrave:
return UnmarshalSessionTypeBrave(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeChrome:
return UnmarshalSessionTypeChrome(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeEdge:
return UnmarshalSessionTypeEdge(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeFirefox:
return UnmarshalSessionTypeFirefox(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeIpad:
return UnmarshalSessionTypeIpad(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeIphone:
return UnmarshalSessionTypeIphone(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeLinux:
return UnmarshalSessionTypeLinux(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeMac:
return UnmarshalSessionTypeMac(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeOpera:
return UnmarshalSessionTypeOpera(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeSafari:
return UnmarshalSessionTypeSafari(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeUbuntu:
return UnmarshalSessionTypeUbuntu(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeUnknown:
return UnmarshalSessionTypeUnknown(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeVivaldi:
return UnmarshalSessionTypeVivaldi(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeWindows:
return UnmarshalSessionTypeWindows(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeSessionTypeXbox:
return UnmarshalSessionTypeXbox(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSession:
return UnmarshalSession(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSessions:
return UnmarshalSessions(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUnconfirmedSession:
return UnmarshalUnconfirmedSession(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeConnectedWebsite:
return UnmarshalConnectedWebsite(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeConnectedWebsites:
return UnmarshalConnectedWebsites(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonSpam:
return UnmarshalReportReasonSpam(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonViolence:
return UnmarshalReportReasonViolence(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonPornography:
return UnmarshalReportReasonPornography(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonChildAbuse:
return UnmarshalReportReasonChildAbuse(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonCopyright:
return UnmarshalReportReasonCopyright(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonUnrelatedLocation:
return UnmarshalReportReasonUnrelatedLocation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonFake:
return UnmarshalReportReasonFake(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonIllegalDrugs:
return UnmarshalReportReasonIllegalDrugs(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonPersonalDetails:
return UnmarshalReportReasonPersonalDetails(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeReportReasonCustom:
return UnmarshalReportReasonCustom(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeTargetChatCurrent:
return UnmarshalTargetChatCurrent(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeTargetChatChosen:
return UnmarshalTargetChatChosen(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTargetChatInternalLink:
return UnmarshalTargetChatInternalLink(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeActiveSessions:
return UnmarshalInternalLinkTypeActiveSessions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeAttachmentMenuBot:
return UnmarshalInternalLinkTypeAttachmentMenuBot(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeAuthenticationCode:
return UnmarshalInternalLinkTypeAuthenticationCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeBackground:
return UnmarshalInternalLinkTypeBackground(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeBotAddToChannel:
return UnmarshalInternalLinkTypeBotAddToChannel(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeBotStart:
return UnmarshalInternalLinkTypeBotStart(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeBotStartInGroup:
return UnmarshalInternalLinkTypeBotStartInGroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeChangePhoneNumber:
return UnmarshalInternalLinkTypeChangePhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeChatBoost:
return UnmarshalInternalLinkTypeChatBoost(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeChatFolderInvite:
return UnmarshalInternalLinkTypeChatFolderInvite(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeChatFolderSettings:
return UnmarshalInternalLinkTypeChatFolderSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeChatInvite:
return UnmarshalInternalLinkTypeChatInvite(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeDefaultMessageAutoDeleteTimerSettings:
return UnmarshalInternalLinkTypeDefaultMessageAutoDeleteTimerSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeEditProfileSettings:
return UnmarshalInternalLinkTypeEditProfileSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeGame:
return UnmarshalInternalLinkTypeGame(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeInstantView:
return UnmarshalInternalLinkTypeInstantView(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeInvoice:
return UnmarshalInternalLinkTypeInvoice(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeLanguagePack:
return UnmarshalInternalLinkTypeLanguagePack(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeLanguageSettings:
return UnmarshalInternalLinkTypeLanguageSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeMessage:
return UnmarshalInternalLinkTypeMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeMessageDraft:
return UnmarshalInternalLinkTypeMessageDraft(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePassportDataRequest:
return UnmarshalInternalLinkTypePassportDataRequest(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePhoneNumberConfirmation:
return UnmarshalInternalLinkTypePhoneNumberConfirmation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePremiumFeatures:
return UnmarshalInternalLinkTypePremiumFeatures(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePremiumGift:
return UnmarshalInternalLinkTypePremiumGift(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePremiumGiftCode:
return UnmarshalInternalLinkTypePremiumGiftCode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePrivacyAndSecuritySettings:
return UnmarshalInternalLinkTypePrivacyAndSecuritySettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeProxy:
return UnmarshalInternalLinkTypeProxy(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypePublicChat:
return UnmarshalInternalLinkTypePublicChat(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeQrCodeAuthentication:
return UnmarshalInternalLinkTypeQrCodeAuthentication(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeRestorePurchases:
return UnmarshalInternalLinkTypeRestorePurchases(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeSettings:
return UnmarshalInternalLinkTypeSettings(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeSideMenuBot:
return UnmarshalInternalLinkTypeSideMenuBot(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeStickerSet:
return UnmarshalInternalLinkTypeStickerSet(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeStory:
return UnmarshalInternalLinkTypeStory(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeTheme:
return UnmarshalInternalLinkTypeTheme(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeThemeSettings:
return UnmarshalInternalLinkTypeThemeSettings(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeUnknownDeepLink:
return UnmarshalInternalLinkTypeUnknownDeepLink(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeUnsupportedProxy:
return UnmarshalInternalLinkTypeUnsupportedProxy(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeUserPhoneNumber:
return UnmarshalInternalLinkTypeUserPhoneNumber(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeUserToken:
return UnmarshalInternalLinkTypeUserToken(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeVideoChat:
return UnmarshalInternalLinkTypeVideoChat(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeInternalLinkTypeWebApp:
return UnmarshalInternalLinkTypeWebApp(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageLink:
return UnmarshalMessageLink(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageLinkInfo:
return UnmarshalMessageLinkInfo(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoostLink:
return UnmarshalChatBoostLink(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatBoostLinkInfo:
return UnmarshalChatBoostLinkInfo(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBlockListMain:
return UnmarshalBlockListMain(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeBlockListStories:
return UnmarshalBlockListStories(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFilePart:
return UnmarshalFilePart(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeNone:
return UnmarshalFileTypeNone(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeAnimation:
return UnmarshalFileTypeAnimation(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeAudio:
return UnmarshalFileTypeAudio(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeDocument:
return UnmarshalFileTypeDocument(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeNotificationSound:
return UnmarshalFileTypeNotificationSound(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypePhoto:
return UnmarshalFileTypePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypePhotoStory:
return UnmarshalFileTypePhotoStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeProfilePhoto:
return UnmarshalFileTypeProfilePhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeSecret:
return UnmarshalFileTypeSecret(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeSecretThumbnail:
return UnmarshalFileTypeSecretThumbnail(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeSecure:
return UnmarshalFileTypeSecure(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeSticker:
return UnmarshalFileTypeSticker(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeThumbnail:
return UnmarshalFileTypeThumbnail(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeUnknown:
return UnmarshalFileTypeUnknown(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeVideo:
return UnmarshalFileTypeVideo(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeVideoNote:
return UnmarshalFileTypeVideoNote(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeVideoStory:
return UnmarshalFileTypeVideoStory(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeVoiceNote:
return UnmarshalFileTypeVoiceNote(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeFileTypeWallpaper:
return UnmarshalFileTypeWallpaper(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeStorageStatisticsByFileType:
return UnmarshalStorageStatisticsByFileType(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeStorageStatisticsByChat:
return UnmarshalStorageStatisticsByChat(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeStorageStatistics:
return UnmarshalStorageStatistics(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeStorageStatisticsFast:
return UnmarshalStorageStatisticsFast(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeDatabaseStatistics:
return UnmarshalDatabaseStatistics(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeNetworkTypeNone:
return UnmarshalNetworkTypeNone(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeNetworkTypeMobile:
return UnmarshalNetworkTypeMobile(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeNetworkTypeMobileRoaming:
return UnmarshalNetworkTypeMobileRoaming(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeNetworkTypeWiFi:
return UnmarshalNetworkTypeWiFi(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeNetworkTypeOther:
return UnmarshalNetworkTypeOther(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeNetworkStatisticsEntryFile:
return UnmarshalNetworkStatisticsEntryFile(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeNetworkStatisticsEntryCall:
return UnmarshalNetworkStatisticsEntryCall(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeNetworkStatistics:
return UnmarshalNetworkStatistics(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeAutoDownloadSettings:
return UnmarshalAutoDownloadSettings(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeAutoDownloadSettingsPresets:
return UnmarshalAutoDownloadSettingsPresets(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeAutosaveSettingsScopePrivateChats:
return UnmarshalAutosaveSettingsScopePrivateChats(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeAutosaveSettingsScopeGroupChats:
return UnmarshalAutosaveSettingsScopeGroupChats(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeAutosaveSettingsScopeChannelChats:
return UnmarshalAutosaveSettingsScopeChannelChats(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeAutosaveSettingsScopeChat:
return UnmarshalAutosaveSettingsScopeChat(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeScopeAutosaveSettings:
return UnmarshalScopeAutosaveSettings(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeAutosaveSettingsException:
return UnmarshalAutosaveSettingsException(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeAutosaveSettings:
return UnmarshalAutosaveSettings(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeConnectionStateWaitingForNetwork:
return UnmarshalConnectionStateWaitingForNetwork(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeConnectionStateConnectingToProxy:
return UnmarshalConnectionStateConnectingToProxy(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeConnectionStateConnecting:
return UnmarshalConnectionStateConnecting(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeConnectionStateUpdating:
return UnmarshalConnectionStateUpdating(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeConnectionStateReady:
return UnmarshalConnectionStateReady(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryUsers:
return UnmarshalTopChatCategoryUsers(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryBots:
return UnmarshalTopChatCategoryBots(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryGroups:
return UnmarshalTopChatCategoryGroups(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryChannels:
return UnmarshalTopChatCategoryChannels(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryInlineBots:
return UnmarshalTopChatCategoryInlineBots(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryCalls:
return UnmarshalTopChatCategoryCalls(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTopChatCategoryForwardChats:
return UnmarshalTopChatCategoryForwardChats(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFoundPosition:
return UnmarshalFoundPosition(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFoundPositions:
return UnmarshalFoundPositions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTMeUrlTypeUser:
return UnmarshalTMeUrlTypeUser(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTMeUrlTypeSupergroup:
return UnmarshalTMeUrlTypeSupergroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTMeUrlTypeChatInvite:
return UnmarshalTMeUrlTypeChatInvite(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTMeUrlTypeStickerSet:
return UnmarshalTMeUrlTypeStickerSet(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeTMeUrl:
return UnmarshalTMeUrl(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTMeUrls:
return UnmarshalTMeUrls(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionEnableArchiveAndMuteNewChats:
return UnmarshalSuggestedActionEnableArchiveAndMuteNewChats(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionCheckPassword:
return UnmarshalSuggestedActionCheckPassword(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionCheckPhoneNumber:
return UnmarshalSuggestedActionCheckPhoneNumber(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionViewChecksHint:
return UnmarshalSuggestedActionViewChecksHint(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionConvertToBroadcastGroup:
return UnmarshalSuggestedActionConvertToBroadcastGroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionSetPassword:
return UnmarshalSuggestedActionSetPassword(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionUpgradePremium:
return UnmarshalSuggestedActionUpgradePremium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionRestorePremium:
return UnmarshalSuggestedActionRestorePremium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionSubscribeToAnnualPremium:
return UnmarshalSuggestedActionSubscribeToAnnualPremium(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionGiftPremiumForChristmas:
return UnmarshalSuggestedActionGiftPremiumForChristmas(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSuggestedActionSetBirthdate:
return UnmarshalSuggestedActionSetBirthdate(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeCount:
return UnmarshalCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeText:
return UnmarshalText(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeSeconds:
return UnmarshalSeconds(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeFileDownloadedPrefixSize:
return UnmarshalFileDownloadedPrefixSize(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDeepLinkInfo:
return UnmarshalDeepLinkInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextParseModeMarkdown:
return UnmarshalTextParseModeMarkdown(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTextParseModeHTML:
return UnmarshalTextParseModeHTML(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeProxyTypeSocks5:
return UnmarshalProxyTypeSocks5(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeProxyTypeHttp:
return UnmarshalProxyTypeHttp(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeProxyTypeMtproto:
return UnmarshalProxyTypeMtproto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeProxy:
return UnmarshalProxy(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeProxies:
return UnmarshalProxies(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeInputSticker:
return UnmarshalInputSticker(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeDateRange:
return UnmarshalDateRange(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStatisticalValue:
return UnmarshalStatisticalValue(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStatisticalGraphData:
return UnmarshalStatisticalGraphData(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStatisticalGraphAsync:
return UnmarshalStatisticalGraphAsync(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStatisticalGraphError:
return UnmarshalStatisticalGraphError(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatStatisticsObjectTypeMessage:
return UnmarshalChatStatisticsObjectTypeMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatStatisticsObjectTypeStory:
return UnmarshalChatStatisticsObjectTypeStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatStatisticsInteractionInfo:
return UnmarshalChatStatisticsInteractionInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatStatisticsMessageSenderInfo:
return UnmarshalChatStatisticsMessageSenderInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatStatisticsAdministratorActionsInfo:
return UnmarshalChatStatisticsAdministratorActionsInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatStatisticsInviterInfo:
return UnmarshalChatStatisticsInviterInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatStatisticsSupergroup:
return UnmarshalChatStatisticsSupergroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeChatStatisticsChannel:
return UnmarshalChatStatisticsChannel(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeMessageStatistics:
return UnmarshalMessageStatistics(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeStoryStatistics:
return UnmarshalStoryStatistics(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypePoint:
return UnmarshalPoint(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeVectorPathCommandLine:
return UnmarshalVectorPathCommandLine(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeVectorPathCommandCubicBezierCurve:
return UnmarshalVectorPathCommandCubicBezierCurve(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotCommandScopeDefault:
return UnmarshalBotCommandScopeDefault(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotCommandScopeAllPrivateChats:
return UnmarshalBotCommandScopeAllPrivateChats(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotCommandScopeAllGroupChats:
return UnmarshalBotCommandScopeAllGroupChats(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeBotCommandScopeAllChatAdministrators:
return UnmarshalBotCommandScopeAllChatAdministrators(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeBotCommandScopeChat:
return UnmarshalBotCommandScopeChat(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeBotCommandScopeChatAdministrators:
return UnmarshalBotCommandScopeChatAdministrators(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeBotCommandScopeChatMember:
return UnmarshalBotCommandScopeChatMember(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAuthorizationState:
return UnmarshalUpdateAuthorizationState(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewMessage:
return UnmarshalUpdateNewMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageSendAcknowledged:
return UnmarshalUpdateMessageSendAcknowledged(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageSendSucceeded:
return UnmarshalUpdateMessageSendSucceeded(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageSendFailed:
return UnmarshalUpdateMessageSendFailed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageContent:
return UnmarshalUpdateMessageContent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageEdited:
return UnmarshalUpdateMessageEdited(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageIsPinned:
return UnmarshalUpdateMessageIsPinned(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageInteractionInfo:
return UnmarshalUpdateMessageInteractionInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageContentOpened:
return UnmarshalUpdateMessageContentOpened(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageMentionRead:
return UnmarshalUpdateMessageMentionRead(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageUnreadReactions:
return UnmarshalUpdateMessageUnreadReactions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageLiveLocationViewed:
return UnmarshalUpdateMessageLiveLocationViewed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewChat:
return UnmarshalUpdateNewChat(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatTitle:
return UnmarshalUpdateChatTitle(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatPhoto:
return UnmarshalUpdateChatPhoto(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatAccentColors:
return UnmarshalUpdateChatAccentColors(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatPermissions:
return UnmarshalUpdateChatPermissions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatLastMessage:
return UnmarshalUpdateChatLastMessage(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatPosition:
return UnmarshalUpdateChatPosition(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatAddedToList:
return UnmarshalUpdateChatAddedToList(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatRemovedFromList:
return UnmarshalUpdateChatRemovedFromList(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatReadInbox:
return UnmarshalUpdateChatReadInbox(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatReadOutbox:
return UnmarshalUpdateChatReadOutbox(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatActionBar:
return UnmarshalUpdateChatActionBar(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatAvailableReactions:
return UnmarshalUpdateChatAvailableReactions(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatDraftMessage:
return UnmarshalUpdateChatDraftMessage(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatEmojiStatus:
return UnmarshalUpdateChatEmojiStatus(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatMessageSender:
return UnmarshalUpdateChatMessageSender(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatMessageAutoDeleteTime:
return UnmarshalUpdateChatMessageAutoDeleteTime(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatNotificationSettings:
return UnmarshalUpdateChatNotificationSettings(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatPendingJoinRequests:
return UnmarshalUpdateChatPendingJoinRequests(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatReplyMarkup:
return UnmarshalUpdateChatReplyMarkup(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatBackground:
return UnmarshalUpdateChatBackground(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatTheme:
return UnmarshalUpdateChatTheme(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatUnreadMentionCount:
return UnmarshalUpdateChatUnreadMentionCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatUnreadReactionCount:
return UnmarshalUpdateChatUnreadReactionCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatVideoChat:
return UnmarshalUpdateChatVideoChat(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatDefaultDisableNotification:
return UnmarshalUpdateChatDefaultDisableNotification(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatHasProtectedContent:
return UnmarshalUpdateChatHasProtectedContent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatIsTranslatable:
return UnmarshalUpdateChatIsTranslatable(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatIsMarkedAsUnread:
return UnmarshalUpdateChatIsMarkedAsUnread(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatViewAsTopics:
return UnmarshalUpdateChatViewAsTopics(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatBlockList:
return UnmarshalUpdateChatBlockList(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatHasScheduledMessages:
return UnmarshalUpdateChatHasScheduledMessages(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatFolders:
return UnmarshalUpdateChatFolders(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatOnlineMemberCount:
return UnmarshalUpdateChatOnlineMemberCount(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSavedMessagesTopic:
return UnmarshalUpdateSavedMessagesTopic(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSavedMessagesTopicCount:
return UnmarshalUpdateSavedMessagesTopicCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateQuickReplyShortcut:
return UnmarshalUpdateQuickReplyShortcut(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateQuickReplyShortcutDeleted:
return UnmarshalUpdateQuickReplyShortcutDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateQuickReplyShortcuts:
return UnmarshalUpdateQuickReplyShortcuts(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateQuickReplyShortcutMessages:
return UnmarshalUpdateQuickReplyShortcutMessages(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateForumTopicInfo:
return UnmarshalUpdateForumTopicInfo(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateScopeNotificationSettings:
return UnmarshalUpdateScopeNotificationSettings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNotification:
return UnmarshalUpdateNotification(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNotificationGroup:
return UnmarshalUpdateNotificationGroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateActiveNotifications:
return UnmarshalUpdateActiveNotifications(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateHavePendingNotifications:
return UnmarshalUpdateHavePendingNotifications(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateDeleteMessages:
return UnmarshalUpdateDeleteMessages(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatAction:
return UnmarshalUpdateChatAction(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUserStatus:
return UnmarshalUpdateUserStatus(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUser:
return UnmarshalUpdateUser(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateBasicGroup:
return UnmarshalUpdateBasicGroup(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSupergroup:
return UnmarshalUpdateSupergroup(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSecretChat:
return UnmarshalUpdateSecretChat(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUserFullInfo:
return UnmarshalUpdateUserFullInfo(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateBasicGroupFullInfo:
return UnmarshalUpdateBasicGroupFullInfo(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSupergroupFullInfo:
return UnmarshalUpdateSupergroupFullInfo(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateServiceNotification:
return UnmarshalUpdateServiceNotification(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFile:
return UnmarshalUpdateFile(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFileGenerationStart:
return UnmarshalUpdateFileGenerationStart(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFileGenerationStop:
return UnmarshalUpdateFileGenerationStop(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFileDownloads:
return UnmarshalUpdateFileDownloads(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFileAddedToDownloads:
return UnmarshalUpdateFileAddedToDownloads(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFileDownload:
return UnmarshalUpdateFileDownload(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFileRemovedFromDownloads:
return UnmarshalUpdateFileRemovedFromDownloads(data)
2022-04-18 22:45:01 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateCall:
return UnmarshalUpdateCall(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateGroupCall:
return UnmarshalUpdateGroupCall(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateGroupCallParticipant:
return UnmarshalUpdateGroupCallParticipant(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewCallSignalingData:
return UnmarshalUpdateNewCallSignalingData(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUserPrivacySettingRules:
return UnmarshalUpdateUserPrivacySettingRules(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUnreadMessageCount:
return UnmarshalUpdateUnreadMessageCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUnreadChatCount:
return UnmarshalUpdateUnreadChatCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStory:
return UnmarshalUpdateStory(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStoryDeleted:
return UnmarshalUpdateStoryDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStorySendSucceeded:
return UnmarshalUpdateStorySendSucceeded(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStorySendFailed:
return UnmarshalUpdateStorySendFailed(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatActiveStories:
return UnmarshalUpdateChatActiveStories(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStoryListChatCount:
return UnmarshalUpdateStoryListChatCount(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStoryStealthMode:
return UnmarshalUpdateStoryStealthMode(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateOption:
return UnmarshalUpdateOption(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateStickerSet:
return UnmarshalUpdateStickerSet(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateInstalledStickerSets:
return UnmarshalUpdateInstalledStickerSets(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateTrendingStickerSets:
return UnmarshalUpdateTrendingStickerSets(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateRecentStickers:
return UnmarshalUpdateRecentStickers(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateFavoriteStickers:
return UnmarshalUpdateFavoriteStickers(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSavedAnimations:
return UnmarshalUpdateSavedAnimations(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSavedNotificationSounds:
return UnmarshalUpdateSavedNotificationSounds(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateDefaultBackground:
return UnmarshalUpdateDefaultBackground(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatThemes:
return UnmarshalUpdateChatThemes(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAccentColors:
return UnmarshalUpdateAccentColors(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateProfileAccentColors:
return UnmarshalUpdateProfileAccentColors(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateLanguagePackStrings:
return UnmarshalUpdateLanguagePackStrings(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateConnectionState:
return UnmarshalUpdateConnectionState(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateTermsOfService:
return UnmarshalUpdateTermsOfService(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUsersNearby:
return UnmarshalUpdateUsersNearby(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateUnconfirmedSession:
return UnmarshalUpdateUnconfirmedSession(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAttachmentMenuBots:
return UnmarshalUpdateAttachmentMenuBots(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateWebAppMessageSent:
return UnmarshalUpdateWebAppMessageSent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateActiveEmojiReactions:
return UnmarshalUpdateActiveEmojiReactions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateDefaultReactionType:
return UnmarshalUpdateDefaultReactionType(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSavedMessagesTags:
return UnmarshalUpdateSavedMessagesTags(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSpeechRecognitionTrial:
return UnmarshalUpdateSpeechRecognitionTrial(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateDiceEmojis:
return UnmarshalUpdateDiceEmojis(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAnimatedEmojiMessageClicked:
return UnmarshalUpdateAnimatedEmojiMessageClicked(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAnimationSearchParameters:
return UnmarshalUpdateAnimationSearchParameters(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateSuggestedActions:
return UnmarshalUpdateSuggestedActions(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateContactCloseBirthdays:
return UnmarshalUpdateContactCloseBirthdays(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAddChatMembersPrivacyForbidden:
return UnmarshalUpdateAddChatMembersPrivacyForbidden(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateAutosaveSettings:
return UnmarshalUpdateAutosaveSettings(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateBusinessConnection:
return UnmarshalUpdateBusinessConnection(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewBusinessMessage:
return UnmarshalUpdateNewBusinessMessage(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateBusinessMessageEdited:
return UnmarshalUpdateBusinessMessageEdited(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateBusinessMessagesDeleted:
return UnmarshalUpdateBusinessMessagesDeleted(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewInlineQuery:
return UnmarshalUpdateNewInlineQuery(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewChosenInlineResult:
return UnmarshalUpdateNewChosenInlineResult(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewCallbackQuery:
return UnmarshalUpdateNewCallbackQuery(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewInlineCallbackQuery:
return UnmarshalUpdateNewInlineCallbackQuery(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewShippingQuery:
return UnmarshalUpdateNewShippingQuery(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewPreCheckoutQuery:
return UnmarshalUpdateNewPreCheckoutQuery(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewCustomEvent:
return UnmarshalUpdateNewCustomEvent(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewCustomQuery:
return UnmarshalUpdateNewCustomQuery(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdatePoll:
return UnmarshalUpdatePoll(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdatePollAnswer:
return UnmarshalUpdatePollAnswer(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatMember:
return UnmarshalUpdateChatMember(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateNewChatJoinRequest:
return UnmarshalUpdateNewChatJoinRequest(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateChatBoost:
return UnmarshalUpdateChatBoost(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageReaction:
return UnmarshalUpdateMessageReaction(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdateMessageReactions:
return UnmarshalUpdateMessageReactions(data)
2021-12-08 10:23:00 +01:00
2024-10-06 19:09:53 +02:00
case TypeUpdates:
return UnmarshalUpdates(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLogStreamDefault:
return UnmarshalLogStreamDefault(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLogStreamFile:
return UnmarshalLogStreamFile(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLogStreamEmpty:
return UnmarshalLogStreamEmpty(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLogVerbosityLevel:
return UnmarshalLogVerbosityLevel(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeLogTags:
return UnmarshalLogTags(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeUserSupportInfo:
return UnmarshalUserSupportInfo(data)
2023-06-04 22:58:07 +02:00
2024-10-06 19:09:53 +02:00
case TypeTestInt:
return UnmarshalTestInt(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTestString:
return UnmarshalTestString(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTestBytes:
return UnmarshalTestBytes(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTestVectorInt:
return UnmarshalTestVectorInt(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTestVectorIntObject:
return UnmarshalTestVectorIntObject(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTestVectorString:
return UnmarshalTestVectorString(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
case TypeTestVectorStringObject:
return UnmarshalTestVectorStringObject(data)
2021-10-22 16:24:12 +02:00
2024-10-06 19:09:53 +02:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-10-22 16:24:12 +02:00
}