go-tdlib/client/unmarshaler.go

17025 lines
442 KiB
Go
Raw Normal View History

2018-08-30 14:55:42 +00:00
// AUTOGENERATED
package client
import (
2022-03-13 04:04:12 +00:00
"encoding/json"
"fmt"
2018-08-30 14:55:42 +00:00
)
func UnmarshalAuthenticationCodeType(data json.RawMessage) (AuthenticationCodeType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeAuthenticationCodeTypeTelegramMessage:
return UnmarshalAuthenticationCodeTypeTelegramMessage(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthenticationCodeTypeSms:
return UnmarshalAuthenticationCodeTypeSms(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthenticationCodeTypeCall:
return UnmarshalAuthenticationCodeTypeCall(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthenticationCodeTypeFlashCall:
return UnmarshalAuthenticationCodeTypeFlashCall(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthenticationCodeTypeMissedCall:
return UnmarshalAuthenticationCodeTypeMissedCall(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfAuthenticationCodeType(dataList []json.RawMessage) ([]AuthenticationCodeType, error) {
2022-03-13 04:04:12 +00:00
list := []AuthenticationCodeType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalAuthenticationCodeType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalAuthorizationState(data json.RawMessage) (AuthorizationState, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeAuthorizationStateWaitTdlibParameters:
return UnmarshalAuthorizationStateWaitTdlibParameters(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitEncryptionKey:
return UnmarshalAuthorizationStateWaitEncryptionKey(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitPhoneNumber:
return UnmarshalAuthorizationStateWaitPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitCode:
return UnmarshalAuthorizationStateWaitCode(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitOtherDeviceConfirmation:
return UnmarshalAuthorizationStateWaitOtherDeviceConfirmation(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitRegistration:
return UnmarshalAuthorizationStateWaitRegistration(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitPassword:
return UnmarshalAuthorizationStateWaitPassword(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateReady:
return UnmarshalAuthorizationStateReady(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateLoggingOut:
return UnmarshalAuthorizationStateLoggingOut(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateClosing:
return UnmarshalAuthorizationStateClosing(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateClosed:
return UnmarshalAuthorizationStateClosed(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfAuthorizationState(dataList []json.RawMessage) ([]AuthorizationState, error) {
2022-03-13 04:04:12 +00:00
list := []AuthorizationState{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalAuthorizationState(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalInputFile(data json.RawMessage) (InputFile, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeInputFileId:
return UnmarshalInputFileId(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputFileRemote:
return UnmarshalInputFileRemote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputFileLocal:
return UnmarshalInputFileLocal(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputFileGenerated:
return UnmarshalInputFileGenerated(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfInputFile(dataList []json.RawMessage) ([]InputFile, error) {
2022-03-13 04:04:12 +00:00
list := []InputFile{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalInputFile(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalThumbnailFormat(data json.RawMessage) (ThumbnailFormat, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeThumbnailFormatJpeg:
return UnmarshalThumbnailFormatJpeg(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatGif:
return UnmarshalThumbnailFormatGif(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatMpeg4:
return UnmarshalThumbnailFormatMpeg4(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatPng:
return UnmarshalThumbnailFormatPng(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatTgs:
return UnmarshalThumbnailFormatTgs(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatWebm:
return UnmarshalThumbnailFormatWebm(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatWebp:
return UnmarshalThumbnailFormatWebp(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-11-30 09:33:47 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfThumbnailFormat(dataList []json.RawMessage) ([]ThumbnailFormat, error) {
2022-03-13 04:04:12 +00:00
list := []ThumbnailFormat{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalThumbnailFormat(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalMaskPoint(data json.RawMessage) (MaskPoint, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeMaskPointForehead:
return UnmarshalMaskPointForehead(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMaskPointEyes:
return UnmarshalMaskPointEyes(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMaskPointMouth:
return UnmarshalMaskPointMouth(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMaskPointChin:
return UnmarshalMaskPointChin(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfMaskPoint(dataList []json.RawMessage) ([]MaskPoint, error) {
2022-03-13 04:04:12 +00:00
list := []MaskPoint{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalMaskPoint(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2022-08-13 15:24:07 +00:00
func UnmarshalStickerFormat(data json.RawMessage) (StickerFormat, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
2022-08-13 15:24:07 +00:00
case TypeStickerFormatWebp:
return UnmarshalStickerFormatWebp(data)
case TypeStickerFormatTgs:
return UnmarshalStickerFormatTgs(data)
case TypeStickerFormatWebm:
return UnmarshalStickerFormatWebm(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfStickerFormat(dataList []json.RawMessage) ([]StickerFormat, error) {
list := []StickerFormat{}
2022-02-06 18:36:17 +00:00
2022-08-13 15:24:07 +00:00
for _, data := range dataList {
entity, err := UnmarshalStickerFormat(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
func UnmarshalStickerType(data json.RawMessage) (StickerType, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2022-02-06 18:36:17 +00:00
2022-08-13 15:24:07 +00:00
switch meta.Type {
case TypeStickerTypeRegular:
return UnmarshalStickerTypeRegular(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeStickerTypeMask:
return UnmarshalStickerTypeMask(data)
2022-02-06 18:36:17 +00:00
2022-08-13 15:24:07 +00:00
case TypeStickerTypeCustomEmoji:
return UnmarshalStickerTypeCustomEmoji(data)
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2022-02-06 18:36:17 +00:00
}
func UnmarshalListOfStickerType(dataList []json.RawMessage) ([]StickerType, error) {
2022-03-13 04:04:12 +00:00
list := []StickerType{}
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalStickerType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2022-02-06 18:36:17 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalPollType(data json.RawMessage) (PollType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypePollTypeRegular:
return UnmarshalPollTypeRegular(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePollTypeQuiz:
return UnmarshalPollTypeQuiz(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfPollType(dataList []json.RawMessage) ([]PollType, error) {
2022-03-13 04:04:12 +00:00
list := []PollType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalPollType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUserType(data json.RawMessage) (UserType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeUserTypeRegular:
return UnmarshalUserTypeRegular(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserTypeDeleted:
return UnmarshalUserTypeDeleted(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserTypeBot:
return UnmarshalUserTypeBot(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserTypeUnknown:
return UnmarshalUserTypeUnknown(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfUserType(dataList []json.RawMessage) ([]UserType, error) {
2022-03-13 04:04:12 +00:00
list := []UserType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalUserType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalInputChatPhoto(data json.RawMessage) (InputChatPhoto, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeInputChatPhotoPrevious:
return UnmarshalInputChatPhotoPrevious(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputChatPhotoStatic:
return UnmarshalInputChatPhotoStatic(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputChatPhotoAnimation:
return UnmarshalInputChatPhotoAnimation(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-11-30 09:33:47 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfInputChatPhoto(dataList []json.RawMessage) ([]InputChatPhoto, error) {
2022-03-13 04:04:12 +00:00
list := []InputChatPhoto{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalInputChatPhoto(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalChatMemberStatus(data json.RawMessage) (ChatMemberStatus, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeChatMemberStatusCreator:
return UnmarshalChatMemberStatusCreator(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMemberStatusAdministrator:
return UnmarshalChatMemberStatusAdministrator(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMemberStatusMember:
return UnmarshalChatMemberStatusMember(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMemberStatusRestricted:
return UnmarshalChatMemberStatusRestricted(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMemberStatusLeft:
return UnmarshalChatMemberStatusLeft(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMemberStatusBanned:
return UnmarshalChatMemberStatusBanned(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfChatMemberStatus(dataList []json.RawMessage) ([]ChatMemberStatus, error) {
2022-03-13 04:04:12 +00:00
list := []ChatMemberStatus{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalChatMemberStatus(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatMembersFilter(data json.RawMessage) (ChatMembersFilter, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeChatMembersFilterContacts:
return UnmarshalChatMembersFilterContacts(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterAdministrators:
return UnmarshalChatMembersFilterAdministrators(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterMembers:
return UnmarshalChatMembersFilterMembers(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterMention:
return UnmarshalChatMembersFilterMention(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterRestricted:
return UnmarshalChatMembersFilterRestricted(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterBanned:
return UnmarshalChatMembersFilterBanned(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterBots:
return UnmarshalChatMembersFilterBots(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfChatMembersFilter(dataList []json.RawMessage) ([]ChatMembersFilter, error) {
2022-03-13 04:04:12 +00:00
list := []ChatMembersFilter{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalChatMembersFilter(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalSupergroupMembersFilter(data json.RawMessage) (SupergroupMembersFilter, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeSupergroupMembersFilterRecent:
return UnmarshalSupergroupMembersFilterRecent(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterContacts:
return UnmarshalSupergroupMembersFilterContacts(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterAdministrators:
return UnmarshalSupergroupMembersFilterAdministrators(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterSearch:
return UnmarshalSupergroupMembersFilterSearch(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterRestricted:
return UnmarshalSupergroupMembersFilterRestricted(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterBanned:
return UnmarshalSupergroupMembersFilterBanned(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterMention:
return UnmarshalSupergroupMembersFilterMention(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterBots:
return UnmarshalSupergroupMembersFilterBots(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfSupergroupMembersFilter(dataList []json.RawMessage) ([]SupergroupMembersFilter, error) {
2022-03-13 04:04:12 +00:00
list := []SupergroupMembersFilter{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalSupergroupMembersFilter(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalSecretChatState(data json.RawMessage) (SecretChatState, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeSecretChatStatePending:
return UnmarshalSecretChatStatePending(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSecretChatStateReady:
return UnmarshalSecretChatStateReady(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSecretChatStateClosed:
return UnmarshalSecretChatStateClosed(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfSecretChatState(dataList []json.RawMessage) ([]SecretChatState, error) {
2022-03-13 04:04:12 +00:00
list := []SecretChatState{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalSecretChatState(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalMessageSender(data json.RawMessage) (MessageSender, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeMessageSenderUser:
return UnmarshalMessageSenderUser(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSenderChat:
return UnmarshalMessageSenderChat(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-11-30 09:33:47 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfMessageSender(dataList []json.RawMessage) ([]MessageSender, error) {
2022-03-13 04:04:12 +00:00
list := []MessageSender{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalMessageSender(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalMessageForwardOrigin(data json.RawMessage) (MessageForwardOrigin, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeMessageForwardOriginUser:
return UnmarshalMessageForwardOriginUser(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageForwardOriginChat:
return UnmarshalMessageForwardOriginChat(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageForwardOriginHiddenUser:
return UnmarshalMessageForwardOriginHiddenUser(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageForwardOriginChannel:
return UnmarshalMessageForwardOriginChannel(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageForwardOriginMessageImport:
return UnmarshalMessageForwardOriginMessageImport(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfMessageForwardOrigin(dataList []json.RawMessage) ([]MessageForwardOrigin, error) {
2022-03-13 04:04:12 +00:00
list := []MessageForwardOrigin{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalMessageForwardOrigin(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalMessageSendingState(data json.RawMessage) (MessageSendingState, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeMessageSendingStatePending:
return UnmarshalMessageSendingStatePending(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSendingStateFailed:
return UnmarshalMessageSendingStateFailed(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfMessageSendingState(dataList []json.RawMessage) ([]MessageSendingState, error) {
2022-03-13 04:04:12 +00:00
list := []MessageSendingState{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalMessageSendingState(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalNotificationSettingsScope(data json.RawMessage) (NotificationSettingsScope, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeNotificationSettingsScopePrivateChats:
return UnmarshalNotificationSettingsScopePrivateChats(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationSettingsScopeGroupChats:
return UnmarshalNotificationSettingsScopeGroupChats(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationSettingsScopeChannelChats:
return UnmarshalNotificationSettingsScopeChannelChats(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfNotificationSettingsScope(dataList []json.RawMessage) ([]NotificationSettingsScope, error) {
2022-03-13 04:04:12 +00:00
list := []NotificationSettingsScope{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalNotificationSettingsScope(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalChatType(data json.RawMessage) (ChatType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeChatTypePrivate:
return UnmarshalChatTypePrivate(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatTypeBasicGroup:
return UnmarshalChatTypeBasicGroup(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatTypeSupergroup:
return UnmarshalChatTypeSupergroup(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatTypeSecret:
return UnmarshalChatTypeSecret(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfChatType(dataList []json.RawMessage) ([]ChatType, error) {
2022-03-13 04:04:12 +00:00
list := []ChatType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalChatType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalChatList(data json.RawMessage) (ChatList, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeChatListMain:
return UnmarshalChatListMain(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatListArchive:
return UnmarshalChatListArchive(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatListFilter:
return UnmarshalChatListFilter(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-11-30 09:33:47 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfChatList(dataList []json.RawMessage) ([]ChatList, error) {
2022-03-13 04:04:12 +00:00
list := []ChatList{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalChatList(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalChatSource(data json.RawMessage) (ChatSource, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeChatSourceMtprotoProxy:
return UnmarshalChatSourceMtprotoProxy(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatSourcePublicServiceAnnouncement:
return UnmarshalChatSourcePublicServiceAnnouncement(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-02-03 12:56:20 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfChatSource(dataList []json.RawMessage) ([]ChatSource, error) {
2022-03-13 04:04:12 +00:00
list := []ChatSource{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalChatSource(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalPublicChatType(data json.RawMessage) (PublicChatType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypePublicChatTypeHasUsername:
return UnmarshalPublicChatTypeHasUsername(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypePublicChatTypeIsLocationBased:
return UnmarshalPublicChatTypeIsLocationBased(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-02-03 12:56:20 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfPublicChatType(dataList []json.RawMessage) ([]PublicChatType, error) {
2022-03-13 04:04:12 +00:00
list := []PublicChatType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalPublicChatType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalChatActionBar(data json.RawMessage) (ChatActionBar, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeChatActionBarReportSpam:
return UnmarshalChatActionBarReportSpam(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarReportUnrelatedLocation:
return UnmarshalChatActionBarReportUnrelatedLocation(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarInviteMembers:
return UnmarshalChatActionBarInviteMembers(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarReportAddBlock:
return UnmarshalChatActionBarReportAddBlock(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarAddContact:
return UnmarshalChatActionBarAddContact(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarSharePhoneNumber:
return UnmarshalChatActionBarSharePhoneNumber(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarJoinRequest:
return UnmarshalChatActionBarJoinRequest(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-02-03 12:56:20 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfChatActionBar(dataList []json.RawMessage) ([]ChatActionBar, error) {
2022-03-13 04:04:12 +00:00
list := []ChatActionBar{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalChatActionBar(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalKeyboardButtonType(data json.RawMessage) (KeyboardButtonType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeKeyboardButtonTypeText:
return UnmarshalKeyboardButtonTypeText(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeKeyboardButtonTypeRequestPhoneNumber:
return UnmarshalKeyboardButtonTypeRequestPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeKeyboardButtonTypeRequestLocation:
return UnmarshalKeyboardButtonTypeRequestLocation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeKeyboardButtonTypeRequestPoll:
return UnmarshalKeyboardButtonTypeRequestPoll(data)
2020-02-03 12:56:20 +00:00
2022-04-24 20:33:39 +00:00
case TypeKeyboardButtonTypeWebApp:
return UnmarshalKeyboardButtonTypeWebApp(data)
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfKeyboardButtonType(dataList []json.RawMessage) ([]KeyboardButtonType, error) {
2022-03-13 04:04:12 +00:00
list := []KeyboardButtonType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalKeyboardButtonType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalInlineKeyboardButtonType(data json.RawMessage) (InlineKeyboardButtonType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeInlineKeyboardButtonTypeUrl:
return UnmarshalInlineKeyboardButtonTypeUrl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeLoginUrl:
return UnmarshalInlineKeyboardButtonTypeLoginUrl(data)
2019-09-10 12:36:54 +00:00
2022-04-24 20:33:39 +00:00
case TypeInlineKeyboardButtonTypeWebApp:
return UnmarshalInlineKeyboardButtonTypeWebApp(data)
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeCallback:
return UnmarshalInlineKeyboardButtonTypeCallback(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeCallbackWithPassword:
return UnmarshalInlineKeyboardButtonTypeCallbackWithPassword(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeCallbackGame:
return UnmarshalInlineKeyboardButtonTypeCallbackGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeSwitchInline:
return UnmarshalInlineKeyboardButtonTypeSwitchInline(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeBuy:
return UnmarshalInlineKeyboardButtonTypeBuy(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeUser:
return UnmarshalInlineKeyboardButtonTypeUser(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfInlineKeyboardButtonType(dataList []json.RawMessage) ([]InlineKeyboardButtonType, error) {
2022-03-13 04:04:12 +00:00
list := []InlineKeyboardButtonType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalInlineKeyboardButtonType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalReplyMarkup(data json.RawMessage) (ReplyMarkup, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeReplyMarkupRemoveKeyboard:
return UnmarshalReplyMarkupRemoveKeyboard(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeReplyMarkupForceReply:
return UnmarshalReplyMarkupForceReply(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeReplyMarkupShowKeyboard:
return UnmarshalReplyMarkupShowKeyboard(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeReplyMarkupInlineKeyboard:
return UnmarshalReplyMarkupInlineKeyboard(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfReplyMarkup(dataList []json.RawMessage) ([]ReplyMarkup, error) {
2022-03-13 04:04:12 +00:00
list := []ReplyMarkup{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalReplyMarkup(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalLoginUrlInfo(data json.RawMessage) (LoginUrlInfo, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeLoginUrlInfoOpen:
return UnmarshalLoginUrlInfoOpen(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeLoginUrlInfoRequestConfirmation:
return UnmarshalLoginUrlInfoRequestConfirmation(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-02-03 12:56:20 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfLoginUrlInfo(dataList []json.RawMessage) ([]LoginUrlInfo, error) {
2022-03-13 04:04:12 +00:00
list := []LoginUrlInfo{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalLoginUrlInfo(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalRichText(data json.RawMessage) (RichText, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeRichTextPlain:
return UnmarshalRichTextPlain(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextBold:
return UnmarshalRichTextBold(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextItalic:
return UnmarshalRichTextItalic(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextUnderline:
return UnmarshalRichTextUnderline(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextStrikethrough:
return UnmarshalRichTextStrikethrough(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextFixed:
return UnmarshalRichTextFixed(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextUrl:
return UnmarshalRichTextUrl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextEmailAddress:
return UnmarshalRichTextEmailAddress(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextSubscript:
return UnmarshalRichTextSubscript(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextSuperscript:
return UnmarshalRichTextSuperscript(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextMarked:
return UnmarshalRichTextMarked(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextPhoneNumber:
return UnmarshalRichTextPhoneNumber(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextIcon:
return UnmarshalRichTextIcon(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextReference:
return UnmarshalRichTextReference(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextAnchor:
return UnmarshalRichTextAnchor(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextAnchorLink:
return UnmarshalRichTextAnchorLink(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTexts:
return UnmarshalRichTexts(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfRichText(dataList []json.RawMessage) ([]RichText, error) {
2022-03-13 04:04:12 +00:00
list := []RichText{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalRichText(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockHorizontalAlignment(data json.RawMessage) (PageBlockHorizontalAlignment, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypePageBlockHorizontalAlignmentLeft:
return UnmarshalPageBlockHorizontalAlignmentLeft(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockHorizontalAlignmentCenter:
return UnmarshalPageBlockHorizontalAlignmentCenter(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockHorizontalAlignmentRight:
return UnmarshalPageBlockHorizontalAlignmentRight(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2019-06-07 10:56:06 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfPageBlockHorizontalAlignment(dataList []json.RawMessage) ([]PageBlockHorizontalAlignment, error) {
2022-03-13 04:04:12 +00:00
list := []PageBlockHorizontalAlignment{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalPageBlockHorizontalAlignment(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockVerticalAlignment(data json.RawMessage) (PageBlockVerticalAlignment, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypePageBlockVerticalAlignmentTop:
return UnmarshalPageBlockVerticalAlignmentTop(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockVerticalAlignmentMiddle:
return UnmarshalPageBlockVerticalAlignmentMiddle(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockVerticalAlignmentBottom:
return UnmarshalPageBlockVerticalAlignmentBottom(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2019-06-07 10:56:06 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfPageBlockVerticalAlignment(dataList []json.RawMessage) ([]PageBlockVerticalAlignment, error) {
2022-03-13 04:04:12 +00:00
list := []PageBlockVerticalAlignment{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalPageBlockVerticalAlignment(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalPageBlock(data json.RawMessage) (PageBlock, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypePageBlockTitle:
return UnmarshalPageBlockTitle(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockSubtitle:
return UnmarshalPageBlockSubtitle(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockAuthorDate:
return UnmarshalPageBlockAuthorDate(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockHeader:
return UnmarshalPageBlockHeader(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockSubheader:
return UnmarshalPageBlockSubheader(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockKicker:
return UnmarshalPageBlockKicker(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockParagraph:
return UnmarshalPageBlockParagraph(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockPreformatted:
return UnmarshalPageBlockPreformatted(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockFooter:
return UnmarshalPageBlockFooter(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockDivider:
return UnmarshalPageBlockDivider(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockAnchor:
return UnmarshalPageBlockAnchor(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockList:
return UnmarshalPageBlockList(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockBlockQuote:
return UnmarshalPageBlockBlockQuote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockPullQuote:
return UnmarshalPageBlockPullQuote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockAnimation:
return UnmarshalPageBlockAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockAudio:
return UnmarshalPageBlockAudio(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockPhoto:
return UnmarshalPageBlockPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockVideo:
return UnmarshalPageBlockVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockVoiceNote:
return UnmarshalPageBlockVoiceNote(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockCover:
return UnmarshalPageBlockCover(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockEmbedded:
return UnmarshalPageBlockEmbedded(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockEmbeddedPost:
return UnmarshalPageBlockEmbeddedPost(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockCollage:
return UnmarshalPageBlockCollage(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockSlideshow:
return UnmarshalPageBlockSlideshow(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockChatLink:
return UnmarshalPageBlockChatLink(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockTable:
return UnmarshalPageBlockTable(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockDetails:
return UnmarshalPageBlockDetails(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockRelatedArticles:
return UnmarshalPageBlockRelatedArticles(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockMap:
return UnmarshalPageBlockMap(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfPageBlock(dataList []json.RawMessage) ([]PageBlock, error) {
2022-03-13 04:04:12 +00:00
list := []PageBlock{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalPageBlock(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalInputCredentials(data json.RawMessage) (InputCredentials, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeInputCredentialsSaved:
return UnmarshalInputCredentialsSaved(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputCredentialsNew:
return UnmarshalInputCredentialsNew(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputCredentialsApplePay:
return UnmarshalInputCredentialsApplePay(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputCredentialsGooglePay:
return UnmarshalInputCredentialsGooglePay(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfInputCredentials(dataList []json.RawMessage) ([]InputCredentials, error) {
2022-03-13 04:04:12 +00:00
list := []InputCredentials{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalInputCredentials(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2022-06-21 18:10:07 +00:00
func UnmarshalPaymentProvider(data json.RawMessage) (PaymentProvider, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypePaymentProviderSmartGlocal:
return UnmarshalPaymentProviderSmartGlocal(data)
case TypePaymentProviderStripe:
return UnmarshalPaymentProviderStripe(data)
case TypePaymentProviderOther:
return UnmarshalPaymentProviderOther(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfPaymentProvider(dataList []json.RawMessage) ([]PaymentProvider, error) {
list := []PaymentProvider{}
for _, data := range dataList {
entity, err := UnmarshalPaymentProvider(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
func UnmarshalInputInvoice(data json.RawMessage) (InputInvoice, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeInputInvoiceMessage:
return UnmarshalInputInvoiceMessage(data)
case TypeInputInvoiceName:
return UnmarshalInputInvoiceName(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfInputInvoice(dataList []json.RawMessage) ([]InputInvoice, error) {
list := []InputInvoice{}
for _, data := range dataList {
entity, err := UnmarshalInputInvoice(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementType(data json.RawMessage) (PassportElementType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypePassportElementTypePersonalDetails:
return UnmarshalPassportElementTypePersonalDetails(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypePassport:
return UnmarshalPassportElementTypePassport(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeDriverLicense:
return UnmarshalPassportElementTypeDriverLicense(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeIdentityCard:
return UnmarshalPassportElementTypeIdentityCard(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeInternalPassport:
return UnmarshalPassportElementTypeInternalPassport(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeAddress:
return UnmarshalPassportElementTypeAddress(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeUtilityBill:
return UnmarshalPassportElementTypeUtilityBill(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeBankStatement:
return UnmarshalPassportElementTypeBankStatement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeRentalAgreement:
return UnmarshalPassportElementTypeRentalAgreement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypePassportRegistration:
return UnmarshalPassportElementTypePassportRegistration(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeTemporaryRegistration:
return UnmarshalPassportElementTypeTemporaryRegistration(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypePhoneNumber:
return UnmarshalPassportElementTypePhoneNumber(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeEmailAddress:
return UnmarshalPassportElementTypeEmailAddress(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfPassportElementType(dataList []json.RawMessage) ([]PassportElementType, error) {
2022-03-13 04:04:12 +00:00
list := []PassportElementType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalPassportElementType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElement(data json.RawMessage) (PassportElement, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypePassportElementPersonalDetails:
return UnmarshalPassportElementPersonalDetails(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementPassport:
return UnmarshalPassportElementPassport(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementDriverLicense:
return UnmarshalPassportElementDriverLicense(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementIdentityCard:
return UnmarshalPassportElementIdentityCard(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementInternalPassport:
return UnmarshalPassportElementInternalPassport(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementAddress:
return UnmarshalPassportElementAddress(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementUtilityBill:
return UnmarshalPassportElementUtilityBill(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementBankStatement:
return UnmarshalPassportElementBankStatement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementRentalAgreement:
return UnmarshalPassportElementRentalAgreement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementPassportRegistration:
return UnmarshalPassportElementPassportRegistration(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTemporaryRegistration:
return UnmarshalPassportElementTemporaryRegistration(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementPhoneNumber:
return UnmarshalPassportElementPhoneNumber(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementEmailAddress:
return UnmarshalPassportElementEmailAddress(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfPassportElement(dataList []json.RawMessage) ([]PassportElement, error) {
2022-03-13 04:04:12 +00:00
list := []PassportElement{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalPassportElement(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElement(data json.RawMessage) (InputPassportElement, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeInputPassportElementPersonalDetails:
return UnmarshalInputPassportElementPersonalDetails(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementPassport:
return UnmarshalInputPassportElementPassport(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementDriverLicense:
return UnmarshalInputPassportElementDriverLicense(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementIdentityCard:
return UnmarshalInputPassportElementIdentityCard(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementInternalPassport:
return UnmarshalInputPassportElementInternalPassport(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementAddress:
return UnmarshalInputPassportElementAddress(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementUtilityBill:
return UnmarshalInputPassportElementUtilityBill(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementBankStatement:
return UnmarshalInputPassportElementBankStatement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementRentalAgreement:
return UnmarshalInputPassportElementRentalAgreement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementPassportRegistration:
return UnmarshalInputPassportElementPassportRegistration(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementTemporaryRegistration:
return UnmarshalInputPassportElementTemporaryRegistration(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementPhoneNumber:
return UnmarshalInputPassportElementPhoneNumber(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementEmailAddress:
return UnmarshalInputPassportElementEmailAddress(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfInputPassportElement(dataList []json.RawMessage) ([]InputPassportElement, error) {
2022-03-13 04:04:12 +00:00
list := []InputPassportElement{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalInputPassportElement(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementErrorSource(data json.RawMessage) (PassportElementErrorSource, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypePassportElementErrorSourceUnspecified:
return UnmarshalPassportElementErrorSourceUnspecified(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceDataField:
return UnmarshalPassportElementErrorSourceDataField(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceFrontSide:
return UnmarshalPassportElementErrorSourceFrontSide(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceReverseSide:
return UnmarshalPassportElementErrorSourceReverseSide(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceSelfie:
return UnmarshalPassportElementErrorSourceSelfie(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceTranslationFile:
return UnmarshalPassportElementErrorSourceTranslationFile(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceTranslationFiles:
return UnmarshalPassportElementErrorSourceTranslationFiles(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceFile:
return UnmarshalPassportElementErrorSourceFile(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceFiles:
return UnmarshalPassportElementErrorSourceFiles(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfPassportElementErrorSource(dataList []json.RawMessage) ([]PassportElementErrorSource, error) {
2022-03-13 04:04:12 +00:00
list := []PassportElementErrorSource{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalPassportElementErrorSource(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementErrorSource(data json.RawMessage) (InputPassportElementErrorSource, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeInputPassportElementErrorSourceUnspecified:
return UnmarshalInputPassportElementErrorSourceUnspecified(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceDataField:
return UnmarshalInputPassportElementErrorSourceDataField(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceFrontSide:
return UnmarshalInputPassportElementErrorSourceFrontSide(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceReverseSide:
return UnmarshalInputPassportElementErrorSourceReverseSide(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceSelfie:
return UnmarshalInputPassportElementErrorSourceSelfie(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceTranslationFile:
return UnmarshalInputPassportElementErrorSourceTranslationFile(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceTranslationFiles:
return UnmarshalInputPassportElementErrorSourceTranslationFiles(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceFile:
return UnmarshalInputPassportElementErrorSourceFile(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceFiles:
return UnmarshalInputPassportElementErrorSourceFiles(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfInputPassportElementErrorSource(dataList []json.RawMessage) ([]InputPassportElementErrorSource, error) {
2022-03-13 04:04:12 +00:00
list := []InputPassportElementErrorSource{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalInputPassportElementErrorSource(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeMessageText:
return UnmarshalMessageText(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageAnimation:
return UnmarshalMessageAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageAudio:
return UnmarshalMessageAudio(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageDocument:
return UnmarshalMessageDocument(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePhoto:
return UnmarshalMessagePhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageExpiredPhoto:
return UnmarshalMessageExpiredPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSticker:
return UnmarshalMessageSticker(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVideo:
return UnmarshalMessageVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageExpiredVideo:
return UnmarshalMessageExpiredVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVideoNote:
return UnmarshalMessageVideoNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVoiceNote:
return UnmarshalMessageVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageLocation:
return UnmarshalMessageLocation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVenue:
return UnmarshalMessageVenue(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageContact:
return UnmarshalMessageContact(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageAnimatedEmoji:
return UnmarshalMessageAnimatedEmoji(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageDice:
return UnmarshalMessageDice(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageGame:
return UnmarshalMessageGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePoll:
return UnmarshalMessagePoll(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageInvoice:
return UnmarshalMessageInvoice(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageCall:
return UnmarshalMessageCall(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVideoChatScheduled:
return UnmarshalMessageVideoChatScheduled(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVideoChatStarted:
return UnmarshalMessageVideoChatStarted(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVideoChatEnded:
return UnmarshalMessageVideoChatEnded(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageInviteVideoChatParticipants:
return UnmarshalMessageInviteVideoChatParticipants(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageBasicGroupChatCreate:
return UnmarshalMessageBasicGroupChatCreate(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSupergroupChatCreate:
return UnmarshalMessageSupergroupChatCreate(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatChangeTitle:
return UnmarshalMessageChatChangeTitle(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatChangePhoto:
return UnmarshalMessageChatChangePhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatDeletePhoto:
return UnmarshalMessageChatDeletePhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatAddMembers:
return UnmarshalMessageChatAddMembers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatJoinByLink:
return UnmarshalMessageChatJoinByLink(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatJoinByRequest:
return UnmarshalMessageChatJoinByRequest(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatDeleteMember:
return UnmarshalMessageChatDeleteMember(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatUpgradeTo:
return UnmarshalMessageChatUpgradeTo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatUpgradeFrom:
return UnmarshalMessageChatUpgradeFrom(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePinMessage:
return UnmarshalMessagePinMessage(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageScreenshotTaken:
return UnmarshalMessageScreenshotTaken(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatSetTheme:
return UnmarshalMessageChatSetTheme(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatSetTtl:
return UnmarshalMessageChatSetTtl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageCustomServiceAction:
return UnmarshalMessageCustomServiceAction(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageGameScore:
return UnmarshalMessageGameScore(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePaymentSuccessful:
return UnmarshalMessagePaymentSuccessful(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePaymentSuccessfulBot:
return UnmarshalMessagePaymentSuccessfulBot(data)
2018-08-30 14:55:42 +00:00
2022-08-13 15:24:07 +00:00
case TypeMessageGiftedPremium:
return UnmarshalMessageGiftedPremium(data)
2022-03-13 04:04:12 +00:00
case TypeMessageContactRegistered:
return UnmarshalMessageContactRegistered(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageWebsiteConnected:
return UnmarshalMessageWebsiteConnected(data)
2018-08-30 14:55:42 +00:00
2022-04-24 20:33:39 +00:00
case TypeMessageWebAppDataSent:
return UnmarshalMessageWebAppDataSent(data)
case TypeMessageWebAppDataReceived:
return UnmarshalMessageWebAppDataReceived(data)
2022-03-13 04:04:12 +00:00
case TypeMessagePassportDataSent:
return UnmarshalMessagePassportDataSent(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePassportDataReceived:
return UnmarshalMessagePassportDataReceived(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageProximityAlertTriggered:
return UnmarshalMessageProximityAlertTriggered(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageUnsupported:
return UnmarshalMessageUnsupported(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfMessageContent(dataList []json.RawMessage) ([]MessageContent, error) {
2022-03-13 04:04:12 +00:00
list := []MessageContent{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalMessageContent(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalTextEntityType(data json.RawMessage) (TextEntityType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeTextEntityTypeMention:
return UnmarshalTextEntityTypeMention(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeHashtag:
return UnmarshalTextEntityTypeHashtag(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeCashtag:
return UnmarshalTextEntityTypeCashtag(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeBotCommand:
return UnmarshalTextEntityTypeBotCommand(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeUrl:
return UnmarshalTextEntityTypeUrl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeEmailAddress:
return UnmarshalTextEntityTypeEmailAddress(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypePhoneNumber:
return UnmarshalTextEntityTypePhoneNumber(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeBankCardNumber:
return UnmarshalTextEntityTypeBankCardNumber(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeBold:
return UnmarshalTextEntityTypeBold(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeItalic:
return UnmarshalTextEntityTypeItalic(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeUnderline:
return UnmarshalTextEntityTypeUnderline(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeStrikethrough:
return UnmarshalTextEntityTypeStrikethrough(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeSpoiler:
return UnmarshalTextEntityTypeSpoiler(data)
2022-01-26 21:06:41 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeCode:
return UnmarshalTextEntityTypeCode(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypePre:
return UnmarshalTextEntityTypePre(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypePreCode:
return UnmarshalTextEntityTypePreCode(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeTextUrl:
return UnmarshalTextEntityTypeTextUrl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeMentionName:
return UnmarshalTextEntityTypeMentionName(data)
2018-08-30 14:55:42 +00:00
2022-08-13 15:24:07 +00:00
case TypeTextEntityTypeCustomEmoji:
return UnmarshalTextEntityTypeCustomEmoji(data)
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeMediaTimestamp:
return UnmarshalTextEntityTypeMediaTimestamp(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-02-03 12:56:20 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfTextEntityType(dataList []json.RawMessage) ([]TextEntityType, error) {
2022-03-13 04:04:12 +00:00
list := []TextEntityType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalTextEntityType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalMessageSchedulingState(data json.RawMessage) (MessageSchedulingState, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeMessageSchedulingStateSendAtDate:
return UnmarshalMessageSchedulingStateSendAtDate(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSchedulingStateSendWhenOnline:
return UnmarshalMessageSchedulingStateSendWhenOnline(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfMessageSchedulingState(dataList []json.RawMessage) ([]MessageSchedulingState, error) {
2022-03-13 04:04:12 +00:00
list := []MessageSchedulingState{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalMessageSchedulingState(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalInputMessageContent(data json.RawMessage) (InputMessageContent, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeInputMessageText:
return UnmarshalInputMessageText(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageAnimation:
return UnmarshalInputMessageAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageAudio:
return UnmarshalInputMessageAudio(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageDocument:
return UnmarshalInputMessageDocument(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessagePhoto:
return UnmarshalInputMessagePhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageSticker:
return UnmarshalInputMessageSticker(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageVideo:
return UnmarshalInputMessageVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageVideoNote:
return UnmarshalInputMessageVideoNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageVoiceNote:
return UnmarshalInputMessageVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageLocation:
return UnmarshalInputMessageLocation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageVenue:
return UnmarshalInputMessageVenue(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageContact:
return UnmarshalInputMessageContact(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageDice:
return UnmarshalInputMessageDice(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageGame:
return UnmarshalInputMessageGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageInvoice:
return UnmarshalInputMessageInvoice(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessagePoll:
return UnmarshalInputMessagePoll(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageForwarded:
return UnmarshalInputMessageForwarded(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfInputMessageContent(dataList []json.RawMessage) ([]InputMessageContent, error) {
2022-03-13 04:04:12 +00:00
list := []InputMessageContent{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalInputMessageContent(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalSearchMessagesFilter(data json.RawMessage) (SearchMessagesFilter, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeSearchMessagesFilterEmpty:
return UnmarshalSearchMessagesFilterEmpty(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterAnimation:
return UnmarshalSearchMessagesFilterAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterAudio:
return UnmarshalSearchMessagesFilterAudio(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterDocument:
return UnmarshalSearchMessagesFilterDocument(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterPhoto:
return UnmarshalSearchMessagesFilterPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterVideo:
return UnmarshalSearchMessagesFilterVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterVoiceNote:
return UnmarshalSearchMessagesFilterVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterPhotoAndVideo:
return UnmarshalSearchMessagesFilterPhotoAndVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterUrl:
return UnmarshalSearchMessagesFilterUrl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterChatPhoto:
return UnmarshalSearchMessagesFilterChatPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterVideoNote:
return UnmarshalSearchMessagesFilterVideoNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterVoiceAndVideoNote:
return UnmarshalSearchMessagesFilterVoiceAndVideoNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterMention:
return UnmarshalSearchMessagesFilterMention(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterUnreadMention:
return UnmarshalSearchMessagesFilterUnreadMention(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterUnreadReaction:
return UnmarshalSearchMessagesFilterUnreadReaction(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterFailedToSend:
return UnmarshalSearchMessagesFilterFailedToSend(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterPinned:
return UnmarshalSearchMessagesFilterPinned(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfSearchMessagesFilter(dataList []json.RawMessage) ([]SearchMessagesFilter, error) {
2022-03-13 04:04:12 +00:00
list := []SearchMessagesFilter{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalSearchMessagesFilter(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalChatAction(data json.RawMessage) (ChatAction, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeChatActionTyping:
return UnmarshalChatActionTyping(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionRecordingVideo:
return UnmarshalChatActionRecordingVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionUploadingVideo:
return UnmarshalChatActionUploadingVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionRecordingVoiceNote:
return UnmarshalChatActionRecordingVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionUploadingVoiceNote:
return UnmarshalChatActionUploadingVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionUploadingPhoto:
return UnmarshalChatActionUploadingPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionUploadingDocument:
return UnmarshalChatActionUploadingDocument(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionChoosingSticker:
return UnmarshalChatActionChoosingSticker(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionChoosingLocation:
return UnmarshalChatActionChoosingLocation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionChoosingContact:
return UnmarshalChatActionChoosingContact(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionStartPlayingGame:
return UnmarshalChatActionStartPlayingGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionRecordingVideoNote:
return UnmarshalChatActionRecordingVideoNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionUploadingVideoNote:
return UnmarshalChatActionUploadingVideoNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionWatchingAnimations:
return UnmarshalChatActionWatchingAnimations(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionCancel:
return UnmarshalChatActionCancel(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfChatAction(dataList []json.RawMessage) ([]ChatAction, error) {
2022-03-13 04:04:12 +00:00
list := []ChatAction{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalChatAction(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUserStatus(data json.RawMessage) (UserStatus, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeUserStatusEmpty:
return UnmarshalUserStatusEmpty(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserStatusOnline:
return UnmarshalUserStatusOnline(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserStatusOffline:
return UnmarshalUserStatusOffline(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserStatusRecently:
return UnmarshalUserStatusRecently(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserStatusLastWeek:
return UnmarshalUserStatusLastWeek(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserStatusLastMonth:
return UnmarshalUserStatusLastMonth(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfUserStatus(dataList []json.RawMessage) ([]UserStatus, error) {
2022-03-13 04:04:12 +00:00
list := []UserStatus{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalUserStatus(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalCallDiscardReason(data json.RawMessage) (CallDiscardReason, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeCallDiscardReasonEmpty:
return UnmarshalCallDiscardReasonEmpty(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallDiscardReasonMissed:
return UnmarshalCallDiscardReasonMissed(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallDiscardReasonDeclined:
return UnmarshalCallDiscardReasonDeclined(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallDiscardReasonDisconnected:
return UnmarshalCallDiscardReasonDisconnected(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallDiscardReasonHungUp:
return UnmarshalCallDiscardReasonHungUp(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfCallDiscardReason(dataList []json.RawMessage) ([]CallDiscardReason, error) {
2022-03-13 04:04:12 +00:00
list := []CallDiscardReason{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalCallDiscardReason(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalCallServerType(data json.RawMessage) (CallServerType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeCallServerTypeTelegramReflector:
return UnmarshalCallServerTypeTelegramReflector(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallServerTypeWebrtc:
return UnmarshalCallServerTypeWebrtc(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-11-30 09:33:47 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfCallServerType(dataList []json.RawMessage) ([]CallServerType, error) {
2022-03-13 04:04:12 +00:00
list := []CallServerType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalCallServerType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalCallState(data json.RawMessage) (CallState, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeCallStatePending:
return UnmarshalCallStatePending(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallStateExchangingKeys:
return UnmarshalCallStateExchangingKeys(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallStateReady:
return UnmarshalCallStateReady(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallStateHangingUp:
return UnmarshalCallStateHangingUp(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallStateDiscarded:
return UnmarshalCallStateDiscarded(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallStateError:
return UnmarshalCallStateError(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfCallState(dataList []json.RawMessage) ([]CallState, error) {
2022-03-13 04:04:12 +00:00
list := []CallState{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalCallState(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalGroupCallVideoQuality(data json.RawMessage) (GroupCallVideoQuality, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeGroupCallVideoQualityThumbnail:
return UnmarshalGroupCallVideoQualityThumbnail(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCallVideoQualityMedium:
return UnmarshalGroupCallVideoQualityMedium(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCallVideoQualityFull:
return UnmarshalGroupCallVideoQualityFull(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-12-30 05:55:02 +00:00
}
func UnmarshalListOfGroupCallVideoQuality(dataList []json.RawMessage) ([]GroupCallVideoQuality, error) {
2022-03-13 04:04:12 +00:00
list := []GroupCallVideoQuality{}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalGroupCallVideoQuality(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-12-30 05:55:02 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalCallProblem(data json.RawMessage) (CallProblem, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeCallProblemEcho:
return UnmarshalCallProblemEcho(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemNoise:
return UnmarshalCallProblemNoise(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemInterruptions:
return UnmarshalCallProblemInterruptions(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemDistortedSpeech:
return UnmarshalCallProblemDistortedSpeech(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemSilentLocal:
return UnmarshalCallProblemSilentLocal(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemSilentRemote:
return UnmarshalCallProblemSilentRemote(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemDropped:
return UnmarshalCallProblemDropped(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemDistortedVideo:
return UnmarshalCallProblemDistortedVideo(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemPixelatedVideo:
return UnmarshalCallProblemPixelatedVideo(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2019-09-10 12:36:54 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfCallProblem(dataList []json.RawMessage) ([]CallProblem, error) {
2022-03-13 04:04:12 +00:00
list := []CallProblem{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalCallProblem(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalDiceStickers(data json.RawMessage) (DiceStickers, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeDiceStickersRegular:
return UnmarshalDiceStickersRegular(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeDiceStickersSlotMachine:
return UnmarshalDiceStickersSlotMachine(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-11-30 09:33:47 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfDiceStickers(dataList []json.RawMessage) ([]DiceStickers, error) {
2022-03-13 04:04:12 +00:00
list := []DiceStickers{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalDiceStickers(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2022-08-13 15:24:07 +00:00
func UnmarshalSpeechRecognitionResult(data json.RawMessage) (SpeechRecognitionResult, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeSpeechRecognitionResultPending:
return UnmarshalSpeechRecognitionResultPending(data)
case TypeSpeechRecognitionResultText:
return UnmarshalSpeechRecognitionResultText(data)
case TypeSpeechRecognitionResultError:
return UnmarshalSpeechRecognitionResultError(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfSpeechRecognitionResult(dataList []json.RawMessage) ([]SpeechRecognitionResult, error) {
list := []SpeechRecognitionResult{}
for _, data := range dataList {
entity, err := UnmarshalSpeechRecognitionResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
2020-11-30 09:33:47 +00:00
func UnmarshalInputInlineQueryResult(data json.RawMessage) (InputInlineQueryResult, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeInputInlineQueryResultAnimation:
return UnmarshalInputInlineQueryResultAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultArticle:
return UnmarshalInputInlineQueryResultArticle(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultAudio:
return UnmarshalInputInlineQueryResultAudio(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultContact:
return UnmarshalInputInlineQueryResultContact(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultDocument:
return UnmarshalInputInlineQueryResultDocument(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultGame:
return UnmarshalInputInlineQueryResultGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultLocation:
return UnmarshalInputInlineQueryResultLocation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultPhoto:
return UnmarshalInputInlineQueryResultPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultSticker:
return UnmarshalInputInlineQueryResultSticker(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultVenue:
return UnmarshalInputInlineQueryResultVenue(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultVideo:
return UnmarshalInputInlineQueryResultVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultVoiceNote:
return UnmarshalInputInlineQueryResultVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfInputInlineQueryResult(dataList []json.RawMessage) ([]InputInlineQueryResult, error) {
2022-03-13 04:04:12 +00:00
list := []InputInlineQueryResult{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalInputInlineQueryResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalInlineQueryResult(data json.RawMessage) (InlineQueryResult, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeInlineQueryResultArticle:
return UnmarshalInlineQueryResultArticle(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultContact:
return UnmarshalInlineQueryResultContact(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultLocation:
return UnmarshalInlineQueryResultLocation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultVenue:
return UnmarshalInlineQueryResultVenue(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultGame:
return UnmarshalInlineQueryResultGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultAnimation:
return UnmarshalInlineQueryResultAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultAudio:
return UnmarshalInlineQueryResultAudio(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultDocument:
return UnmarshalInlineQueryResultDocument(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultPhoto:
return UnmarshalInlineQueryResultPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultSticker:
return UnmarshalInlineQueryResultSticker(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultVideo:
return UnmarshalInlineQueryResultVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultVoiceNote:
return UnmarshalInlineQueryResultVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfInlineQueryResult(dataList []json.RawMessage) ([]InlineQueryResult, error) {
2022-03-13 04:04:12 +00:00
list := []InlineQueryResult{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalInlineQueryResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalCallbackQueryPayload(data json.RawMessage) (CallbackQueryPayload, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeCallbackQueryPayloadData:
return UnmarshalCallbackQueryPayloadData(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallbackQueryPayloadDataWithPassword:
return UnmarshalCallbackQueryPayloadDataWithPassword(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallbackQueryPayloadGame:
return UnmarshalCallbackQueryPayloadGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfCallbackQueryPayload(dataList []json.RawMessage) ([]CallbackQueryPayload, error) {
2022-03-13 04:04:12 +00:00
list := []CallbackQueryPayload{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalCallbackQueryPayload(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalChatEventAction(data json.RawMessage) (ChatEventAction, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeChatEventMessageEdited:
return UnmarshalChatEventMessageEdited(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMessageDeleted:
return UnmarshalChatEventMessageDeleted(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMessagePinned:
return UnmarshalChatEventMessagePinned(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMessageUnpinned:
return UnmarshalChatEventMessageUnpinned(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventPollStopped:
return UnmarshalChatEventPollStopped(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberJoined:
return UnmarshalChatEventMemberJoined(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberJoinedByInviteLink:
return UnmarshalChatEventMemberJoinedByInviteLink(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberJoinedByRequest:
return UnmarshalChatEventMemberJoinedByRequest(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberInvited:
return UnmarshalChatEventMemberInvited(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberLeft:
return UnmarshalChatEventMemberLeft(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberPromoted:
return UnmarshalChatEventMemberPromoted(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberRestricted:
return UnmarshalChatEventMemberRestricted(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventAvailableReactionsChanged:
return UnmarshalChatEventAvailableReactionsChanged(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventDescriptionChanged:
return UnmarshalChatEventDescriptionChanged(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventLinkedChatChanged:
return UnmarshalChatEventLinkedChatChanged(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventLocationChanged:
return UnmarshalChatEventLocationChanged(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMessageTtlChanged:
return UnmarshalChatEventMessageTtlChanged(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventPermissionsChanged:
return UnmarshalChatEventPermissionsChanged(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventPhotoChanged:
return UnmarshalChatEventPhotoChanged(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventSlowModeDelayChanged:
return UnmarshalChatEventSlowModeDelayChanged(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventStickerSetChanged:
return UnmarshalChatEventStickerSetChanged(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventTitleChanged:
return UnmarshalChatEventTitleChanged(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventUsernameChanged:
return UnmarshalChatEventUsernameChanged(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventHasProtectedContentToggled:
return UnmarshalChatEventHasProtectedContentToggled(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventInvitesToggled:
return UnmarshalChatEventInvitesToggled(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventIsAllHistoryAvailableToggled:
return UnmarshalChatEventIsAllHistoryAvailableToggled(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventSignMessagesToggled:
return UnmarshalChatEventSignMessagesToggled(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventInviteLinkEdited:
return UnmarshalChatEventInviteLinkEdited(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventInviteLinkRevoked:
return UnmarshalChatEventInviteLinkRevoked(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventInviteLinkDeleted:
return UnmarshalChatEventInviteLinkDeleted(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventVideoChatCreated:
return UnmarshalChatEventVideoChatCreated(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventVideoChatEnded:
return UnmarshalChatEventVideoChatEnded(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventVideoChatMuteNewParticipantsToggled:
return UnmarshalChatEventVideoChatMuteNewParticipantsToggled(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventVideoChatParticipantIsMutedToggled:
return UnmarshalChatEventVideoChatParticipantIsMutedToggled(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventVideoChatParticipantVolumeLevelChanged:
return UnmarshalChatEventVideoChatParticipantVolumeLevelChanged(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfChatEventAction(dataList []json.RawMessage) ([]ChatEventAction, error) {
2022-03-13 04:04:12 +00:00
list := []ChatEventAction{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalChatEventAction(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalLanguagePackStringValue(data json.RawMessage) (LanguagePackStringValue, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeLanguagePackStringValueOrdinary:
return UnmarshalLanguagePackStringValueOrdinary(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeLanguagePackStringValuePluralized:
return UnmarshalLanguagePackStringValuePluralized(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeLanguagePackStringValueDeleted:
return UnmarshalLanguagePackStringValueDeleted(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfLanguagePackStringValue(dataList []json.RawMessage) ([]LanguagePackStringValue, error) {
2022-03-13 04:04:12 +00:00
list := []LanguagePackStringValue{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalLanguagePackStringValue(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2022-06-21 18:10:07 +00:00
func UnmarshalPremiumLimitType(data json.RawMessage) (PremiumLimitType, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypePremiumLimitTypeSupergroupCount:
return UnmarshalPremiumLimitTypeSupergroupCount(data)
case TypePremiumLimitTypePinnedChatCount:
return UnmarshalPremiumLimitTypePinnedChatCount(data)
case TypePremiumLimitTypeCreatedPublicChatCount:
return UnmarshalPremiumLimitTypeCreatedPublicChatCount(data)
case TypePremiumLimitTypeSavedAnimationCount:
return UnmarshalPremiumLimitTypeSavedAnimationCount(data)
case TypePremiumLimitTypeFavoriteStickerCount:
return UnmarshalPremiumLimitTypeFavoriteStickerCount(data)
case TypePremiumLimitTypeChatFilterCount:
return UnmarshalPremiumLimitTypeChatFilterCount(data)
case TypePremiumLimitTypeChatFilterChosenChatCount:
return UnmarshalPremiumLimitTypeChatFilterChosenChatCount(data)
case TypePremiumLimitTypePinnedArchivedChatCount:
return UnmarshalPremiumLimitTypePinnedArchivedChatCount(data)
case TypePremiumLimitTypeCaptionLength:
return UnmarshalPremiumLimitTypeCaptionLength(data)
case TypePremiumLimitTypeBioLength:
return UnmarshalPremiumLimitTypeBioLength(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfPremiumLimitType(dataList []json.RawMessage) ([]PremiumLimitType, error) {
list := []PremiumLimitType{}
for _, data := range dataList {
entity, err := UnmarshalPremiumLimitType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
func UnmarshalPremiumFeature(data json.RawMessage) (PremiumFeature, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypePremiumFeatureIncreasedLimits:
return UnmarshalPremiumFeatureIncreasedLimits(data)
case TypePremiumFeatureIncreasedUploadFileSize:
return UnmarshalPremiumFeatureIncreasedUploadFileSize(data)
case TypePremiumFeatureImprovedDownloadSpeed:
return UnmarshalPremiumFeatureImprovedDownloadSpeed(data)
case TypePremiumFeatureVoiceRecognition:
return UnmarshalPremiumFeatureVoiceRecognition(data)
case TypePremiumFeatureDisabledAds:
return UnmarshalPremiumFeatureDisabledAds(data)
case TypePremiumFeatureUniqueReactions:
return UnmarshalPremiumFeatureUniqueReactions(data)
case TypePremiumFeatureUniqueStickers:
return UnmarshalPremiumFeatureUniqueStickers(data)
2022-08-13 15:24:07 +00:00
case TypePremiumFeatureCustomEmoji:
return UnmarshalPremiumFeatureCustomEmoji(data)
2022-06-21 18:10:07 +00:00
case TypePremiumFeatureAdvancedChatManagement:
return UnmarshalPremiumFeatureAdvancedChatManagement(data)
case TypePremiumFeatureProfileBadge:
return UnmarshalPremiumFeatureProfileBadge(data)
case TypePremiumFeatureAnimatedProfilePhoto:
return UnmarshalPremiumFeatureAnimatedProfilePhoto(data)
case TypePremiumFeatureAppIcons:
return UnmarshalPremiumFeatureAppIcons(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfPremiumFeature(dataList []json.RawMessage) ([]PremiumFeature, error) {
list := []PremiumFeature{}
for _, data := range dataList {
entity, err := UnmarshalPremiumFeature(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
func UnmarshalPremiumSource(data json.RawMessage) (PremiumSource, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypePremiumSourceLimitExceeded:
return UnmarshalPremiumSourceLimitExceeded(data)
case TypePremiumSourceFeature:
return UnmarshalPremiumSourceFeature(data)
case TypePremiumSourceLink:
return UnmarshalPremiumSourceLink(data)
case TypePremiumSourceSettings:
return UnmarshalPremiumSourceSettings(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfPremiumSource(dataList []json.RawMessage) ([]PremiumSource, error) {
list := []PremiumSource{}
for _, data := range dataList {
entity, err := UnmarshalPremiumSource(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
2022-08-13 15:24:07 +00:00
func UnmarshalStorePaymentPurpose(data json.RawMessage) (StorePaymentPurpose, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeStorePaymentPurposePremiumSubscription:
return UnmarshalStorePaymentPurposePremiumSubscription(data)
case TypeStorePaymentPurposeGiftedPremium:
return UnmarshalStorePaymentPurposeGiftedPremium(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfStorePaymentPurpose(dataList []json.RawMessage) ([]StorePaymentPurpose, error) {
list := []StorePaymentPurpose{}
for _, data := range dataList {
entity, err := UnmarshalStorePaymentPurpose(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
2018-08-30 14:55:42 +00:00
func UnmarshalDeviceToken(data json.RawMessage) (DeviceToken, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeDeviceTokenFirebaseCloudMessaging:
return UnmarshalDeviceTokenFirebaseCloudMessaging(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenApplePush:
return UnmarshalDeviceTokenApplePush(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenApplePushVoIP:
return UnmarshalDeviceTokenApplePushVoIP(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenWindowsPush:
return UnmarshalDeviceTokenWindowsPush(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenMicrosoftPush:
return UnmarshalDeviceTokenMicrosoftPush(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenMicrosoftPushVoIP:
return UnmarshalDeviceTokenMicrosoftPushVoIP(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenWebPush:
return UnmarshalDeviceTokenWebPush(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenSimplePush:
return UnmarshalDeviceTokenSimplePush(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenUbuntuPush:
return UnmarshalDeviceTokenUbuntuPush(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenBlackBerryPush:
return UnmarshalDeviceTokenBlackBerryPush(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenTizenPush:
return UnmarshalDeviceTokenTizenPush(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfDeviceToken(dataList []json.RawMessage) ([]DeviceToken, error) {
2022-03-13 04:04:12 +00:00
list := []DeviceToken{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalDeviceToken(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalBackgroundFill(data json.RawMessage) (BackgroundFill, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeBackgroundFillSolid:
return UnmarshalBackgroundFillSolid(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeBackgroundFillGradient:
return UnmarshalBackgroundFillGradient(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeBackgroundFillFreeformGradient:
return UnmarshalBackgroundFillFreeformGradient(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-02-03 12:56:20 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfBackgroundFill(dataList []json.RawMessage) ([]BackgroundFill, error) {
2022-03-13 04:04:12 +00:00
list := []BackgroundFill{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalBackgroundFill(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalBackgroundType(data json.RawMessage) (BackgroundType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeBackgroundTypeWallpaper:
return UnmarshalBackgroundTypeWallpaper(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeBackgroundTypePattern:
return UnmarshalBackgroundTypePattern(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeBackgroundTypeFill:
return UnmarshalBackgroundTypeFill(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2019-09-10 12:36:54 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfBackgroundType(dataList []json.RawMessage) ([]BackgroundType, error) {
2022-03-13 04:04:12 +00:00
list := []BackgroundType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalBackgroundType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalInputBackground(data json.RawMessage) (InputBackground, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeInputBackgroundLocal:
return UnmarshalInputBackgroundLocal(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputBackgroundRemote:
return UnmarshalInputBackgroundRemote(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2019-09-10 12:36:54 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfInputBackground(dataList []json.RawMessage) ([]InputBackground, error) {
2022-03-13 04:04:12 +00:00
list := []InputBackground{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalInputBackground(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalCanTransferOwnershipResult(data json.RawMessage) (CanTransferOwnershipResult, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeCanTransferOwnershipResultOk:
return UnmarshalCanTransferOwnershipResultOk(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeCanTransferOwnershipResultPasswordNeeded:
return UnmarshalCanTransferOwnershipResultPasswordNeeded(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeCanTransferOwnershipResultPasswordTooFresh:
return UnmarshalCanTransferOwnershipResultPasswordTooFresh(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeCanTransferOwnershipResultSessionTooFresh:
return UnmarshalCanTransferOwnershipResultSessionTooFresh(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-02-03 12:56:20 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfCanTransferOwnershipResult(dataList []json.RawMessage) ([]CanTransferOwnershipResult, error) {
2022-03-13 04:04:12 +00:00
list := []CanTransferOwnershipResult{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalCanTransferOwnershipResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalCheckChatUsernameResult(data json.RawMessage) (CheckChatUsernameResult, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeCheckChatUsernameResultOk:
return UnmarshalCheckChatUsernameResultOk(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckChatUsernameResultUsernameInvalid:
return UnmarshalCheckChatUsernameResultUsernameInvalid(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckChatUsernameResultUsernameOccupied:
return UnmarshalCheckChatUsernameResultUsernameOccupied(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckChatUsernameResultPublicChatsTooMuch:
return UnmarshalCheckChatUsernameResultPublicChatsTooMuch(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckChatUsernameResultPublicGroupsUnavailable:
return UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfCheckChatUsernameResult(dataList []json.RawMessage) ([]CheckChatUsernameResult, error) {
2022-03-13 04:04:12 +00:00
list := []CheckChatUsernameResult{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalCheckChatUsernameResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalCheckStickerSetNameResult(data json.RawMessage) (CheckStickerSetNameResult, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeCheckStickerSetNameResultOk:
return UnmarshalCheckStickerSetNameResultOk(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckStickerSetNameResultNameInvalid:
return UnmarshalCheckStickerSetNameResultNameInvalid(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckStickerSetNameResultNameOccupied:
return UnmarshalCheckStickerSetNameResultNameOccupied(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-12-30 05:55:02 +00:00
}
func UnmarshalListOfCheckStickerSetNameResult(dataList []json.RawMessage) ([]CheckStickerSetNameResult, error) {
2022-03-13 04:04:12 +00:00
list := []CheckStickerSetNameResult{}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalCheckStickerSetNameResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-12-30 05:55:02 +00:00
}
func UnmarshalResetPasswordResult(data json.RawMessage) (ResetPasswordResult, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeResetPasswordResultOk:
return UnmarshalResetPasswordResultOk(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeResetPasswordResultPending:
return UnmarshalResetPasswordResultPending(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeResetPasswordResultDeclined:
return UnmarshalResetPasswordResultDeclined(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-12-30 05:55:02 +00:00
}
func UnmarshalListOfResetPasswordResult(dataList []json.RawMessage) ([]ResetPasswordResult, error) {
2022-03-13 04:04:12 +00:00
list := []ResetPasswordResult{}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalResetPasswordResult(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-12-30 05:55:02 +00:00
}
func UnmarshalMessageFileType(data json.RawMessage) (MessageFileType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeMessageFileTypePrivate:
return UnmarshalMessageFileTypePrivate(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageFileTypeGroup:
return UnmarshalMessageFileTypeGroup(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageFileTypeUnknown:
return UnmarshalMessageFileTypeUnknown(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-12-30 05:55:02 +00:00
}
func UnmarshalListOfMessageFileType(dataList []json.RawMessage) ([]MessageFileType, error) {
2022-03-13 04:04:12 +00:00
list := []MessageFileType{}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalMessageFileType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-12-30 05:55:02 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPushMessageContent(data json.RawMessage) (PushMessageContent, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypePushMessageContentHidden:
return UnmarshalPushMessageContentHidden(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentAnimation:
return UnmarshalPushMessageContentAnimation(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentAudio:
return UnmarshalPushMessageContentAudio(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentContact:
return UnmarshalPushMessageContentContact(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentContactRegistered:
return UnmarshalPushMessageContentContactRegistered(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentDocument:
return UnmarshalPushMessageContentDocument(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentGame:
return UnmarshalPushMessageContentGame(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentGameScore:
return UnmarshalPushMessageContentGameScore(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentInvoice:
return UnmarshalPushMessageContentInvoice(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentLocation:
return UnmarshalPushMessageContentLocation(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentPhoto:
return UnmarshalPushMessageContentPhoto(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentPoll:
return UnmarshalPushMessageContentPoll(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentScreenshotTaken:
return UnmarshalPushMessageContentScreenshotTaken(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentSticker:
return UnmarshalPushMessageContentSticker(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentText:
return UnmarshalPushMessageContentText(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentVideo:
return UnmarshalPushMessageContentVideo(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentVideoNote:
return UnmarshalPushMessageContentVideoNote(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentVoiceNote:
return UnmarshalPushMessageContentVoiceNote(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentBasicGroupChatCreate:
return UnmarshalPushMessageContentBasicGroupChatCreate(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatAddMembers:
return UnmarshalPushMessageContentChatAddMembers(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatChangePhoto:
return UnmarshalPushMessageContentChatChangePhoto(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatChangeTitle:
return UnmarshalPushMessageContentChatChangeTitle(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatSetTheme:
return UnmarshalPushMessageContentChatSetTheme(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatDeleteMember:
return UnmarshalPushMessageContentChatDeleteMember(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatJoinByLink:
return UnmarshalPushMessageContentChatJoinByLink(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatJoinByRequest:
return UnmarshalPushMessageContentChatJoinByRequest(data)
2021-12-30 05:55:02 +00:00
2022-06-21 18:10:07 +00:00
case TypePushMessageContentRecurringPayment:
return UnmarshalPushMessageContentRecurringPayment(data)
2022-03-13 04:04:12 +00:00
case TypePushMessageContentMessageForwards:
return UnmarshalPushMessageContentMessageForwards(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentMediaAlbum:
return UnmarshalPushMessageContentMediaAlbum(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2019-06-07 10:56:06 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfPushMessageContent(dataList []json.RawMessage) ([]PushMessageContent, error) {
2022-03-13 04:04:12 +00:00
list := []PushMessageContent{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalPushMessageContent(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotificationType(data json.RawMessage) (NotificationType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeNotificationTypeNewMessage:
return UnmarshalNotificationTypeNewMessage(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationTypeNewSecretChat:
return UnmarshalNotificationTypeNewSecretChat(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationTypeNewCall:
return UnmarshalNotificationTypeNewCall(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationTypeNewPushMessage:
return UnmarshalNotificationTypeNewPushMessage(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2019-06-07 10:56:06 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfNotificationType(dataList []json.RawMessage) ([]NotificationType, error) {
2022-03-13 04:04:12 +00:00
list := []NotificationType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalNotificationType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotificationGroupType(data json.RawMessage) (NotificationGroupType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeNotificationGroupTypeMessages:
return UnmarshalNotificationGroupTypeMessages(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationGroupTypeMentions:
return UnmarshalNotificationGroupTypeMentions(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationGroupTypeSecretChat:
return UnmarshalNotificationGroupTypeSecretChat(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationGroupTypeCalls:
return UnmarshalNotificationGroupTypeCalls(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2019-06-07 10:56:06 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfNotificationGroupType(dataList []json.RawMessage) ([]NotificationGroupType, error) {
2022-03-13 04:04:12 +00:00
list := []NotificationGroupType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalNotificationGroupType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalOptionValue(data json.RawMessage) (OptionValue, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeOptionValueBoolean:
return UnmarshalOptionValueBoolean(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeOptionValueEmpty:
return UnmarshalOptionValueEmpty(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeOptionValueInteger:
return UnmarshalOptionValueInteger(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeOptionValueString:
return UnmarshalOptionValueString(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfOptionValue(dataList []json.RawMessage) ([]OptionValue, error) {
2022-03-13 04:04:12 +00:00
list := []OptionValue{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalOptionValue(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalJsonValue(data json.RawMessage) (JsonValue, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeJsonValueNull:
return UnmarshalJsonValueNull(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeJsonValueBoolean:
return UnmarshalJsonValueBoolean(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeJsonValueNumber:
return UnmarshalJsonValueNumber(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeJsonValueString:
return UnmarshalJsonValueString(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeJsonValueArray:
return UnmarshalJsonValueArray(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeJsonValueObject:
return UnmarshalJsonValueObject(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2019-06-07 10:56:06 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfJsonValue(dataList []json.RawMessage) ([]JsonValue, error) {
2022-03-13 04:04:12 +00:00
list := []JsonValue{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalJsonValue(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUserPrivacySettingRule(data json.RawMessage) (UserPrivacySettingRule, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeUserPrivacySettingRuleAllowAll:
return UnmarshalUserPrivacySettingRuleAllowAll(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleAllowContacts:
return UnmarshalUserPrivacySettingRuleAllowContacts(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleAllowUsers:
return UnmarshalUserPrivacySettingRuleAllowUsers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleAllowChatMembers:
return UnmarshalUserPrivacySettingRuleAllowChatMembers(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleRestrictAll:
return UnmarshalUserPrivacySettingRuleRestrictAll(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleRestrictContacts:
return UnmarshalUserPrivacySettingRuleRestrictContacts(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleRestrictUsers:
return UnmarshalUserPrivacySettingRuleRestrictUsers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleRestrictChatMembers:
return UnmarshalUserPrivacySettingRuleRestrictChatMembers(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfUserPrivacySettingRule(dataList []json.RawMessage) ([]UserPrivacySettingRule, error) {
2022-03-13 04:04:12 +00:00
list := []UserPrivacySettingRule{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalUserPrivacySettingRule(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUserPrivacySetting(data json.RawMessage) (UserPrivacySetting, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeUserPrivacySettingShowStatus:
return UnmarshalUserPrivacySettingShowStatus(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingShowProfilePhoto:
return UnmarshalUserPrivacySettingShowProfilePhoto(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingShowLinkInForwardedMessages:
return UnmarshalUserPrivacySettingShowLinkInForwardedMessages(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingShowPhoneNumber:
return UnmarshalUserPrivacySettingShowPhoneNumber(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingAllowChatInvites:
return UnmarshalUserPrivacySettingAllowChatInvites(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingAllowCalls:
return UnmarshalUserPrivacySettingAllowCalls(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingAllowPeerToPeerCalls:
return UnmarshalUserPrivacySettingAllowPeerToPeerCalls(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingAllowFindingByPhoneNumber:
return UnmarshalUserPrivacySettingAllowFindingByPhoneNumber(data)
2020-02-03 12:56:20 +00:00
2022-08-13 15:24:07 +00:00
case TypeUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages:
return UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data)
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfUserPrivacySetting(dataList []json.RawMessage) ([]UserPrivacySetting, error) {
2022-03-13 04:04:12 +00:00
list := []UserPrivacySetting{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalUserPrivacySetting(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2022-05-09 11:35:19 +00:00
func UnmarshalSessionType(data json.RawMessage) (SessionType, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeSessionTypeAndroid:
return UnmarshalSessionTypeAndroid(data)
case TypeSessionTypeApple:
return UnmarshalSessionTypeApple(data)
case TypeSessionTypeBrave:
return UnmarshalSessionTypeBrave(data)
case TypeSessionTypeChrome:
return UnmarshalSessionTypeChrome(data)
case TypeSessionTypeEdge:
return UnmarshalSessionTypeEdge(data)
case TypeSessionTypeFirefox:
return UnmarshalSessionTypeFirefox(data)
case TypeSessionTypeIpad:
return UnmarshalSessionTypeIpad(data)
case TypeSessionTypeIphone:
return UnmarshalSessionTypeIphone(data)
case TypeSessionTypeLinux:
return UnmarshalSessionTypeLinux(data)
case TypeSessionTypeMac:
return UnmarshalSessionTypeMac(data)
case TypeSessionTypeOpera:
return UnmarshalSessionTypeOpera(data)
case TypeSessionTypeSafari:
return UnmarshalSessionTypeSafari(data)
case TypeSessionTypeUbuntu:
return UnmarshalSessionTypeUbuntu(data)
case TypeSessionTypeUnknown:
return UnmarshalSessionTypeUnknown(data)
case TypeSessionTypeVivaldi:
return UnmarshalSessionTypeVivaldi(data)
case TypeSessionTypeWindows:
return UnmarshalSessionTypeWindows(data)
case TypeSessionTypeXbox:
return UnmarshalSessionTypeXbox(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfSessionType(dataList []json.RawMessage) ([]SessionType, error) {
list := []SessionType{}
for _, data := range dataList {
entity, err := UnmarshalSessionType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
2018-08-30 14:55:42 +00:00
func UnmarshalChatReportReason(data json.RawMessage) (ChatReportReason, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeChatReportReasonSpam:
return UnmarshalChatReportReasonSpam(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonViolence:
return UnmarshalChatReportReasonViolence(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonPornography:
return UnmarshalChatReportReasonPornography(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonChildAbuse:
return UnmarshalChatReportReasonChildAbuse(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonCopyright:
return UnmarshalChatReportReasonCopyright(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonUnrelatedLocation:
return UnmarshalChatReportReasonUnrelatedLocation(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonFake:
return UnmarshalChatReportReasonFake(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonIllegalDrugs:
return UnmarshalChatReportReasonIllegalDrugs(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonPersonalDetails:
return UnmarshalChatReportReasonPersonalDetails(data)
case TypeChatReportReasonCustom:
return UnmarshalChatReportReasonCustom(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfChatReportReason(dataList []json.RawMessage) ([]ChatReportReason, error) {
2022-03-13 04:04:12 +00:00
list := []ChatReportReason{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalChatReportReason(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2022-06-21 18:10:07 +00:00
func UnmarshalTargetChat(data json.RawMessage) (TargetChat, error) {
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeTargetChatCurrent:
return UnmarshalTargetChatCurrent(data)
case TypeTargetChatChosen:
return UnmarshalTargetChatChosen(data)
case TypeTargetChatInternalLink:
return UnmarshalTargetChatInternalLink(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
}
func UnmarshalListOfTargetChat(dataList []json.RawMessage) ([]TargetChat, error) {
list := []TargetChat{}
for _, data := range dataList {
entity, err := UnmarshalTargetChat(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
return list, nil
}
2021-12-30 05:55:02 +00:00
func UnmarshalInternalLinkType(data json.RawMessage) (InternalLinkType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeInternalLinkTypeActiveSessions:
return UnmarshalInternalLinkTypeActiveSessions(data)
2021-12-30 05:55:02 +00:00
2022-04-24 20:33:39 +00:00
case TypeInternalLinkTypeAttachmentMenuBot:
return UnmarshalInternalLinkTypeAttachmentMenuBot(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeAuthenticationCode:
return UnmarshalInternalLinkTypeAuthenticationCode(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeBackground:
return UnmarshalInternalLinkTypeBackground(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeBotStart:
return UnmarshalInternalLinkTypeBotStart(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeBotStartInGroup:
return UnmarshalInternalLinkTypeBotStartInGroup(data)
2021-12-30 05:55:02 +00:00
2022-04-24 20:33:39 +00:00
case TypeInternalLinkTypeBotAddToChannel:
return UnmarshalInternalLinkTypeBotAddToChannel(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeChangePhoneNumber:
return UnmarshalInternalLinkTypeChangePhoneNumber(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeChatInvite:
return UnmarshalInternalLinkTypeChatInvite(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeFilterSettings:
return UnmarshalInternalLinkTypeFilterSettings(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeGame:
return UnmarshalInternalLinkTypeGame(data)
2021-12-30 05:55:02 +00:00
2022-06-21 18:10:07 +00:00
case TypeInternalLinkTypeInvoice:
return UnmarshalInternalLinkTypeInvoice(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeLanguagePack:
return UnmarshalInternalLinkTypeLanguagePack(data)
2021-12-30 05:55:02 +00:00
2022-03-31 08:54:35 +00:00
case TypeInternalLinkTypeLanguageSettings:
return UnmarshalInternalLinkTypeLanguageSettings(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeMessage:
return UnmarshalInternalLinkTypeMessage(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeMessageDraft:
return UnmarshalInternalLinkTypeMessageDraft(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypePassportDataRequest:
return UnmarshalInternalLinkTypePassportDataRequest(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypePhoneNumberConfirmation:
return UnmarshalInternalLinkTypePhoneNumberConfirmation(data)
2021-12-30 05:55:02 +00:00
2022-06-21 18:10:07 +00:00
case TypeInternalLinkTypePremiumFeatures:
return UnmarshalInternalLinkTypePremiumFeatures(data)
2022-03-31 08:54:35 +00:00
case TypeInternalLinkTypePrivacyAndSecuritySettings:
return UnmarshalInternalLinkTypePrivacyAndSecuritySettings(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeProxy:
return UnmarshalInternalLinkTypeProxy(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypePublicChat:
return UnmarshalInternalLinkTypePublicChat(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeQrCodeAuthentication:
return UnmarshalInternalLinkTypeQrCodeAuthentication(data)
2021-12-30 05:55:02 +00:00
2022-08-13 15:24:07 +00:00
case TypeInternalLinkTypeRestorePurchases:
return UnmarshalInternalLinkTypeRestorePurchases(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeSettings:
return UnmarshalInternalLinkTypeSettings(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeStickerSet:
return UnmarshalInternalLinkTypeStickerSet(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeTheme:
return UnmarshalInternalLinkTypeTheme(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeThemeSettings:
return UnmarshalInternalLinkTypeThemeSettings(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeUnknownDeepLink:
return UnmarshalInternalLinkTypeUnknownDeepLink(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeUnsupportedProxy:
return UnmarshalInternalLinkTypeUnsupportedProxy(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeUserPhoneNumber:
return UnmarshalInternalLinkTypeUserPhoneNumber(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeVideoChat:
return UnmarshalInternalLinkTypeVideoChat(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-12-30 05:55:02 +00:00
}
func UnmarshalListOfInternalLinkType(dataList []json.RawMessage) ([]InternalLinkType, error) {
2022-03-13 04:04:12 +00:00
list := []InternalLinkType{}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalInternalLinkType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalFileType(data json.RawMessage) (FileType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeFileTypeNone:
return UnmarshalFileTypeNone(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeAnimation:
return UnmarshalFileTypeAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeAudio:
return UnmarshalFileTypeAudio(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeDocument:
return UnmarshalFileTypeDocument(data)
2018-08-30 14:55:42 +00:00
2022-04-24 20:33:39 +00:00
case TypeFileTypeNotificationSound:
return UnmarshalFileTypeNotificationSound(data)
2022-03-13 04:04:12 +00:00
case TypeFileTypePhoto:
return UnmarshalFileTypePhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeProfilePhoto:
return UnmarshalFileTypeProfilePhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeSecret:
return UnmarshalFileTypeSecret(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeSecretThumbnail:
return UnmarshalFileTypeSecretThumbnail(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeSecure:
return UnmarshalFileTypeSecure(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeSticker:
return UnmarshalFileTypeSticker(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeThumbnail:
return UnmarshalFileTypeThumbnail(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeUnknown:
return UnmarshalFileTypeUnknown(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeVideo:
return UnmarshalFileTypeVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeVideoNote:
return UnmarshalFileTypeVideoNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeVoiceNote:
return UnmarshalFileTypeVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeWallpaper:
return UnmarshalFileTypeWallpaper(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfFileType(dataList []json.RawMessage) ([]FileType, error) {
2022-03-13 04:04:12 +00:00
list := []FileType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalFileType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalNetworkType(data json.RawMessage) (NetworkType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeNetworkTypeNone:
return UnmarshalNetworkTypeNone(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkTypeMobile:
return UnmarshalNetworkTypeMobile(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkTypeMobileRoaming:
return UnmarshalNetworkTypeMobileRoaming(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkTypeWiFi:
return UnmarshalNetworkTypeWiFi(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkTypeOther:
return UnmarshalNetworkTypeOther(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfNetworkType(dataList []json.RawMessage) ([]NetworkType, error) {
2022-03-13 04:04:12 +00:00
list := []NetworkType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalNetworkType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalNetworkStatisticsEntry(data json.RawMessage) (NetworkStatisticsEntry, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeNetworkStatisticsEntryFile:
return UnmarshalNetworkStatisticsEntryFile(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkStatisticsEntryCall:
return UnmarshalNetworkStatisticsEntryCall(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfNetworkStatisticsEntry(dataList []json.RawMessage) ([]NetworkStatisticsEntry, error) {
2022-03-13 04:04:12 +00:00
list := []NetworkStatisticsEntry{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalNetworkStatisticsEntry(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalConnectionState(data json.RawMessage) (ConnectionState, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeConnectionStateWaitingForNetwork:
return UnmarshalConnectionStateWaitingForNetwork(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeConnectionStateConnectingToProxy:
return UnmarshalConnectionStateConnectingToProxy(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeConnectionStateConnecting:
return UnmarshalConnectionStateConnecting(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeConnectionStateUpdating:
return UnmarshalConnectionStateUpdating(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeConnectionStateReady:
return UnmarshalConnectionStateReady(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfConnectionState(dataList []json.RawMessage) ([]ConnectionState, error) {
2022-03-13 04:04:12 +00:00
list := []ConnectionState{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalConnectionState(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalTopChatCategory(data json.RawMessage) (TopChatCategory, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeTopChatCategoryUsers:
return UnmarshalTopChatCategoryUsers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryBots:
return UnmarshalTopChatCategoryBots(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryGroups:
return UnmarshalTopChatCategoryGroups(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryChannels:
return UnmarshalTopChatCategoryChannels(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryInlineBots:
return UnmarshalTopChatCategoryInlineBots(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryCalls:
return UnmarshalTopChatCategoryCalls(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryForwardChats:
return UnmarshalTopChatCategoryForwardChats(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfTopChatCategory(dataList []json.RawMessage) ([]TopChatCategory, error) {
2022-03-13 04:04:12 +00:00
list := []TopChatCategory{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalTopChatCategory(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalTMeUrlType(data json.RawMessage) (TMeUrlType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeTMeUrlTypeUser:
return UnmarshalTMeUrlTypeUser(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTMeUrlTypeSupergroup:
return UnmarshalTMeUrlTypeSupergroup(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTMeUrlTypeChatInvite:
return UnmarshalTMeUrlTypeChatInvite(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTMeUrlTypeStickerSet:
return UnmarshalTMeUrlTypeStickerSet(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfTMeUrlType(dataList []json.RawMessage) ([]TMeUrlType, error) {
2022-03-13 04:04:12 +00:00
list := []TMeUrlType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalTMeUrlType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalSuggestedAction(data json.RawMessage) (SuggestedAction, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeSuggestedActionEnableArchiveAndMuteNewChats:
return UnmarshalSuggestedActionEnableArchiveAndMuteNewChats(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeSuggestedActionCheckPassword:
return UnmarshalSuggestedActionCheckPassword(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeSuggestedActionCheckPhoneNumber:
return UnmarshalSuggestedActionCheckPhoneNumber(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeSuggestedActionViewChecksHint:
return UnmarshalSuggestedActionViewChecksHint(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeSuggestedActionConvertToBroadcastGroup:
return UnmarshalSuggestedActionConvertToBroadcastGroup(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeSuggestedActionSetPassword:
return UnmarshalSuggestedActionSetPassword(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-11-30 09:33:47 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfSuggestedAction(dataList []json.RawMessage) ([]SuggestedAction, error) {
2022-03-13 04:04:12 +00:00
list := []SuggestedAction{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalSuggestedAction(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalTextParseMode(data json.RawMessage) (TextParseMode, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeTextParseModeMarkdown:
return UnmarshalTextParseModeMarkdown(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextParseModeHTML:
return UnmarshalTextParseModeHTML(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfTextParseMode(dataList []json.RawMessage) ([]TextParseMode, error) {
2022-03-13 04:04:12 +00:00
list := []TextParseMode{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalTextParseMode(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalProxyType(data json.RawMessage) (ProxyType, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeProxyTypeSocks5:
return UnmarshalProxyTypeSocks5(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeProxyTypeHttp:
return UnmarshalProxyTypeHttp(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeProxyTypeMtproto:
return UnmarshalProxyTypeMtproto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfProxyType(dataList []json.RawMessage) ([]ProxyType, error) {
2022-03-13 04:04:12 +00:00
list := []ProxyType{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalProxyType(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalStatisticalGraph(data json.RawMessage) (StatisticalGraph, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeStatisticalGraphData:
return UnmarshalStatisticalGraphData(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeStatisticalGraphAsync:
return UnmarshalStatisticalGraphAsync(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeStatisticalGraphError:
return UnmarshalStatisticalGraphError(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-11-30 09:33:47 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfStatisticalGraph(dataList []json.RawMessage) ([]StatisticalGraph, error) {
2022-03-13 04:04:12 +00:00
list := []StatisticalGraph{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalStatisticalGraph(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalChatStatistics(data json.RawMessage) (ChatStatistics, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeChatStatisticsSupergroup:
return UnmarshalChatStatisticsSupergroup(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatStatisticsChannel:
return UnmarshalChatStatisticsChannel(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2020-11-30 09:33:47 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfChatStatistics(dataList []json.RawMessage) ([]ChatStatistics, error) {
2022-03-13 04:04:12 +00:00
list := []ChatStatistics{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalChatStatistics(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalVectorPathCommand(data json.RawMessage) (VectorPathCommand, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeVectorPathCommandLine:
return UnmarshalVectorPathCommandLine(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeVectorPathCommandCubicBezierCurve:
return UnmarshalVectorPathCommandCubicBezierCurve(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-12-30 05:55:02 +00:00
}
func UnmarshalListOfVectorPathCommand(dataList []json.RawMessage) ([]VectorPathCommand, error) {
2022-03-13 04:04:12 +00:00
list := []VectorPathCommand{}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalVectorPathCommand(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-12-30 05:55:02 +00:00
}
func UnmarshalBotCommandScope(data json.RawMessage) (BotCommandScope, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeBotCommandScopeDefault:
return UnmarshalBotCommandScopeDefault(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeAllPrivateChats:
return UnmarshalBotCommandScopeAllPrivateChats(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeAllGroupChats:
return UnmarshalBotCommandScopeAllGroupChats(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeAllChatAdministrators:
return UnmarshalBotCommandScopeAllChatAdministrators(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeChat:
return UnmarshalBotCommandScopeChat(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeChatAdministrators:
return UnmarshalBotCommandScopeChatAdministrators(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeChatMember:
return UnmarshalBotCommandScopeChatMember(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2021-12-30 05:55:02 +00:00
}
func UnmarshalListOfBotCommandScope(dataList []json.RawMessage) ([]BotCommandScope, error) {
2022-03-13 04:04:12 +00:00
list := []BotCommandScope{}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalBotCommandScope(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUpdate(data json.RawMessage) (Update, error) {
2022-03-13 04:04:12 +00:00
var meta meta
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
switch meta.Type {
case TypeUpdateAuthorizationState:
return UnmarshalUpdateAuthorizationState(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewMessage:
return UnmarshalUpdateNewMessage(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageSendAcknowledged:
return UnmarshalUpdateMessageSendAcknowledged(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageSendSucceeded:
return UnmarshalUpdateMessageSendSucceeded(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageSendFailed:
return UnmarshalUpdateMessageSendFailed(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageContent:
return UnmarshalUpdateMessageContent(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageEdited:
return UnmarshalUpdateMessageEdited(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageIsPinned:
return UnmarshalUpdateMessageIsPinned(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageInteractionInfo:
return UnmarshalUpdateMessageInteractionInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageContentOpened:
return UnmarshalUpdateMessageContentOpened(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageMentionRead:
return UnmarshalUpdateMessageMentionRead(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageUnreadReactions:
return UnmarshalUpdateMessageUnreadReactions(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageLiveLocationViewed:
return UnmarshalUpdateMessageLiveLocationViewed(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewChat:
return UnmarshalUpdateNewChat(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatTitle:
return UnmarshalUpdateChatTitle(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatPhoto:
return UnmarshalUpdateChatPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatPermissions:
return UnmarshalUpdateChatPermissions(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatLastMessage:
return UnmarshalUpdateChatLastMessage(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatPosition:
return UnmarshalUpdateChatPosition(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatReadInbox:
return UnmarshalUpdateChatReadInbox(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatReadOutbox:
return UnmarshalUpdateChatReadOutbox(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatActionBar:
return UnmarshalUpdateChatActionBar(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatAvailableReactions:
return UnmarshalUpdateChatAvailableReactions(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatDraftMessage:
return UnmarshalUpdateChatDraftMessage(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatMessageSender:
return UnmarshalUpdateChatMessageSender(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatMessageTtl:
return UnmarshalUpdateChatMessageTtl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatNotificationSettings:
return UnmarshalUpdateChatNotificationSettings(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatPendingJoinRequests:
return UnmarshalUpdateChatPendingJoinRequests(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatReplyMarkup:
return UnmarshalUpdateChatReplyMarkup(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatTheme:
return UnmarshalUpdateChatTheme(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatUnreadMentionCount:
return UnmarshalUpdateChatUnreadMentionCount(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatUnreadReactionCount:
return UnmarshalUpdateChatUnreadReactionCount(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatVideoChat:
return UnmarshalUpdateChatVideoChat(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatDefaultDisableNotification:
return UnmarshalUpdateChatDefaultDisableNotification(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatHasProtectedContent:
return UnmarshalUpdateChatHasProtectedContent(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatHasScheduledMessages:
return UnmarshalUpdateChatHasScheduledMessages(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatIsBlocked:
return UnmarshalUpdateChatIsBlocked(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatIsMarkedAsUnread:
return UnmarshalUpdateChatIsMarkedAsUnread(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatFilters:
return UnmarshalUpdateChatFilters(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatOnlineMemberCount:
return UnmarshalUpdateChatOnlineMemberCount(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateScopeNotificationSettings:
return UnmarshalUpdateScopeNotificationSettings(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNotification:
return UnmarshalUpdateNotification(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNotificationGroup:
return UnmarshalUpdateNotificationGroup(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateActiveNotifications:
return UnmarshalUpdateActiveNotifications(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateHavePendingNotifications:
return UnmarshalUpdateHavePendingNotifications(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateDeleteMessages:
return UnmarshalUpdateDeleteMessages(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatAction:
return UnmarshalUpdateChatAction(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUserStatus:
return UnmarshalUpdateUserStatus(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUser:
return UnmarshalUpdateUser(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateBasicGroup:
return UnmarshalUpdateBasicGroup(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateSupergroup:
return UnmarshalUpdateSupergroup(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateSecretChat:
return UnmarshalUpdateSecretChat(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUserFullInfo:
return UnmarshalUpdateUserFullInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateBasicGroupFullInfo:
return UnmarshalUpdateBasicGroupFullInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateSupergroupFullInfo:
return UnmarshalUpdateSupergroupFullInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateServiceNotification:
return UnmarshalUpdateServiceNotification(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFile:
return UnmarshalUpdateFile(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFileGenerationStart:
return UnmarshalUpdateFileGenerationStart(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFileGenerationStop:
return UnmarshalUpdateFileGenerationStop(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFileDownloads:
return UnmarshalUpdateFileDownloads(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFileAddedToDownloads:
return UnmarshalUpdateFileAddedToDownloads(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFileDownload:
return UnmarshalUpdateFileDownload(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFileRemovedFromDownloads:
return UnmarshalUpdateFileRemovedFromDownloads(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateCall:
return UnmarshalUpdateCall(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateGroupCall:
return UnmarshalUpdateGroupCall(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateGroupCallParticipant:
return UnmarshalUpdateGroupCallParticipant(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewCallSignalingData:
return UnmarshalUpdateNewCallSignalingData(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUserPrivacySettingRules:
return UnmarshalUpdateUserPrivacySettingRules(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUnreadMessageCount:
return UnmarshalUpdateUnreadMessageCount(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUnreadChatCount:
return UnmarshalUpdateUnreadChatCount(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateOption:
return UnmarshalUpdateOption(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateStickerSet:
return UnmarshalUpdateStickerSet(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateInstalledStickerSets:
return UnmarshalUpdateInstalledStickerSets(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateTrendingStickerSets:
return UnmarshalUpdateTrendingStickerSets(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateRecentStickers:
return UnmarshalUpdateRecentStickers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFavoriteStickers:
return UnmarshalUpdateFavoriteStickers(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateSavedAnimations:
return UnmarshalUpdateSavedAnimations(data)
2021-12-30 05:55:02 +00:00
2022-04-24 20:33:39 +00:00
case TypeUpdateSavedNotificationSounds:
return UnmarshalUpdateSavedNotificationSounds(data)
2022-03-13 04:04:12 +00:00
case TypeUpdateSelectedBackground:
return UnmarshalUpdateSelectedBackground(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatThemes:
return UnmarshalUpdateChatThemes(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateLanguagePackStrings:
return UnmarshalUpdateLanguagePackStrings(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateConnectionState:
return UnmarshalUpdateConnectionState(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateTermsOfService:
return UnmarshalUpdateTermsOfService(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUsersNearby:
return UnmarshalUpdateUsersNearby(data)
2020-11-30 09:33:47 +00:00
2022-04-24 20:33:39 +00:00
case TypeUpdateAttachmentMenuBots:
return UnmarshalUpdateAttachmentMenuBots(data)
case TypeUpdateWebAppMessageSent:
return UnmarshalUpdateWebAppMessageSent(data)
2022-03-13 04:04:12 +00:00
case TypeUpdateReactions:
return UnmarshalUpdateReactions(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateDiceEmojis:
return UnmarshalUpdateDiceEmojis(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateAnimatedEmojiMessageClicked:
return UnmarshalUpdateAnimatedEmojiMessageClicked(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateAnimationSearchParameters:
return UnmarshalUpdateAnimationSearchParameters(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateSuggestedActions:
return UnmarshalUpdateSuggestedActions(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewInlineQuery:
return UnmarshalUpdateNewInlineQuery(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewChosenInlineResult:
return UnmarshalUpdateNewChosenInlineResult(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewCallbackQuery:
return UnmarshalUpdateNewCallbackQuery(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewInlineCallbackQuery:
return UnmarshalUpdateNewInlineCallbackQuery(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewShippingQuery:
return UnmarshalUpdateNewShippingQuery(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewPreCheckoutQuery:
return UnmarshalUpdateNewPreCheckoutQuery(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewCustomEvent:
return UnmarshalUpdateNewCustomEvent(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewCustomQuery:
return UnmarshalUpdateNewCustomQuery(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdatePoll:
return UnmarshalUpdatePoll(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdatePollAnswer:
return UnmarshalUpdatePollAnswer(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatMember:
return UnmarshalUpdateChatMember(data)
case TypeUpdateNewChatJoinRequest:
return UnmarshalUpdateNewChatJoinRequest(data)
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2019-06-07 10:56:06 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfUpdate(dataList []json.RawMessage) ([]Update, error) {
2022-03-13 04:04:12 +00:00
list := []Update{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalUpdate(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalLogStream(data json.RawMessage) (LogStream, error) {
2022-03-13 04:04:12 +00:00
var meta meta
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
switch meta.Type {
case TypeLogStreamDefault:
return UnmarshalLogStreamDefault(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeLogStreamFile:
return UnmarshalLogStreamFile(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeLogStreamEmpty:
return UnmarshalLogStreamEmpty(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2021-01-18 14:16:52 +00:00
func UnmarshalListOfLogStream(dataList []json.RawMessage) ([]LogStream, error) {
2022-03-13 04:04:12 +00:00
list := []LogStream{}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
for _, data := range dataList {
entity, err := UnmarshalLogStream(data)
if err != nil {
return nil, err
}
list = append(list, entity)
}
2021-01-18 14:16:52 +00:00
2022-03-13 04:04:12 +00:00
return list, nil
2021-01-18 14:16:52 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalError(data json.RawMessage) (*Error, error) {
2022-03-13 04:04:12 +00:00
var resp Error
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalOk(data json.RawMessage) (*Ok, error) {
2022-03-13 04:04:12 +00:00
var resp Ok
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTdlibParameters(data json.RawMessage) (*TdlibParameters, error) {
2022-03-13 04:04:12 +00:00
var resp TdlibParameters
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthenticationCodeTypeTelegramMessage(data json.RawMessage) (*AuthenticationCodeTypeTelegramMessage, error) {
2022-03-13 04:04:12 +00:00
var resp AuthenticationCodeTypeTelegramMessage
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthenticationCodeTypeSms(data json.RawMessage) (*AuthenticationCodeTypeSms, error) {
2022-03-13 04:04:12 +00:00
var resp AuthenticationCodeTypeSms
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthenticationCodeTypeCall(data json.RawMessage) (*AuthenticationCodeTypeCall, error) {
2022-03-13 04:04:12 +00:00
var resp AuthenticationCodeTypeCall
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthenticationCodeTypeFlashCall(data json.RawMessage) (*AuthenticationCodeTypeFlashCall, error) {
2022-03-13 04:04:12 +00:00
var resp AuthenticationCodeTypeFlashCall
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalAuthenticationCodeTypeMissedCall(data json.RawMessage) (*AuthenticationCodeTypeMissedCall, error) {
2022-03-13 04:04:12 +00:00
var resp AuthenticationCodeTypeMissedCall
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalAuthenticationCodeInfo(data json.RawMessage) (*AuthenticationCodeInfo, error) {
2022-03-13 04:04:12 +00:00
var resp AuthenticationCodeInfo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalEmailAddressAuthenticationCodeInfo(data json.RawMessage) (*EmailAddressAuthenticationCodeInfo, error) {
2022-03-13 04:04:12 +00:00
var resp EmailAddressAuthenticationCodeInfo
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalTextEntity(data json.RawMessage) (*TextEntity, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntity
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalTextEntities(data json.RawMessage) (*TextEntities, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntities
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalFormattedText(data json.RawMessage) (*FormattedText, error) {
2022-03-13 04:04:12 +00:00
var resp FormattedText
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalTermsOfService(data json.RawMessage) (*TermsOfService, error) {
2022-03-13 04:04:12 +00:00
var resp TermsOfService
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalAuthorizationStateWaitTdlibParameters(data json.RawMessage) (*AuthorizationStateWaitTdlibParameters, error) {
2022-03-13 04:04:12 +00:00
var resp AuthorizationStateWaitTdlibParameters
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateWaitEncryptionKey(data json.RawMessage) (*AuthorizationStateWaitEncryptionKey, error) {
2022-03-13 04:04:12 +00:00
var resp AuthorizationStateWaitEncryptionKey
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateWaitPhoneNumber(data json.RawMessage) (*AuthorizationStateWaitPhoneNumber, error) {
2022-03-13 04:04:12 +00:00
var resp AuthorizationStateWaitPhoneNumber
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateWaitCode(data json.RawMessage) (*AuthorizationStateWaitCode, error) {
2022-03-13 04:04:12 +00:00
var resp AuthorizationStateWaitCode
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalAuthorizationStateWaitOtherDeviceConfirmation(data json.RawMessage) (*AuthorizationStateWaitOtherDeviceConfirmation, error) {
2022-03-13 04:04:12 +00:00
var resp AuthorizationStateWaitOtherDeviceConfirmation
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalAuthorizationStateWaitRegistration(data json.RawMessage) (*AuthorizationStateWaitRegistration, error) {
2022-03-13 04:04:12 +00:00
var resp AuthorizationStateWaitRegistration
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalAuthorizationStateWaitPassword(data json.RawMessage) (*AuthorizationStateWaitPassword, error) {
2022-03-13 04:04:12 +00:00
var resp AuthorizationStateWaitPassword
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateReady(data json.RawMessage) (*AuthorizationStateReady, error) {
2022-03-13 04:04:12 +00:00
var resp AuthorizationStateReady
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateLoggingOut(data json.RawMessage) (*AuthorizationStateLoggingOut, error) {
2022-03-13 04:04:12 +00:00
var resp AuthorizationStateLoggingOut
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateClosing(data json.RawMessage) (*AuthorizationStateClosing, error) {
2022-03-13 04:04:12 +00:00
var resp AuthorizationStateClosing
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateClosed(data json.RawMessage) (*AuthorizationStateClosed, error) {
2022-03-13 04:04:12 +00:00
var resp AuthorizationStateClosed
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalPasswordState(data json.RawMessage) (*PasswordState, error) {
2022-03-13 04:04:12 +00:00
var resp PasswordState
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalRecoveryEmailAddress(data json.RawMessage) (*RecoveryEmailAddress, error) {
2022-03-13 04:04:12 +00:00
var resp RecoveryEmailAddress
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTemporaryPasswordState(data json.RawMessage) (*TemporaryPasswordState, error) {
2022-03-13 04:04:12 +00:00
var resp TemporaryPasswordState
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalLocalFile(data json.RawMessage) (*LocalFile, error) {
2022-03-13 04:04:12 +00:00
var resp LocalFile
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalRemoteFile(data json.RawMessage) (*RemoteFile, error) {
2022-03-13 04:04:12 +00:00
var resp RemoteFile
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFile(data json.RawMessage) (*File, error) {
2022-03-13 04:04:12 +00:00
var resp File
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputFileId(data json.RawMessage) (*InputFileId, error) {
2022-03-13 04:04:12 +00:00
var resp InputFileId
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputFileRemote(data json.RawMessage) (*InputFileRemote, error) {
2022-03-13 04:04:12 +00:00
var resp InputFileRemote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputFileLocal(data json.RawMessage) (*InputFileLocal, error) {
2022-03-13 04:04:12 +00:00
var resp InputFileLocal
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputFileGenerated(data json.RawMessage) (*InputFileGenerated, error) {
2022-03-13 04:04:12 +00:00
var resp InputFileGenerated
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalPhotoSize(data json.RawMessage) (*PhotoSize, error) {
2022-03-13 04:04:12 +00:00
var resp PhotoSize
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalMinithumbnail(data json.RawMessage) (*Minithumbnail, error) {
2022-03-13 04:04:12 +00:00
var resp Minithumbnail
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalThumbnailFormatJpeg(data json.RawMessage) (*ThumbnailFormatJpeg, error) {
2022-03-13 04:04:12 +00:00
var resp ThumbnailFormatJpeg
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalThumbnailFormatGif(data json.RawMessage) (*ThumbnailFormatGif, error) {
2022-03-13 04:04:12 +00:00
var resp ThumbnailFormatGif
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalThumbnailFormatMpeg4(data json.RawMessage) (*ThumbnailFormatMpeg4, error) {
2022-03-13 04:04:12 +00:00
var resp ThumbnailFormatMpeg4
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalThumbnailFormatPng(data json.RawMessage) (*ThumbnailFormatPng, error) {
2022-03-13 04:04:12 +00:00
var resp ThumbnailFormatPng
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalThumbnailFormatTgs(data json.RawMessage) (*ThumbnailFormatTgs, error) {
2022-03-13 04:04:12 +00:00
var resp ThumbnailFormatTgs
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalThumbnailFormatWebm(data json.RawMessage) (*ThumbnailFormatWebm, error) {
2022-03-13 04:04:12 +00:00
var resp ThumbnailFormatWebm
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
func UnmarshalThumbnailFormatWebp(data json.RawMessage) (*ThumbnailFormatWebp, error) {
2022-03-13 04:04:12 +00:00
var resp ThumbnailFormatWebp
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalThumbnail(data json.RawMessage) (*Thumbnail, error) {
2022-03-13 04:04:12 +00:00
var resp Thumbnail
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalMaskPointForehead(data json.RawMessage) (*MaskPointForehead, error) {
2022-03-13 04:04:12 +00:00
var resp MaskPointForehead
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMaskPointEyes(data json.RawMessage) (*MaskPointEyes, error) {
2022-03-13 04:04:12 +00:00
var resp MaskPointEyes
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMaskPointMouth(data json.RawMessage) (*MaskPointMouth, error) {
2022-03-13 04:04:12 +00:00
var resp MaskPointMouth
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMaskPointChin(data json.RawMessage) (*MaskPointChin, error) {
2022-03-13 04:04:12 +00:00
var resp MaskPointChin
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMaskPosition(data json.RawMessage) (*MaskPosition, error) {
2022-03-13 04:04:12 +00:00
var resp MaskPosition
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-08-13 15:24:07 +00:00
func UnmarshalStickerFormatWebp(data json.RawMessage) (*StickerFormatWebp, error) {
var resp StickerFormatWebp
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalStickerFormatTgs(data json.RawMessage) (*StickerFormatTgs, error) {
var resp StickerFormatTgs
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2022-08-13 15:24:07 +00:00
func UnmarshalStickerFormatWebm(data json.RawMessage) (*StickerFormatWebm, error) {
var resp StickerFormatWebm
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2022-08-13 15:24:07 +00:00
func UnmarshalStickerTypeRegular(data json.RawMessage) (*StickerTypeRegular, error) {
var resp StickerTypeRegular
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
func UnmarshalStickerTypeMask(data json.RawMessage) (*StickerTypeMask, error) {
2022-03-13 04:04:12 +00:00
var resp StickerTypeMask
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2022-08-13 15:24:07 +00:00
func UnmarshalStickerTypeCustomEmoji(data json.RawMessage) (*StickerTypeCustomEmoji, error) {
var resp StickerTypeCustomEmoji
err := json.Unmarshal(data, &resp)
return &resp, err
}
2021-12-30 05:55:02 +00:00
func UnmarshalClosedVectorPath(data json.RawMessage) (*ClosedVectorPath, error) {
2022-03-13 04:04:12 +00:00
var resp ClosedVectorPath
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPollOption(data json.RawMessage) (*PollOption, error) {
2022-03-13 04:04:12 +00:00
var resp PollOption
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalPollTypeRegular(data json.RawMessage) (*PollTypeRegular, error) {
2022-03-13 04:04:12 +00:00
var resp PollTypeRegular
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalPollTypeQuiz(data json.RawMessage) (*PollTypeQuiz, error) {
2022-03-13 04:04:12 +00:00
var resp PollTypeQuiz
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalAnimation(data json.RawMessage) (*Animation, error) {
2022-03-13 04:04:12 +00:00
var resp Animation
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAudio(data json.RawMessage) (*Audio, error) {
2022-03-13 04:04:12 +00:00
var resp Audio
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDocument(data json.RawMessage) (*Document, error) {
2022-03-13 04:04:12 +00:00
var resp Document
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalPhoto(data json.RawMessage) (*Photo, error) {
2022-03-13 04:04:12 +00:00
var resp Photo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSticker(data json.RawMessage) (*Sticker, error) {
2022-03-13 04:04:12 +00:00
var resp Sticker
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalVideo(data json.RawMessage) (*Video, error) {
2022-03-13 04:04:12 +00:00
var resp Video
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalVideoNote(data json.RawMessage) (*VideoNote, error) {
2022-03-13 04:04:12 +00:00
var resp VideoNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalVoiceNote(data json.RawMessage) (*VoiceNote, error) {
2022-03-13 04:04:12 +00:00
var resp VoiceNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalAnimatedEmoji(data json.RawMessage) (*AnimatedEmoji, error) {
2022-03-13 04:04:12 +00:00
var resp AnimatedEmoji
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalContact(data json.RawMessage) (*Contact, error) {
2022-03-13 04:04:12 +00:00
var resp Contact
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalLocation(data json.RawMessage) (*Location, error) {
2022-03-13 04:04:12 +00:00
var resp Location
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalVenue(data json.RawMessage) (*Venue, error) {
2022-03-13 04:04:12 +00:00
var resp Venue
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalGame(data json.RawMessage) (*Game, error) {
2022-03-13 04:04:12 +00:00
var resp Game
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPoll(data json.RawMessage) (*Poll, error) {
2022-03-13 04:04:12 +00:00
var resp Poll
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalProfilePhoto(data json.RawMessage) (*ProfilePhoto, error) {
2022-03-13 04:04:12 +00:00
var resp ProfilePhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalChatPhotoInfo(data json.RawMessage) (*ChatPhotoInfo, error) {
2022-03-13 04:04:12 +00:00
var resp ChatPhotoInfo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserTypeRegular(data json.RawMessage) (*UserTypeRegular, error) {
2022-03-13 04:04:12 +00:00
var resp UserTypeRegular
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserTypeDeleted(data json.RawMessage) (*UserTypeDeleted, error) {
2022-03-13 04:04:12 +00:00
var resp UserTypeDeleted
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserTypeBot(data json.RawMessage) (*UserTypeBot, error) {
2022-03-13 04:04:12 +00:00
var resp UserTypeBot
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserTypeUnknown(data json.RawMessage) (*UserTypeUnknown, error) {
2022-03-13 04:04:12 +00:00
var resp UserTypeUnknown
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalBotCommand(data json.RawMessage) (*BotCommand, error) {
2022-03-13 04:04:12 +00:00
var resp BotCommand
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalBotCommands(data json.RawMessage) (*BotCommands, error) {
2022-03-13 04:04:12 +00:00
var resp BotCommands
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-04-24 20:33:39 +00:00
func UnmarshalBotMenuButton(data json.RawMessage) (*BotMenuButton, error) {
var resp BotMenuButton
err := json.Unmarshal(data, &resp)
return &resp, err
}
2020-02-03 12:56:20 +00:00
func UnmarshalChatLocation(data json.RawMessage) (*ChatLocation, error) {
2022-03-13 04:04:12 +00:00
var resp ChatLocation
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalAnimatedChatPhoto(data json.RawMessage) (*AnimatedChatPhoto, error) {
2022-03-13 04:04:12 +00:00
var resp AnimatedChatPhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalChatPhoto(data json.RawMessage) (*ChatPhoto, error) {
2022-03-13 04:04:12 +00:00
var resp ChatPhoto
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalChatPhotos(data json.RawMessage) (*ChatPhotos, error) {
2022-03-13 04:04:12 +00:00
var resp ChatPhotos
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalInputChatPhotoPrevious(data json.RawMessage) (*InputChatPhotoPrevious, error) {
2022-03-13 04:04:12 +00:00
var resp InputChatPhotoPrevious
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalInputChatPhotoStatic(data json.RawMessage) (*InputChatPhotoStatic, error) {
2022-03-13 04:04:12 +00:00
var resp InputChatPhotoStatic
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalInputChatPhotoAnimation(data json.RawMessage) (*InputChatPhotoAnimation, error) {
2022-03-13 04:04:12 +00:00
var resp InputChatPhotoAnimation
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2022-04-24 20:33:39 +00:00
func UnmarshalChatPermissions(data json.RawMessage) (*ChatPermissions, error) {
var resp ChatPermissions
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalChatAdministratorRights(data json.RawMessage) (*ChatAdministratorRights, error) {
var resp ChatAdministratorRights
err := json.Unmarshal(data, &resp)
return &resp, err
}
2022-08-13 15:24:07 +00:00
func UnmarshalPremiumGiftOption(data json.RawMessage) (*PremiumGiftOption, error) {
var resp PremiumGiftOption
err := json.Unmarshal(data, &resp)
return &resp, err
}
2020-11-30 09:33:47 +00:00
func UnmarshalUser(data json.RawMessage) (*User, error) {
2022-03-13 04:04:12 +00:00
var resp User
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2022-04-24 20:33:39 +00:00
func UnmarshalBotInfo(data json.RawMessage) (*BotInfo, error) {
var resp BotInfo
err := json.Unmarshal(data, &resp)
return &resp, err
}
2020-11-30 09:33:47 +00:00
func UnmarshalUserFullInfo(data json.RawMessage) (*UserFullInfo, error) {
2022-03-13 04:04:12 +00:00
var resp UserFullInfo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUsers(data json.RawMessage) (*Users, error) {
2022-03-13 04:04:12 +00:00
var resp Users
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalChatAdministrator(data json.RawMessage) (*ChatAdministrator, error) {
2022-03-13 04:04:12 +00:00
var resp ChatAdministrator
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalChatAdministrators(data json.RawMessage) (*ChatAdministrators, error) {
2022-03-13 04:04:12 +00:00
var resp ChatAdministrators
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalChatMemberStatusCreator(data json.RawMessage) (*ChatMemberStatusCreator, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMemberStatusCreator
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMemberStatusAdministrator(data json.RawMessage) (*ChatMemberStatusAdministrator, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMemberStatusAdministrator
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMemberStatusMember(data json.RawMessage) (*ChatMemberStatusMember, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMemberStatusMember
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMemberStatusRestricted(data json.RawMessage) (*ChatMemberStatusRestricted, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMemberStatusRestricted
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMemberStatusLeft(data json.RawMessage) (*ChatMemberStatusLeft, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMemberStatusLeft
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMemberStatusBanned(data json.RawMessage) (*ChatMemberStatusBanned, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMemberStatusBanned
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMember(data json.RawMessage) (*ChatMember, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMember
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMembers(data json.RawMessage) (*ChatMembers, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMembers
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalChatMembersFilterContacts(data json.RawMessage) (*ChatMembersFilterContacts, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMembersFilterContacts
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatMembersFilterAdministrators(data json.RawMessage) (*ChatMembersFilterAdministrators, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMembersFilterAdministrators
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatMembersFilterMembers(data json.RawMessage) (*ChatMembersFilterMembers, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMembersFilterMembers
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalChatMembersFilterMention(data json.RawMessage) (*ChatMembersFilterMention, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMembersFilterMention
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatMembersFilterRestricted(data json.RawMessage) (*ChatMembersFilterRestricted, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMembersFilterRestricted
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatMembersFilterBanned(data json.RawMessage) (*ChatMembersFilterBanned, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMembersFilterBanned
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatMembersFilterBots(data json.RawMessage) (*ChatMembersFilterBots, error) {
2022-03-13 04:04:12 +00:00
var resp ChatMembersFilterBots
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalSupergroupMembersFilterRecent(data json.RawMessage) (*SupergroupMembersFilterRecent, error) {
2022-03-13 04:04:12 +00:00
var resp SupergroupMembersFilterRecent
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalSupergroupMembersFilterContacts(data json.RawMessage) (*SupergroupMembersFilterContacts, error) {
2022-03-13 04:04:12 +00:00
var resp SupergroupMembersFilterContacts
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalSupergroupMembersFilterAdministrators(data json.RawMessage) (*SupergroupMembersFilterAdministrators, error) {
2022-03-13 04:04:12 +00:00
var resp SupergroupMembersFilterAdministrators
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalSupergroupMembersFilterSearch(data json.RawMessage) (*SupergroupMembersFilterSearch, error) {
2022-03-13 04:04:12 +00:00
var resp SupergroupMembersFilterSearch
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalSupergroupMembersFilterRestricted(data json.RawMessage) (*SupergroupMembersFilterRestricted, error) {
2022-03-13 04:04:12 +00:00
var resp SupergroupMembersFilterRestricted
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalSupergroupMembersFilterBanned(data json.RawMessage) (*SupergroupMembersFilterBanned, error) {
2022-03-13 04:04:12 +00:00
var resp SupergroupMembersFilterBanned
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalSupergroupMembersFilterMention(data json.RawMessage) (*SupergroupMembersFilterMention, error) {
2022-03-13 04:04:12 +00:00
var resp SupergroupMembersFilterMention
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalSupergroupMembersFilterBots(data json.RawMessage) (*SupergroupMembersFilterBots, error) {
2022-03-13 04:04:12 +00:00
var resp SupergroupMembersFilterBots
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalChatInviteLink(data json.RawMessage) (*ChatInviteLink, error) {
2022-03-13 04:04:12 +00:00
var resp ChatInviteLink
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatInviteLinks(data json.RawMessage) (*ChatInviteLinks, error) {
2022-03-13 04:04:12 +00:00
var resp ChatInviteLinks
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatInviteLinkCount(data json.RawMessage) (*ChatInviteLinkCount, error) {
2022-03-13 04:04:12 +00:00
var resp ChatInviteLinkCount
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatInviteLinkCounts(data json.RawMessage) (*ChatInviteLinkCounts, error) {
2022-03-13 04:04:12 +00:00
var resp ChatInviteLinkCounts
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatInviteLinkMember(data json.RawMessage) (*ChatInviteLinkMember, error) {
2022-03-13 04:04:12 +00:00
var resp ChatInviteLinkMember
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatInviteLinkMembers(data json.RawMessage) (*ChatInviteLinkMembers, error) {
2022-03-13 04:04:12 +00:00
var resp ChatInviteLinkMembers
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatInviteLinkInfo(data json.RawMessage) (*ChatInviteLinkInfo, error) {
2022-03-13 04:04:12 +00:00
var resp ChatInviteLinkInfo
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatJoinRequest(data json.RawMessage) (*ChatJoinRequest, error) {
2022-03-13 04:04:12 +00:00
var resp ChatJoinRequest
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatJoinRequests(data json.RawMessage) (*ChatJoinRequests, error) {
2022-03-13 04:04:12 +00:00
var resp ChatJoinRequests
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatJoinRequestsInfo(data json.RawMessage) (*ChatJoinRequestsInfo, error) {
2022-03-13 04:04:12 +00:00
var resp ChatJoinRequestsInfo
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalBasicGroup(data json.RawMessage) (*BasicGroup, error) {
2022-03-13 04:04:12 +00:00
var resp BasicGroup
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalBasicGroupFullInfo(data json.RawMessage) (*BasicGroupFullInfo, error) {
2022-03-13 04:04:12 +00:00
var resp BasicGroupFullInfo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSupergroup(data json.RawMessage) (*Supergroup, error) {
2022-03-13 04:04:12 +00:00
var resp Supergroup
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSupergroupFullInfo(data json.RawMessage) (*SupergroupFullInfo, error) {
2022-03-13 04:04:12 +00:00
var resp SupergroupFullInfo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSecretChatStatePending(data json.RawMessage) (*SecretChatStatePending, error) {
2022-03-13 04:04:12 +00:00
var resp SecretChatStatePending
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSecretChatStateReady(data json.RawMessage) (*SecretChatStateReady, error) {
2022-03-13 04:04:12 +00:00
var resp SecretChatStateReady
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSecretChatStateClosed(data json.RawMessage) (*SecretChatStateClosed, error) {
2022-03-13 04:04:12 +00:00
var resp SecretChatStateClosed
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalSecretChat(data json.RawMessage) (*SecretChat, error) {
2022-03-13 04:04:12 +00:00
var resp SecretChat
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalMessageSenderUser(data json.RawMessage) (*MessageSenderUser, error) {
2022-03-13 04:04:12 +00:00
var resp MessageSenderUser
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalMessageSenderChat(data json.RawMessage) (*MessageSenderChat, error) {
2022-03-13 04:04:12 +00:00
var resp MessageSenderChat
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalMessageSenders(data json.RawMessage) (*MessageSenders, error) {
2022-03-13 04:04:12 +00:00
var resp MessageSenders
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalMessageForwardOriginUser(data json.RawMessage) (*MessageForwardOriginUser, error) {
2022-03-13 04:04:12 +00:00
var resp MessageForwardOriginUser
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalMessageForwardOriginChat(data json.RawMessage) (*MessageForwardOriginChat, error) {
2022-03-13 04:04:12 +00:00
var resp MessageForwardOriginChat
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalMessageForwardOriginHiddenUser(data json.RawMessage) (*MessageForwardOriginHiddenUser, error) {
2022-03-13 04:04:12 +00:00
var resp MessageForwardOriginHiddenUser
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalMessageForwardOriginChannel(data json.RawMessage) (*MessageForwardOriginChannel, error) {
2022-03-13 04:04:12 +00:00
var resp MessageForwardOriginChannel
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalMessageForwardOriginMessageImport(data json.RawMessage) (*MessageForwardOriginMessageImport, error) {
2022-03-13 04:04:12 +00:00
var resp MessageForwardOriginMessageImport
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalMessageForwardInfo(data json.RawMessage) (*MessageForwardInfo, error) {
2022-03-13 04:04:12 +00:00
var resp MessageForwardInfo
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalMessageReplyInfo(data json.RawMessage) (*MessageReplyInfo, error) {
2022-03-13 04:04:12 +00:00
var resp MessageReplyInfo
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalMessageReaction(data json.RawMessage) (*MessageReaction, error) {
2022-03-13 04:04:12 +00:00
var resp MessageReaction
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalMessageInteractionInfo(data json.RawMessage) (*MessageInteractionInfo, error) {
2022-03-13 04:04:12 +00:00
var resp MessageInteractionInfo
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalUnreadReaction(data json.RawMessage) (*UnreadReaction, error) {
2022-03-13 04:04:12 +00:00
var resp UnreadReaction
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalMessageSendingStatePending(data json.RawMessage) (*MessageSendingStatePending, error) {
2022-03-13 04:04:12 +00:00
var resp MessageSendingStatePending
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalMessageSendingStateFailed(data json.RawMessage) (*MessageSendingStateFailed, error) {
2022-03-13 04:04:12 +00:00
var resp MessageSendingStateFailed
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalMessage(data json.RawMessage) (*Message, error) {
2022-03-13 04:04:12 +00:00
var resp Message
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalMessages(data json.RawMessage) (*Messages, error) {
2022-03-13 04:04:12 +00:00
var resp Messages
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalFoundMessages(data json.RawMessage) (*FoundMessages, error) {
2022-03-13 04:04:12 +00:00
var resp FoundMessages
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalMessagePosition(data json.RawMessage) (*MessagePosition, error) {
2022-03-13 04:04:12 +00:00
var resp MessagePosition
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalMessagePositions(data json.RawMessage) (*MessagePositions, error) {
2022-03-13 04:04:12 +00:00
var resp MessagePositions
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalMessageCalendarDay(data json.RawMessage) (*MessageCalendarDay, error) {
2022-03-13 04:04:12 +00:00
var resp MessageCalendarDay
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalMessageCalendar(data json.RawMessage) (*MessageCalendar, error) {
2022-03-13 04:04:12 +00:00
var resp MessageCalendar
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalSponsoredMessage(data json.RawMessage) (*SponsoredMessage, error) {
2022-03-13 04:04:12 +00:00
var resp SponsoredMessage
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalFileDownload(data json.RawMessage) (*FileDownload, error) {
var resp FileDownload
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalDownloadedFileCounts(data json.RawMessage) (*DownloadedFileCounts, error) {
var resp DownloadedFileCounts
err := json.Unmarshal(data, &resp)
return &resp, err
}
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
func UnmarshalFoundFileDownloads(data json.RawMessage) (*FoundFileDownloads, error) {
var resp FoundFileDownloads
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalNotificationSettingsScopePrivateChats(data json.RawMessage) (*NotificationSettingsScopePrivateChats, error) {
2022-03-13 04:04:12 +00:00
var resp NotificationSettingsScopePrivateChats
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalNotificationSettingsScopeGroupChats(data json.RawMessage) (*NotificationSettingsScopeGroupChats, error) {
2022-03-13 04:04:12 +00:00
var resp NotificationSettingsScopeGroupChats
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotificationSettingsScopeChannelChats(data json.RawMessage) (*NotificationSettingsScopeChannelChats, error) {
2022-03-13 04:04:12 +00:00
var resp NotificationSettingsScopeChannelChats
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatNotificationSettings(data json.RawMessage) (*ChatNotificationSettings, error) {
2022-03-13 04:04:12 +00:00
var resp ChatNotificationSettings
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalScopeNotificationSettings(data json.RawMessage) (*ScopeNotificationSettings, error) {
2022-03-13 04:04:12 +00:00
var resp ScopeNotificationSettings
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalDraftMessage(data json.RawMessage) (*DraftMessage, error) {
2022-03-13 04:04:12 +00:00
var resp DraftMessage
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatTypePrivate(data json.RawMessage) (*ChatTypePrivate, error) {
2022-03-13 04:04:12 +00:00
var resp ChatTypePrivate
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatTypeBasicGroup(data json.RawMessage) (*ChatTypeBasicGroup, error) {
2022-03-13 04:04:12 +00:00
var resp ChatTypeBasicGroup
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatTypeSupergroup(data json.RawMessage) (*ChatTypeSupergroup, error) {
2022-03-13 04:04:12 +00:00
var resp ChatTypeSupergroup
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatTypeSecret(data json.RawMessage) (*ChatTypeSecret, error) {
2022-03-13 04:04:12 +00:00
var resp ChatTypeSecret
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalChatFilter(data json.RawMessage) (*ChatFilter, error) {
2022-03-13 04:04:12 +00:00
var resp ChatFilter
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalChatFilterInfo(data json.RawMessage) (*ChatFilterInfo, error) {
2022-03-13 04:04:12 +00:00
var resp ChatFilterInfo
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalRecommendedChatFilter(data json.RawMessage) (*RecommendedChatFilter, error) {
2022-03-13 04:04:12 +00:00
var resp RecommendedChatFilter
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalRecommendedChatFilters(data json.RawMessage) (*RecommendedChatFilters, error) {
2022-03-13 04:04:12 +00:00
var resp RecommendedChatFilters
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalChatListMain(data json.RawMessage) (*ChatListMain, error) {
2022-03-13 04:04:12 +00:00
var resp ChatListMain
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalChatListArchive(data json.RawMessage) (*ChatListArchive, error) {
2022-03-13 04:04:12 +00:00
var resp ChatListArchive
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalChatListFilter(data json.RawMessage) (*ChatListFilter, error) {
2022-03-13 04:04:12 +00:00
var resp ChatListFilter
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalChatLists(data json.RawMessage) (*ChatLists, error) {
2022-03-13 04:04:12 +00:00
var resp ChatLists
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalChatSourceMtprotoProxy(data json.RawMessage) (*ChatSourceMtprotoProxy, error) {
2022-03-13 04:04:12 +00:00
var resp ChatSourceMtprotoProxy
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalChatSourcePublicServiceAnnouncement(data json.RawMessage) (*ChatSourcePublicServiceAnnouncement, error) {
2022-03-13 04:04:12 +00:00
var resp ChatSourcePublicServiceAnnouncement
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalChatPosition(data json.RawMessage) (*ChatPosition, error) {
2022-03-13 04:04:12 +00:00
var resp ChatPosition
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalVideoChat(data json.RawMessage) (*VideoChat, error) {
2022-03-13 04:04:12 +00:00
var resp VideoChat
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChat(data json.RawMessage) (*Chat, error) {
2022-03-13 04:04:12 +00:00
var resp Chat
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChats(data json.RawMessage) (*Chats, error) {
2022-03-13 04:04:12 +00:00
var resp Chats
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalChatNearby(data json.RawMessage) (*ChatNearby, error) {
2022-03-13 04:04:12 +00:00
var resp ChatNearby
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalChatsNearby(data json.RawMessage) (*ChatsNearby, error) {
2022-03-13 04:04:12 +00:00
var resp ChatsNearby
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalPublicChatTypeHasUsername(data json.RawMessage) (*PublicChatTypeHasUsername, error) {
2022-03-13 04:04:12 +00:00
var resp PublicChatTypeHasUsername
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalPublicChatTypeIsLocationBased(data json.RawMessage) (*PublicChatTypeIsLocationBased, error) {
2022-03-13 04:04:12 +00:00
var resp PublicChatTypeIsLocationBased
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalChatActionBarReportSpam(data json.RawMessage) (*ChatActionBarReportSpam, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionBarReportSpam
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalChatActionBarReportUnrelatedLocation(data json.RawMessage) (*ChatActionBarReportUnrelatedLocation, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionBarReportUnrelatedLocation
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalChatActionBarInviteMembers(data json.RawMessage) (*ChatActionBarInviteMembers, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionBarInviteMembers
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalChatActionBarReportAddBlock(data json.RawMessage) (*ChatActionBarReportAddBlock, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionBarReportAddBlock
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalChatActionBarAddContact(data json.RawMessage) (*ChatActionBarAddContact, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionBarAddContact
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalChatActionBarSharePhoneNumber(data json.RawMessage) (*ChatActionBarSharePhoneNumber, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionBarSharePhoneNumber
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalChatActionBarJoinRequest(data json.RawMessage) (*ChatActionBarJoinRequest, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionBarJoinRequest
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalKeyboardButtonTypeText(data json.RawMessage) (*KeyboardButtonTypeText, error) {
2022-03-13 04:04:12 +00:00
var resp KeyboardButtonTypeText
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalKeyboardButtonTypeRequestPhoneNumber(data json.RawMessage) (*KeyboardButtonTypeRequestPhoneNumber, error) {
2022-03-13 04:04:12 +00:00
var resp KeyboardButtonTypeRequestPhoneNumber
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalKeyboardButtonTypeRequestLocation(data json.RawMessage) (*KeyboardButtonTypeRequestLocation, error) {
2022-03-13 04:04:12 +00:00
var resp KeyboardButtonTypeRequestLocation
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalKeyboardButtonTypeRequestPoll(data json.RawMessage) (*KeyboardButtonTypeRequestPoll, error) {
2022-03-13 04:04:12 +00:00
var resp KeyboardButtonTypeRequestPoll
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2022-04-24 20:33:39 +00:00
func UnmarshalKeyboardButtonTypeWebApp(data json.RawMessage) (*KeyboardButtonTypeWebApp, error) {
var resp KeyboardButtonTypeWebApp
err := json.Unmarshal(data, &resp)
return &resp, err
}
2018-09-05 21:45:29 +00:00
func UnmarshalKeyboardButton(data json.RawMessage) (*KeyboardButton, error) {
2022-03-13 04:04:12 +00:00
var resp KeyboardButton
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalInlineKeyboardButtonTypeUrl(data json.RawMessage) (*InlineKeyboardButtonTypeUrl, error) {
2022-03-13 04:04:12 +00:00
var resp InlineKeyboardButtonTypeUrl
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalInlineKeyboardButtonTypeLoginUrl(data json.RawMessage) (*InlineKeyboardButtonTypeLoginUrl, error) {
2022-03-13 04:04:12 +00:00
var resp InlineKeyboardButtonTypeLoginUrl
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2022-04-24 20:33:39 +00:00
func UnmarshalInlineKeyboardButtonTypeWebApp(data json.RawMessage) (*InlineKeyboardButtonTypeWebApp, error) {
var resp InlineKeyboardButtonTypeWebApp
err := json.Unmarshal(data, &resp)
return &resp, err
}
2018-09-05 21:45:29 +00:00
func UnmarshalInlineKeyboardButtonTypeCallback(data json.RawMessage) (*InlineKeyboardButtonTypeCallback, error) {
2022-03-13 04:04:12 +00:00
var resp InlineKeyboardButtonTypeCallback
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalInlineKeyboardButtonTypeCallbackWithPassword(data json.RawMessage) (*InlineKeyboardButtonTypeCallbackWithPassword, error) {
2022-03-13 04:04:12 +00:00
var resp InlineKeyboardButtonTypeCallbackWithPassword
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInlineKeyboardButtonTypeCallbackGame(data json.RawMessage) (*InlineKeyboardButtonTypeCallbackGame, error) {
2022-03-13 04:04:12 +00:00
var resp InlineKeyboardButtonTypeCallbackGame
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalInlineKeyboardButtonTypeSwitchInline(data json.RawMessage) (*InlineKeyboardButtonTypeSwitchInline, error) {
2022-03-13 04:04:12 +00:00
var resp InlineKeyboardButtonTypeSwitchInline
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalInlineKeyboardButtonTypeBuy(data json.RawMessage) (*InlineKeyboardButtonTypeBuy, error) {
2022-03-13 04:04:12 +00:00
var resp InlineKeyboardButtonTypeBuy
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalInlineKeyboardButtonTypeUser(data json.RawMessage) (*InlineKeyboardButtonTypeUser, error) {
2022-03-13 04:04:12 +00:00
var resp InlineKeyboardButtonTypeUser
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInlineKeyboardButton(data json.RawMessage) (*InlineKeyboardButton, error) {
2022-03-13 04:04:12 +00:00
var resp InlineKeyboardButton
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalReplyMarkupRemoveKeyboard(data json.RawMessage) (*ReplyMarkupRemoveKeyboard, error) {
2022-03-13 04:04:12 +00:00
var resp ReplyMarkupRemoveKeyboard
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalReplyMarkupForceReply(data json.RawMessage) (*ReplyMarkupForceReply, error) {
2022-03-13 04:04:12 +00:00
var resp ReplyMarkupForceReply
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalReplyMarkupShowKeyboard(data json.RawMessage) (*ReplyMarkupShowKeyboard, error) {
2022-03-13 04:04:12 +00:00
var resp ReplyMarkupShowKeyboard
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalReplyMarkupInlineKeyboard(data json.RawMessage) (*ReplyMarkupInlineKeyboard, error) {
2022-03-13 04:04:12 +00:00
var resp ReplyMarkupInlineKeyboard
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalLoginUrlInfoOpen(data json.RawMessage) (*LoginUrlInfoOpen, error) {
2022-03-13 04:04:12 +00:00
var resp LoginUrlInfoOpen
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalLoginUrlInfoRequestConfirmation(data json.RawMessage) (*LoginUrlInfoRequestConfirmation, error) {
2022-03-13 04:04:12 +00:00
var resp LoginUrlInfoRequestConfirmation
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2022-04-24 20:33:39 +00:00
func UnmarshalWebAppInfo(data json.RawMessage) (*WebAppInfo, error) {
var resp WebAppInfo
err := json.Unmarshal(data, &resp)
return &resp, err
}
2020-11-30 09:33:47 +00:00
func UnmarshalMessageThreadInfo(data json.RawMessage) (*MessageThreadInfo, error) {
2022-03-13 04:04:12 +00:00
var resp MessageThreadInfo
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalRichTextPlain(data json.RawMessage) (*RichTextPlain, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextPlain
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextBold(data json.RawMessage) (*RichTextBold, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextBold
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextItalic(data json.RawMessage) (*RichTextItalic, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextItalic
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextUnderline(data json.RawMessage) (*RichTextUnderline, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextUnderline
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextStrikethrough(data json.RawMessage) (*RichTextStrikethrough, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextStrikethrough
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextFixed(data json.RawMessage) (*RichTextFixed, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextFixed
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextUrl(data json.RawMessage) (*RichTextUrl, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextUrl
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextEmailAddress(data json.RawMessage) (*RichTextEmailAddress, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextEmailAddress
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalRichTextSubscript(data json.RawMessage) (*RichTextSubscript, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextSubscript
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalRichTextSuperscript(data json.RawMessage) (*RichTextSuperscript, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextSuperscript
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalRichTextMarked(data json.RawMessage) (*RichTextMarked, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextMarked
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalRichTextPhoneNumber(data json.RawMessage) (*RichTextPhoneNumber, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextPhoneNumber
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalRichTextIcon(data json.RawMessage) (*RichTextIcon, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextIcon
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalRichTextReference(data json.RawMessage) (*RichTextReference, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextReference
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalRichTextAnchor(data json.RawMessage) (*RichTextAnchor, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextAnchor
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalRichTextAnchorLink(data json.RawMessage) (*RichTextAnchorLink, error) {
2022-03-13 04:04:12 +00:00
var resp RichTextAnchorLink
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalRichTexts(data json.RawMessage) (*RichTexts, error) {
2022-03-13 04:04:12 +00:00
var resp RichTexts
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockCaption(data json.RawMessage) (*PageBlockCaption, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockCaption
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockListItem(data json.RawMessage) (*PageBlockListItem, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockListItem
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockHorizontalAlignmentLeft(data json.RawMessage) (*PageBlockHorizontalAlignmentLeft, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockHorizontalAlignmentLeft
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockHorizontalAlignmentCenter(data json.RawMessage) (*PageBlockHorizontalAlignmentCenter, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockHorizontalAlignmentCenter
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockHorizontalAlignmentRight(data json.RawMessage) (*PageBlockHorizontalAlignmentRight, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockHorizontalAlignmentRight
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockVerticalAlignmentTop(data json.RawMessage) (*PageBlockVerticalAlignmentTop, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockVerticalAlignmentTop
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockVerticalAlignmentMiddle(data json.RawMessage) (*PageBlockVerticalAlignmentMiddle, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockVerticalAlignmentMiddle
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockVerticalAlignmentBottom(data json.RawMessage) (*PageBlockVerticalAlignmentBottom, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockVerticalAlignmentBottom
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockTableCell(data json.RawMessage) (*PageBlockTableCell, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockTableCell
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockRelatedArticle(data json.RawMessage) (*PageBlockRelatedArticle, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockRelatedArticle
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockTitle(data json.RawMessage) (*PageBlockTitle, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockTitle
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockSubtitle(data json.RawMessage) (*PageBlockSubtitle, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockSubtitle
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockAuthorDate(data json.RawMessage) (*PageBlockAuthorDate, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockAuthorDate
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockHeader(data json.RawMessage) (*PageBlockHeader, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockHeader
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockSubheader(data json.RawMessage) (*PageBlockSubheader, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockSubheader
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockKicker(data json.RawMessage) (*PageBlockKicker, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockKicker
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockParagraph(data json.RawMessage) (*PageBlockParagraph, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockParagraph
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockPreformatted(data json.RawMessage) (*PageBlockPreformatted, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockPreformatted
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockFooter(data json.RawMessage) (*PageBlockFooter, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockFooter
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockDivider(data json.RawMessage) (*PageBlockDivider, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockDivider
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockAnchor(data json.RawMessage) (*PageBlockAnchor, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockAnchor
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockList(data json.RawMessage) (*PageBlockList, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockList
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockBlockQuote(data json.RawMessage) (*PageBlockBlockQuote, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockBlockQuote
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockPullQuote(data json.RawMessage) (*PageBlockPullQuote, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockPullQuote
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockAnimation(data json.RawMessage) (*PageBlockAnimation, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockAnimation
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockAudio(data json.RawMessage) (*PageBlockAudio, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockAudio
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockPhoto(data json.RawMessage) (*PageBlockPhoto, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockPhoto
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockVideo(data json.RawMessage) (*PageBlockVideo, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockVideo
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalPageBlockVoiceNote(data json.RawMessage) (*PageBlockVoiceNote, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockVoiceNote
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockCover(data json.RawMessage) (*PageBlockCover, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockCover
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockEmbedded(data json.RawMessage) (*PageBlockEmbedded, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockEmbedded
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockEmbeddedPost(data json.RawMessage) (*PageBlockEmbeddedPost, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockEmbeddedPost
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockCollage(data json.RawMessage) (*PageBlockCollage, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockCollage
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockSlideshow(data json.RawMessage) (*PageBlockSlideshow, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockSlideshow
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockChatLink(data json.RawMessage) (*PageBlockChatLink, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockChatLink
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPageBlockTable(data json.RawMessage) (*PageBlockTable, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockTable
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockDetails(data json.RawMessage) (*PageBlockDetails, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockDetails
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockRelatedArticles(data json.RawMessage) (*PageBlockRelatedArticles, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockRelatedArticles
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPageBlockMap(data json.RawMessage) (*PageBlockMap, error) {
2022-03-13 04:04:12 +00:00
var resp PageBlockMap
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalWebPageInstantView(data json.RawMessage) (*WebPageInstantView, error) {
2022-03-13 04:04:12 +00:00
var resp WebPageInstantView
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalWebPage(data json.RawMessage) (*WebPage, error) {
2022-03-13 04:04:12 +00:00
var resp WebPage
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalCountryInfo(data json.RawMessage) (*CountryInfo, error) {
2022-03-13 04:04:12 +00:00
var resp CountryInfo
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalCountries(data json.RawMessage) (*Countries, error) {
2022-03-13 04:04:12 +00:00
var resp Countries
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalPhoneNumberInfo(data json.RawMessage) (*PhoneNumberInfo, error) {
2022-03-13 04:04:12 +00:00
var resp PhoneNumberInfo
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalBankCardActionOpenUrl(data json.RawMessage) (*BankCardActionOpenUrl, error) {
2022-03-13 04:04:12 +00:00
var resp BankCardActionOpenUrl
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalBankCardInfo(data json.RawMessage) (*BankCardInfo, error) {
2022-03-13 04:04:12 +00:00
var resp BankCardInfo
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalAddress(data json.RawMessage) (*Address, error) {
2022-03-13 04:04:12 +00:00
var resp Address
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2022-04-24 20:33:39 +00:00
func UnmarshalThemeParameters(data json.RawMessage) (*ThemeParameters, error) {
var resp ThemeParameters
err := json.Unmarshal(data, &resp)
return &resp, err
}
2018-09-05 21:45:29 +00:00
func UnmarshalLabeledPricePart(data json.RawMessage) (*LabeledPricePart, error) {
2022-03-13 04:04:12 +00:00
var resp LabeledPricePart
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalInvoice(data json.RawMessage) (*Invoice, error) {
2022-03-13 04:04:12 +00:00
var resp Invoice
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalOrderInfo(data json.RawMessage) (*OrderInfo, error) {
2022-03-13 04:04:12 +00:00
var resp OrderInfo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalShippingOption(data json.RawMessage) (*ShippingOption, error) {
2022-03-13 04:04:12 +00:00
var resp ShippingOption
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalSavedCredentials(data json.RawMessage) (*SavedCredentials, error) {
2022-03-13 04:04:12 +00:00
var resp SavedCredentials
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputCredentialsSaved(data json.RawMessage) (*InputCredentialsSaved, error) {
2022-03-13 04:04:12 +00:00
var resp InputCredentialsSaved
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputCredentialsNew(data json.RawMessage) (*InputCredentialsNew, error) {
2022-03-13 04:04:12 +00:00
var resp InputCredentialsNew
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalInputCredentialsApplePay(data json.RawMessage) (*InputCredentialsApplePay, error) {
2022-03-13 04:04:12 +00:00
var resp InputCredentialsApplePay
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalInputCredentialsGooglePay(data json.RawMessage) (*InputCredentialsGooglePay, error) {
2022-03-13 04:04:12 +00:00
var resp InputCredentialsGooglePay
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-06-21 18:10:07 +00:00
func UnmarshalPaymentProviderSmartGlocal(data json.RawMessage) (*PaymentProviderSmartGlocal, error) {
var resp PaymentProviderSmartGlocal
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPaymentProviderStripe(data json.RawMessage) (*PaymentProviderStripe, error) {
var resp PaymentProviderStripe
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPaymentProviderOther(data json.RawMessage) (*PaymentProviderOther, error) {
var resp PaymentProviderOther
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-08-13 15:24:07 +00:00
func UnmarshalPaymentOption(data json.RawMessage) (*PaymentOption, error) {
var resp PaymentOption
err := json.Unmarshal(data, &resp)
return &resp, err
}
2018-09-05 21:45:29 +00:00
func UnmarshalPaymentForm(data json.RawMessage) (*PaymentForm, error) {
2022-03-13 04:04:12 +00:00
var resp PaymentForm
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalValidatedOrderInfo(data json.RawMessage) (*ValidatedOrderInfo, error) {
2022-03-13 04:04:12 +00:00
var resp ValidatedOrderInfo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPaymentResult(data json.RawMessage) (*PaymentResult, error) {
2022-03-13 04:04:12 +00:00
var resp PaymentResult
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPaymentReceipt(data json.RawMessage) (*PaymentReceipt, error) {
2022-03-13 04:04:12 +00:00
var resp PaymentReceipt
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-06-21 18:10:07 +00:00
func UnmarshalInputInvoiceMessage(data json.RawMessage) (*InputInvoiceMessage, error) {
var resp InputInvoiceMessage
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalInputInvoiceName(data json.RawMessage) (*InputInvoiceName, error) {
var resp InputInvoiceName
err := json.Unmarshal(data, &resp)
return &resp, err
}
2018-09-05 21:45:29 +00:00
func UnmarshalDatedFile(data json.RawMessage) (*DatedFile, error) {
2022-03-13 04:04:12 +00:00
var resp DatedFile
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypePersonalDetails(data json.RawMessage) (*PassportElementTypePersonalDetails, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypePersonalDetails
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypePassport(data json.RawMessage) (*PassportElementTypePassport, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypePassport
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypeDriverLicense(data json.RawMessage) (*PassportElementTypeDriverLicense, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypeDriverLicense
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypeIdentityCard(data json.RawMessage) (*PassportElementTypeIdentityCard, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypeIdentityCard
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypeInternalPassport(data json.RawMessage) (*PassportElementTypeInternalPassport, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypeInternalPassport
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypeAddress(data json.RawMessage) (*PassportElementTypeAddress, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypeAddress
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypeUtilityBill(data json.RawMessage) (*PassportElementTypeUtilityBill, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypeUtilityBill
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypeBankStatement(data json.RawMessage) (*PassportElementTypeBankStatement, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypeBankStatement
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypeRentalAgreement(data json.RawMessage) (*PassportElementTypeRentalAgreement, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypeRentalAgreement
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypePassportRegistration(data json.RawMessage) (*PassportElementTypePassportRegistration, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypePassportRegistration
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypeTemporaryRegistration(data json.RawMessage) (*PassportElementTypeTemporaryRegistration, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypeTemporaryRegistration
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypePhoneNumber(data json.RawMessage) (*PassportElementTypePhoneNumber, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypePhoneNumber
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTypeEmailAddress(data json.RawMessage) (*PassportElementTypeEmailAddress, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTypeEmailAddress
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalDate(data json.RawMessage) (*Date, error) {
2022-03-13 04:04:12 +00:00
var resp Date
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPersonalDetails(data json.RawMessage) (*PersonalDetails, error) {
2022-03-13 04:04:12 +00:00
var resp PersonalDetails
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalIdentityDocument(data json.RawMessage) (*IdentityDocument, error) {
2022-03-13 04:04:12 +00:00
var resp IdentityDocument
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputIdentityDocument(data json.RawMessage) (*InputIdentityDocument, error) {
2022-03-13 04:04:12 +00:00
var resp InputIdentityDocument
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPersonalDocument(data json.RawMessage) (*PersonalDocument, error) {
2022-03-13 04:04:12 +00:00
var resp PersonalDocument
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPersonalDocument(data json.RawMessage) (*InputPersonalDocument, error) {
2022-03-13 04:04:12 +00:00
var resp InputPersonalDocument
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementPersonalDetails(data json.RawMessage) (*PassportElementPersonalDetails, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementPersonalDetails
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementPassport(data json.RawMessage) (*PassportElementPassport, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementPassport
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementDriverLicense(data json.RawMessage) (*PassportElementDriverLicense, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementDriverLicense
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementIdentityCard(data json.RawMessage) (*PassportElementIdentityCard, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementIdentityCard
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementInternalPassport(data json.RawMessage) (*PassportElementInternalPassport, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementInternalPassport
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementAddress(data json.RawMessage) (*PassportElementAddress, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementAddress
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementUtilityBill(data json.RawMessage) (*PassportElementUtilityBill, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementUtilityBill
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementBankStatement(data json.RawMessage) (*PassportElementBankStatement, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementBankStatement
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementRentalAgreement(data json.RawMessage) (*PassportElementRentalAgreement, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementRentalAgreement
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementPassportRegistration(data json.RawMessage) (*PassportElementPassportRegistration, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementPassportRegistration
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementTemporaryRegistration(data json.RawMessage) (*PassportElementTemporaryRegistration, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementTemporaryRegistration
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementPhoneNumber(data json.RawMessage) (*PassportElementPhoneNumber, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementPhoneNumber
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementEmailAddress(data json.RawMessage) (*PassportElementEmailAddress, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementEmailAddress
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementPersonalDetails(data json.RawMessage) (*InputPassportElementPersonalDetails, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementPersonalDetails
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementPassport(data json.RawMessage) (*InputPassportElementPassport, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementPassport
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementDriverLicense(data json.RawMessage) (*InputPassportElementDriverLicense, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementDriverLicense
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementIdentityCard(data json.RawMessage) (*InputPassportElementIdentityCard, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementIdentityCard
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementInternalPassport(data json.RawMessage) (*InputPassportElementInternalPassport, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementInternalPassport
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementAddress(data json.RawMessage) (*InputPassportElementAddress, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementAddress
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementUtilityBill(data json.RawMessage) (*InputPassportElementUtilityBill, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementUtilityBill
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementBankStatement(data json.RawMessage) (*InputPassportElementBankStatement, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementBankStatement
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementRentalAgreement(data json.RawMessage) (*InputPassportElementRentalAgreement, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementRentalAgreement
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementPassportRegistration(data json.RawMessage) (*InputPassportElementPassportRegistration, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementPassportRegistration
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementTemporaryRegistration(data json.RawMessage) (*InputPassportElementTemporaryRegistration, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementTemporaryRegistration
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementPhoneNumber(data json.RawMessage) (*InputPassportElementPhoneNumber, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementPhoneNumber
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementEmailAddress(data json.RawMessage) (*InputPassportElementEmailAddress, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementEmailAddress
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElements(data json.RawMessage) (*PassportElements, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElements
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementErrorSourceUnspecified(data json.RawMessage) (*PassportElementErrorSourceUnspecified, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementErrorSourceUnspecified
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementErrorSourceDataField(data json.RawMessage) (*PassportElementErrorSourceDataField, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementErrorSourceDataField
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementErrorSourceFrontSide(data json.RawMessage) (*PassportElementErrorSourceFrontSide, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementErrorSourceFrontSide
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementErrorSourceReverseSide(data json.RawMessage) (*PassportElementErrorSourceReverseSide, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementErrorSourceReverseSide
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementErrorSourceSelfie(data json.RawMessage) (*PassportElementErrorSourceSelfie, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementErrorSourceSelfie
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementErrorSourceTranslationFile(data json.RawMessage) (*PassportElementErrorSourceTranslationFile, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementErrorSourceTranslationFile
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementErrorSourceTranslationFiles(data json.RawMessage) (*PassportElementErrorSourceTranslationFiles, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementErrorSourceTranslationFiles
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementErrorSourceFile(data json.RawMessage) (*PassportElementErrorSourceFile, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementErrorSourceFile
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementErrorSourceFiles(data json.RawMessage) (*PassportElementErrorSourceFiles, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementErrorSourceFiles
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementError(data json.RawMessage) (*PassportElementError, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementError
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportSuitableElement(data json.RawMessage) (*PassportSuitableElement, error) {
2022-03-13 04:04:12 +00:00
var resp PassportSuitableElement
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportRequiredElement(data json.RawMessage) (*PassportRequiredElement, error) {
2022-03-13 04:04:12 +00:00
var resp PassportRequiredElement
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportAuthorizationForm(data json.RawMessage) (*PassportAuthorizationForm, error) {
2022-03-13 04:04:12 +00:00
var resp PassportAuthorizationForm
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPassportElementsWithErrors(data json.RawMessage) (*PassportElementsWithErrors, error) {
2022-03-13 04:04:12 +00:00
var resp PassportElementsWithErrors
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalEncryptedCredentials(data json.RawMessage) (*EncryptedCredentials, error) {
2022-03-13 04:04:12 +00:00
var resp EncryptedCredentials
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalEncryptedPassportElement(data json.RawMessage) (*EncryptedPassportElement, error) {
2022-03-13 04:04:12 +00:00
var resp EncryptedPassportElement
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementErrorSourceUnspecified(data json.RawMessage) (*InputPassportElementErrorSourceUnspecified, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementErrorSourceUnspecified
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementErrorSourceDataField(data json.RawMessage) (*InputPassportElementErrorSourceDataField, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementErrorSourceDataField
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementErrorSourceFrontSide(data json.RawMessage) (*InputPassportElementErrorSourceFrontSide, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementErrorSourceFrontSide
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementErrorSourceReverseSide(data json.RawMessage) (*InputPassportElementErrorSourceReverseSide, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementErrorSourceReverseSide
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementErrorSourceSelfie(data json.RawMessage) (*InputPassportElementErrorSourceSelfie, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementErrorSourceSelfie
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementErrorSourceTranslationFile(data json.RawMessage) (*InputPassportElementErrorSourceTranslationFile, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementErrorSourceTranslationFile
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementErrorSourceTranslationFiles(data json.RawMessage) (*InputPassportElementErrorSourceTranslationFiles, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementErrorSourceTranslationFiles
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementErrorSourceFile(data json.RawMessage) (*InputPassportElementErrorSourceFile, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementErrorSourceFile
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementErrorSourceFiles(data json.RawMessage) (*InputPassportElementErrorSourceFiles, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementErrorSourceFiles
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputPassportElementError(data json.RawMessage) (*InputPassportElementError, error) {
2022-03-13 04:04:12 +00:00
var resp InputPassportElementError
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageText(data json.RawMessage) (*MessageText, error) {
2022-03-13 04:04:12 +00:00
var resp MessageText
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageAnimation(data json.RawMessage) (*MessageAnimation, error) {
2022-03-13 04:04:12 +00:00
var resp MessageAnimation
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageAudio(data json.RawMessage) (*MessageAudio, error) {
2022-03-13 04:04:12 +00:00
var resp MessageAudio
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageDocument(data json.RawMessage) (*MessageDocument, error) {
2022-03-13 04:04:12 +00:00
var resp MessageDocument
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessagePhoto(data json.RawMessage) (*MessagePhoto, error) {
2022-03-13 04:04:12 +00:00
var resp MessagePhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageExpiredPhoto(data json.RawMessage) (*MessageExpiredPhoto, error) {
2022-03-13 04:04:12 +00:00
var resp MessageExpiredPhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageSticker(data json.RawMessage) (*MessageSticker, error) {
2022-03-13 04:04:12 +00:00
var resp MessageSticker
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageVideo(data json.RawMessage) (*MessageVideo, error) {
2022-03-13 04:04:12 +00:00
var resp MessageVideo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageExpiredVideo(data json.RawMessage) (*MessageExpiredVideo, error) {
2022-03-13 04:04:12 +00:00
var resp MessageExpiredVideo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageVideoNote(data json.RawMessage) (*MessageVideoNote, error) {
2022-03-13 04:04:12 +00:00
var resp MessageVideoNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageVoiceNote(data json.RawMessage) (*MessageVoiceNote, error) {
2022-03-13 04:04:12 +00:00
var resp MessageVoiceNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageLocation(data json.RawMessage) (*MessageLocation, error) {
2022-03-13 04:04:12 +00:00
var resp MessageLocation
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageVenue(data json.RawMessage) (*MessageVenue, error) {
2022-03-13 04:04:12 +00:00
var resp MessageVenue
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageContact(data json.RawMessage) (*MessageContact, error) {
2022-03-13 04:04:12 +00:00
var resp MessageContact
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalMessageAnimatedEmoji(data json.RawMessage) (*MessageAnimatedEmoji, error) {
2022-03-13 04:04:12 +00:00
var resp MessageAnimatedEmoji
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalMessageDice(data json.RawMessage) (*MessageDice, error) {
2022-03-13 04:04:12 +00:00
var resp MessageDice
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalMessageGame(data json.RawMessage) (*MessageGame, error) {
2022-03-13 04:04:12 +00:00
var resp MessageGame
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalMessagePoll(data json.RawMessage) (*MessagePoll, error) {
2022-03-13 04:04:12 +00:00
var resp MessagePoll
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalMessageInvoice(data json.RawMessage) (*MessageInvoice, error) {
2022-03-13 04:04:12 +00:00
var resp MessageInvoice
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageCall(data json.RawMessage) (*MessageCall, error) {
2022-03-13 04:04:12 +00:00
var resp MessageCall
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalMessageVideoChatScheduled(data json.RawMessage) (*MessageVideoChatScheduled, error) {
2022-03-13 04:04:12 +00:00
var resp MessageVideoChatScheduled
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalMessageVideoChatStarted(data json.RawMessage) (*MessageVideoChatStarted, error) {
2022-03-13 04:04:12 +00:00
var resp MessageVideoChatStarted
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalMessageVideoChatEnded(data json.RawMessage) (*MessageVideoChatEnded, error) {
2022-03-13 04:04:12 +00:00
var resp MessageVideoChatEnded
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalMessageInviteVideoChatParticipants(data json.RawMessage) (*MessageInviteVideoChatParticipants, error) {
2022-03-13 04:04:12 +00:00
var resp MessageInviteVideoChatParticipants
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalMessageBasicGroupChatCreate(data json.RawMessage) (*MessageBasicGroupChatCreate, error) {
2022-03-13 04:04:12 +00:00
var resp MessageBasicGroupChatCreate
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageSupergroupChatCreate(data json.RawMessage) (*MessageSupergroupChatCreate, error) {
2022-03-13 04:04:12 +00:00
var resp MessageSupergroupChatCreate
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatChangeTitle(data json.RawMessage) (*MessageChatChangeTitle, error) {
2022-03-13 04:04:12 +00:00
var resp MessageChatChangeTitle
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatChangePhoto(data json.RawMessage) (*MessageChatChangePhoto, error) {
2022-03-13 04:04:12 +00:00
var resp MessageChatChangePhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatDeletePhoto(data json.RawMessage) (*MessageChatDeletePhoto, error) {
2022-03-13 04:04:12 +00:00
var resp MessageChatDeletePhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatAddMembers(data json.RawMessage) (*MessageChatAddMembers, error) {
2022-03-13 04:04:12 +00:00
var resp MessageChatAddMembers
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatJoinByLink(data json.RawMessage) (*MessageChatJoinByLink, error) {
2022-03-13 04:04:12 +00:00
var resp MessageChatJoinByLink
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalMessageChatJoinByRequest(data json.RawMessage) (*MessageChatJoinByRequest, error) {
2022-03-13 04:04:12 +00:00
var resp MessageChatJoinByRequest
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalMessageChatDeleteMember(data json.RawMessage) (*MessageChatDeleteMember, error) {
2022-03-13 04:04:12 +00:00
var resp MessageChatDeleteMember
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatUpgradeTo(data json.RawMessage) (*MessageChatUpgradeTo, error) {
2022-03-13 04:04:12 +00:00
var resp MessageChatUpgradeTo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatUpgradeFrom(data json.RawMessage) (*MessageChatUpgradeFrom, error) {
2022-03-13 04:04:12 +00:00
var resp MessageChatUpgradeFrom
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessagePinMessage(data json.RawMessage) (*MessagePinMessage, error) {
2022-03-13 04:04:12 +00:00
var resp MessagePinMessage
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageScreenshotTaken(data json.RawMessage) (*MessageScreenshotTaken, error) {
2022-03-13 04:04:12 +00:00
var resp MessageScreenshotTaken
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalMessageChatSetTheme(data json.RawMessage) (*MessageChatSetTheme, error) {
2022-03-13 04:04:12 +00:00
var resp MessageChatSetTheme
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalMessageChatSetTtl(data json.RawMessage) (*MessageChatSetTtl, error) {
2022-03-13 04:04:12 +00:00
var resp MessageChatSetTtl
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageCustomServiceAction(data json.RawMessage) (*MessageCustomServiceAction, error) {
2022-03-13 04:04:12 +00:00
var resp MessageCustomServiceAction
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageGameScore(data json.RawMessage) (*MessageGameScore, error) {
2022-03-13 04:04:12 +00:00
var resp MessageGameScore
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessagePaymentSuccessful(data json.RawMessage) (*MessagePaymentSuccessful, error) {
2022-03-13 04:04:12 +00:00
var resp MessagePaymentSuccessful
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessagePaymentSuccessfulBot(data json.RawMessage) (*MessagePaymentSuccessfulBot, error) {
2022-03-13 04:04:12 +00:00
var resp MessagePaymentSuccessfulBot
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-08-13 15:24:07 +00:00
func UnmarshalMessageGiftedPremium(data json.RawMessage) (*MessageGiftedPremium, error) {
var resp MessageGiftedPremium
err := json.Unmarshal(data, &resp)
return &resp, err
}
2018-08-30 14:55:42 +00:00
func UnmarshalMessageContactRegistered(data json.RawMessage) (*MessageContactRegistered, error) {
2022-03-13 04:04:12 +00:00
var resp MessageContactRegistered
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageWebsiteConnected(data json.RawMessage) (*MessageWebsiteConnected, error) {
2022-03-13 04:04:12 +00:00
var resp MessageWebsiteConnected
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-04-24 20:33:39 +00:00
func UnmarshalMessageWebAppDataSent(data json.RawMessage) (*MessageWebAppDataSent, error) {
var resp MessageWebAppDataSent
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalMessageWebAppDataReceived(data json.RawMessage) (*MessageWebAppDataReceived, error) {
var resp MessageWebAppDataReceived
err := json.Unmarshal(data, &resp)
return &resp, err
}
2018-09-05 21:45:29 +00:00
func UnmarshalMessagePassportDataSent(data json.RawMessage) (*MessagePassportDataSent, error) {
2022-03-13 04:04:12 +00:00
var resp MessagePassportDataSent
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalMessagePassportDataReceived(data json.RawMessage) (*MessagePassportDataReceived, error) {
2022-03-13 04:04:12 +00:00
var resp MessagePassportDataReceived
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalMessageProximityAlertTriggered(data json.RawMessage) (*MessageProximityAlertTriggered, error) {
2022-03-13 04:04:12 +00:00
var resp MessageProximityAlertTriggered
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalMessageUnsupported(data json.RawMessage) (*MessageUnsupported, error) {
2022-03-13 04:04:12 +00:00
var resp MessageUnsupported
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeMention(data json.RawMessage) (*TextEntityTypeMention, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeMention
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeHashtag(data json.RawMessage) (*TextEntityTypeHashtag, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeHashtag
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeCashtag(data json.RawMessage) (*TextEntityTypeCashtag, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeCashtag
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeBotCommand(data json.RawMessage) (*TextEntityTypeBotCommand, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeBotCommand
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeUrl(data json.RawMessage) (*TextEntityTypeUrl, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeUrl
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeEmailAddress(data json.RawMessage) (*TextEntityTypeEmailAddress, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeEmailAddress
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalTextEntityTypePhoneNumber(data json.RawMessage) (*TextEntityTypePhoneNumber, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypePhoneNumber
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalTextEntityTypeBankCardNumber(data json.RawMessage) (*TextEntityTypeBankCardNumber, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeBankCardNumber
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalTextEntityTypeBold(data json.RawMessage) (*TextEntityTypeBold, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeBold
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeItalic(data json.RawMessage) (*TextEntityTypeItalic, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeItalic
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalTextEntityTypeUnderline(data json.RawMessage) (*TextEntityTypeUnderline, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeUnderline
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalTextEntityTypeStrikethrough(data json.RawMessage) (*TextEntityTypeStrikethrough, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeStrikethrough
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2022-01-26 21:06:41 +00:00
func UnmarshalTextEntityTypeSpoiler(data json.RawMessage) (*TextEntityTypeSpoiler, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeSpoiler
2022-01-26 21:06:41 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-01-26 21:06:41 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-01-26 21:06:41 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalTextEntityTypeCode(data json.RawMessage) (*TextEntityTypeCode, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeCode
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypePre(data json.RawMessage) (*TextEntityTypePre, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypePre
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypePreCode(data json.RawMessage) (*TextEntityTypePreCode, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypePreCode
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeTextUrl(data json.RawMessage) (*TextEntityTypeTextUrl, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeTextUrl
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeMentionName(data json.RawMessage) (*TextEntityTypeMentionName, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeMentionName
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-08-13 15:24:07 +00:00
func UnmarshalTextEntityTypeCustomEmoji(data json.RawMessage) (*TextEntityTypeCustomEmoji, error) {
var resp TextEntityTypeCustomEmoji
err := json.Unmarshal(data, &resp)
return &resp, err
}
2021-12-30 05:55:02 +00:00
func UnmarshalTextEntityTypeMediaTimestamp(data json.RawMessage) (*TextEntityTypeMediaTimestamp, error) {
2022-03-13 04:04:12 +00:00
var resp TextEntityTypeMediaTimestamp
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalInputThumbnail(data json.RawMessage) (*InputThumbnail, error) {
2022-03-13 04:04:12 +00:00
var resp InputThumbnail
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalMessageSchedulingStateSendAtDate(data json.RawMessage) (*MessageSchedulingStateSendAtDate, error) {
2022-03-13 04:04:12 +00:00
var resp MessageSchedulingStateSendAtDate
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalMessageSchedulingStateSendWhenOnline(data json.RawMessage) (*MessageSchedulingStateSendWhenOnline, error) {
2022-03-13 04:04:12 +00:00
var resp MessageSchedulingStateSendWhenOnline
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalMessageSendOptions(data json.RawMessage) (*MessageSendOptions, error) {
2022-03-13 04:04:12 +00:00
var resp MessageSendOptions
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalMessageCopyOptions(data json.RawMessage) (*MessageCopyOptions, error) {
2022-03-13 04:04:12 +00:00
var resp MessageCopyOptions
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageText(data json.RawMessage) (*InputMessageText, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageText
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageAnimation(data json.RawMessage) (*InputMessageAnimation, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageAnimation
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageAudio(data json.RawMessage) (*InputMessageAudio, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageAudio
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageDocument(data json.RawMessage) (*InputMessageDocument, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageDocument
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessagePhoto(data json.RawMessage) (*InputMessagePhoto, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessagePhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageSticker(data json.RawMessage) (*InputMessageSticker, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageSticker
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageVideo(data json.RawMessage) (*InputMessageVideo, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageVideo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageVideoNote(data json.RawMessage) (*InputMessageVideoNote, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageVideoNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageVoiceNote(data json.RawMessage) (*InputMessageVoiceNote, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageVoiceNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageLocation(data json.RawMessage) (*InputMessageLocation, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageLocation
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageVenue(data json.RawMessage) (*InputMessageVenue, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageVenue
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageContact(data json.RawMessage) (*InputMessageContact, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageContact
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalInputMessageDice(data json.RawMessage) (*InputMessageDice, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageDice
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalInputMessageGame(data json.RawMessage) (*InputMessageGame, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageGame
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageInvoice(data json.RawMessage) (*InputMessageInvoice, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageInvoice
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalInputMessagePoll(data json.RawMessage) (*InputMessagePoll, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessagePoll
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalInputMessageForwarded(data json.RawMessage) (*InputMessageForwarded, error) {
2022-03-13 04:04:12 +00:00
var resp InputMessageForwarded
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterEmpty(data json.RawMessage) (*SearchMessagesFilterEmpty, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterEmpty
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterAnimation(data json.RawMessage) (*SearchMessagesFilterAnimation, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterAnimation
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterAudio(data json.RawMessage) (*SearchMessagesFilterAudio, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterAudio
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterDocument(data json.RawMessage) (*SearchMessagesFilterDocument, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterDocument
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterPhoto(data json.RawMessage) (*SearchMessagesFilterPhoto, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterPhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterVideo(data json.RawMessage) (*SearchMessagesFilterVideo, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterVideo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterVoiceNote(data json.RawMessage) (*SearchMessagesFilterVoiceNote, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterVoiceNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterPhotoAndVideo(data json.RawMessage) (*SearchMessagesFilterPhotoAndVideo, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterPhotoAndVideo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterUrl(data json.RawMessage) (*SearchMessagesFilterUrl, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterUrl
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterChatPhoto(data json.RawMessage) (*SearchMessagesFilterChatPhoto, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterChatPhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterVideoNote(data json.RawMessage) (*SearchMessagesFilterVideoNote, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterVideoNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterVoiceAndVideoNote(data json.RawMessage) (*SearchMessagesFilterVoiceAndVideoNote, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterVoiceAndVideoNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterMention(data json.RawMessage) (*SearchMessagesFilterMention, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterMention
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterUnreadMention(data json.RawMessage) (*SearchMessagesFilterUnreadMention, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterUnreadMention
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalSearchMessagesFilterUnreadReaction(data json.RawMessage) (*SearchMessagesFilterUnreadReaction, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterUnreadReaction
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalSearchMessagesFilterFailedToSend(data json.RawMessage) (*SearchMessagesFilterFailedToSend, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterFailedToSend
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalSearchMessagesFilterPinned(data json.RawMessage) (*SearchMessagesFilterPinned, error) {
2022-03-13 04:04:12 +00:00
var resp SearchMessagesFilterPinned
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalChatActionTyping(data json.RawMessage) (*ChatActionTyping, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionTyping
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionRecordingVideo(data json.RawMessage) (*ChatActionRecordingVideo, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionRecordingVideo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionUploadingVideo(data json.RawMessage) (*ChatActionUploadingVideo, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionUploadingVideo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionRecordingVoiceNote(data json.RawMessage) (*ChatActionRecordingVoiceNote, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionRecordingVoiceNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionUploadingVoiceNote(data json.RawMessage) (*ChatActionUploadingVoiceNote, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionUploadingVoiceNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionUploadingPhoto(data json.RawMessage) (*ChatActionUploadingPhoto, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionUploadingPhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionUploadingDocument(data json.RawMessage) (*ChatActionUploadingDocument, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionUploadingDocument
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalChatActionChoosingSticker(data json.RawMessage) (*ChatActionChoosingSticker, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionChoosingSticker
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalChatActionChoosingLocation(data json.RawMessage) (*ChatActionChoosingLocation, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionChoosingLocation
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionChoosingContact(data json.RawMessage) (*ChatActionChoosingContact, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionChoosingContact
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionStartPlayingGame(data json.RawMessage) (*ChatActionStartPlayingGame, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionStartPlayingGame
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionRecordingVideoNote(data json.RawMessage) (*ChatActionRecordingVideoNote, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionRecordingVideoNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionUploadingVideoNote(data json.RawMessage) (*ChatActionUploadingVideoNote, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionUploadingVideoNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalChatActionWatchingAnimations(data json.RawMessage) (*ChatActionWatchingAnimations, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionWatchingAnimations
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalChatActionCancel(data json.RawMessage) (*ChatActionCancel, error) {
2022-03-13 04:04:12 +00:00
var resp ChatActionCancel
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatusEmpty(data json.RawMessage) (*UserStatusEmpty, error) {
2022-03-13 04:04:12 +00:00
var resp UserStatusEmpty
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatusOnline(data json.RawMessage) (*UserStatusOnline, error) {
2022-03-13 04:04:12 +00:00
var resp UserStatusOnline
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatusOffline(data json.RawMessage) (*UserStatusOffline, error) {
2022-03-13 04:04:12 +00:00
var resp UserStatusOffline
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatusRecently(data json.RawMessage) (*UserStatusRecently, error) {
2022-03-13 04:04:12 +00:00
var resp UserStatusRecently
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatusLastWeek(data json.RawMessage) (*UserStatusLastWeek, error) {
2022-03-13 04:04:12 +00:00
var resp UserStatusLastWeek
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatusLastMonth(data json.RawMessage) (*UserStatusLastMonth, error) {
2022-03-13 04:04:12 +00:00
var resp UserStatusLastMonth
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStickers(data json.RawMessage) (*Stickers, error) {
2022-03-13 04:04:12 +00:00
var resp Stickers
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalEmojis(data json.RawMessage) (*Emojis, error) {
2022-03-13 04:04:12 +00:00
var resp Emojis
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStickerSet(data json.RawMessage) (*StickerSet, error) {
2022-03-13 04:04:12 +00:00
var resp StickerSet
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStickerSetInfo(data json.RawMessage) (*StickerSetInfo, error) {
2022-03-13 04:04:12 +00:00
var resp StickerSetInfo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStickerSets(data json.RawMessage) (*StickerSets, error) {
2022-03-13 04:04:12 +00:00
var resp StickerSets
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-06-21 18:10:07 +00:00
func UnmarshalTrendingStickerSets(data json.RawMessage) (*TrendingStickerSets, error) {
var resp TrendingStickerSets
err := json.Unmarshal(data, &resp)
return &resp, err
}
2018-08-30 14:55:42 +00:00
func UnmarshalCallDiscardReasonEmpty(data json.RawMessage) (*CallDiscardReasonEmpty, error) {
2022-03-13 04:04:12 +00:00
var resp CallDiscardReasonEmpty
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallDiscardReasonMissed(data json.RawMessage) (*CallDiscardReasonMissed, error) {
2022-03-13 04:04:12 +00:00
var resp CallDiscardReasonMissed
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallDiscardReasonDeclined(data json.RawMessage) (*CallDiscardReasonDeclined, error) {
2022-03-13 04:04:12 +00:00
var resp CallDiscardReasonDeclined
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallDiscardReasonDisconnected(data json.RawMessage) (*CallDiscardReasonDisconnected, error) {
2022-03-13 04:04:12 +00:00
var resp CallDiscardReasonDisconnected
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallDiscardReasonHungUp(data json.RawMessage) (*CallDiscardReasonHungUp, error) {
2022-03-13 04:04:12 +00:00
var resp CallDiscardReasonHungUp
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallProtocol(data json.RawMessage) (*CallProtocol, error) {
2022-03-13 04:04:12 +00:00
var resp CallProtocol
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalCallServerTypeTelegramReflector(data json.RawMessage) (*CallServerTypeTelegramReflector, error) {
2022-03-13 04:04:12 +00:00
var resp CallServerTypeTelegramReflector
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalCallServerTypeWebrtc(data json.RawMessage) (*CallServerTypeWebrtc, error) {
2022-03-13 04:04:12 +00:00
var resp CallServerTypeWebrtc
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalCallServer(data json.RawMessage) (*CallServer, error) {
2022-03-13 04:04:12 +00:00
var resp CallServer
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallId(data json.RawMessage) (*CallId, error) {
2022-03-13 04:04:12 +00:00
var resp CallId
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalGroupCallId(data json.RawMessage) (*GroupCallId, error) {
2022-03-13 04:04:12 +00:00
var resp GroupCallId
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalCallStatePending(data json.RawMessage) (*CallStatePending, error) {
2022-03-13 04:04:12 +00:00
var resp CallStatePending
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallStateExchangingKeys(data json.RawMessage) (*CallStateExchangingKeys, error) {
2022-03-13 04:04:12 +00:00
var resp CallStateExchangingKeys
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallStateReady(data json.RawMessage) (*CallStateReady, error) {
2022-03-13 04:04:12 +00:00
var resp CallStateReady
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallStateHangingUp(data json.RawMessage) (*CallStateHangingUp, error) {
2022-03-13 04:04:12 +00:00
var resp CallStateHangingUp
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallStateDiscarded(data json.RawMessage) (*CallStateDiscarded, error) {
2022-03-13 04:04:12 +00:00
var resp CallStateDiscarded
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallStateError(data json.RawMessage) (*CallStateError, error) {
2022-03-13 04:04:12 +00:00
var resp CallStateError
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalGroupCallVideoQualityThumbnail(data json.RawMessage) (*GroupCallVideoQualityThumbnail, error) {
2022-03-13 04:04:12 +00:00
var resp GroupCallVideoQualityThumbnail
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalGroupCallVideoQualityMedium(data json.RawMessage) (*GroupCallVideoQualityMedium, error) {
2022-03-13 04:04:12 +00:00
var resp GroupCallVideoQualityMedium
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalGroupCallVideoQualityFull(data json.RawMessage) (*GroupCallVideoQualityFull, error) {
2022-03-13 04:04:12 +00:00
var resp GroupCallVideoQualityFull
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalGroupCallStream(data json.RawMessage) (*GroupCallStream, error) {
var resp GroupCallStream
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalGroupCallStreams(data json.RawMessage) (*GroupCallStreams, error) {
var resp GroupCallStreams
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
}
func UnmarshalRtmpUrl(data json.RawMessage) (*RtmpUrl, error) {
var resp RtmpUrl
err := json.Unmarshal(data, &resp)
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalGroupCallRecentSpeaker(data json.RawMessage) (*GroupCallRecentSpeaker, error) {
2022-03-13 04:04:12 +00:00
var resp GroupCallRecentSpeaker
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalGroupCall(data json.RawMessage) (*GroupCall, error) {
2022-03-13 04:04:12 +00:00
var resp GroupCall
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalGroupCallVideoSourceGroup(data json.RawMessage) (*GroupCallVideoSourceGroup, error) {
2022-03-13 04:04:12 +00:00
var resp GroupCallVideoSourceGroup
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalGroupCallParticipantVideoInfo(data json.RawMessage) (*GroupCallParticipantVideoInfo, error) {
2022-03-13 04:04:12 +00:00
var resp GroupCallParticipantVideoInfo
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalGroupCallParticipant(data json.RawMessage) (*GroupCallParticipant, error) {
2022-03-13 04:04:12 +00:00
var resp GroupCallParticipant
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalCallProblemEcho(data json.RawMessage) (*CallProblemEcho, error) {
2022-03-13 04:04:12 +00:00
var resp CallProblemEcho
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
func UnmarshalCallProblemNoise(data json.RawMessage) (*CallProblemNoise, error) {
2022-03-13 04:04:12 +00:00
var resp CallProblemNoise
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
func UnmarshalCallProblemInterruptions(data json.RawMessage) (*CallProblemInterruptions, error) {
2022-03-13 04:04:12 +00:00
var resp CallProblemInterruptions
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
func UnmarshalCallProblemDistortedSpeech(data json.RawMessage) (*CallProblemDistortedSpeech, error) {
2022-03-13 04:04:12 +00:00
var resp CallProblemDistortedSpeech
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
func UnmarshalCallProblemSilentLocal(data json.RawMessage) (*CallProblemSilentLocal, error) {
2022-03-13 04:04:12 +00:00
var resp CallProblemSilentLocal
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalCallProblemSilentRemote(data json.RawMessage) (*CallProblemSilentRemote, error) {
2022-03-13 04:04:12 +00:00
var resp CallProblemSilentRemote
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalCallProblemDropped(data json.RawMessage) (*CallProblemDropped, error) {
2022-03-13 04:04:12 +00:00
var resp CallProblemDropped
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalCallProblemDistortedVideo(data json.RawMessage) (*CallProblemDistortedVideo, error) {
2022-03-13 04:04:12 +00:00
var resp CallProblemDistortedVideo
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalCallProblemPixelatedVideo(data json.RawMessage) (*CallProblemPixelatedVideo, error) {
2022-03-13 04:04:12 +00:00
var resp CallProblemPixelatedVideo
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalCall(data json.RawMessage) (*Call, error) {
2022-03-13 04:04:12 +00:00
var resp Call
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalPhoneNumberAuthenticationSettings(data json.RawMessage) (*PhoneNumberAuthenticationSettings, error) {
2022-03-13 04:04:12 +00:00
var resp PhoneNumberAuthenticationSettings
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalAddedReaction(data json.RawMessage) (*AddedReaction, error) {
2022-03-13 04:04:12 +00:00
var resp AddedReaction
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
func UnmarshalAddedReactions(data json.RawMessage) (*AddedReactions, error) {
2022-03-13 04:04:12 +00:00
var resp AddedReactions
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2022-06-21 18:10:07 +00:00
func UnmarshalAvailableReaction(data json.RawMessage) (*AvailableReaction, error) {
var resp AvailableReaction
err := json.Unmarshal(data, &resp)
return &resp, err
}
2022-02-06 18:36:17 +00:00
func UnmarshalAvailableReactions(data json.RawMessage) (*AvailableReactions, error) {
2022-03-13 04:04:12 +00:00
var resp AvailableReactions
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
func UnmarshalReaction(data json.RawMessage) (*Reaction, error) {
2022-03-13 04:04:12 +00:00
var resp Reaction
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalAnimations(data json.RawMessage) (*Animations, error) {
2022-03-13 04:04:12 +00:00
var resp Animations
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalDiceStickersRegular(data json.RawMessage) (*DiceStickersRegular, error) {
2022-03-13 04:04:12 +00:00
var resp DiceStickersRegular
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalDiceStickersSlotMachine(data json.RawMessage) (*DiceStickersSlotMachine, error) {
2022-03-13 04:04:12 +00:00
var resp DiceStickersSlotMachine
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalImportedContacts(data json.RawMessage) (*ImportedContacts, error) {
2022-03-13 04:04:12 +00:00
var resp ImportedContacts
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2022-08-13 15:24:07 +00:00
func UnmarshalSpeechRecognitionResultPending(data json.RawMessage) (*SpeechRecognitionResultPending, error) {
var resp SpeechRecognitionResultPending
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalSpeechRecognitionResultText(data json.RawMessage) (*SpeechRecognitionResultText, error) {
var resp SpeechRecognitionResultText
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalSpeechRecognitionResultError(data json.RawMessage) (*SpeechRecognitionResultError, error) {
var resp SpeechRecognitionResultError
err := json.Unmarshal(data, &resp)
return &resp, err
}
2022-04-24 20:33:39 +00:00
func UnmarshalAttachmentMenuBotColor(data json.RawMessage) (*AttachmentMenuBotColor, error) {
var resp AttachmentMenuBotColor
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalAttachmentMenuBot(data json.RawMessage) (*AttachmentMenuBot, error) {
var resp AttachmentMenuBot
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalSentWebAppMessage(data json.RawMessage) (*SentWebAppMessage, error) {
var resp SentWebAppMessage
err := json.Unmarshal(data, &resp)
return &resp, err
}
2020-11-30 09:33:47 +00:00
func UnmarshalHttpUrl(data json.RawMessage) (*HttpUrl, error) {
2022-03-13 04:04:12 +00:00
var resp HttpUrl
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalInputInlineQueryResultAnimation(data json.RawMessage) (*InputInlineQueryResultAnimation, error) {
2022-03-13 04:04:12 +00:00
var resp InputInlineQueryResultAnimation
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultArticle(data json.RawMessage) (*InputInlineQueryResultArticle, error) {
2022-03-13 04:04:12 +00:00
var resp InputInlineQueryResultArticle
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultAudio(data json.RawMessage) (*InputInlineQueryResultAudio, error) {
2022-03-13 04:04:12 +00:00
var resp InputInlineQueryResultAudio
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultContact(data json.RawMessage) (*InputInlineQueryResultContact, error) {
2022-03-13 04:04:12 +00:00
var resp InputInlineQueryResultContact
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultDocument(data json.RawMessage) (*InputInlineQueryResultDocument, error) {
2022-03-13 04:04:12 +00:00
var resp InputInlineQueryResultDocument
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultGame(data json.RawMessage) (*InputInlineQueryResultGame, error) {
2022-03-13 04:04:12 +00:00
var resp InputInlineQueryResultGame
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultLocation(data json.RawMessage) (*InputInlineQueryResultLocation, error) {
2022-03-13 04:04:12 +00:00
var resp InputInlineQueryResultLocation
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultPhoto(data json.RawMessage) (*InputInlineQueryResultPhoto, error) {
2022-03-13 04:04:12 +00:00
var resp InputInlineQueryResultPhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultSticker(data json.RawMessage) (*InputInlineQueryResultSticker, error) {
2022-03-13 04:04:12 +00:00
var resp InputInlineQueryResultSticker
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultVenue(data json.RawMessage) (*InputInlineQueryResultVenue, error) {
2022-03-13 04:04:12 +00:00
var resp InputInlineQueryResultVenue
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultVideo(data json.RawMessage) (*InputInlineQueryResultVideo, error) {
2022-03-13 04:04:12 +00:00
var resp InputInlineQueryResultVideo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultVoiceNote(data json.RawMessage) (*InputInlineQueryResultVoiceNote, error) {
2022-03-13 04:04:12 +00:00
var resp InputInlineQueryResultVoiceNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultArticle(data json.RawMessage) (*InlineQueryResultArticle, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResultArticle
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultContact(data json.RawMessage) (*InlineQueryResultContact, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResultContact
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultLocation(data json.RawMessage) (*InlineQueryResultLocation, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResultLocation
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultVenue(data json.RawMessage) (*InlineQueryResultVenue, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResultVenue
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultGame(data json.RawMessage) (*InlineQueryResultGame, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResultGame
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultAnimation(data json.RawMessage) (*InlineQueryResultAnimation, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResultAnimation
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultAudio(data json.RawMessage) (*InlineQueryResultAudio, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResultAudio
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultDocument(data json.RawMessage) (*InlineQueryResultDocument, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResultDocument
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultPhoto(data json.RawMessage) (*InlineQueryResultPhoto, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResultPhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultSticker(data json.RawMessage) (*InlineQueryResultSticker, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResultSticker
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultVideo(data json.RawMessage) (*InlineQueryResultVideo, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResultVideo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultVoiceNote(data json.RawMessage) (*InlineQueryResultVoiceNote, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResultVoiceNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResults(data json.RawMessage) (*InlineQueryResults, error) {
2022-03-13 04:04:12 +00:00
var resp InlineQueryResults
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallbackQueryPayloadData(data json.RawMessage) (*CallbackQueryPayloadData, error) {
2022-03-13 04:04:12 +00:00
var resp CallbackQueryPayloadData
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalCallbackQueryPayloadDataWithPassword(data json.RawMessage) (*CallbackQueryPayloadDataWithPassword, error) {
2022-03-13 04:04:12 +00:00
var resp CallbackQueryPayloadDataWithPassword
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalCallbackQueryPayloadGame(data json.RawMessage) (*CallbackQueryPayloadGame, error) {
2022-03-13 04:04:12 +00:00
var resp CallbackQueryPayloadGame
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallbackQueryAnswer(data json.RawMessage) (*CallbackQueryAnswer, error) {
2022-03-13 04:04:12 +00:00
var resp CallbackQueryAnswer
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCustomRequestResult(data json.RawMessage) (*CustomRequestResult, error) {
2022-03-13 04:04:12 +00:00
var resp CustomRequestResult
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalGameHighScore(data json.RawMessage) (*GameHighScore, error) {
2022-03-13 04:04:12 +00:00
var resp GameHighScore
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalGameHighScores(data json.RawMessage) (*GameHighScores, error) {
2022-03-13 04:04:12 +00:00
var resp GameHighScores
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMessageEdited(data json.RawMessage) (*ChatEventMessageEdited, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventMessageEdited
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMessageDeleted(data json.RawMessage) (*ChatEventMessageDeleted, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventMessageDeleted
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventMessagePinned(data json.RawMessage) (*ChatEventMessagePinned, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventMessagePinned
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventMessageUnpinned(data json.RawMessage) (*ChatEventMessageUnpinned, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventMessageUnpinned
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventPollStopped(data json.RawMessage) (*ChatEventPollStopped, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventPollStopped
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMemberJoined(data json.RawMessage) (*ChatEventMemberJoined, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventMemberJoined
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalChatEventMemberJoinedByInviteLink(data json.RawMessage) (*ChatEventMemberJoinedByInviteLink, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventMemberJoinedByInviteLink
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatEventMemberJoinedByRequest(data json.RawMessage) (*ChatEventMemberJoinedByRequest, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventMemberJoinedByRequest
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventMemberInvited(data json.RawMessage) (*ChatEventMemberInvited, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventMemberInvited
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventMemberLeft(data json.RawMessage) (*ChatEventMemberLeft, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventMemberLeft
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMemberPromoted(data json.RawMessage) (*ChatEventMemberPromoted, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventMemberPromoted
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMemberRestricted(data json.RawMessage) (*ChatEventMemberRestricted, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventMemberRestricted
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventAvailableReactionsChanged(data json.RawMessage) (*ChatEventAvailableReactionsChanged, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventAvailableReactionsChanged
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventDescriptionChanged(data json.RawMessage) (*ChatEventDescriptionChanged, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventDescriptionChanged
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventLinkedChatChanged(data json.RawMessage) (*ChatEventLinkedChatChanged, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventLinkedChatChanged
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventLocationChanged(data json.RawMessage) (*ChatEventLocationChanged, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventLocationChanged
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventMessageTtlChanged(data json.RawMessage) (*ChatEventMessageTtlChanged, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventMessageTtlChanged
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventPermissionsChanged(data json.RawMessage) (*ChatEventPermissionsChanged, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventPermissionsChanged
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventPhotoChanged(data json.RawMessage) (*ChatEventPhotoChanged, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventPhotoChanged
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalChatEventSlowModeDelayChanged(data json.RawMessage) (*ChatEventSlowModeDelayChanged, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventSlowModeDelayChanged
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventStickerSetChanged(data json.RawMessage) (*ChatEventStickerSetChanged, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventStickerSetChanged
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventTitleChanged(data json.RawMessage) (*ChatEventTitleChanged, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventTitleChanged
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventUsernameChanged(data json.RawMessage) (*ChatEventUsernameChanged, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventUsernameChanged
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventHasProtectedContentToggled(data json.RawMessage) (*ChatEventHasProtectedContentToggled, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventHasProtectedContentToggled
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventInvitesToggled(data json.RawMessage) (*ChatEventInvitesToggled, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventInvitesToggled
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatEventIsAllHistoryAvailableToggled(data json.RawMessage) (*ChatEventIsAllHistoryAvailableToggled, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventIsAllHistoryAvailableToggled
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventSignMessagesToggled(data json.RawMessage) (*ChatEventSignMessagesToggled, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventSignMessagesToggled
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalChatEventInviteLinkEdited(data json.RawMessage) (*ChatEventInviteLinkEdited, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventInviteLinkEdited
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatEventInviteLinkRevoked(data json.RawMessage) (*ChatEventInviteLinkRevoked, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventInviteLinkRevoked
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatEventInviteLinkDeleted(data json.RawMessage) (*ChatEventInviteLinkDeleted, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventInviteLinkDeleted
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatEventVideoChatCreated(data json.RawMessage) (*ChatEventVideoChatCreated, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventVideoChatCreated
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatEventVideoChatEnded(data json.RawMessage) (*ChatEventVideoChatEnded, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventVideoChatEnded
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventVideoChatMuteNewParticipantsToggled(data json.RawMessage) (*ChatEventVideoChatMuteNewParticipantsToggled, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventVideoChatMuteNewParticipantsToggled
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventVideoChatParticipantIsMutedToggled(data json.RawMessage) (*ChatEventVideoChatParticipantIsMutedToggled, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventVideoChatParticipantIsMutedToggled
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalChatEventVideoChatParticipantVolumeLevelChanged(data json.RawMessage) (*ChatEventVideoChatParticipantVolumeLevelChanged, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventVideoChatParticipantVolumeLevelChanged
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatEvent(data json.RawMessage) (*ChatEvent, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEvent
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatEvents(data json.RawMessage) (*ChatEvents, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEvents
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatEventLogFilters(data json.RawMessage) (*ChatEventLogFilters, error) {
2022-03-13 04:04:12 +00:00
var resp ChatEventLogFilters
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalLanguagePackStringValueOrdinary(data json.RawMessage) (*LanguagePackStringValueOrdinary, error) {
2022-03-13 04:04:12 +00:00
var resp LanguagePackStringValueOrdinary
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalLanguagePackStringValuePluralized(data json.RawMessage) (*LanguagePackStringValuePluralized, error) {
2022-03-13 04:04:12 +00:00
var resp LanguagePackStringValuePluralized
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalLanguagePackStringValueDeleted(data json.RawMessage) (*LanguagePackStringValueDeleted, error) {
2022-03-13 04:04:12 +00:00
var resp LanguagePackStringValueDeleted
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalLanguagePackString(data json.RawMessage) (*LanguagePackString, error) {
2022-03-13 04:04:12 +00:00
var resp LanguagePackString
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalLanguagePackStrings(data json.RawMessage) (*LanguagePackStrings, error) {
2022-03-13 04:04:12 +00:00
var resp LanguagePackStrings
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalLanguagePackInfo(data json.RawMessage) (*LanguagePackInfo, error) {
2022-03-13 04:04:12 +00:00
var resp LanguagePackInfo
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalLocalizationTargetInfo(data json.RawMessage) (*LocalizationTargetInfo, error) {
2022-03-13 04:04:12 +00:00
var resp LocalizationTargetInfo
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2022-06-21 18:10:07 +00:00
func UnmarshalPremiumLimitTypeSupergroupCount(data json.RawMessage) (*PremiumLimitTypeSupergroupCount, error) {
var resp PremiumLimitTypeSupergroupCount
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumLimitTypePinnedChatCount(data json.RawMessage) (*PremiumLimitTypePinnedChatCount, error) {
var resp PremiumLimitTypePinnedChatCount
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumLimitTypeCreatedPublicChatCount(data json.RawMessage) (*PremiumLimitTypeCreatedPublicChatCount, error) {
var resp PremiumLimitTypeCreatedPublicChatCount
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumLimitTypeSavedAnimationCount(data json.RawMessage) (*PremiumLimitTypeSavedAnimationCount, error) {
var resp PremiumLimitTypeSavedAnimationCount
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumLimitTypeFavoriteStickerCount(data json.RawMessage) (*PremiumLimitTypeFavoriteStickerCount, error) {
var resp PremiumLimitTypeFavoriteStickerCount
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumLimitTypeChatFilterCount(data json.RawMessage) (*PremiumLimitTypeChatFilterCount, error) {
var resp PremiumLimitTypeChatFilterCount
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumLimitTypeChatFilterChosenChatCount(data json.RawMessage) (*PremiumLimitTypeChatFilterChosenChatCount, error) {
var resp PremiumLimitTypeChatFilterChosenChatCount
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumLimitTypePinnedArchivedChatCount(data json.RawMessage) (*PremiumLimitTypePinnedArchivedChatCount, error) {
var resp PremiumLimitTypePinnedArchivedChatCount
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumLimitTypeCaptionLength(data json.RawMessage) (*PremiumLimitTypeCaptionLength, error) {
var resp PremiumLimitTypeCaptionLength
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumLimitTypeBioLength(data json.RawMessage) (*PremiumLimitTypeBioLength, error) {
var resp PremiumLimitTypeBioLength
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumFeatureIncreasedLimits(data json.RawMessage) (*PremiumFeatureIncreasedLimits, error) {
var resp PremiumFeatureIncreasedLimits
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumFeatureIncreasedUploadFileSize(data json.RawMessage) (*PremiumFeatureIncreasedUploadFileSize, error) {
var resp PremiumFeatureIncreasedUploadFileSize
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumFeatureImprovedDownloadSpeed(data json.RawMessage) (*PremiumFeatureImprovedDownloadSpeed, error) {
var resp PremiumFeatureImprovedDownloadSpeed
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumFeatureVoiceRecognition(data json.RawMessage) (*PremiumFeatureVoiceRecognition, error) {
var resp PremiumFeatureVoiceRecognition
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumFeatureDisabledAds(data json.RawMessage) (*PremiumFeatureDisabledAds, error) {
var resp PremiumFeatureDisabledAds
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumFeatureUniqueReactions(data json.RawMessage) (*PremiumFeatureUniqueReactions, error) {
var resp PremiumFeatureUniqueReactions
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumFeatureUniqueStickers(data json.RawMessage) (*PremiumFeatureUniqueStickers, error) {
var resp PremiumFeatureUniqueStickers
err := json.Unmarshal(data, &resp)
return &resp, err
}
2022-08-13 15:24:07 +00:00
func UnmarshalPremiumFeatureCustomEmoji(data json.RawMessage) (*PremiumFeatureCustomEmoji, error) {
var resp PremiumFeatureCustomEmoji
err := json.Unmarshal(data, &resp)
return &resp, err
}
2022-06-21 18:10:07 +00:00
func UnmarshalPremiumFeatureAdvancedChatManagement(data json.RawMessage) (*PremiumFeatureAdvancedChatManagement, error) {
var resp PremiumFeatureAdvancedChatManagement
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumFeatureProfileBadge(data json.RawMessage) (*PremiumFeatureProfileBadge, error) {
var resp PremiumFeatureProfileBadge
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumFeatureAnimatedProfilePhoto(data json.RawMessage) (*PremiumFeatureAnimatedProfilePhoto, error) {
var resp PremiumFeatureAnimatedProfilePhoto
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumFeatureAppIcons(data json.RawMessage) (*PremiumFeatureAppIcons, error) {
var resp PremiumFeatureAppIcons
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumLimit(data json.RawMessage) (*PremiumLimit, error) {
var resp PremiumLimit
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumFeatures(data json.RawMessage) (*PremiumFeatures, error) {
var resp PremiumFeatures
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumSourceLimitExceeded(data json.RawMessage) (*PremiumSourceLimitExceeded, error) {
var resp PremiumSourceLimitExceeded
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumSourceFeature(data json.RawMessage) (*PremiumSourceFeature, error) {
var resp PremiumSourceFeature
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumSourceLink(data json.RawMessage) (*PremiumSourceLink, error) {
var resp PremiumSourceLink
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumSourceSettings(data json.RawMessage) (*PremiumSourceSettings, error) {
var resp PremiumSourceSettings
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumFeaturePromotionAnimation(data json.RawMessage) (*PremiumFeaturePromotionAnimation, error) {
var resp PremiumFeaturePromotionAnimation
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalPremiumState(data json.RawMessage) (*PremiumState, error) {
var resp PremiumState
err := json.Unmarshal(data, &resp)
return &resp, err
}
2022-08-13 15:24:07 +00:00
func UnmarshalStorePaymentPurposePremiumSubscription(data json.RawMessage) (*StorePaymentPurposePremiumSubscription, error) {
var resp StorePaymentPurposePremiumSubscription
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalStorePaymentPurposeGiftedPremium(data json.RawMessage) (*StorePaymentPurposeGiftedPremium, error) {
var resp StorePaymentPurposeGiftedPremium
err := json.Unmarshal(data, &resp)
return &resp, err
}
2019-06-07 10:56:06 +00:00
func UnmarshalDeviceTokenFirebaseCloudMessaging(data json.RawMessage) (*DeviceTokenFirebaseCloudMessaging, error) {
2022-03-13 04:04:12 +00:00
var resp DeviceTokenFirebaseCloudMessaging
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalDeviceTokenApplePush(data json.RawMessage) (*DeviceTokenApplePush, error) {
2022-03-13 04:04:12 +00:00
var resp DeviceTokenApplePush
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalDeviceTokenApplePushVoIP(data json.RawMessage) (*DeviceTokenApplePushVoIP, error) {
2022-03-13 04:04:12 +00:00
var resp DeviceTokenApplePushVoIP
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalDeviceTokenWindowsPush(data json.RawMessage) (*DeviceTokenWindowsPush, error) {
2022-03-13 04:04:12 +00:00
var resp DeviceTokenWindowsPush
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalDeviceTokenMicrosoftPush(data json.RawMessage) (*DeviceTokenMicrosoftPush, error) {
2022-03-13 04:04:12 +00:00
var resp DeviceTokenMicrosoftPush
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalDeviceTokenMicrosoftPushVoIP(data json.RawMessage) (*DeviceTokenMicrosoftPushVoIP, error) {
2022-03-13 04:04:12 +00:00
var resp DeviceTokenMicrosoftPushVoIP
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalDeviceTokenWebPush(data json.RawMessage) (*DeviceTokenWebPush, error) {
2022-03-13 04:04:12 +00:00
var resp DeviceTokenWebPush
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalDeviceTokenSimplePush(data json.RawMessage) (*DeviceTokenSimplePush, error) {
2022-03-13 04:04:12 +00:00
var resp DeviceTokenSimplePush
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalDeviceTokenUbuntuPush(data json.RawMessage) (*DeviceTokenUbuntuPush, error) {
2022-03-13 04:04:12 +00:00
var resp DeviceTokenUbuntuPush
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalDeviceTokenBlackBerryPush(data json.RawMessage) (*DeviceTokenBlackBerryPush, error) {
2022-03-13 04:04:12 +00:00
var resp DeviceTokenBlackBerryPush
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalDeviceTokenTizenPush(data json.RawMessage) (*DeviceTokenTizenPush, error) {
2022-03-13 04:04:12 +00:00
var resp DeviceTokenTizenPush
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushReceiverId(data json.RawMessage) (*PushReceiverId, error) {
2022-03-13 04:04:12 +00:00
var resp PushReceiverId
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalBackgroundFillSolid(data json.RawMessage) (*BackgroundFillSolid, error) {
2022-03-13 04:04:12 +00:00
var resp BackgroundFillSolid
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalBackgroundFillGradient(data json.RawMessage) (*BackgroundFillGradient, error) {
2022-03-13 04:04:12 +00:00
var resp BackgroundFillGradient
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalBackgroundFillFreeformGradient(data json.RawMessage) (*BackgroundFillFreeformGradient, error) {
2022-03-13 04:04:12 +00:00
var resp BackgroundFillFreeformGradient
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalBackgroundTypeWallpaper(data json.RawMessage) (*BackgroundTypeWallpaper, error) {
2022-03-13 04:04:12 +00:00
var resp BackgroundTypeWallpaper
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
func UnmarshalBackgroundTypePattern(data json.RawMessage) (*BackgroundTypePattern, error) {
2022-03-13 04:04:12 +00:00
var resp BackgroundTypePattern
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalBackgroundTypeFill(data json.RawMessage) (*BackgroundTypeFill, error) {
2022-03-13 04:04:12 +00:00
var resp BackgroundTypeFill
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
func UnmarshalBackground(data json.RawMessage) (*Background, error) {
2022-03-13 04:04:12 +00:00
var resp Background
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
func UnmarshalBackgrounds(data json.RawMessage) (*Backgrounds, error) {
2022-03-13 04:04:12 +00:00
var resp Backgrounds
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
func UnmarshalInputBackgroundLocal(data json.RawMessage) (*InputBackgroundLocal, error) {
2022-03-13 04:04:12 +00:00
var resp InputBackgroundLocal
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalInputBackgroundRemote(data json.RawMessage) (*InputBackgroundRemote, error) {
2022-03-13 04:04:12 +00:00
var resp InputBackgroundRemote
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalThemeSettings(data json.RawMessage) (*ThemeSettings, error) {
2022-03-13 04:04:12 +00:00
var resp ThemeSettings
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalChatTheme(data json.RawMessage) (*ChatTheme, error) {
2022-03-13 04:04:12 +00:00
var resp ChatTheme
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalHashtags(data json.RawMessage) (*Hashtags, error) {
2022-03-13 04:04:12 +00:00
var resp Hashtags
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalCanTransferOwnershipResultOk(data json.RawMessage) (*CanTransferOwnershipResultOk, error) {
2022-03-13 04:04:12 +00:00
var resp CanTransferOwnershipResultOk
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalCanTransferOwnershipResultPasswordNeeded(data json.RawMessage) (*CanTransferOwnershipResultPasswordNeeded, error) {
2022-03-13 04:04:12 +00:00
var resp CanTransferOwnershipResultPasswordNeeded
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalCanTransferOwnershipResultPasswordTooFresh(data json.RawMessage) (*CanTransferOwnershipResultPasswordTooFresh, error) {
2022-03-13 04:04:12 +00:00
var resp CanTransferOwnershipResultPasswordTooFresh
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
func UnmarshalCanTransferOwnershipResultSessionTooFresh(data json.RawMessage) (*CanTransferOwnershipResultSessionTooFresh, error) {
2022-03-13 04:04:12 +00:00
var resp CanTransferOwnershipResultSessionTooFresh
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalCheckChatUsernameResultOk(data json.RawMessage) (*CheckChatUsernameResultOk, error) {
2022-03-13 04:04:12 +00:00
var resp CheckChatUsernameResultOk
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalCheckChatUsernameResultUsernameInvalid(data json.RawMessage) (*CheckChatUsernameResultUsernameInvalid, error) {
2022-03-13 04:04:12 +00:00
var resp CheckChatUsernameResultUsernameInvalid
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalCheckChatUsernameResultUsernameOccupied(data json.RawMessage) (*CheckChatUsernameResultUsernameOccupied, error) {
2022-03-13 04:04:12 +00:00
var resp CheckChatUsernameResultUsernameOccupied
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalCheckChatUsernameResultPublicChatsTooMuch(data json.RawMessage) (*CheckChatUsernameResultPublicChatsTooMuch, error) {
2022-03-13 04:04:12 +00:00
var resp CheckChatUsernameResultPublicChatsTooMuch
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data json.RawMessage) (*CheckChatUsernameResultPublicGroupsUnavailable, error) {
2022-03-13 04:04:12 +00:00
var resp CheckChatUsernameResultPublicGroupsUnavailable
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalCheckStickerSetNameResultOk(data json.RawMessage) (*CheckStickerSetNameResultOk, error) {
2022-03-13 04:04:12 +00:00
var resp CheckStickerSetNameResultOk
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalCheckStickerSetNameResultNameInvalid(data json.RawMessage) (*CheckStickerSetNameResultNameInvalid, error) {
2022-03-13 04:04:12 +00:00
var resp CheckStickerSetNameResultNameInvalid
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalCheckStickerSetNameResultNameOccupied(data json.RawMessage) (*CheckStickerSetNameResultNameOccupied, error) {
2022-03-13 04:04:12 +00:00
var resp CheckStickerSetNameResultNameOccupied
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalResetPasswordResultOk(data json.RawMessage) (*ResetPasswordResultOk, error) {
2022-03-13 04:04:12 +00:00
var resp ResetPasswordResultOk
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalResetPasswordResultPending(data json.RawMessage) (*ResetPasswordResultPending, error) {
2022-03-13 04:04:12 +00:00
var resp ResetPasswordResultPending
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalResetPasswordResultDeclined(data json.RawMessage) (*ResetPasswordResultDeclined, error) {
2022-03-13 04:04:12 +00:00
var resp ResetPasswordResultDeclined
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalMessageFileTypePrivate(data json.RawMessage) (*MessageFileTypePrivate, error) {
2022-03-13 04:04:12 +00:00
var resp MessageFileTypePrivate
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalMessageFileTypeGroup(data json.RawMessage) (*MessageFileTypeGroup, error) {
2022-03-13 04:04:12 +00:00
var resp MessageFileTypeGroup
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalMessageFileTypeUnknown(data json.RawMessage) (*MessageFileTypeUnknown, error) {
2022-03-13 04:04:12 +00:00
var resp MessageFileTypeUnknown
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPushMessageContentHidden(data json.RawMessage) (*PushMessageContentHidden, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentHidden
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentAnimation(data json.RawMessage) (*PushMessageContentAnimation, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentAnimation
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentAudio(data json.RawMessage) (*PushMessageContentAudio, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentAudio
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentContact(data json.RawMessage) (*PushMessageContentContact, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentContact
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentContactRegistered(data json.RawMessage) (*PushMessageContentContactRegistered, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentContactRegistered
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentDocument(data json.RawMessage) (*PushMessageContentDocument, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentDocument
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentGame(data json.RawMessage) (*PushMessageContentGame, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentGame
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentGameScore(data json.RawMessage) (*PushMessageContentGameScore, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentGameScore
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentInvoice(data json.RawMessage) (*PushMessageContentInvoice, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentInvoice
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentLocation(data json.RawMessage) (*PushMessageContentLocation, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentLocation
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentPhoto(data json.RawMessage) (*PushMessageContentPhoto, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentPhoto
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentPoll(data json.RawMessage) (*PushMessageContentPoll, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentPoll
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentScreenshotTaken(data json.RawMessage) (*PushMessageContentScreenshotTaken, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentScreenshotTaken
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentSticker(data json.RawMessage) (*PushMessageContentSticker, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentSticker
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentText(data json.RawMessage) (*PushMessageContentText, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentText
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentVideo(data json.RawMessage) (*PushMessageContentVideo, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentVideo
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentVideoNote(data json.RawMessage) (*PushMessageContentVideoNote, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentVideoNote
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentVoiceNote(data json.RawMessage) (*PushMessageContentVoiceNote, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentVoiceNote
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentBasicGroupChatCreate(data json.RawMessage) (*PushMessageContentBasicGroupChatCreate, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentBasicGroupChatCreate
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalPushMessageContentChatAddMembers(data json.RawMessage) (*PushMessageContentChatAddMembers, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentChatAddMembers
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPushMessageContentChatChangePhoto(data json.RawMessage) (*PushMessageContentChatChangePhoto, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentChatChangePhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPushMessageContentChatChangeTitle(data json.RawMessage) (*PushMessageContentChatChangeTitle, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentChatChangeTitle
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalPushMessageContentChatSetTheme(data json.RawMessage) (*PushMessageContentChatSetTheme, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentChatSetTheme
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPushMessageContentChatDeleteMember(data json.RawMessage) (*PushMessageContentChatDeleteMember, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentChatDeleteMember
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPushMessageContentChatJoinByLink(data json.RawMessage) (*PushMessageContentChatJoinByLink, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentChatJoinByLink
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalPushMessageContentChatJoinByRequest(data json.RawMessage) (*PushMessageContentChatJoinByRequest, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentChatJoinByRequest
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-06-21 18:10:07 +00:00
func UnmarshalPushMessageContentRecurringPayment(data json.RawMessage) (*PushMessageContentRecurringPayment, error) {
var resp PushMessageContentRecurringPayment
err := json.Unmarshal(data, &resp)
return &resp, err
}
2019-06-07 10:56:06 +00:00
func UnmarshalPushMessageContentMessageForwards(data json.RawMessage) (*PushMessageContentMessageForwards, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentMessageForwards
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalPushMessageContentMediaAlbum(data json.RawMessage) (*PushMessageContentMediaAlbum, error) {
2022-03-13 04:04:12 +00:00
var resp PushMessageContentMediaAlbum
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotificationTypeNewMessage(data json.RawMessage) (*NotificationTypeNewMessage, error) {
2022-03-13 04:04:12 +00:00
var resp NotificationTypeNewMessage
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotificationTypeNewSecretChat(data json.RawMessage) (*NotificationTypeNewSecretChat, error) {
2022-03-13 04:04:12 +00:00
var resp NotificationTypeNewSecretChat
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotificationTypeNewCall(data json.RawMessage) (*NotificationTypeNewCall, error) {
2022-03-13 04:04:12 +00:00
var resp NotificationTypeNewCall
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotificationTypeNewPushMessage(data json.RawMessage) (*NotificationTypeNewPushMessage, error) {
2022-03-13 04:04:12 +00:00
var resp NotificationTypeNewPushMessage
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotificationGroupTypeMessages(data json.RawMessage) (*NotificationGroupTypeMessages, error) {
2022-03-13 04:04:12 +00:00
var resp NotificationGroupTypeMessages
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotificationGroupTypeMentions(data json.RawMessage) (*NotificationGroupTypeMentions, error) {
2022-03-13 04:04:12 +00:00
var resp NotificationGroupTypeMentions
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotificationGroupTypeSecretChat(data json.RawMessage) (*NotificationGroupTypeSecretChat, error) {
2022-03-13 04:04:12 +00:00
var resp NotificationGroupTypeSecretChat
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotificationGroupTypeCalls(data json.RawMessage) (*NotificationGroupTypeCalls, error) {
2022-03-13 04:04:12 +00:00
var resp NotificationGroupTypeCalls
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-04-24 20:33:39 +00:00
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
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotification(data json.RawMessage) (*Notification, error) {
2022-03-13 04:04:12 +00:00
var resp Notification
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalNotificationGroup(data json.RawMessage) (*NotificationGroup, error) {
2022-03-13 04:04:12 +00:00
var resp NotificationGroup
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalOptionValueBoolean(data json.RawMessage) (*OptionValueBoolean, error) {
2022-03-13 04:04:12 +00:00
var resp OptionValueBoolean
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalOptionValueEmpty(data json.RawMessage) (*OptionValueEmpty, error) {
2022-03-13 04:04:12 +00:00
var resp OptionValueEmpty
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalOptionValueInteger(data json.RawMessage) (*OptionValueInteger, error) {
2022-03-13 04:04:12 +00:00
var resp OptionValueInteger
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalOptionValueString(data json.RawMessage) (*OptionValueString, error) {
2022-03-13 04:04:12 +00:00
var resp OptionValueString
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalJsonObjectMember(data json.RawMessage) (*JsonObjectMember, error) {
2022-03-13 04:04:12 +00:00
var resp JsonObjectMember
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalJsonValueNull(data json.RawMessage) (*JsonValueNull, error) {
2022-03-13 04:04:12 +00:00
var resp JsonValueNull
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalJsonValueBoolean(data json.RawMessage) (*JsonValueBoolean, error) {
2022-03-13 04:04:12 +00:00
var resp JsonValueBoolean
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalJsonValueNumber(data json.RawMessage) (*JsonValueNumber, error) {
2022-03-13 04:04:12 +00:00
var resp JsonValueNumber
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalJsonValueString(data json.RawMessage) (*JsonValueString, error) {
2022-03-13 04:04:12 +00:00
var resp JsonValueString
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalJsonValueArray(data json.RawMessage) (*JsonValueArray, error) {
2022-03-13 04:04:12 +00:00
var resp JsonValueArray
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalJsonValueObject(data json.RawMessage) (*JsonValueObject, error) {
2022-03-13 04:04:12 +00:00
var resp JsonValueObject
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRuleAllowAll(data json.RawMessage) (*UserPrivacySettingRuleAllowAll, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingRuleAllowAll
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRuleAllowContacts(data json.RawMessage) (*UserPrivacySettingRuleAllowContacts, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingRuleAllowContacts
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRuleAllowUsers(data json.RawMessage) (*UserPrivacySettingRuleAllowUsers, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingRuleAllowUsers
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalUserPrivacySettingRuleAllowChatMembers(data json.RawMessage) (*UserPrivacySettingRuleAllowChatMembers, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingRuleAllowChatMembers
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUserPrivacySettingRuleRestrictAll(data json.RawMessage) (*UserPrivacySettingRuleRestrictAll, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingRuleRestrictAll
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRuleRestrictContacts(data json.RawMessage) (*UserPrivacySettingRuleRestrictContacts, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingRuleRestrictContacts
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRuleRestrictUsers(data json.RawMessage) (*UserPrivacySettingRuleRestrictUsers, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingRuleRestrictUsers
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalUserPrivacySettingRuleRestrictChatMembers(data json.RawMessage) (*UserPrivacySettingRuleRestrictChatMembers, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingRuleRestrictChatMembers
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUserPrivacySettingRules(data json.RawMessage) (*UserPrivacySettingRules, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingRules
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingShowStatus(data json.RawMessage) (*UserPrivacySettingShowStatus, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingShowStatus
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalUserPrivacySettingShowProfilePhoto(data json.RawMessage) (*UserPrivacySettingShowProfilePhoto, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingShowProfilePhoto
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
func UnmarshalUserPrivacySettingShowLinkInForwardedMessages(data json.RawMessage) (*UserPrivacySettingShowLinkInForwardedMessages, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingShowLinkInForwardedMessages
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalUserPrivacySettingShowPhoneNumber(data json.RawMessage) (*UserPrivacySettingShowPhoneNumber, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingShowPhoneNumber
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUserPrivacySettingAllowChatInvites(data json.RawMessage) (*UserPrivacySettingAllowChatInvites, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingAllowChatInvites
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingAllowCalls(data json.RawMessage) (*UserPrivacySettingAllowCalls, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingAllowCalls
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalUserPrivacySettingAllowPeerToPeerCalls(data json.RawMessage) (*UserPrivacySettingAllowPeerToPeerCalls, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingAllowPeerToPeerCalls
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalUserPrivacySettingAllowFindingByPhoneNumber(data json.RawMessage) (*UserPrivacySettingAllowFindingByPhoneNumber, error) {
2022-03-13 04:04:12 +00:00
var resp UserPrivacySettingAllowFindingByPhoneNumber
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2022-08-13 15:24:07 +00:00
func UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data json.RawMessage) (*UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages, error) {
var resp UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages
err := json.Unmarshal(data, &resp)
return &resp, err
}
2018-08-30 14:55:42 +00:00
func UnmarshalAccountTtl(data json.RawMessage) (*AccountTtl, error) {
2022-03-13 04:04:12 +00:00
var resp AccountTtl
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-05-09 11:35:19 +00:00
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
}
2018-08-30 14:55:42 +00:00
func UnmarshalSession(data json.RawMessage) (*Session, error) {
2022-03-13 04:04:12 +00:00
var resp Session
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSessions(data json.RawMessage) (*Sessions, error) {
2022-03-13 04:04:12 +00:00
var resp Sessions
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectedWebsite(data json.RawMessage) (*ConnectedWebsite, error) {
2022-03-13 04:04:12 +00:00
var resp ConnectedWebsite
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectedWebsites(data json.RawMessage) (*ConnectedWebsites, error) {
2022-03-13 04:04:12 +00:00
var resp ConnectedWebsites
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatReportReasonSpam(data json.RawMessage) (*ChatReportReasonSpam, error) {
2022-03-13 04:04:12 +00:00
var resp ChatReportReasonSpam
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatReportReasonViolence(data json.RawMessage) (*ChatReportReasonViolence, error) {
2022-03-13 04:04:12 +00:00
var resp ChatReportReasonViolence
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatReportReasonPornography(data json.RawMessage) (*ChatReportReasonPornography, error) {
2022-03-13 04:04:12 +00:00
var resp ChatReportReasonPornography
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalChatReportReasonChildAbuse(data json.RawMessage) (*ChatReportReasonChildAbuse, error) {
2022-03-13 04:04:12 +00:00
var resp ChatReportReasonChildAbuse
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatReportReasonCopyright(data json.RawMessage) (*ChatReportReasonCopyright, error) {
2022-03-13 04:04:12 +00:00
var resp ChatReportReasonCopyright
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalChatReportReasonUnrelatedLocation(data json.RawMessage) (*ChatReportReasonUnrelatedLocation, error) {
2022-03-13 04:04:12 +00:00
var resp ChatReportReasonUnrelatedLocation
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalChatReportReasonFake(data json.RawMessage) (*ChatReportReasonFake, error) {
2022-03-13 04:04:12 +00:00
var resp ChatReportReasonFake
err := json.Unmarshal(data, &resp)
return &resp, err
}
func UnmarshalChatReportReasonIllegalDrugs(data json.RawMessage) (*ChatReportReasonIllegalDrugs, error) {
var resp ChatReportReasonIllegalDrugs
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
}
func UnmarshalChatReportReasonPersonalDetails(data json.RawMessage) (*ChatReportReasonPersonalDetails, error) {
var resp ChatReportReasonPersonalDetails
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalChatReportReasonCustom(data json.RawMessage) (*ChatReportReasonCustom, error) {
2022-03-13 04:04:12 +00:00
var resp ChatReportReasonCustom
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-06-21 18:10:07 +00:00
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
}
2021-12-30 05:55:02 +00:00
func UnmarshalInternalLinkTypeActiveSessions(data json.RawMessage) (*InternalLinkTypeActiveSessions, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeActiveSessions
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2022-04-24 20:33:39 +00:00
func UnmarshalInternalLinkTypeAttachmentMenuBot(data json.RawMessage) (*InternalLinkTypeAttachmentMenuBot, error) {
var resp InternalLinkTypeAttachmentMenuBot
err := json.Unmarshal(data, &resp)
return &resp, err
}
2021-12-30 05:55:02 +00:00
func UnmarshalInternalLinkTypeAuthenticationCode(data json.RawMessage) (*InternalLinkTypeAuthenticationCode, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeAuthenticationCode
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeBackground(data json.RawMessage) (*InternalLinkTypeBackground, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeBackground
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeBotStart(data json.RawMessage) (*InternalLinkTypeBotStart, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeBotStart
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeBotStartInGroup(data json.RawMessage) (*InternalLinkTypeBotStartInGroup, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeBotStartInGroup
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-04-24 20:33:39 +00:00
func UnmarshalInternalLinkTypeBotAddToChannel(data json.RawMessage) (*InternalLinkTypeBotAddToChannel, error) {
var resp InternalLinkTypeBotAddToChannel
err := json.Unmarshal(data, &resp)
return &resp, err
}
2021-12-30 05:55:02 +00:00
func UnmarshalInternalLinkTypeChangePhoneNumber(data json.RawMessage) (*InternalLinkTypeChangePhoneNumber, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeChangePhoneNumber
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeChatInvite(data json.RawMessage) (*InternalLinkTypeChatInvite, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeChatInvite
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeFilterSettings(data json.RawMessage) (*InternalLinkTypeFilterSettings, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeFilterSettings
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeGame(data json.RawMessage) (*InternalLinkTypeGame, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeGame
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-06-21 18:10:07 +00:00
func UnmarshalInternalLinkTypeInvoice(data json.RawMessage) (*InternalLinkTypeInvoice, error) {
var resp InternalLinkTypeInvoice
err := json.Unmarshal(data, &resp)
return &resp, err
}
2021-12-30 05:55:02 +00:00
func UnmarshalInternalLinkTypeLanguagePack(data json.RawMessage) (*InternalLinkTypeLanguagePack, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeLanguagePack
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-03-31 08:54:35 +00:00
func UnmarshalInternalLinkTypeLanguageSettings(data json.RawMessage) (*InternalLinkTypeLanguageSettings, error) {
var resp InternalLinkTypeLanguageSettings
err := json.Unmarshal(data, &resp)
return &resp, err
}
2021-12-30 05:55:02 +00:00
func UnmarshalInternalLinkTypeMessage(data json.RawMessage) (*InternalLinkTypeMessage, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeMessage
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeMessageDraft(data json.RawMessage) (*InternalLinkTypeMessageDraft, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeMessageDraft
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypePassportDataRequest(data json.RawMessage) (*InternalLinkTypePassportDataRequest, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypePassportDataRequest
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypePhoneNumberConfirmation(data json.RawMessage) (*InternalLinkTypePhoneNumberConfirmation, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypePhoneNumberConfirmation
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-06-21 18:10:07 +00:00
func UnmarshalInternalLinkTypePremiumFeatures(data json.RawMessage) (*InternalLinkTypePremiumFeatures, error) {
var resp InternalLinkTypePremiumFeatures
err := json.Unmarshal(data, &resp)
return &resp, err
}
2022-03-31 08:54:35 +00:00
func UnmarshalInternalLinkTypePrivacyAndSecuritySettings(data json.RawMessage) (*InternalLinkTypePrivacyAndSecuritySettings, error) {
var resp InternalLinkTypePrivacyAndSecuritySettings
err := json.Unmarshal(data, &resp)
return &resp, err
}
2021-12-30 05:55:02 +00:00
func UnmarshalInternalLinkTypeProxy(data json.RawMessage) (*InternalLinkTypeProxy, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeProxy
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypePublicChat(data json.RawMessage) (*InternalLinkTypePublicChat, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypePublicChat
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeQrCodeAuthentication(data json.RawMessage) (*InternalLinkTypeQrCodeAuthentication, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeQrCodeAuthentication
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-08-13 15:24:07 +00:00
func UnmarshalInternalLinkTypeRestorePurchases(data json.RawMessage) (*InternalLinkTypeRestorePurchases, error) {
var resp InternalLinkTypeRestorePurchases
err := json.Unmarshal(data, &resp)
return &resp, err
}
2021-12-30 05:55:02 +00:00
func UnmarshalInternalLinkTypeSettings(data json.RawMessage) (*InternalLinkTypeSettings, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeSettings
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeStickerSet(data json.RawMessage) (*InternalLinkTypeStickerSet, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeStickerSet
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeTheme(data json.RawMessage) (*InternalLinkTypeTheme, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeTheme
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeThemeSettings(data json.RawMessage) (*InternalLinkTypeThemeSettings, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeThemeSettings
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeUnknownDeepLink(data json.RawMessage) (*InternalLinkTypeUnknownDeepLink, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeUnknownDeepLink
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeUnsupportedProxy(data json.RawMessage) (*InternalLinkTypeUnsupportedProxy, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeUnsupportedProxy
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
}
func UnmarshalInternalLinkTypeUserPhoneNumber(data json.RawMessage) (*InternalLinkTypeUserPhoneNumber, error) {
var resp InternalLinkTypeUserPhoneNumber
err := json.Unmarshal(data, &resp)
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalInternalLinkTypeVideoChat(data json.RawMessage) (*InternalLinkTypeVideoChat, error) {
2022-03-13 04:04:12 +00:00
var resp InternalLinkTypeVideoChat
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalMessageLink(data json.RawMessage) (*MessageLink, error) {
2022-03-13 04:04:12 +00:00
var resp MessageLink
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalMessageLinkInfo(data json.RawMessage) (*MessageLinkInfo, error) {
2022-03-13 04:04:12 +00:00
var resp MessageLinkInfo
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalFilePart(data json.RawMessage) (*FilePart, error) {
2022-03-13 04:04:12 +00:00
var resp FilePart
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalFileTypeNone(data json.RawMessage) (*FileTypeNone, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeNone
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeAnimation(data json.RawMessage) (*FileTypeAnimation, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeAnimation
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeAudio(data json.RawMessage) (*FileTypeAudio, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeAudio
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeDocument(data json.RawMessage) (*FileTypeDocument, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeDocument
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-04-24 20:33:39 +00:00
func UnmarshalFileTypeNotificationSound(data json.RawMessage) (*FileTypeNotificationSound, error) {
var resp FileTypeNotificationSound
err := json.Unmarshal(data, &resp)
return &resp, err
}
2018-08-30 14:55:42 +00:00
func UnmarshalFileTypePhoto(data json.RawMessage) (*FileTypePhoto, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypePhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeProfilePhoto(data json.RawMessage) (*FileTypeProfilePhoto, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeProfilePhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeSecret(data json.RawMessage) (*FileTypeSecret, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeSecret
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalFileTypeSecretThumbnail(data json.RawMessage) (*FileTypeSecretThumbnail, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeSecretThumbnail
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalFileTypeSecure(data json.RawMessage) (*FileTypeSecure, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeSecure
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalFileTypeSticker(data json.RawMessage) (*FileTypeSticker, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeSticker
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeThumbnail(data json.RawMessage) (*FileTypeThumbnail, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeThumbnail
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeUnknown(data json.RawMessage) (*FileTypeUnknown, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeUnknown
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeVideo(data json.RawMessage) (*FileTypeVideo, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeVideo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeVideoNote(data json.RawMessage) (*FileTypeVideoNote, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeVideoNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeVoiceNote(data json.RawMessage) (*FileTypeVoiceNote, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeVoiceNote
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeWallpaper(data json.RawMessage) (*FileTypeWallpaper, error) {
2022-03-13 04:04:12 +00:00
var resp FileTypeWallpaper
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStorageStatisticsByFileType(data json.RawMessage) (*StorageStatisticsByFileType, error) {
2022-03-13 04:04:12 +00:00
var resp StorageStatisticsByFileType
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStorageStatisticsByChat(data json.RawMessage) (*StorageStatisticsByChat, error) {
2022-03-13 04:04:12 +00:00
var resp StorageStatisticsByChat
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStorageStatistics(data json.RawMessage) (*StorageStatistics, error) {
2022-03-13 04:04:12 +00:00
var resp StorageStatistics
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStorageStatisticsFast(data json.RawMessage) (*StorageStatisticsFast, error) {
2022-03-13 04:04:12 +00:00
var resp StorageStatisticsFast
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalDatabaseStatistics(data json.RawMessage) (*DatabaseStatistics, error) {
2022-03-13 04:04:12 +00:00
var resp DatabaseStatistics
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalNetworkTypeNone(data json.RawMessage) (*NetworkTypeNone, error) {
2022-03-13 04:04:12 +00:00
var resp NetworkTypeNone
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkTypeMobile(data json.RawMessage) (*NetworkTypeMobile, error) {
2022-03-13 04:04:12 +00:00
var resp NetworkTypeMobile
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkTypeMobileRoaming(data json.RawMessage) (*NetworkTypeMobileRoaming, error) {
2022-03-13 04:04:12 +00:00
var resp NetworkTypeMobileRoaming
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkTypeWiFi(data json.RawMessage) (*NetworkTypeWiFi, error) {
2022-03-13 04:04:12 +00:00
var resp NetworkTypeWiFi
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkTypeOther(data json.RawMessage) (*NetworkTypeOther, error) {
2022-03-13 04:04:12 +00:00
var resp NetworkTypeOther
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkStatisticsEntryFile(data json.RawMessage) (*NetworkStatisticsEntryFile, error) {
2022-03-13 04:04:12 +00:00
var resp NetworkStatisticsEntryFile
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkStatisticsEntryCall(data json.RawMessage) (*NetworkStatisticsEntryCall, error) {
2022-03-13 04:04:12 +00:00
var resp NetworkStatisticsEntryCall
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkStatistics(data json.RawMessage) (*NetworkStatistics, error) {
2022-03-13 04:04:12 +00:00
var resp NetworkStatistics
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalAutoDownloadSettings(data json.RawMessage) (*AutoDownloadSettings, error) {
2022-03-13 04:04:12 +00:00
var resp AutoDownloadSettings
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
func UnmarshalAutoDownloadSettingsPresets(data json.RawMessage) (*AutoDownloadSettingsPresets, error) {
2022-03-13 04:04:12 +00:00
var resp AutoDownloadSettingsPresets
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalConnectionStateWaitingForNetwork(data json.RawMessage) (*ConnectionStateWaitingForNetwork, error) {
2022-03-13 04:04:12 +00:00
var resp ConnectionStateWaitingForNetwork
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectionStateConnectingToProxy(data json.RawMessage) (*ConnectionStateConnectingToProxy, error) {
2022-03-13 04:04:12 +00:00
var resp ConnectionStateConnectingToProxy
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectionStateConnecting(data json.RawMessage) (*ConnectionStateConnecting, error) {
2022-03-13 04:04:12 +00:00
var resp ConnectionStateConnecting
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectionStateUpdating(data json.RawMessage) (*ConnectionStateUpdating, error) {
2022-03-13 04:04:12 +00:00
var resp ConnectionStateUpdating
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectionStateReady(data json.RawMessage) (*ConnectionStateReady, error) {
2022-03-13 04:04:12 +00:00
var resp ConnectionStateReady
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategoryUsers(data json.RawMessage) (*TopChatCategoryUsers, error) {
2022-03-13 04:04:12 +00:00
var resp TopChatCategoryUsers
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategoryBots(data json.RawMessage) (*TopChatCategoryBots, error) {
2022-03-13 04:04:12 +00:00
var resp TopChatCategoryBots
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategoryGroups(data json.RawMessage) (*TopChatCategoryGroups, error) {
2022-03-13 04:04:12 +00:00
var resp TopChatCategoryGroups
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategoryChannels(data json.RawMessage) (*TopChatCategoryChannels, error) {
2022-03-13 04:04:12 +00:00
var resp TopChatCategoryChannels
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategoryInlineBots(data json.RawMessage) (*TopChatCategoryInlineBots, error) {
2022-03-13 04:04:12 +00:00
var resp TopChatCategoryInlineBots
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategoryCalls(data json.RawMessage) (*TopChatCategoryCalls, error) {
2022-03-13 04:04:12 +00:00
var resp TopChatCategoryCalls
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalTopChatCategoryForwardChats(data json.RawMessage) (*TopChatCategoryForwardChats, error) {
2022-03-13 04:04:12 +00:00
var resp TopChatCategoryForwardChats
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalTMeUrlTypeUser(data json.RawMessage) (*TMeUrlTypeUser, error) {
2022-03-13 04:04:12 +00:00
var resp TMeUrlTypeUser
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTMeUrlTypeSupergroup(data json.RawMessage) (*TMeUrlTypeSupergroup, error) {
2022-03-13 04:04:12 +00:00
var resp TMeUrlTypeSupergroup
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTMeUrlTypeChatInvite(data json.RawMessage) (*TMeUrlTypeChatInvite, error) {
2022-03-13 04:04:12 +00:00
var resp TMeUrlTypeChatInvite
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTMeUrlTypeStickerSet(data json.RawMessage) (*TMeUrlTypeStickerSet, error) {
2022-03-13 04:04:12 +00:00
var resp TMeUrlTypeStickerSet
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTMeUrl(data json.RawMessage) (*TMeUrl, error) {
2022-03-13 04:04:12 +00:00
var resp TMeUrl
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTMeUrls(data json.RawMessage) (*TMeUrls, error) {
2022-03-13 04:04:12 +00:00
var resp TMeUrls
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalSuggestedActionEnableArchiveAndMuteNewChats(data json.RawMessage) (*SuggestedActionEnableArchiveAndMuteNewChats, error) {
2022-03-13 04:04:12 +00:00
var resp SuggestedActionEnableArchiveAndMuteNewChats
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalSuggestedActionCheckPassword(data json.RawMessage) (*SuggestedActionCheckPassword, error) {
2022-03-13 04:04:12 +00:00
var resp SuggestedActionCheckPassword
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalSuggestedActionCheckPhoneNumber(data json.RawMessage) (*SuggestedActionCheckPhoneNumber, error) {
2022-03-13 04:04:12 +00:00
var resp SuggestedActionCheckPhoneNumber
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalSuggestedActionViewChecksHint(data json.RawMessage) (*SuggestedActionViewChecksHint, error) {
2022-03-13 04:04:12 +00:00
var resp SuggestedActionViewChecksHint
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalSuggestedActionConvertToBroadcastGroup(data json.RawMessage) (*SuggestedActionConvertToBroadcastGroup, error) {
2022-03-13 04:04:12 +00:00
var resp SuggestedActionConvertToBroadcastGroup
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalSuggestedActionSetPassword(data json.RawMessage) (*SuggestedActionSetPassword, error) {
2022-03-13 04:04:12 +00:00
var resp SuggestedActionSetPassword
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalCount(data json.RawMessage) (*Count, error) {
2022-03-13 04:04:12 +00:00
var resp Count
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalText(data json.RawMessage) (*Text, error) {
2022-03-13 04:04:12 +00:00
var resp Text
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalSeconds(data json.RawMessage) (*Seconds, error) {
2022-03-13 04:04:12 +00:00
var resp Seconds
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2022-06-21 18:10:07 +00:00
func UnmarshalFileDownloadedPrefixSize(data json.RawMessage) (*FileDownloadedPrefixSize, error) {
var resp FileDownloadedPrefixSize
err := json.Unmarshal(data, &resp)
return &resp, err
}
2018-09-05 21:45:29 +00:00
func UnmarshalDeepLinkInfo(data json.RawMessage) (*DeepLinkInfo, error) {
2022-03-13 04:04:12 +00:00
var resp DeepLinkInfo
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalTextParseModeMarkdown(data json.RawMessage) (*TextParseModeMarkdown, error) {
2022-03-13 04:04:12 +00:00
var resp TextParseModeMarkdown
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextParseModeHTML(data json.RawMessage) (*TextParseModeHTML, error) {
2022-03-13 04:04:12 +00:00
var resp TextParseModeHTML
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalProxyTypeSocks5(data json.RawMessage) (*ProxyTypeSocks5, error) {
2022-03-13 04:04:12 +00:00
var resp ProxyTypeSocks5
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalProxyTypeHttp(data json.RawMessage) (*ProxyTypeHttp, error) {
2022-03-13 04:04:12 +00:00
var resp ProxyTypeHttp
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalProxyTypeMtproto(data json.RawMessage) (*ProxyTypeMtproto, error) {
2022-03-13 04:04:12 +00:00
var resp ProxyTypeMtproto
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalProxy(data json.RawMessage) (*Proxy, error) {
2022-03-13 04:04:12 +00:00
var resp Proxy
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalProxies(data json.RawMessage) (*Proxies, error) {
2022-03-13 04:04:12 +00:00
var resp Proxies
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalInputSticker(data json.RawMessage) (*InputSticker, error) {
2022-03-13 04:04:12 +00:00
var resp InputSticker
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalDateRange(data json.RawMessage) (*DateRange, error) {
2022-03-13 04:04:12 +00:00
var resp DateRange
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalStatisticalValue(data json.RawMessage) (*StatisticalValue, error) {
2022-03-13 04:04:12 +00:00
var resp StatisticalValue
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalStatisticalGraphData(data json.RawMessage) (*StatisticalGraphData, error) {
2022-03-13 04:04:12 +00:00
var resp StatisticalGraphData
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalStatisticalGraphAsync(data json.RawMessage) (*StatisticalGraphAsync, error) {
2022-03-13 04:04:12 +00:00
var resp StatisticalGraphAsync
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalStatisticalGraphError(data json.RawMessage) (*StatisticalGraphError, error) {
2022-03-13 04:04:12 +00:00
var resp StatisticalGraphError
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalChatStatisticsMessageInteractionInfo(data json.RawMessage) (*ChatStatisticsMessageInteractionInfo, error) {
2022-03-13 04:04:12 +00:00
var resp ChatStatisticsMessageInteractionInfo
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalChatStatisticsMessageSenderInfo(data json.RawMessage) (*ChatStatisticsMessageSenderInfo, error) {
2022-03-13 04:04:12 +00:00
var resp ChatStatisticsMessageSenderInfo
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalChatStatisticsAdministratorActionsInfo(data json.RawMessage) (*ChatStatisticsAdministratorActionsInfo, error) {
2022-03-13 04:04:12 +00:00
var resp ChatStatisticsAdministratorActionsInfo
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalChatStatisticsInviterInfo(data json.RawMessage) (*ChatStatisticsInviterInfo, error) {
2022-03-13 04:04:12 +00:00
var resp ChatStatisticsInviterInfo
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalChatStatisticsSupergroup(data json.RawMessage) (*ChatStatisticsSupergroup, error) {
2022-03-13 04:04:12 +00:00
var resp ChatStatisticsSupergroup
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalChatStatisticsChannel(data json.RawMessage) (*ChatStatisticsChannel, error) {
2022-03-13 04:04:12 +00:00
var resp ChatStatisticsChannel
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalMessageStatistics(data json.RawMessage) (*MessageStatistics, error) {
2022-03-13 04:04:12 +00:00
var resp MessageStatistics
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalPoint(data json.RawMessage) (*Point, error) {
2022-03-13 04:04:12 +00:00
var resp Point
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalVectorPathCommandLine(data json.RawMessage) (*VectorPathCommandLine, error) {
2022-03-13 04:04:12 +00:00
var resp VectorPathCommandLine
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalVectorPathCommandCubicBezierCurve(data json.RawMessage) (*VectorPathCommandCubicBezierCurve, error) {
2022-03-13 04:04:12 +00:00
var resp VectorPathCommandCubicBezierCurve
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalBotCommandScopeDefault(data json.RawMessage) (*BotCommandScopeDefault, error) {
2022-03-13 04:04:12 +00:00
var resp BotCommandScopeDefault
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalBotCommandScopeAllPrivateChats(data json.RawMessage) (*BotCommandScopeAllPrivateChats, error) {
2022-03-13 04:04:12 +00:00
var resp BotCommandScopeAllPrivateChats
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalBotCommandScopeAllGroupChats(data json.RawMessage) (*BotCommandScopeAllGroupChats, error) {
2022-03-13 04:04:12 +00:00
var resp BotCommandScopeAllGroupChats
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalBotCommandScopeAllChatAdministrators(data json.RawMessage) (*BotCommandScopeAllChatAdministrators, error) {
2022-03-13 04:04:12 +00:00
var resp BotCommandScopeAllChatAdministrators
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalBotCommandScopeChat(data json.RawMessage) (*BotCommandScopeChat, error) {
2022-03-13 04:04:12 +00:00
var resp BotCommandScopeChat
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalBotCommandScopeChatAdministrators(data json.RawMessage) (*BotCommandScopeChatAdministrators, error) {
2022-03-13 04:04:12 +00:00
var resp BotCommandScopeChatAdministrators
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalBotCommandScopeChatMember(data json.RawMessage) (*BotCommandScopeChatMember, error) {
2022-03-13 04:04:12 +00:00
var resp BotCommandScopeChatMember
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUpdateAuthorizationState(data json.RawMessage) (*UpdateAuthorizationState, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateAuthorizationState
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewMessage(data json.RawMessage) (*UpdateNewMessage, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNewMessage
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageSendAcknowledged(data json.RawMessage) (*UpdateMessageSendAcknowledged, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateMessageSendAcknowledged
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageSendSucceeded(data json.RawMessage) (*UpdateMessageSendSucceeded, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateMessageSendSucceeded
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageSendFailed(data json.RawMessage) (*UpdateMessageSendFailed, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateMessageSendFailed
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageContent(data json.RawMessage) (*UpdateMessageContent, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateMessageContent
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageEdited(data json.RawMessage) (*UpdateMessageEdited, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateMessageEdited
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalUpdateMessageIsPinned(data json.RawMessage) (*UpdateMessageIsPinned, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateMessageIsPinned
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalUpdateMessageInteractionInfo(data json.RawMessage) (*UpdateMessageInteractionInfo, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateMessageInteractionInfo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageContentOpened(data json.RawMessage) (*UpdateMessageContentOpened, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateMessageContentOpened
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageMentionRead(data json.RawMessage) (*UpdateMessageMentionRead, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateMessageMentionRead
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalUpdateMessageUnreadReactions(data json.RawMessage) (*UpdateMessageUnreadReactions, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateMessageUnreadReactions
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalUpdateMessageLiveLocationViewed(data json.RawMessage) (*UpdateMessageLiveLocationViewed, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateMessageLiveLocationViewed
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUpdateNewChat(data json.RawMessage) (*UpdateNewChat, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNewChat
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateChatTitle(data json.RawMessage) (*UpdateChatTitle, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatTitle
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateChatPhoto(data json.RawMessage) (*UpdateChatPhoto, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatPhoto
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-09-10 12:36:54 +00:00
func UnmarshalUpdateChatPermissions(data json.RawMessage) (*UpdateChatPermissions, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatPermissions
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUpdateChatLastMessage(data json.RawMessage) (*UpdateChatLastMessage, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatLastMessage
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalUpdateChatPosition(data json.RawMessage) (*UpdateChatPosition, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatPosition
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatReadInbox(data json.RawMessage) (*UpdateChatReadInbox, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatReadInbox
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalUpdateChatReadOutbox(data json.RawMessage) (*UpdateChatReadOutbox, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatReadOutbox
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalUpdateChatActionBar(data json.RawMessage) (*UpdateChatActionBar, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatActionBar
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalUpdateChatAvailableReactions(data json.RawMessage) (*UpdateChatAvailableReactions, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatAvailableReactions
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatDraftMessage(data json.RawMessage) (*UpdateChatDraftMessage, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatDraftMessage
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalUpdateChatMessageSender(data json.RawMessage) (*UpdateChatMessageSender, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatMessageSender
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalUpdateChatMessageTtl(data json.RawMessage) (*UpdateChatMessageTtl, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatMessageTtl
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatNotificationSettings(data json.RawMessage) (*UpdateChatNotificationSettings, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatNotificationSettings
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatPendingJoinRequests(data json.RawMessage) (*UpdateChatPendingJoinRequests, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatPendingJoinRequests
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatReplyMarkup(data json.RawMessage) (*UpdateChatReplyMarkup, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatReplyMarkup
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatTheme(data json.RawMessage) (*UpdateChatTheme, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatTheme
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatUnreadMentionCount(data json.RawMessage) (*UpdateChatUnreadMentionCount, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatUnreadMentionCount
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-02-06 18:36:17 +00:00
func UnmarshalUpdateChatUnreadReactionCount(data json.RawMessage) (*UpdateChatUnreadReactionCount, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatUnreadReactionCount
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatVideoChat(data json.RawMessage) (*UpdateChatVideoChat, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatVideoChat
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatDefaultDisableNotification(data json.RawMessage) (*UpdateChatDefaultDisableNotification, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatDefaultDisableNotification
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatHasProtectedContent(data json.RawMessage) (*UpdateChatHasProtectedContent, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatHasProtectedContent
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatHasScheduledMessages(data json.RawMessage) (*UpdateChatHasScheduledMessages, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatHasScheduledMessages
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatIsBlocked(data json.RawMessage) (*UpdateChatIsBlocked, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatIsBlocked
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatIsMarkedAsUnread(data json.RawMessage) (*UpdateChatIsMarkedAsUnread, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatIsMarkedAsUnread
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalUpdateChatFilters(data json.RawMessage) (*UpdateChatFilters, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatFilters
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalUpdateChatOnlineMemberCount(data json.RawMessage) (*UpdateChatOnlineMemberCount, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatOnlineMemberCount
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateScopeNotificationSettings(data json.RawMessage) (*UpdateScopeNotificationSettings, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateScopeNotificationSettings
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalUpdateNotification(data json.RawMessage) (*UpdateNotification, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNotification
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalUpdateNotificationGroup(data json.RawMessage) (*UpdateNotificationGroup, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNotificationGroup
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalUpdateActiveNotifications(data json.RawMessage) (*UpdateActiveNotifications, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateActiveNotifications
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalUpdateHavePendingNotifications(data json.RawMessage) (*UpdateHavePendingNotifications, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateHavePendingNotifications
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUpdateDeleteMessages(data json.RawMessage) (*UpdateDeleteMessages, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateDeleteMessages
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatAction(data json.RawMessage) (*UpdateChatAction, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatAction
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateUserStatus(data json.RawMessage) (*UpdateUserStatus, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateUserStatus
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateUser(data json.RawMessage) (*UpdateUser, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateUser
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateBasicGroup(data json.RawMessage) (*UpdateBasicGroup, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateBasicGroup
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateSupergroup(data json.RawMessage) (*UpdateSupergroup, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateSupergroup
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateSecretChat(data json.RawMessage) (*UpdateSecretChat, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateSecretChat
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateUserFullInfo(data json.RawMessage) (*UpdateUserFullInfo, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateUserFullInfo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateBasicGroupFullInfo(data json.RawMessage) (*UpdateBasicGroupFullInfo, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateBasicGroupFullInfo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateSupergroupFullInfo(data json.RawMessage) (*UpdateSupergroupFullInfo, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateSupergroupFullInfo
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateServiceNotification(data json.RawMessage) (*UpdateServiceNotification, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateServiceNotification
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateFile(data json.RawMessage) (*UpdateFile, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateFile
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateFileGenerationStart(data json.RawMessage) (*UpdateFileGenerationStart, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateFileGenerationStart
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateFileGenerationStop(data json.RawMessage) (*UpdateFileGenerationStop, error) {
2022-03-13 04:04:12 +00:00
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
}
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
func UnmarshalUpdateFileDownload(data json.RawMessage) (*UpdateFileDownload, error) {
var resp UpdateFileDownload
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
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
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateCall(data json.RawMessage) (*UpdateCall, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateCall
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateGroupCall(data json.RawMessage) (*UpdateGroupCall, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateGroupCall
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalUpdateGroupCallParticipant(data json.RawMessage) (*UpdateGroupCallParticipant, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateGroupCallParticipant
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalUpdateNewCallSignalingData(data json.RawMessage) (*UpdateNewCallSignalingData, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNewCallSignalingData
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUpdateUserPrivacySettingRules(data json.RawMessage) (*UpdateUserPrivacySettingRules, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateUserPrivacySettingRules
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateUnreadMessageCount(data json.RawMessage) (*UpdateUnreadMessageCount, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateUnreadMessageCount
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalUpdateUnreadChatCount(data json.RawMessage) (*UpdateUnreadChatCount, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateUnreadChatCount
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUpdateOption(data json.RawMessage) (*UpdateOption, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateOption
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalUpdateStickerSet(data json.RawMessage) (*UpdateStickerSet, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateStickerSet
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUpdateInstalledStickerSets(data json.RawMessage) (*UpdateInstalledStickerSets, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateInstalledStickerSets
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateTrendingStickerSets(data json.RawMessage) (*UpdateTrendingStickerSets, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateTrendingStickerSets
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateRecentStickers(data json.RawMessage) (*UpdateRecentStickers, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateRecentStickers
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateFavoriteStickers(data json.RawMessage) (*UpdateFavoriteStickers, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateFavoriteStickers
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateSavedAnimations(data json.RawMessage) (*UpdateSavedAnimations, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateSavedAnimations
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2022-04-24 20:33:39 +00:00
func UnmarshalUpdateSavedNotificationSounds(data json.RawMessage) (*UpdateSavedNotificationSounds, error) {
var resp UpdateSavedNotificationSounds
err := json.Unmarshal(data, &resp)
return &resp, err
}
2019-09-10 12:36:54 +00:00
func UnmarshalUpdateSelectedBackground(data json.RawMessage) (*UpdateSelectedBackground, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateSelectedBackground
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-09-10 12:36:54 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatThemes(data json.RawMessage) (*UpdateChatThemes, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatThemes
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalUpdateLanguagePackStrings(data json.RawMessage) (*UpdateLanguagePackStrings, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateLanguagePackStrings
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUpdateConnectionState(data json.RawMessage) (*UpdateConnectionState, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateConnectionState
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalUpdateTermsOfService(data json.RawMessage) (*UpdateTermsOfService, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateTermsOfService
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalUpdateUsersNearby(data json.RawMessage) (*UpdateUsersNearby, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateUsersNearby
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2022-04-24 20:33:39 +00:00
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
}
2022-02-06 18:36:17 +00:00
func UnmarshalUpdateReactions(data json.RawMessage) (*UpdateReactions, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateReactions
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2022-02-06 18:36:17 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalUpdateDiceEmojis(data json.RawMessage) (*UpdateDiceEmojis, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateDiceEmojis
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateAnimatedEmojiMessageClicked(data json.RawMessage) (*UpdateAnimatedEmojiMessageClicked, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateAnimatedEmojiMessageClicked
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2020-11-30 09:33:47 +00:00
func UnmarshalUpdateAnimationSearchParameters(data json.RawMessage) (*UpdateAnimationSearchParameters, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateAnimationSearchParameters
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
func UnmarshalUpdateSuggestedActions(data json.RawMessage) (*UpdateSuggestedActions, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateSuggestedActions
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-11-30 09:33:47 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUpdateNewInlineQuery(data json.RawMessage) (*UpdateNewInlineQuery, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNewInlineQuery
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewChosenInlineResult(data json.RawMessage) (*UpdateNewChosenInlineResult, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNewChosenInlineResult
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewCallbackQuery(data json.RawMessage) (*UpdateNewCallbackQuery, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNewCallbackQuery
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewInlineCallbackQuery(data json.RawMessage) (*UpdateNewInlineCallbackQuery, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNewInlineCallbackQuery
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewShippingQuery(data json.RawMessage) (*UpdateNewShippingQuery, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNewShippingQuery
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewPreCheckoutQuery(data json.RawMessage) (*UpdateNewPreCheckoutQuery, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNewPreCheckoutQuery
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewCustomEvent(data json.RawMessage) (*UpdateNewCustomEvent, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNewCustomEvent
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewCustomQuery(data json.RawMessage) (*UpdateNewCustomQuery, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNewCustomQuery
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalUpdatePoll(data json.RawMessage) (*UpdatePoll, error) {
2022-03-13 04:04:12 +00:00
var resp UpdatePoll
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2020-02-03 12:56:20 +00:00
func UnmarshalUpdatePollAnswer(data json.RawMessage) (*UpdatePollAnswer, error) {
2022-03-13 04:04:12 +00:00
var resp UpdatePollAnswer
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2020-02-03 12:56:20 +00:00
}
2021-12-30 05:55:02 +00:00
func UnmarshalUpdateChatMember(data json.RawMessage) (*UpdateChatMember, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateChatMember
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
func UnmarshalUpdateNewChatJoinRequest(data json.RawMessage) (*UpdateNewChatJoinRequest, error) {
2022-03-13 04:04:12 +00:00
var resp UpdateNewChatJoinRequest
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2021-12-30 05:55:02 +00:00
}
2019-06-07 10:56:06 +00:00
func UnmarshalUpdates(data json.RawMessage) (*Updates, error) {
2022-03-13 04:04:12 +00:00
var resp Updates
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalLogStreamDefault(data json.RawMessage) (*LogStreamDefault, error) {
2022-03-13 04:04:12 +00:00
var resp LogStreamDefault
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalLogStreamFile(data json.RawMessage) (*LogStreamFile, error) {
2022-03-13 04:04:12 +00:00
var resp LogStreamFile
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalLogStreamEmpty(data json.RawMessage) (*LogStreamEmpty, error) {
2022-03-13 04:04:12 +00:00
var resp LogStreamEmpty
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalLogVerbosityLevel(data json.RawMessage) (*LogVerbosityLevel, error) {
2022-03-13 04:04:12 +00:00
var resp LogVerbosityLevel
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
func UnmarshalLogTags(data json.RawMessage) (*LogTags, error) {
2022-03-13 04:04:12 +00:00
var resp LogTags
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2019-06-07 10:56:06 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalTestInt(data json.RawMessage) (*TestInt, error) {
2022-03-13 04:04:12 +00:00
var resp TestInt
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestString(data json.RawMessage) (*TestString, error) {
2022-03-13 04:04:12 +00:00
var resp TestString
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestBytes(data json.RawMessage) (*TestBytes, error) {
2022-03-13 04:04:12 +00:00
var resp TestBytes
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestVectorInt(data json.RawMessage) (*TestVectorInt, error) {
2022-03-13 04:04:12 +00:00
var resp TestVectorInt
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestVectorIntObject(data json.RawMessage) (*TestVectorIntObject, error) {
2022-03-13 04:04:12 +00:00
var resp TestVectorIntObject
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestVectorString(data json.RawMessage) (*TestVectorString, error) {
2022-03-13 04:04:12 +00:00
var resp TestVectorString
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestVectorStringObject(data json.RawMessage) (*TestVectorStringObject, error) {
2022-03-13 04:04:12 +00:00
var resp TestVectorStringObject
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalType(data json.RawMessage) (Type, error) {
2022-03-13 04:04:12 +00:00
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 TypeTdlibParameters:
return UnmarshalTdlibParameters(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 TypeAuthenticationCodeInfo:
return UnmarshalAuthenticationCodeInfo(data)
case TypeEmailAddressAuthenticationCodeInfo:
return UnmarshalEmailAddressAuthenticationCodeInfo(data)
case TypeTextEntity:
return UnmarshalTextEntity(data)
case TypeTextEntities:
return UnmarshalTextEntities(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFormattedText:
return UnmarshalFormattedText(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTermsOfService:
return UnmarshalTermsOfService(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitTdlibParameters:
return UnmarshalAuthorizationStateWaitTdlibParameters(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitEncryptionKey:
return UnmarshalAuthorizationStateWaitEncryptionKey(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitPhoneNumber:
return UnmarshalAuthorizationStateWaitPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitCode:
return UnmarshalAuthorizationStateWaitCode(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitOtherDeviceConfirmation:
return UnmarshalAuthorizationStateWaitOtherDeviceConfirmation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitRegistration:
return UnmarshalAuthorizationStateWaitRegistration(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateWaitPassword:
return UnmarshalAuthorizationStateWaitPassword(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateReady:
return UnmarshalAuthorizationStateReady(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateLoggingOut:
return UnmarshalAuthorizationStateLoggingOut(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateClosing:
return UnmarshalAuthorizationStateClosing(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeAuthorizationStateClosed:
return UnmarshalAuthorizationStateClosed(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePasswordState:
return UnmarshalPasswordState(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeRecoveryEmailAddress:
return UnmarshalRecoveryEmailAddress(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeTemporaryPasswordState:
return UnmarshalTemporaryPasswordState(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeLocalFile:
return UnmarshalLocalFile(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRemoteFile:
return UnmarshalRemoteFile(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFile:
return UnmarshalFile(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputFileId:
return UnmarshalInputFileId(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputFileRemote:
return UnmarshalInputFileRemote(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputFileLocal:
return UnmarshalInputFileLocal(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputFileGenerated:
return UnmarshalInputFileGenerated(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePhotoSize:
return UnmarshalPhotoSize(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMinithumbnail:
return UnmarshalMinithumbnail(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatJpeg:
return UnmarshalThumbnailFormatJpeg(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatGif:
return UnmarshalThumbnailFormatGif(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatMpeg4:
return UnmarshalThumbnailFormatMpeg4(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatPng:
return UnmarshalThumbnailFormatPng(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatTgs:
return UnmarshalThumbnailFormatTgs(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatWebm:
return UnmarshalThumbnailFormatWebm(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnailFormatWebp:
return UnmarshalThumbnailFormatWebp(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeThumbnail:
return UnmarshalThumbnail(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMaskPointForehead:
return UnmarshalMaskPointForehead(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMaskPointEyes:
return UnmarshalMaskPointEyes(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMaskPointMouth:
return UnmarshalMaskPointMouth(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMaskPointChin:
return UnmarshalMaskPointChin(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMaskPosition:
return UnmarshalMaskPosition(data)
2019-09-10 12:36:54 +00:00
2022-08-13 15:24:07 +00:00
case TypeStickerFormatWebp:
return UnmarshalStickerFormatWebp(data)
2020-11-30 09:33:47 +00:00
2022-08-13 15:24:07 +00:00
case TypeStickerFormatTgs:
return UnmarshalStickerFormatTgs(data)
2020-11-30 09:33:47 +00:00
2022-08-13 15:24:07 +00:00
case TypeStickerFormatWebm:
return UnmarshalStickerFormatWebm(data)
case TypeStickerTypeRegular:
return UnmarshalStickerTypeRegular(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeStickerTypeMask:
return UnmarshalStickerTypeMask(data)
2022-02-06 18:36:17 +00:00
2022-08-13 15:24:07 +00:00
case TypeStickerTypeCustomEmoji:
return UnmarshalStickerTypeCustomEmoji(data)
2022-03-13 04:04:12 +00:00
case TypeClosedVectorPath:
return UnmarshalClosedVectorPath(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypePollOption:
return UnmarshalPollOption(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypePollTypeRegular:
return UnmarshalPollTypeRegular(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypePollTypeQuiz:
return UnmarshalPollTypeQuiz(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeAnimation:
return UnmarshalAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAudio:
return UnmarshalAudio(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDocument:
return UnmarshalDocument(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePhoto:
return UnmarshalPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSticker:
return UnmarshalSticker(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeVideo:
return UnmarshalVideo(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeVideoNote:
return UnmarshalVideoNote(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeVoiceNote:
return UnmarshalVoiceNote(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeAnimatedEmoji:
return UnmarshalAnimatedEmoji(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeContact:
return UnmarshalContact(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeLocation:
return UnmarshalLocation(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeVenue:
return UnmarshalVenue(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeGame:
return UnmarshalGame(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypePoll:
return UnmarshalPoll(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeProfilePhoto:
return UnmarshalProfilePhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatPhotoInfo:
return UnmarshalChatPhotoInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserTypeRegular:
return UnmarshalUserTypeRegular(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserTypeDeleted:
return UnmarshalUserTypeDeleted(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserTypeBot:
return UnmarshalUserTypeBot(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserTypeUnknown:
return UnmarshalUserTypeUnknown(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommand:
return UnmarshalBotCommand(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommands:
return UnmarshalBotCommands(data)
2021-12-30 05:55:02 +00:00
2022-04-24 20:33:39 +00:00
case TypeBotMenuButton:
return UnmarshalBotMenuButton(data)
2022-03-13 04:04:12 +00:00
case TypeChatLocation:
return UnmarshalChatLocation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAnimatedChatPhoto:
return UnmarshalAnimatedChatPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatPhoto:
return UnmarshalChatPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatPhotos:
return UnmarshalChatPhotos(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputChatPhotoPrevious:
return UnmarshalInputChatPhotoPrevious(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputChatPhotoStatic:
return UnmarshalInputChatPhotoStatic(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputChatPhotoAnimation:
return UnmarshalInputChatPhotoAnimation(data)
2018-08-30 14:55:42 +00:00
2022-04-24 20:33:39 +00:00
case TypeChatPermissions:
return UnmarshalChatPermissions(data)
case TypeChatAdministratorRights:
return UnmarshalChatAdministratorRights(data)
2022-08-13 15:24:07 +00:00
case TypePremiumGiftOption:
return UnmarshalPremiumGiftOption(data)
2022-03-13 04:04:12 +00:00
case TypeUser:
return UnmarshalUser(data)
2018-08-30 14:55:42 +00:00
2022-04-24 20:33:39 +00:00
case TypeBotInfo:
return UnmarshalBotInfo(data)
2022-03-13 04:04:12 +00:00
case TypeUserFullInfo:
return UnmarshalUserFullInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUsers:
return UnmarshalUsers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatAdministrator:
return UnmarshalChatAdministrator(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatAdministrators:
return UnmarshalChatAdministrators(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMemberStatusCreator:
return UnmarshalChatMemberStatusCreator(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMemberStatusAdministrator:
return UnmarshalChatMemberStatusAdministrator(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMemberStatusMember:
return UnmarshalChatMemberStatusMember(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMemberStatusRestricted:
return UnmarshalChatMemberStatusRestricted(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMemberStatusLeft:
return UnmarshalChatMemberStatusLeft(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMemberStatusBanned:
return UnmarshalChatMemberStatusBanned(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMember:
return UnmarshalChatMember(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembers:
return UnmarshalChatMembers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterContacts:
return UnmarshalChatMembersFilterContacts(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterAdministrators:
return UnmarshalChatMembersFilterAdministrators(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterMembers:
return UnmarshalChatMembersFilterMembers(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterMention:
return UnmarshalChatMembersFilterMention(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterRestricted:
return UnmarshalChatMembersFilterRestricted(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterBanned:
return UnmarshalChatMembersFilterBanned(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatMembersFilterBots:
return UnmarshalChatMembersFilterBots(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterRecent:
return UnmarshalSupergroupMembersFilterRecent(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterContacts:
return UnmarshalSupergroupMembersFilterContacts(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterAdministrators:
return UnmarshalSupergroupMembersFilterAdministrators(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterSearch:
return UnmarshalSupergroupMembersFilterSearch(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterRestricted:
return UnmarshalSupergroupMembersFilterRestricted(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterBanned:
return UnmarshalSupergroupMembersFilterBanned(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterMention:
return UnmarshalSupergroupMembersFilterMention(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupMembersFilterBots:
return UnmarshalSupergroupMembersFilterBots(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatInviteLink:
return UnmarshalChatInviteLink(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatInviteLinks:
return UnmarshalChatInviteLinks(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatInviteLinkCount:
return UnmarshalChatInviteLinkCount(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatInviteLinkCounts:
return UnmarshalChatInviteLinkCounts(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatInviteLinkMember:
return UnmarshalChatInviteLinkMember(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatInviteLinkMembers:
return UnmarshalChatInviteLinkMembers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatInviteLinkInfo:
return UnmarshalChatInviteLinkInfo(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatJoinRequest:
return UnmarshalChatJoinRequest(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatJoinRequests:
return UnmarshalChatJoinRequests(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatJoinRequestsInfo:
return UnmarshalChatJoinRequestsInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBasicGroup:
return UnmarshalBasicGroup(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBasicGroupFullInfo:
return UnmarshalBasicGroupFullInfo(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroup:
return UnmarshalSupergroup(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSupergroupFullInfo:
return UnmarshalSupergroupFullInfo(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeSecretChatStatePending:
return UnmarshalSecretChatStatePending(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeSecretChatStateReady:
return UnmarshalSecretChatStateReady(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeSecretChatStateClosed:
return UnmarshalSecretChatStateClosed(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeSecretChat:
return UnmarshalSecretChat(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSenderUser:
return UnmarshalMessageSenderUser(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSenderChat:
return UnmarshalMessageSenderChat(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSenders:
return UnmarshalMessageSenders(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageForwardOriginUser:
return UnmarshalMessageForwardOriginUser(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageForwardOriginChat:
return UnmarshalMessageForwardOriginChat(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageForwardOriginHiddenUser:
return UnmarshalMessageForwardOriginHiddenUser(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageForwardOriginChannel:
return UnmarshalMessageForwardOriginChannel(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageForwardOriginMessageImport:
return UnmarshalMessageForwardOriginMessageImport(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageForwardInfo:
return UnmarshalMessageForwardInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageReplyInfo:
return UnmarshalMessageReplyInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageReaction:
return UnmarshalMessageReaction(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageInteractionInfo:
return UnmarshalMessageInteractionInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUnreadReaction:
return UnmarshalUnreadReaction(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSendingStatePending:
return UnmarshalMessageSendingStatePending(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSendingStateFailed:
return UnmarshalMessageSendingStateFailed(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessage:
return UnmarshalMessage(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessages:
return UnmarshalMessages(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeFoundMessages:
return UnmarshalFoundMessages(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePosition:
return UnmarshalMessagePosition(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePositions:
return UnmarshalMessagePositions(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageCalendarDay:
return UnmarshalMessageCalendarDay(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageCalendar:
return UnmarshalMessageCalendar(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSponsoredMessage:
return UnmarshalSponsoredMessage(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileDownload:
return UnmarshalFileDownload(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeDownloadedFileCounts:
return UnmarshalDownloadedFileCounts(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeFoundFileDownloads:
return UnmarshalFoundFileDownloads(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationSettingsScopePrivateChats:
return UnmarshalNotificationSettingsScopePrivateChats(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationSettingsScopeGroupChats:
return UnmarshalNotificationSettingsScopeGroupChats(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationSettingsScopeChannelChats:
return UnmarshalNotificationSettingsScopeChannelChats(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatNotificationSettings:
return UnmarshalChatNotificationSettings(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeScopeNotificationSettings:
return UnmarshalScopeNotificationSettings(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDraftMessage:
return UnmarshalDraftMessage(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatTypePrivate:
return UnmarshalChatTypePrivate(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatTypeBasicGroup:
return UnmarshalChatTypeBasicGroup(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatTypeSupergroup:
return UnmarshalChatTypeSupergroup(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatTypeSecret:
return UnmarshalChatTypeSecret(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatFilter:
return UnmarshalChatFilter(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatFilterInfo:
return UnmarshalChatFilterInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRecommendedChatFilter:
return UnmarshalRecommendedChatFilter(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeRecommendedChatFilters:
return UnmarshalRecommendedChatFilters(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatListMain:
return UnmarshalChatListMain(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatListArchive:
return UnmarshalChatListArchive(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatListFilter:
return UnmarshalChatListFilter(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatLists:
return UnmarshalChatLists(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatSourceMtprotoProxy:
return UnmarshalChatSourceMtprotoProxy(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatSourcePublicServiceAnnouncement:
return UnmarshalChatSourcePublicServiceAnnouncement(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatPosition:
return UnmarshalChatPosition(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeVideoChat:
return UnmarshalVideoChat(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChat:
return UnmarshalChat(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChats:
return UnmarshalChats(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatNearby:
return UnmarshalChatNearby(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatsNearby:
return UnmarshalChatsNearby(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypePublicChatTypeHasUsername:
return UnmarshalPublicChatTypeHasUsername(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypePublicChatTypeIsLocationBased:
return UnmarshalPublicChatTypeIsLocationBased(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarReportSpam:
return UnmarshalChatActionBarReportSpam(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarReportUnrelatedLocation:
return UnmarshalChatActionBarReportUnrelatedLocation(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarInviteMembers:
return UnmarshalChatActionBarInviteMembers(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarReportAddBlock:
return UnmarshalChatActionBarReportAddBlock(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarAddContact:
return UnmarshalChatActionBarAddContact(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarSharePhoneNumber:
return UnmarshalChatActionBarSharePhoneNumber(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionBarJoinRequest:
return UnmarshalChatActionBarJoinRequest(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeKeyboardButtonTypeText:
return UnmarshalKeyboardButtonTypeText(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeKeyboardButtonTypeRequestPhoneNumber:
return UnmarshalKeyboardButtonTypeRequestPhoneNumber(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeKeyboardButtonTypeRequestLocation:
return UnmarshalKeyboardButtonTypeRequestLocation(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeKeyboardButtonTypeRequestPoll:
return UnmarshalKeyboardButtonTypeRequestPoll(data)
2020-02-03 12:56:20 +00:00
2022-04-24 20:33:39 +00:00
case TypeKeyboardButtonTypeWebApp:
return UnmarshalKeyboardButtonTypeWebApp(data)
2022-03-13 04:04:12 +00:00
case TypeKeyboardButton:
return UnmarshalKeyboardButton(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeUrl:
return UnmarshalInlineKeyboardButtonTypeUrl(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeLoginUrl:
return UnmarshalInlineKeyboardButtonTypeLoginUrl(data)
2020-02-03 12:56:20 +00:00
2022-04-24 20:33:39 +00:00
case TypeInlineKeyboardButtonTypeWebApp:
return UnmarshalInlineKeyboardButtonTypeWebApp(data)
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeCallback:
return UnmarshalInlineKeyboardButtonTypeCallback(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeCallbackWithPassword:
return UnmarshalInlineKeyboardButtonTypeCallbackWithPassword(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeCallbackGame:
return UnmarshalInlineKeyboardButtonTypeCallbackGame(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeSwitchInline:
return UnmarshalInlineKeyboardButtonTypeSwitchInline(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeBuy:
return UnmarshalInlineKeyboardButtonTypeBuy(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButtonTypeUser:
return UnmarshalInlineKeyboardButtonTypeUser(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineKeyboardButton:
return UnmarshalInlineKeyboardButton(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeReplyMarkupRemoveKeyboard:
return UnmarshalReplyMarkupRemoveKeyboard(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeReplyMarkupForceReply:
return UnmarshalReplyMarkupForceReply(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeReplyMarkupShowKeyboard:
return UnmarshalReplyMarkupShowKeyboard(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeReplyMarkupInlineKeyboard:
return UnmarshalReplyMarkupInlineKeyboard(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeLoginUrlInfoOpen:
return UnmarshalLoginUrlInfoOpen(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeLoginUrlInfoRequestConfirmation:
return UnmarshalLoginUrlInfoRequestConfirmation(data)
2018-08-30 14:55:42 +00:00
2022-04-24 20:33:39 +00:00
case TypeWebAppInfo:
return UnmarshalWebAppInfo(data)
2022-03-13 04:04:12 +00:00
case TypeMessageThreadInfo:
return UnmarshalMessageThreadInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextPlain:
return UnmarshalRichTextPlain(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextBold:
return UnmarshalRichTextBold(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextItalic:
return UnmarshalRichTextItalic(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextUnderline:
return UnmarshalRichTextUnderline(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextStrikethrough:
return UnmarshalRichTextStrikethrough(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextFixed:
return UnmarshalRichTextFixed(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextUrl:
return UnmarshalRichTextUrl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextEmailAddress:
return UnmarshalRichTextEmailAddress(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextSubscript:
return UnmarshalRichTextSubscript(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextSuperscript:
return UnmarshalRichTextSuperscript(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextMarked:
return UnmarshalRichTextMarked(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextPhoneNumber:
return UnmarshalRichTextPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextIcon:
return UnmarshalRichTextIcon(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextReference:
return UnmarshalRichTextReference(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextAnchor:
return UnmarshalRichTextAnchor(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTextAnchorLink:
return UnmarshalRichTextAnchorLink(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRichTexts:
return UnmarshalRichTexts(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockCaption:
return UnmarshalPageBlockCaption(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockListItem:
return UnmarshalPageBlockListItem(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockHorizontalAlignmentLeft:
return UnmarshalPageBlockHorizontalAlignmentLeft(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockHorizontalAlignmentCenter:
return UnmarshalPageBlockHorizontalAlignmentCenter(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockHorizontalAlignmentRight:
return UnmarshalPageBlockHorizontalAlignmentRight(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockVerticalAlignmentTop:
return UnmarshalPageBlockVerticalAlignmentTop(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockVerticalAlignmentMiddle:
return UnmarshalPageBlockVerticalAlignmentMiddle(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockVerticalAlignmentBottom:
return UnmarshalPageBlockVerticalAlignmentBottom(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockTableCell:
return UnmarshalPageBlockTableCell(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockRelatedArticle:
return UnmarshalPageBlockRelatedArticle(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockTitle:
return UnmarshalPageBlockTitle(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockSubtitle:
return UnmarshalPageBlockSubtitle(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockAuthorDate:
return UnmarshalPageBlockAuthorDate(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockHeader:
return UnmarshalPageBlockHeader(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockSubheader:
return UnmarshalPageBlockSubheader(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockKicker:
return UnmarshalPageBlockKicker(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockParagraph:
return UnmarshalPageBlockParagraph(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockPreformatted:
return UnmarshalPageBlockPreformatted(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockFooter:
return UnmarshalPageBlockFooter(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockDivider:
return UnmarshalPageBlockDivider(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockAnchor:
return UnmarshalPageBlockAnchor(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockList:
return UnmarshalPageBlockList(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockBlockQuote:
return UnmarshalPageBlockBlockQuote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockPullQuote:
return UnmarshalPageBlockPullQuote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockAnimation:
return UnmarshalPageBlockAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockAudio:
return UnmarshalPageBlockAudio(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockPhoto:
return UnmarshalPageBlockPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockVideo:
return UnmarshalPageBlockVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockVoiceNote:
return UnmarshalPageBlockVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockCover:
return UnmarshalPageBlockCover(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockEmbedded:
return UnmarshalPageBlockEmbedded(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockEmbeddedPost:
return UnmarshalPageBlockEmbeddedPost(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockCollage:
return UnmarshalPageBlockCollage(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockSlideshow:
return UnmarshalPageBlockSlideshow(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockChatLink:
return UnmarshalPageBlockChatLink(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockTable:
return UnmarshalPageBlockTable(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockDetails:
return UnmarshalPageBlockDetails(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockRelatedArticles:
return UnmarshalPageBlockRelatedArticles(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePageBlockMap:
return UnmarshalPageBlockMap(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeWebPageInstantView:
return UnmarshalWebPageInstantView(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeWebPage:
return UnmarshalWebPage(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCountryInfo:
return UnmarshalCountryInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCountries:
return UnmarshalCountries(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePhoneNumberInfo:
return UnmarshalPhoneNumberInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBankCardActionOpenUrl:
return UnmarshalBankCardActionOpenUrl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBankCardInfo:
return UnmarshalBankCardInfo(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeAddress:
return UnmarshalAddress(data)
2019-06-07 10:56:06 +00:00
2022-04-24 20:33:39 +00:00
case TypeThemeParameters:
return UnmarshalThemeParameters(data)
2022-03-13 04:04:12 +00:00
case TypeLabeledPricePart:
return UnmarshalLabeledPricePart(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeInvoice:
return UnmarshalInvoice(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeOrderInfo:
return UnmarshalOrderInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeShippingOption:
return UnmarshalShippingOption(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSavedCredentials:
return UnmarshalSavedCredentials(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputCredentialsSaved:
return UnmarshalInputCredentialsSaved(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputCredentialsNew:
return UnmarshalInputCredentialsNew(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputCredentialsApplePay:
return UnmarshalInputCredentialsApplePay(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputCredentialsGooglePay:
return UnmarshalInputCredentialsGooglePay(data)
2020-11-30 09:33:47 +00:00
2022-06-21 18:10:07 +00:00
case TypePaymentProviderSmartGlocal:
return UnmarshalPaymentProviderSmartGlocal(data)
case TypePaymentProviderStripe:
return UnmarshalPaymentProviderStripe(data)
case TypePaymentProviderOther:
return UnmarshalPaymentProviderOther(data)
2018-09-05 21:45:29 +00:00
2022-08-13 15:24:07 +00:00
case TypePaymentOption:
return UnmarshalPaymentOption(data)
2022-03-13 04:04:12 +00:00
case TypePaymentForm:
return UnmarshalPaymentForm(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeValidatedOrderInfo:
return UnmarshalValidatedOrderInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePaymentResult:
return UnmarshalPaymentResult(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePaymentReceipt:
return UnmarshalPaymentReceipt(data)
2018-08-30 14:55:42 +00:00
2022-06-21 18:10:07 +00:00
case TypeInputInvoiceMessage:
return UnmarshalInputInvoiceMessage(data)
case TypeInputInvoiceName:
return UnmarshalInputInvoiceName(data)
2022-03-13 04:04:12 +00:00
case TypeDatedFile:
return UnmarshalDatedFile(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypePersonalDetails:
return UnmarshalPassportElementTypePersonalDetails(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypePassport:
return UnmarshalPassportElementTypePassport(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeDriverLicense:
return UnmarshalPassportElementTypeDriverLicense(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeIdentityCard:
return UnmarshalPassportElementTypeIdentityCard(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeInternalPassport:
return UnmarshalPassportElementTypeInternalPassport(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeAddress:
return UnmarshalPassportElementTypeAddress(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeUtilityBill:
return UnmarshalPassportElementTypeUtilityBill(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeBankStatement:
return UnmarshalPassportElementTypeBankStatement(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeRentalAgreement:
return UnmarshalPassportElementTypeRentalAgreement(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypePassportRegistration:
return UnmarshalPassportElementTypePassportRegistration(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeTemporaryRegistration:
return UnmarshalPassportElementTypeTemporaryRegistration(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypePhoneNumber:
return UnmarshalPassportElementTypePhoneNumber(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTypeEmailAddress:
return UnmarshalPassportElementTypeEmailAddress(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeDate:
return UnmarshalDate(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePersonalDetails:
return UnmarshalPersonalDetails(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeIdentityDocument:
return UnmarshalIdentityDocument(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputIdentityDocument:
return UnmarshalInputIdentityDocument(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePersonalDocument:
return UnmarshalPersonalDocument(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPersonalDocument:
return UnmarshalInputPersonalDocument(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementPersonalDetails:
return UnmarshalPassportElementPersonalDetails(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementPassport:
return UnmarshalPassportElementPassport(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementDriverLicense:
return UnmarshalPassportElementDriverLicense(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementIdentityCard:
return UnmarshalPassportElementIdentityCard(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementInternalPassport:
return UnmarshalPassportElementInternalPassport(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementAddress:
return UnmarshalPassportElementAddress(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementUtilityBill:
return UnmarshalPassportElementUtilityBill(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementBankStatement:
return UnmarshalPassportElementBankStatement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementRentalAgreement:
return UnmarshalPassportElementRentalAgreement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementPassportRegistration:
return UnmarshalPassportElementPassportRegistration(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementTemporaryRegistration:
return UnmarshalPassportElementTemporaryRegistration(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementPhoneNumber:
return UnmarshalPassportElementPhoneNumber(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementEmailAddress:
return UnmarshalPassportElementEmailAddress(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementPersonalDetails:
return UnmarshalInputPassportElementPersonalDetails(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementPassport:
return UnmarshalInputPassportElementPassport(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementDriverLicense:
return UnmarshalInputPassportElementDriverLicense(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementIdentityCard:
return UnmarshalInputPassportElementIdentityCard(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementInternalPassport:
return UnmarshalInputPassportElementInternalPassport(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementAddress:
return UnmarshalInputPassportElementAddress(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementUtilityBill:
return UnmarshalInputPassportElementUtilityBill(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementBankStatement:
return UnmarshalInputPassportElementBankStatement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementRentalAgreement:
return UnmarshalInputPassportElementRentalAgreement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementPassportRegistration:
return UnmarshalInputPassportElementPassportRegistration(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementTemporaryRegistration:
return UnmarshalInputPassportElementTemporaryRegistration(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementPhoneNumber:
return UnmarshalInputPassportElementPhoneNumber(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementEmailAddress:
return UnmarshalInputPassportElementEmailAddress(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElements:
return UnmarshalPassportElements(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceUnspecified:
return UnmarshalPassportElementErrorSourceUnspecified(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceDataField:
return UnmarshalPassportElementErrorSourceDataField(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceFrontSide:
return UnmarshalPassportElementErrorSourceFrontSide(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceReverseSide:
return UnmarshalPassportElementErrorSourceReverseSide(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceSelfie:
return UnmarshalPassportElementErrorSourceSelfie(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceTranslationFile:
return UnmarshalPassportElementErrorSourceTranslationFile(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceTranslationFiles:
return UnmarshalPassportElementErrorSourceTranslationFiles(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceFile:
return UnmarshalPassportElementErrorSourceFile(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementErrorSourceFiles:
return UnmarshalPassportElementErrorSourceFiles(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementError:
return UnmarshalPassportElementError(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportSuitableElement:
return UnmarshalPassportSuitableElement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportRequiredElement:
return UnmarshalPassportRequiredElement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportAuthorizationForm:
return UnmarshalPassportAuthorizationForm(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypePassportElementsWithErrors:
return UnmarshalPassportElementsWithErrors(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeEncryptedCredentials:
return UnmarshalEncryptedCredentials(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeEncryptedPassportElement:
return UnmarshalEncryptedPassportElement(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceUnspecified:
return UnmarshalInputPassportElementErrorSourceUnspecified(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceDataField:
return UnmarshalInputPassportElementErrorSourceDataField(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceFrontSide:
return UnmarshalInputPassportElementErrorSourceFrontSide(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceReverseSide:
return UnmarshalInputPassportElementErrorSourceReverseSide(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceSelfie:
return UnmarshalInputPassportElementErrorSourceSelfie(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceTranslationFile:
return UnmarshalInputPassportElementErrorSourceTranslationFile(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceTranslationFiles:
return UnmarshalInputPassportElementErrorSourceTranslationFiles(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceFile:
return UnmarshalInputPassportElementErrorSourceFile(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementErrorSourceFiles:
return UnmarshalInputPassportElementErrorSourceFiles(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputPassportElementError:
return UnmarshalInputPassportElementError(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageText:
return UnmarshalMessageText(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageAnimation:
return UnmarshalMessageAnimation(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageAudio:
return UnmarshalMessageAudio(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageDocument:
return UnmarshalMessageDocument(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePhoto:
return UnmarshalMessagePhoto(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageExpiredPhoto:
return UnmarshalMessageExpiredPhoto(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSticker:
return UnmarshalMessageSticker(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVideo:
return UnmarshalMessageVideo(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageExpiredVideo:
return UnmarshalMessageExpiredVideo(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVideoNote:
return UnmarshalMessageVideoNote(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVoiceNote:
return UnmarshalMessageVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageLocation:
return UnmarshalMessageLocation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVenue:
return UnmarshalMessageVenue(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageContact:
return UnmarshalMessageContact(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageAnimatedEmoji:
return UnmarshalMessageAnimatedEmoji(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageDice:
return UnmarshalMessageDice(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageGame:
return UnmarshalMessageGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePoll:
return UnmarshalMessagePoll(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageInvoice:
return UnmarshalMessageInvoice(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageCall:
return UnmarshalMessageCall(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVideoChatScheduled:
return UnmarshalMessageVideoChatScheduled(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVideoChatStarted:
return UnmarshalMessageVideoChatStarted(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageVideoChatEnded:
return UnmarshalMessageVideoChatEnded(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageInviteVideoChatParticipants:
return UnmarshalMessageInviteVideoChatParticipants(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageBasicGroupChatCreate:
return UnmarshalMessageBasicGroupChatCreate(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSupergroupChatCreate:
return UnmarshalMessageSupergroupChatCreate(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatChangeTitle:
return UnmarshalMessageChatChangeTitle(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatChangePhoto:
return UnmarshalMessageChatChangePhoto(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatDeletePhoto:
return UnmarshalMessageChatDeletePhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatAddMembers:
return UnmarshalMessageChatAddMembers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatJoinByLink:
return UnmarshalMessageChatJoinByLink(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatJoinByRequest:
return UnmarshalMessageChatJoinByRequest(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatDeleteMember:
return UnmarshalMessageChatDeleteMember(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatUpgradeTo:
return UnmarshalMessageChatUpgradeTo(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatUpgradeFrom:
return UnmarshalMessageChatUpgradeFrom(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePinMessage:
return UnmarshalMessagePinMessage(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageScreenshotTaken:
return UnmarshalMessageScreenshotTaken(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatSetTheme:
return UnmarshalMessageChatSetTheme(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageChatSetTtl:
return UnmarshalMessageChatSetTtl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageCustomServiceAction:
return UnmarshalMessageCustomServiceAction(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageGameScore:
return UnmarshalMessageGameScore(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePaymentSuccessful:
return UnmarshalMessagePaymentSuccessful(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePaymentSuccessfulBot:
return UnmarshalMessagePaymentSuccessfulBot(data)
2018-08-30 14:55:42 +00:00
2022-08-13 15:24:07 +00:00
case TypeMessageGiftedPremium:
return UnmarshalMessageGiftedPremium(data)
2022-03-13 04:04:12 +00:00
case TypeMessageContactRegistered:
return UnmarshalMessageContactRegistered(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageWebsiteConnected:
return UnmarshalMessageWebsiteConnected(data)
2018-08-30 14:55:42 +00:00
2022-04-24 20:33:39 +00:00
case TypeMessageWebAppDataSent:
return UnmarshalMessageWebAppDataSent(data)
case TypeMessageWebAppDataReceived:
return UnmarshalMessageWebAppDataReceived(data)
2022-03-13 04:04:12 +00:00
case TypeMessagePassportDataSent:
return UnmarshalMessagePassportDataSent(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessagePassportDataReceived:
return UnmarshalMessagePassportDataReceived(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageProximityAlertTriggered:
return UnmarshalMessageProximityAlertTriggered(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageUnsupported:
return UnmarshalMessageUnsupported(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeMention:
return UnmarshalTextEntityTypeMention(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeHashtag:
return UnmarshalTextEntityTypeHashtag(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeCashtag:
return UnmarshalTextEntityTypeCashtag(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeBotCommand:
return UnmarshalTextEntityTypeBotCommand(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeUrl:
return UnmarshalTextEntityTypeUrl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeEmailAddress:
return UnmarshalTextEntityTypeEmailAddress(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypePhoneNumber:
return UnmarshalTextEntityTypePhoneNumber(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeBankCardNumber:
return UnmarshalTextEntityTypeBankCardNumber(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeBold:
return UnmarshalTextEntityTypeBold(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeItalic:
return UnmarshalTextEntityTypeItalic(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeUnderline:
return UnmarshalTextEntityTypeUnderline(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeStrikethrough:
return UnmarshalTextEntityTypeStrikethrough(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeSpoiler:
return UnmarshalTextEntityTypeSpoiler(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeCode:
return UnmarshalTextEntityTypeCode(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypePre:
return UnmarshalTextEntityTypePre(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypePreCode:
return UnmarshalTextEntityTypePreCode(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeTextUrl:
return UnmarshalTextEntityTypeTextUrl(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeMentionName:
return UnmarshalTextEntityTypeMentionName(data)
2020-11-30 09:33:47 +00:00
2022-08-13 15:24:07 +00:00
case TypeTextEntityTypeCustomEmoji:
return UnmarshalTextEntityTypeCustomEmoji(data)
2022-03-13 04:04:12 +00:00
case TypeTextEntityTypeMediaTimestamp:
return UnmarshalTextEntityTypeMediaTimestamp(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputThumbnail:
return UnmarshalInputThumbnail(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSchedulingStateSendAtDate:
return UnmarshalMessageSchedulingStateSendAtDate(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSchedulingStateSendWhenOnline:
return UnmarshalMessageSchedulingStateSendWhenOnline(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageSendOptions:
return UnmarshalMessageSendOptions(data)
2022-01-26 21:06:41 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageCopyOptions:
return UnmarshalMessageCopyOptions(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageText:
return UnmarshalInputMessageText(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageAnimation:
return UnmarshalInputMessageAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageAudio:
return UnmarshalInputMessageAudio(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageDocument:
return UnmarshalInputMessageDocument(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessagePhoto:
return UnmarshalInputMessagePhoto(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageSticker:
return UnmarshalInputMessageSticker(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageVideo:
return UnmarshalInputMessageVideo(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageVideoNote:
return UnmarshalInputMessageVideoNote(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageVoiceNote:
return UnmarshalInputMessageVoiceNote(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageLocation:
return UnmarshalInputMessageLocation(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageVenue:
return UnmarshalInputMessageVenue(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageContact:
return UnmarshalInputMessageContact(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageDice:
return UnmarshalInputMessageDice(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageGame:
return UnmarshalInputMessageGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageInvoice:
return UnmarshalInputMessageInvoice(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessagePoll:
return UnmarshalInputMessagePoll(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputMessageForwarded:
return UnmarshalInputMessageForwarded(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterEmpty:
return UnmarshalSearchMessagesFilterEmpty(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterAnimation:
return UnmarshalSearchMessagesFilterAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterAudio:
return UnmarshalSearchMessagesFilterAudio(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterDocument:
return UnmarshalSearchMessagesFilterDocument(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterPhoto:
return UnmarshalSearchMessagesFilterPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterVideo:
return UnmarshalSearchMessagesFilterVideo(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterVoiceNote:
return UnmarshalSearchMessagesFilterVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterPhotoAndVideo:
return UnmarshalSearchMessagesFilterPhotoAndVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterUrl:
return UnmarshalSearchMessagesFilterUrl(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterChatPhoto:
return UnmarshalSearchMessagesFilterChatPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterVideoNote:
return UnmarshalSearchMessagesFilterVideoNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterVoiceAndVideoNote:
return UnmarshalSearchMessagesFilterVoiceAndVideoNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterMention:
return UnmarshalSearchMessagesFilterMention(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterUnreadMention:
return UnmarshalSearchMessagesFilterUnreadMention(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterUnreadReaction:
return UnmarshalSearchMessagesFilterUnreadReaction(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterFailedToSend:
return UnmarshalSearchMessagesFilterFailedToSend(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSearchMessagesFilterPinned:
return UnmarshalSearchMessagesFilterPinned(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionTyping:
return UnmarshalChatActionTyping(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionRecordingVideo:
return UnmarshalChatActionRecordingVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionUploadingVideo:
return UnmarshalChatActionUploadingVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionRecordingVoiceNote:
return UnmarshalChatActionRecordingVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionUploadingVoiceNote:
return UnmarshalChatActionUploadingVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionUploadingPhoto:
return UnmarshalChatActionUploadingPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionUploadingDocument:
return UnmarshalChatActionUploadingDocument(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionChoosingSticker:
return UnmarshalChatActionChoosingSticker(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionChoosingLocation:
return UnmarshalChatActionChoosingLocation(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionChoosingContact:
return UnmarshalChatActionChoosingContact(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionStartPlayingGame:
return UnmarshalChatActionStartPlayingGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionRecordingVideoNote:
return UnmarshalChatActionRecordingVideoNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionUploadingVideoNote:
return UnmarshalChatActionUploadingVideoNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionWatchingAnimations:
return UnmarshalChatActionWatchingAnimations(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatActionCancel:
return UnmarshalChatActionCancel(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserStatusEmpty:
return UnmarshalUserStatusEmpty(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserStatusOnline:
return UnmarshalUserStatusOnline(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserStatusOffline:
return UnmarshalUserStatusOffline(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserStatusRecently:
return UnmarshalUserStatusRecently(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserStatusLastWeek:
return UnmarshalUserStatusLastWeek(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserStatusLastMonth:
return UnmarshalUserStatusLastMonth(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeStickers:
return UnmarshalStickers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeEmojis:
return UnmarshalEmojis(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeStickerSet:
return UnmarshalStickerSet(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeStickerSetInfo:
return UnmarshalStickerSetInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeStickerSets:
return UnmarshalStickerSets(data)
2018-08-30 14:55:42 +00:00
2022-06-21 18:10:07 +00:00
case TypeTrendingStickerSets:
return UnmarshalTrendingStickerSets(data)
2022-03-13 04:04:12 +00:00
case TypeCallDiscardReasonEmpty:
return UnmarshalCallDiscardReasonEmpty(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallDiscardReasonMissed:
return UnmarshalCallDiscardReasonMissed(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallDiscardReasonDeclined:
return UnmarshalCallDiscardReasonDeclined(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallDiscardReasonDisconnected:
return UnmarshalCallDiscardReasonDisconnected(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallDiscardReasonHungUp:
return UnmarshalCallDiscardReasonHungUp(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProtocol:
return UnmarshalCallProtocol(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallServerTypeTelegramReflector:
return UnmarshalCallServerTypeTelegramReflector(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallServerTypeWebrtc:
return UnmarshalCallServerTypeWebrtc(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallServer:
return UnmarshalCallServer(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallId:
return UnmarshalCallId(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCallId:
return UnmarshalGroupCallId(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallStatePending:
return UnmarshalCallStatePending(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallStateExchangingKeys:
return UnmarshalCallStateExchangingKeys(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallStateReady:
return UnmarshalCallStateReady(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallStateHangingUp:
return UnmarshalCallStateHangingUp(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallStateDiscarded:
return UnmarshalCallStateDiscarded(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallStateError:
return UnmarshalCallStateError(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCallVideoQualityThumbnail:
return UnmarshalGroupCallVideoQualityThumbnail(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCallVideoQualityMedium:
return UnmarshalGroupCallVideoQualityMedium(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCallVideoQualityFull:
return UnmarshalGroupCallVideoQualityFull(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCallStream:
return UnmarshalGroupCallStream(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCallStreams:
return UnmarshalGroupCallStreams(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeRtmpUrl:
return UnmarshalRtmpUrl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCallRecentSpeaker:
return UnmarshalGroupCallRecentSpeaker(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCall:
return UnmarshalGroupCall(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCallVideoSourceGroup:
return UnmarshalGroupCallVideoSourceGroup(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCallParticipantVideoInfo:
return UnmarshalGroupCallParticipantVideoInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeGroupCallParticipant:
return UnmarshalGroupCallParticipant(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemEcho:
return UnmarshalCallProblemEcho(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemNoise:
return UnmarshalCallProblemNoise(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemInterruptions:
return UnmarshalCallProblemInterruptions(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemDistortedSpeech:
return UnmarshalCallProblemDistortedSpeech(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemSilentLocal:
return UnmarshalCallProblemSilentLocal(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemSilentRemote:
return UnmarshalCallProblemSilentRemote(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemDropped:
return UnmarshalCallProblemDropped(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemDistortedVideo:
return UnmarshalCallProblemDistortedVideo(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallProblemPixelatedVideo:
return UnmarshalCallProblemPixelatedVideo(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeCall:
return UnmarshalCall(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypePhoneNumberAuthenticationSettings:
return UnmarshalPhoneNumberAuthenticationSettings(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeAddedReaction:
return UnmarshalAddedReaction(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeAddedReactions:
return UnmarshalAddedReactions(data)
2019-09-10 12:36:54 +00:00
2022-06-21 18:10:07 +00:00
case TypeAvailableReaction:
return UnmarshalAvailableReaction(data)
2022-03-13 04:04:12 +00:00
case TypeAvailableReactions:
return UnmarshalAvailableReactions(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeReaction:
return UnmarshalReaction(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeAnimations:
return UnmarshalAnimations(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeDiceStickersRegular:
return UnmarshalDiceStickersRegular(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDiceStickersSlotMachine:
return UnmarshalDiceStickersSlotMachine(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeImportedContacts:
return UnmarshalImportedContacts(data)
2022-02-06 18:36:17 +00:00
2022-08-13 15:24:07 +00:00
case TypeSpeechRecognitionResultPending:
return UnmarshalSpeechRecognitionResultPending(data)
case TypeSpeechRecognitionResultText:
return UnmarshalSpeechRecognitionResultText(data)
case TypeSpeechRecognitionResultError:
return UnmarshalSpeechRecognitionResultError(data)
2022-04-24 20:33:39 +00:00
case TypeAttachmentMenuBotColor:
return UnmarshalAttachmentMenuBotColor(data)
case TypeAttachmentMenuBot:
return UnmarshalAttachmentMenuBot(data)
case TypeSentWebAppMessage:
return UnmarshalSentWebAppMessage(data)
2022-03-13 04:04:12 +00:00
case TypeHttpUrl:
return UnmarshalHttpUrl(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultAnimation:
return UnmarshalInputInlineQueryResultAnimation(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultArticle:
return UnmarshalInputInlineQueryResultArticle(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultAudio:
return UnmarshalInputInlineQueryResultAudio(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultContact:
return UnmarshalInputInlineQueryResultContact(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultDocument:
return UnmarshalInputInlineQueryResultDocument(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultGame:
return UnmarshalInputInlineQueryResultGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultLocation:
return UnmarshalInputInlineQueryResultLocation(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultPhoto:
return UnmarshalInputInlineQueryResultPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultSticker:
return UnmarshalInputInlineQueryResultSticker(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultVenue:
return UnmarshalInputInlineQueryResultVenue(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultVideo:
return UnmarshalInputInlineQueryResultVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputInlineQueryResultVoiceNote:
return UnmarshalInputInlineQueryResultVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultArticle:
return UnmarshalInlineQueryResultArticle(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultContact:
return UnmarshalInlineQueryResultContact(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultLocation:
return UnmarshalInlineQueryResultLocation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultVenue:
return UnmarshalInlineQueryResultVenue(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultGame:
return UnmarshalInlineQueryResultGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultAnimation:
return UnmarshalInlineQueryResultAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultAudio:
return UnmarshalInlineQueryResultAudio(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultDocument:
return UnmarshalInlineQueryResultDocument(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultPhoto:
return UnmarshalInlineQueryResultPhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultSticker:
return UnmarshalInlineQueryResultSticker(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultVideo:
return UnmarshalInlineQueryResultVideo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResultVoiceNote:
return UnmarshalInlineQueryResultVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeInlineQueryResults:
return UnmarshalInlineQueryResults(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallbackQueryPayloadData:
return UnmarshalCallbackQueryPayloadData(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallbackQueryPayloadDataWithPassword:
return UnmarshalCallbackQueryPayloadDataWithPassword(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallbackQueryPayloadGame:
return UnmarshalCallbackQueryPayloadGame(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCallbackQueryAnswer:
return UnmarshalCallbackQueryAnswer(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCustomRequestResult:
return UnmarshalCustomRequestResult(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeGameHighScore:
return UnmarshalGameHighScore(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeGameHighScores:
return UnmarshalGameHighScores(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMessageEdited:
return UnmarshalChatEventMessageEdited(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMessageDeleted:
return UnmarshalChatEventMessageDeleted(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMessagePinned:
return UnmarshalChatEventMessagePinned(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMessageUnpinned:
return UnmarshalChatEventMessageUnpinned(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventPollStopped:
return UnmarshalChatEventPollStopped(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberJoined:
return UnmarshalChatEventMemberJoined(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberJoinedByInviteLink:
return UnmarshalChatEventMemberJoinedByInviteLink(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberJoinedByRequest:
return UnmarshalChatEventMemberJoinedByRequest(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberInvited:
return UnmarshalChatEventMemberInvited(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberLeft:
return UnmarshalChatEventMemberLeft(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberPromoted:
return UnmarshalChatEventMemberPromoted(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMemberRestricted:
return UnmarshalChatEventMemberRestricted(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventAvailableReactionsChanged:
return UnmarshalChatEventAvailableReactionsChanged(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventDescriptionChanged:
return UnmarshalChatEventDescriptionChanged(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventLinkedChatChanged:
return UnmarshalChatEventLinkedChatChanged(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventLocationChanged:
return UnmarshalChatEventLocationChanged(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventMessageTtlChanged:
return UnmarshalChatEventMessageTtlChanged(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventPermissionsChanged:
return UnmarshalChatEventPermissionsChanged(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventPhotoChanged:
return UnmarshalChatEventPhotoChanged(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventSlowModeDelayChanged:
return UnmarshalChatEventSlowModeDelayChanged(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventStickerSetChanged:
return UnmarshalChatEventStickerSetChanged(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventTitleChanged:
return UnmarshalChatEventTitleChanged(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventUsernameChanged:
return UnmarshalChatEventUsernameChanged(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventHasProtectedContentToggled:
return UnmarshalChatEventHasProtectedContentToggled(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventInvitesToggled:
return UnmarshalChatEventInvitesToggled(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventIsAllHistoryAvailableToggled:
return UnmarshalChatEventIsAllHistoryAvailableToggled(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventSignMessagesToggled:
return UnmarshalChatEventSignMessagesToggled(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventInviteLinkEdited:
return UnmarshalChatEventInviteLinkEdited(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventInviteLinkRevoked:
return UnmarshalChatEventInviteLinkRevoked(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventInviteLinkDeleted:
return UnmarshalChatEventInviteLinkDeleted(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventVideoChatCreated:
return UnmarshalChatEventVideoChatCreated(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventVideoChatEnded:
return UnmarshalChatEventVideoChatEnded(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventVideoChatMuteNewParticipantsToggled:
return UnmarshalChatEventVideoChatMuteNewParticipantsToggled(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventVideoChatParticipantIsMutedToggled:
return UnmarshalChatEventVideoChatParticipantIsMutedToggled(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventVideoChatParticipantVolumeLevelChanged:
return UnmarshalChatEventVideoChatParticipantVolumeLevelChanged(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEvent:
return UnmarshalChatEvent(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEvents:
return UnmarshalChatEvents(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatEventLogFilters:
return UnmarshalChatEventLogFilters(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeLanguagePackStringValueOrdinary:
return UnmarshalLanguagePackStringValueOrdinary(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeLanguagePackStringValuePluralized:
return UnmarshalLanguagePackStringValuePluralized(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeLanguagePackStringValueDeleted:
return UnmarshalLanguagePackStringValueDeleted(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeLanguagePackString:
return UnmarshalLanguagePackString(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeLanguagePackStrings:
return UnmarshalLanguagePackStrings(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeLanguagePackInfo:
return UnmarshalLanguagePackInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeLocalizationTargetInfo:
return UnmarshalLocalizationTargetInfo(data)
2018-08-30 14:55:42 +00:00
2022-06-21 18:10:07 +00:00
case TypePremiumLimitTypeSupergroupCount:
return UnmarshalPremiumLimitTypeSupergroupCount(data)
case TypePremiumLimitTypePinnedChatCount:
return UnmarshalPremiumLimitTypePinnedChatCount(data)
case TypePremiumLimitTypeCreatedPublicChatCount:
return UnmarshalPremiumLimitTypeCreatedPublicChatCount(data)
case TypePremiumLimitTypeSavedAnimationCount:
return UnmarshalPremiumLimitTypeSavedAnimationCount(data)
case TypePremiumLimitTypeFavoriteStickerCount:
return UnmarshalPremiumLimitTypeFavoriteStickerCount(data)
case TypePremiumLimitTypeChatFilterCount:
return UnmarshalPremiumLimitTypeChatFilterCount(data)
case TypePremiumLimitTypeChatFilterChosenChatCount:
return UnmarshalPremiumLimitTypeChatFilterChosenChatCount(data)
case TypePremiumLimitTypePinnedArchivedChatCount:
return UnmarshalPremiumLimitTypePinnedArchivedChatCount(data)
case TypePremiumLimitTypeCaptionLength:
return UnmarshalPremiumLimitTypeCaptionLength(data)
case TypePremiumLimitTypeBioLength:
return UnmarshalPremiumLimitTypeBioLength(data)
case TypePremiumFeatureIncreasedLimits:
return UnmarshalPremiumFeatureIncreasedLimits(data)
case TypePremiumFeatureIncreasedUploadFileSize:
return UnmarshalPremiumFeatureIncreasedUploadFileSize(data)
case TypePremiumFeatureImprovedDownloadSpeed:
return UnmarshalPremiumFeatureImprovedDownloadSpeed(data)
case TypePremiumFeatureVoiceRecognition:
return UnmarshalPremiumFeatureVoiceRecognition(data)
case TypePremiumFeatureDisabledAds:
return UnmarshalPremiumFeatureDisabledAds(data)
case TypePremiumFeatureUniqueReactions:
return UnmarshalPremiumFeatureUniqueReactions(data)
case TypePremiumFeatureUniqueStickers:
return UnmarshalPremiumFeatureUniqueStickers(data)
2022-08-13 15:24:07 +00:00
case TypePremiumFeatureCustomEmoji:
return UnmarshalPremiumFeatureCustomEmoji(data)
2022-06-21 18:10:07 +00:00
case TypePremiumFeatureAdvancedChatManagement:
return UnmarshalPremiumFeatureAdvancedChatManagement(data)
case TypePremiumFeatureProfileBadge:
return UnmarshalPremiumFeatureProfileBadge(data)
case TypePremiumFeatureAnimatedProfilePhoto:
return UnmarshalPremiumFeatureAnimatedProfilePhoto(data)
case TypePremiumFeatureAppIcons:
return UnmarshalPremiumFeatureAppIcons(data)
case TypePremiumLimit:
return UnmarshalPremiumLimit(data)
case TypePremiumFeatures:
return UnmarshalPremiumFeatures(data)
case TypePremiumSourceLimitExceeded:
return UnmarshalPremiumSourceLimitExceeded(data)
case TypePremiumSourceFeature:
return UnmarshalPremiumSourceFeature(data)
case TypePremiumSourceLink:
return UnmarshalPremiumSourceLink(data)
case TypePremiumSourceSettings:
return UnmarshalPremiumSourceSettings(data)
case TypePremiumFeaturePromotionAnimation:
return UnmarshalPremiumFeaturePromotionAnimation(data)
case TypePremiumState:
return UnmarshalPremiumState(data)
2022-08-13 15:24:07 +00:00
case TypeStorePaymentPurposePremiumSubscription:
return UnmarshalStorePaymentPurposePremiumSubscription(data)
case TypeStorePaymentPurposeGiftedPremium:
return UnmarshalStorePaymentPurposeGiftedPremium(data)
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenFirebaseCloudMessaging:
return UnmarshalDeviceTokenFirebaseCloudMessaging(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenApplePush:
return UnmarshalDeviceTokenApplePush(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenApplePushVoIP:
return UnmarshalDeviceTokenApplePushVoIP(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenWindowsPush:
return UnmarshalDeviceTokenWindowsPush(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenMicrosoftPush:
return UnmarshalDeviceTokenMicrosoftPush(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenMicrosoftPushVoIP:
return UnmarshalDeviceTokenMicrosoftPushVoIP(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenWebPush:
return UnmarshalDeviceTokenWebPush(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenSimplePush:
return UnmarshalDeviceTokenSimplePush(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenUbuntuPush:
return UnmarshalDeviceTokenUbuntuPush(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenBlackBerryPush:
return UnmarshalDeviceTokenBlackBerryPush(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDeviceTokenTizenPush:
return UnmarshalDeviceTokenTizenPush(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypePushReceiverId:
return UnmarshalPushReceiverId(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBackgroundFillSolid:
return UnmarshalBackgroundFillSolid(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBackgroundFillGradient:
return UnmarshalBackgroundFillGradient(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBackgroundFillFreeformGradient:
return UnmarshalBackgroundFillFreeformGradient(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBackgroundTypeWallpaper:
return UnmarshalBackgroundTypeWallpaper(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBackgroundTypePattern:
return UnmarshalBackgroundTypePattern(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBackgroundTypeFill:
return UnmarshalBackgroundTypeFill(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBackground:
return UnmarshalBackground(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeBackgrounds:
return UnmarshalBackgrounds(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputBackgroundLocal:
return UnmarshalInputBackgroundLocal(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputBackgroundRemote:
return UnmarshalInputBackgroundRemote(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeThemeSettings:
return UnmarshalThemeSettings(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatTheme:
return UnmarshalChatTheme(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeHashtags:
return UnmarshalHashtags(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeCanTransferOwnershipResultOk:
return UnmarshalCanTransferOwnershipResultOk(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeCanTransferOwnershipResultPasswordNeeded:
return UnmarshalCanTransferOwnershipResultPasswordNeeded(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCanTransferOwnershipResultPasswordTooFresh:
return UnmarshalCanTransferOwnershipResultPasswordTooFresh(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeCanTransferOwnershipResultSessionTooFresh:
return UnmarshalCanTransferOwnershipResultSessionTooFresh(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckChatUsernameResultOk:
return UnmarshalCheckChatUsernameResultOk(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckChatUsernameResultUsernameInvalid:
return UnmarshalCheckChatUsernameResultUsernameInvalid(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckChatUsernameResultUsernameOccupied:
return UnmarshalCheckChatUsernameResultUsernameOccupied(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckChatUsernameResultPublicChatsTooMuch:
return UnmarshalCheckChatUsernameResultPublicChatsTooMuch(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckChatUsernameResultPublicGroupsUnavailable:
return UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckStickerSetNameResultOk:
return UnmarshalCheckStickerSetNameResultOk(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckStickerSetNameResultNameInvalid:
return UnmarshalCheckStickerSetNameResultNameInvalid(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeCheckStickerSetNameResultNameOccupied:
return UnmarshalCheckStickerSetNameResultNameOccupied(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeResetPasswordResultOk:
return UnmarshalResetPasswordResultOk(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeResetPasswordResultPending:
return UnmarshalResetPasswordResultPending(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeResetPasswordResultDeclined:
return UnmarshalResetPasswordResultDeclined(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageFileTypePrivate:
return UnmarshalMessageFileTypePrivate(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageFileTypeGroup:
return UnmarshalMessageFileTypeGroup(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageFileTypeUnknown:
return UnmarshalMessageFileTypeUnknown(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentHidden:
return UnmarshalPushMessageContentHidden(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentAnimation:
return UnmarshalPushMessageContentAnimation(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentAudio:
return UnmarshalPushMessageContentAudio(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentContact:
return UnmarshalPushMessageContentContact(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentContactRegistered:
return UnmarshalPushMessageContentContactRegistered(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentDocument:
return UnmarshalPushMessageContentDocument(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentGame:
return UnmarshalPushMessageContentGame(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentGameScore:
return UnmarshalPushMessageContentGameScore(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentInvoice:
return UnmarshalPushMessageContentInvoice(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentLocation:
return UnmarshalPushMessageContentLocation(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentPhoto:
return UnmarshalPushMessageContentPhoto(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentPoll:
return UnmarshalPushMessageContentPoll(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentScreenshotTaken:
return UnmarshalPushMessageContentScreenshotTaken(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentSticker:
return UnmarshalPushMessageContentSticker(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentText:
return UnmarshalPushMessageContentText(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentVideo:
return UnmarshalPushMessageContentVideo(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentVideoNote:
return UnmarshalPushMessageContentVideoNote(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentVoiceNote:
return UnmarshalPushMessageContentVoiceNote(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentBasicGroupChatCreate:
return UnmarshalPushMessageContentBasicGroupChatCreate(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatAddMembers:
return UnmarshalPushMessageContentChatAddMembers(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatChangePhoto:
return UnmarshalPushMessageContentChatChangePhoto(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatChangeTitle:
return UnmarshalPushMessageContentChatChangeTitle(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatSetTheme:
return UnmarshalPushMessageContentChatSetTheme(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatDeleteMember:
return UnmarshalPushMessageContentChatDeleteMember(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatJoinByLink:
return UnmarshalPushMessageContentChatJoinByLink(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentChatJoinByRequest:
return UnmarshalPushMessageContentChatJoinByRequest(data)
2019-06-07 10:56:06 +00:00
2022-06-21 18:10:07 +00:00
case TypePushMessageContentRecurringPayment:
return UnmarshalPushMessageContentRecurringPayment(data)
2022-03-13 04:04:12 +00:00
case TypePushMessageContentMessageForwards:
return UnmarshalPushMessageContentMessageForwards(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypePushMessageContentMediaAlbum:
return UnmarshalPushMessageContentMediaAlbum(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationTypeNewMessage:
return UnmarshalNotificationTypeNewMessage(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationTypeNewSecretChat:
return UnmarshalNotificationTypeNewSecretChat(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationTypeNewCall:
return UnmarshalNotificationTypeNewCall(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationTypeNewPushMessage:
return UnmarshalNotificationTypeNewPushMessage(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationGroupTypeMessages:
return UnmarshalNotificationGroupTypeMessages(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationGroupTypeMentions:
return UnmarshalNotificationGroupTypeMentions(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationGroupTypeSecretChat:
return UnmarshalNotificationGroupTypeSecretChat(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationGroupTypeCalls:
return UnmarshalNotificationGroupTypeCalls(data)
2019-06-07 10:56:06 +00:00
2022-04-24 20:33:39 +00:00
case TypeNotificationSound:
return UnmarshalNotificationSound(data)
case TypeNotificationSounds:
return UnmarshalNotificationSounds(data)
2022-03-13 04:04:12 +00:00
case TypeNotification:
return UnmarshalNotification(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNotificationGroup:
return UnmarshalNotificationGroup(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeOptionValueBoolean:
return UnmarshalOptionValueBoolean(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeOptionValueEmpty:
return UnmarshalOptionValueEmpty(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeOptionValueInteger:
return UnmarshalOptionValueInteger(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeOptionValueString:
return UnmarshalOptionValueString(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeJsonObjectMember:
return UnmarshalJsonObjectMember(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeJsonValueNull:
return UnmarshalJsonValueNull(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeJsonValueBoolean:
return UnmarshalJsonValueBoolean(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeJsonValueNumber:
return UnmarshalJsonValueNumber(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeJsonValueString:
return UnmarshalJsonValueString(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeJsonValueArray:
return UnmarshalJsonValueArray(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeJsonValueObject:
return UnmarshalJsonValueObject(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleAllowAll:
return UnmarshalUserPrivacySettingRuleAllowAll(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleAllowContacts:
return UnmarshalUserPrivacySettingRuleAllowContacts(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleAllowUsers:
return UnmarshalUserPrivacySettingRuleAllowUsers(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleAllowChatMembers:
return UnmarshalUserPrivacySettingRuleAllowChatMembers(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleRestrictAll:
return UnmarshalUserPrivacySettingRuleRestrictAll(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleRestrictContacts:
return UnmarshalUserPrivacySettingRuleRestrictContacts(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleRestrictUsers:
return UnmarshalUserPrivacySettingRuleRestrictUsers(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRuleRestrictChatMembers:
return UnmarshalUserPrivacySettingRuleRestrictChatMembers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingRules:
return UnmarshalUserPrivacySettingRules(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingShowStatus:
return UnmarshalUserPrivacySettingShowStatus(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingShowProfilePhoto:
return UnmarshalUserPrivacySettingShowProfilePhoto(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingShowLinkInForwardedMessages:
return UnmarshalUserPrivacySettingShowLinkInForwardedMessages(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingShowPhoneNumber:
return UnmarshalUserPrivacySettingShowPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingAllowChatInvites:
return UnmarshalUserPrivacySettingAllowChatInvites(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingAllowCalls:
return UnmarshalUserPrivacySettingAllowCalls(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingAllowPeerToPeerCalls:
return UnmarshalUserPrivacySettingAllowPeerToPeerCalls(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUserPrivacySettingAllowFindingByPhoneNumber:
return UnmarshalUserPrivacySettingAllowFindingByPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2022-08-13 15:24:07 +00:00
case TypeUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages:
return UnmarshalUserPrivacySettingAllowPrivateVoiceAndVideoNoteMessages(data)
2022-03-13 04:04:12 +00:00
case TypeAccountTtl:
return UnmarshalAccountTtl(data)
2019-09-10 12:36:54 +00:00
2022-05-09 11:35:19 +00:00
case TypeSessionTypeAndroid:
return UnmarshalSessionTypeAndroid(data)
case TypeSessionTypeApple:
return UnmarshalSessionTypeApple(data)
case TypeSessionTypeBrave:
return UnmarshalSessionTypeBrave(data)
case TypeSessionTypeChrome:
return UnmarshalSessionTypeChrome(data)
case TypeSessionTypeEdge:
return UnmarshalSessionTypeEdge(data)
case TypeSessionTypeFirefox:
return UnmarshalSessionTypeFirefox(data)
case TypeSessionTypeIpad:
return UnmarshalSessionTypeIpad(data)
case TypeSessionTypeIphone:
return UnmarshalSessionTypeIphone(data)
case TypeSessionTypeLinux:
return UnmarshalSessionTypeLinux(data)
case TypeSessionTypeMac:
return UnmarshalSessionTypeMac(data)
case TypeSessionTypeOpera:
return UnmarshalSessionTypeOpera(data)
case TypeSessionTypeSafari:
return UnmarshalSessionTypeSafari(data)
case TypeSessionTypeUbuntu:
return UnmarshalSessionTypeUbuntu(data)
case TypeSessionTypeUnknown:
return UnmarshalSessionTypeUnknown(data)
case TypeSessionTypeVivaldi:
return UnmarshalSessionTypeVivaldi(data)
case TypeSessionTypeWindows:
return UnmarshalSessionTypeWindows(data)
case TypeSessionTypeXbox:
return UnmarshalSessionTypeXbox(data)
2022-03-13 04:04:12 +00:00
case TypeSession:
return UnmarshalSession(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeSessions:
return UnmarshalSessions(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeConnectedWebsite:
return UnmarshalConnectedWebsite(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeConnectedWebsites:
return UnmarshalConnectedWebsites(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonSpam:
return UnmarshalChatReportReasonSpam(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonViolence:
return UnmarshalChatReportReasonViolence(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonPornography:
return UnmarshalChatReportReasonPornography(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonChildAbuse:
return UnmarshalChatReportReasonChildAbuse(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonCopyright:
return UnmarshalChatReportReasonCopyright(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonUnrelatedLocation:
return UnmarshalChatReportReasonUnrelatedLocation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonFake:
return UnmarshalChatReportReasonFake(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonIllegalDrugs:
return UnmarshalChatReportReasonIllegalDrugs(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonPersonalDetails:
return UnmarshalChatReportReasonPersonalDetails(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatReportReasonCustom:
return UnmarshalChatReportReasonCustom(data)
2018-08-30 14:55:42 +00:00
2022-06-21 18:10:07 +00:00
case TypeTargetChatCurrent:
return UnmarshalTargetChatCurrent(data)
case TypeTargetChatChosen:
return UnmarshalTargetChatChosen(data)
case TypeTargetChatInternalLink:
return UnmarshalTargetChatInternalLink(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeActiveSessions:
return UnmarshalInternalLinkTypeActiveSessions(data)
2019-06-07 10:56:06 +00:00
2022-04-24 20:33:39 +00:00
case TypeInternalLinkTypeAttachmentMenuBot:
return UnmarshalInternalLinkTypeAttachmentMenuBot(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeAuthenticationCode:
return UnmarshalInternalLinkTypeAuthenticationCode(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeBackground:
return UnmarshalInternalLinkTypeBackground(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeBotStart:
return UnmarshalInternalLinkTypeBotStart(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeBotStartInGroup:
return UnmarshalInternalLinkTypeBotStartInGroup(data)
2018-08-30 14:55:42 +00:00
2022-04-24 20:33:39 +00:00
case TypeInternalLinkTypeBotAddToChannel:
return UnmarshalInternalLinkTypeBotAddToChannel(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeChangePhoneNumber:
return UnmarshalInternalLinkTypeChangePhoneNumber(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeChatInvite:
return UnmarshalInternalLinkTypeChatInvite(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeFilterSettings:
return UnmarshalInternalLinkTypeFilterSettings(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeGame:
return UnmarshalInternalLinkTypeGame(data)
2021-12-30 05:55:02 +00:00
2022-06-21 18:10:07 +00:00
case TypeInternalLinkTypeInvoice:
return UnmarshalInternalLinkTypeInvoice(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeLanguagePack:
return UnmarshalInternalLinkTypeLanguagePack(data)
2021-12-30 05:55:02 +00:00
2022-03-31 08:54:35 +00:00
case TypeInternalLinkTypeLanguageSettings:
return UnmarshalInternalLinkTypeLanguageSettings(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeMessage:
return UnmarshalInternalLinkTypeMessage(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeMessageDraft:
return UnmarshalInternalLinkTypeMessageDraft(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypePassportDataRequest:
return UnmarshalInternalLinkTypePassportDataRequest(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypePhoneNumberConfirmation:
return UnmarshalInternalLinkTypePhoneNumberConfirmation(data)
2021-12-30 05:55:02 +00:00
2022-06-21 18:10:07 +00:00
case TypeInternalLinkTypePremiumFeatures:
return UnmarshalInternalLinkTypePremiumFeatures(data)
2022-03-31 08:54:35 +00:00
case TypeInternalLinkTypePrivacyAndSecuritySettings:
return UnmarshalInternalLinkTypePrivacyAndSecuritySettings(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeProxy:
return UnmarshalInternalLinkTypeProxy(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypePublicChat:
return UnmarshalInternalLinkTypePublicChat(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeQrCodeAuthentication:
return UnmarshalInternalLinkTypeQrCodeAuthentication(data)
2021-12-30 05:55:02 +00:00
2022-08-13 15:24:07 +00:00
case TypeInternalLinkTypeRestorePurchases:
return UnmarshalInternalLinkTypeRestorePurchases(data)
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeSettings:
return UnmarshalInternalLinkTypeSettings(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeStickerSet:
return UnmarshalInternalLinkTypeStickerSet(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeTheme:
return UnmarshalInternalLinkTypeTheme(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeThemeSettings:
return UnmarshalInternalLinkTypeThemeSettings(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeUnknownDeepLink:
return UnmarshalInternalLinkTypeUnknownDeepLink(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeUnsupportedProxy:
return UnmarshalInternalLinkTypeUnsupportedProxy(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeUserPhoneNumber:
return UnmarshalInternalLinkTypeUserPhoneNumber(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeInternalLinkTypeVideoChat:
return UnmarshalInternalLinkTypeVideoChat(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageLink:
return UnmarshalMessageLink(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageLinkInfo:
return UnmarshalMessageLinkInfo(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeFilePart:
return UnmarshalFilePart(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeNone:
return UnmarshalFileTypeNone(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeAnimation:
return UnmarshalFileTypeAnimation(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeAudio:
return UnmarshalFileTypeAudio(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeDocument:
return UnmarshalFileTypeDocument(data)
2019-06-07 10:56:06 +00:00
2022-04-24 20:33:39 +00:00
case TypeFileTypeNotificationSound:
return UnmarshalFileTypeNotificationSound(data)
2022-03-13 04:04:12 +00:00
case TypeFileTypePhoto:
return UnmarshalFileTypePhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeProfilePhoto:
return UnmarshalFileTypeProfilePhoto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeSecret:
return UnmarshalFileTypeSecret(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeSecretThumbnail:
return UnmarshalFileTypeSecretThumbnail(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeSecure:
return UnmarshalFileTypeSecure(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeSticker:
return UnmarshalFileTypeSticker(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeThumbnail:
return UnmarshalFileTypeThumbnail(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeUnknown:
return UnmarshalFileTypeUnknown(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeVideo:
return UnmarshalFileTypeVideo(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeVideoNote:
return UnmarshalFileTypeVideoNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeVoiceNote:
return UnmarshalFileTypeVoiceNote(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeFileTypeWallpaper:
return UnmarshalFileTypeWallpaper(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeStorageStatisticsByFileType:
return UnmarshalStorageStatisticsByFileType(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeStorageStatisticsByChat:
return UnmarshalStorageStatisticsByChat(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeStorageStatistics:
return UnmarshalStorageStatistics(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeStorageStatisticsFast:
return UnmarshalStorageStatisticsFast(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeDatabaseStatistics:
return UnmarshalDatabaseStatistics(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkTypeNone:
return UnmarshalNetworkTypeNone(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkTypeMobile:
return UnmarshalNetworkTypeMobile(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkTypeMobileRoaming:
return UnmarshalNetworkTypeMobileRoaming(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkTypeWiFi:
return UnmarshalNetworkTypeWiFi(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkTypeOther:
return UnmarshalNetworkTypeOther(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkStatisticsEntryFile:
return UnmarshalNetworkStatisticsEntryFile(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkStatisticsEntryCall:
return UnmarshalNetworkStatisticsEntryCall(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeNetworkStatistics:
return UnmarshalNetworkStatistics(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAutoDownloadSettings:
return UnmarshalAutoDownloadSettings(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeAutoDownloadSettingsPresets:
return UnmarshalAutoDownloadSettingsPresets(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeConnectionStateWaitingForNetwork:
return UnmarshalConnectionStateWaitingForNetwork(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeConnectionStateConnectingToProxy:
return UnmarshalConnectionStateConnectingToProxy(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeConnectionStateConnecting:
return UnmarshalConnectionStateConnecting(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeConnectionStateUpdating:
return UnmarshalConnectionStateUpdating(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeConnectionStateReady:
return UnmarshalConnectionStateReady(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryUsers:
return UnmarshalTopChatCategoryUsers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryBots:
return UnmarshalTopChatCategoryBots(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryGroups:
return UnmarshalTopChatCategoryGroups(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryChannels:
return UnmarshalTopChatCategoryChannels(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryInlineBots:
return UnmarshalTopChatCategoryInlineBots(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryCalls:
return UnmarshalTopChatCategoryCalls(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTopChatCategoryForwardChats:
return UnmarshalTopChatCategoryForwardChats(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTMeUrlTypeUser:
return UnmarshalTMeUrlTypeUser(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTMeUrlTypeSupergroup:
return UnmarshalTMeUrlTypeSupergroup(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTMeUrlTypeChatInvite:
return UnmarshalTMeUrlTypeChatInvite(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTMeUrlTypeStickerSet:
return UnmarshalTMeUrlTypeStickerSet(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeTMeUrl:
return UnmarshalTMeUrl(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTMeUrls:
return UnmarshalTMeUrls(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSuggestedActionEnableArchiveAndMuteNewChats:
return UnmarshalSuggestedActionEnableArchiveAndMuteNewChats(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSuggestedActionCheckPassword:
return UnmarshalSuggestedActionCheckPassword(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSuggestedActionCheckPhoneNumber:
return UnmarshalSuggestedActionCheckPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSuggestedActionViewChecksHint:
return UnmarshalSuggestedActionViewChecksHint(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeSuggestedActionConvertToBroadcastGroup:
return UnmarshalSuggestedActionConvertToBroadcastGroup(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeSuggestedActionSetPassword:
return UnmarshalSuggestedActionSetPassword(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeCount:
return UnmarshalCount(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeText:
return UnmarshalText(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeSeconds:
return UnmarshalSeconds(data)
2021-12-30 05:55:02 +00:00
2022-06-21 18:10:07 +00:00
case TypeFileDownloadedPrefixSize:
return UnmarshalFileDownloadedPrefixSize(data)
2022-03-13 04:04:12 +00:00
case TypeDeepLinkInfo:
return UnmarshalDeepLinkInfo(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextParseModeMarkdown:
return UnmarshalTextParseModeMarkdown(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTextParseModeHTML:
return UnmarshalTextParseModeHTML(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeProxyTypeSocks5:
return UnmarshalProxyTypeSocks5(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeProxyTypeHttp:
return UnmarshalProxyTypeHttp(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeProxyTypeMtproto:
return UnmarshalProxyTypeMtproto(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeProxy:
return UnmarshalProxy(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeProxies:
return UnmarshalProxies(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeInputSticker:
return UnmarshalInputSticker(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeDateRange:
return UnmarshalDateRange(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeStatisticalValue:
return UnmarshalStatisticalValue(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeStatisticalGraphData:
return UnmarshalStatisticalGraphData(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeStatisticalGraphAsync:
return UnmarshalStatisticalGraphAsync(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeStatisticalGraphError:
return UnmarshalStatisticalGraphError(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatStatisticsMessageInteractionInfo:
return UnmarshalChatStatisticsMessageInteractionInfo(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatStatisticsMessageSenderInfo:
return UnmarshalChatStatisticsMessageSenderInfo(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatStatisticsAdministratorActionsInfo:
return UnmarshalChatStatisticsAdministratorActionsInfo(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatStatisticsInviterInfo:
return UnmarshalChatStatisticsInviterInfo(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatStatisticsSupergroup:
return UnmarshalChatStatisticsSupergroup(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeChatStatisticsChannel:
return UnmarshalChatStatisticsChannel(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeMessageStatistics:
return UnmarshalMessageStatistics(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypePoint:
return UnmarshalPoint(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeVectorPathCommandLine:
return UnmarshalVectorPathCommandLine(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeVectorPathCommandCubicBezierCurve:
return UnmarshalVectorPathCommandCubicBezierCurve(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeDefault:
return UnmarshalBotCommandScopeDefault(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeAllPrivateChats:
return UnmarshalBotCommandScopeAllPrivateChats(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeAllGroupChats:
return UnmarshalBotCommandScopeAllGroupChats(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeAllChatAdministrators:
return UnmarshalBotCommandScopeAllChatAdministrators(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeChat:
return UnmarshalBotCommandScopeChat(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeChatAdministrators:
return UnmarshalBotCommandScopeChatAdministrators(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeBotCommandScopeChatMember:
return UnmarshalBotCommandScopeChatMember(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateAuthorizationState:
return UnmarshalUpdateAuthorizationState(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewMessage:
return UnmarshalUpdateNewMessage(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageSendAcknowledged:
return UnmarshalUpdateMessageSendAcknowledged(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageSendSucceeded:
return UnmarshalUpdateMessageSendSucceeded(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageSendFailed:
return UnmarshalUpdateMessageSendFailed(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageContent:
return UnmarshalUpdateMessageContent(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageEdited:
return UnmarshalUpdateMessageEdited(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageIsPinned:
return UnmarshalUpdateMessageIsPinned(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageInteractionInfo:
return UnmarshalUpdateMessageInteractionInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageContentOpened:
return UnmarshalUpdateMessageContentOpened(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageMentionRead:
return UnmarshalUpdateMessageMentionRead(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageUnreadReactions:
return UnmarshalUpdateMessageUnreadReactions(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateMessageLiveLocationViewed:
return UnmarshalUpdateMessageLiveLocationViewed(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewChat:
return UnmarshalUpdateNewChat(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatTitle:
return UnmarshalUpdateChatTitle(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatPhoto:
return UnmarshalUpdateChatPhoto(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatPermissions:
return UnmarshalUpdateChatPermissions(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatLastMessage:
return UnmarshalUpdateChatLastMessage(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatPosition:
return UnmarshalUpdateChatPosition(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatReadInbox:
return UnmarshalUpdateChatReadInbox(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatReadOutbox:
return UnmarshalUpdateChatReadOutbox(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatActionBar:
return UnmarshalUpdateChatActionBar(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatAvailableReactions:
return UnmarshalUpdateChatAvailableReactions(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatDraftMessage:
return UnmarshalUpdateChatDraftMessage(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatMessageSender:
return UnmarshalUpdateChatMessageSender(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatMessageTtl:
return UnmarshalUpdateChatMessageTtl(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatNotificationSettings:
return UnmarshalUpdateChatNotificationSettings(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatPendingJoinRequests:
return UnmarshalUpdateChatPendingJoinRequests(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatReplyMarkup:
return UnmarshalUpdateChatReplyMarkup(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatTheme:
return UnmarshalUpdateChatTheme(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatUnreadMentionCount:
return UnmarshalUpdateChatUnreadMentionCount(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatUnreadReactionCount:
return UnmarshalUpdateChatUnreadReactionCount(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatVideoChat:
return UnmarshalUpdateChatVideoChat(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatDefaultDisableNotification:
return UnmarshalUpdateChatDefaultDisableNotification(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatHasProtectedContent:
return UnmarshalUpdateChatHasProtectedContent(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatHasScheduledMessages:
return UnmarshalUpdateChatHasScheduledMessages(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatIsBlocked:
return UnmarshalUpdateChatIsBlocked(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatIsMarkedAsUnread:
return UnmarshalUpdateChatIsMarkedAsUnread(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatFilters:
return UnmarshalUpdateChatFilters(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatOnlineMemberCount:
return UnmarshalUpdateChatOnlineMemberCount(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateScopeNotificationSettings:
return UnmarshalUpdateScopeNotificationSettings(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNotification:
return UnmarshalUpdateNotification(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNotificationGroup:
return UnmarshalUpdateNotificationGroup(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateActiveNotifications:
return UnmarshalUpdateActiveNotifications(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateHavePendingNotifications:
return UnmarshalUpdateHavePendingNotifications(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateDeleteMessages:
return UnmarshalUpdateDeleteMessages(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatAction:
return UnmarshalUpdateChatAction(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUserStatus:
return UnmarshalUpdateUserStatus(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUser:
return UnmarshalUpdateUser(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateBasicGroup:
return UnmarshalUpdateBasicGroup(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateSupergroup:
return UnmarshalUpdateSupergroup(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateSecretChat:
return UnmarshalUpdateSecretChat(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUserFullInfo:
return UnmarshalUpdateUserFullInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateBasicGroupFullInfo:
return UnmarshalUpdateBasicGroupFullInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateSupergroupFullInfo:
return UnmarshalUpdateSupergroupFullInfo(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateServiceNotification:
return UnmarshalUpdateServiceNotification(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFile:
return UnmarshalUpdateFile(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFileGenerationStart:
return UnmarshalUpdateFileGenerationStart(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFileGenerationStop:
return UnmarshalUpdateFileGenerationStop(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFileDownloads:
return UnmarshalUpdateFileDownloads(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFileAddedToDownloads:
return UnmarshalUpdateFileAddedToDownloads(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFileDownload:
return UnmarshalUpdateFileDownload(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFileRemovedFromDownloads:
return UnmarshalUpdateFileRemovedFromDownloads(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateCall:
return UnmarshalUpdateCall(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateGroupCall:
return UnmarshalUpdateGroupCall(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateGroupCallParticipant:
return UnmarshalUpdateGroupCallParticipant(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewCallSignalingData:
return UnmarshalUpdateNewCallSignalingData(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUserPrivacySettingRules:
return UnmarshalUpdateUserPrivacySettingRules(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUnreadMessageCount:
return UnmarshalUpdateUnreadMessageCount(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUnreadChatCount:
return UnmarshalUpdateUnreadChatCount(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateOption:
return UnmarshalUpdateOption(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateStickerSet:
return UnmarshalUpdateStickerSet(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateInstalledStickerSets:
return UnmarshalUpdateInstalledStickerSets(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateTrendingStickerSets:
return UnmarshalUpdateTrendingStickerSets(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateRecentStickers:
return UnmarshalUpdateRecentStickers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateFavoriteStickers:
return UnmarshalUpdateFavoriteStickers(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateSavedAnimations:
return UnmarshalUpdateSavedAnimations(data)
2018-08-30 14:55:42 +00:00
2022-04-24 20:33:39 +00:00
case TypeUpdateSavedNotificationSounds:
return UnmarshalUpdateSavedNotificationSounds(data)
2022-03-13 04:04:12 +00:00
case TypeUpdateSelectedBackground:
return UnmarshalUpdateSelectedBackground(data)
2019-09-10 12:36:54 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatThemes:
return UnmarshalUpdateChatThemes(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateLanguagePackStrings:
return UnmarshalUpdateLanguagePackStrings(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateConnectionState:
return UnmarshalUpdateConnectionState(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateTermsOfService:
return UnmarshalUpdateTermsOfService(data)
2018-09-05 21:45:29 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateUsersNearby:
return UnmarshalUpdateUsersNearby(data)
2020-02-03 12:56:20 +00:00
2022-04-24 20:33:39 +00:00
case TypeUpdateAttachmentMenuBots:
return UnmarshalUpdateAttachmentMenuBots(data)
case TypeUpdateWebAppMessageSent:
return UnmarshalUpdateWebAppMessageSent(data)
2022-03-13 04:04:12 +00:00
case TypeUpdateReactions:
return UnmarshalUpdateReactions(data)
2022-02-06 18:36:17 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateDiceEmojis:
return UnmarshalUpdateDiceEmojis(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateAnimatedEmojiMessageClicked:
return UnmarshalUpdateAnimatedEmojiMessageClicked(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateAnimationSearchParameters:
return UnmarshalUpdateAnimationSearchParameters(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateSuggestedActions:
return UnmarshalUpdateSuggestedActions(data)
2020-11-30 09:33:47 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewInlineQuery:
return UnmarshalUpdateNewInlineQuery(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewChosenInlineResult:
return UnmarshalUpdateNewChosenInlineResult(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewCallbackQuery:
return UnmarshalUpdateNewCallbackQuery(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewInlineCallbackQuery:
return UnmarshalUpdateNewInlineCallbackQuery(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewShippingQuery:
return UnmarshalUpdateNewShippingQuery(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewPreCheckoutQuery:
return UnmarshalUpdateNewPreCheckoutQuery(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewCustomEvent:
return UnmarshalUpdateNewCustomEvent(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewCustomQuery:
return UnmarshalUpdateNewCustomQuery(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdatePoll:
return UnmarshalUpdatePoll(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdatePollAnswer:
return UnmarshalUpdatePollAnswer(data)
2020-02-03 12:56:20 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateChatMember:
return UnmarshalUpdateChatMember(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdateNewChatJoinRequest:
return UnmarshalUpdateNewChatJoinRequest(data)
2021-12-30 05:55:02 +00:00
2022-03-13 04:04:12 +00:00
case TypeUpdates:
return UnmarshalUpdates(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeLogStreamDefault:
return UnmarshalLogStreamDefault(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeLogStreamFile:
return UnmarshalLogStreamFile(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeLogStreamEmpty:
return UnmarshalLogStreamEmpty(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeLogVerbosityLevel:
return UnmarshalLogVerbosityLevel(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeLogTags:
return UnmarshalLogTags(data)
2019-06-07 10:56:06 +00:00
2022-03-13 04:04:12 +00:00
case TypeTestInt:
return UnmarshalTestInt(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTestString:
return UnmarshalTestString(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTestBytes:
return UnmarshalTestBytes(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTestVectorInt:
return UnmarshalTestVectorInt(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTestVectorIntObject:
return UnmarshalTestVectorIntObject(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTestVectorString:
return UnmarshalTestVectorString(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
case TypeTestVectorStringObject:
return UnmarshalTestVectorStringObject(data)
2018-08-30 14:55:42 +00:00
2022-03-13 04:04:12 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}