go-tdlib/client/unmarshaler.go

8773 lines
209 KiB
Go
Raw Normal View History

2018-08-30 14:55:42 +00:00
// AUTOGENERATED
package client
import (
2018-10-23 12:38:10 +00:00
"encoding/json"
"fmt"
2018-08-30 14:55:42 +00:00
)
func UnmarshalAuthenticationCodeType(data json.RawMessage) (AuthenticationCodeType, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeAuthenticationCodeTypeTelegramMessage:
return UnmarshalAuthenticationCodeTypeTelegramMessage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthenticationCodeTypeSms:
return UnmarshalAuthenticationCodeTypeSms(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthenticationCodeTypeCall:
return UnmarshalAuthenticationCodeTypeCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthenticationCodeTypeFlashCall:
return UnmarshalAuthenticationCodeTypeFlashCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationState(data json.RawMessage) (AuthorizationState, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeAuthorizationStateWaitTdlibParameters:
return UnmarshalAuthorizationStateWaitTdlibParameters(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateWaitEncryptionKey:
return UnmarshalAuthorizationStateWaitEncryptionKey(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateWaitPhoneNumber:
return UnmarshalAuthorizationStateWaitPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateWaitCode:
return UnmarshalAuthorizationStateWaitCode(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateWaitPassword:
return UnmarshalAuthorizationStateWaitPassword(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateReady:
return UnmarshalAuthorizationStateReady(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateLoggingOut:
return UnmarshalAuthorizationStateLoggingOut(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateClosing:
return UnmarshalAuthorizationStateClosing(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateClosed:
return UnmarshalAuthorizationStateClosed(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputFile(data json.RawMessage) (InputFile, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeInputFileId:
return UnmarshalInputFileId(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputFileRemote:
return UnmarshalInputFileRemote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputFileLocal:
return UnmarshalInputFileLocal(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputFileGenerated:
return UnmarshalInputFileGenerated(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalMaskPoint(data json.RawMessage) (MaskPoint, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeMaskPointForehead:
return UnmarshalMaskPointForehead(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMaskPointEyes:
return UnmarshalMaskPointEyes(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMaskPointMouth:
return UnmarshalMaskPointMouth(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMaskPointChin:
return UnmarshalMaskPointChin(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalLinkState(data json.RawMessage) (LinkState, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeLinkStateNone:
return UnmarshalLinkStateNone(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeLinkStateKnowsPhoneNumber:
return UnmarshalLinkStateKnowsPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeLinkStateIsContact:
return UnmarshalLinkStateIsContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserType(data json.RawMessage) (UserType, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeUserTypeRegular:
return UnmarshalUserTypeRegular(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserTypeDeleted:
return UnmarshalUserTypeDeleted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserTypeBot:
return UnmarshalUserTypeBot(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserTypeUnknown:
return UnmarshalUserTypeUnknown(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMemberStatus(data json.RawMessage) (ChatMemberStatus, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeChatMemberStatusCreator:
return UnmarshalChatMemberStatusCreator(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMemberStatusAdministrator:
return UnmarshalChatMemberStatusAdministrator(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMemberStatusMember:
return UnmarshalChatMemberStatusMember(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMemberStatusRestricted:
return UnmarshalChatMemberStatusRestricted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMemberStatusLeft:
return UnmarshalChatMemberStatusLeft(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMemberStatusBanned:
return UnmarshalChatMemberStatusBanned(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatMembersFilter(data json.RawMessage) (ChatMembersFilter, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeChatMembersFilterAdministrators:
return UnmarshalChatMembersFilterAdministrators(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMembersFilterMembers:
return UnmarshalChatMembersFilterMembers(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMembersFilterRestricted:
return UnmarshalChatMembersFilterRestricted(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMembersFilterBanned:
return UnmarshalChatMembersFilterBanned(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMembersFilterBots:
return UnmarshalChatMembersFilterBots(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalSupergroupMembersFilter(data json.RawMessage) (SupergroupMembersFilter, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeSupergroupMembersFilterRecent:
return UnmarshalSupergroupMembersFilterRecent(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroupMembersFilterAdministrators:
return UnmarshalSupergroupMembersFilterAdministrators(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroupMembersFilterSearch:
return UnmarshalSupergroupMembersFilterSearch(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroupMembersFilterRestricted:
return UnmarshalSupergroupMembersFilterRestricted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroupMembersFilterBanned:
return UnmarshalSupergroupMembersFilterBanned(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroupMembersFilterBots:
return UnmarshalSupergroupMembersFilterBots(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalSecretChatState(data json.RawMessage) (SecretChatState, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeSecretChatStatePending:
return UnmarshalSecretChatStatePending(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSecretChatStateReady:
return UnmarshalSecretChatStateReady(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSecretChatStateClosed:
return UnmarshalSecretChatStateClosed(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageForwardInfo(data json.RawMessage) (MessageForwardInfo, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeMessageForwardedFromUser:
return UnmarshalMessageForwardedFromUser(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageForwardedPost:
return UnmarshalMessageForwardedPost(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageSendingState(data json.RawMessage) (MessageSendingState, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeMessageSendingStatePending:
return UnmarshalMessageSendingStatePending(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageSendingStateFailed:
return UnmarshalMessageSendingStateFailed(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalNotificationSettingsScope(data json.RawMessage) (NotificationSettingsScope, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeNotificationSettingsScopePrivateChats:
return UnmarshalNotificationSettingsScopePrivateChats(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNotificationSettingsScopeGroupChats:
return UnmarshalNotificationSettingsScopeGroupChats(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatType(data json.RawMessage) (ChatType, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeChatTypePrivate:
return UnmarshalChatTypePrivate(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatTypeBasicGroup:
return UnmarshalChatTypeBasicGroup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatTypeSupergroup:
return UnmarshalChatTypeSupergroup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatTypeSecret:
return UnmarshalChatTypeSecret(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalKeyboardButtonType(data json.RawMessage) (KeyboardButtonType, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeKeyboardButtonTypeText:
return UnmarshalKeyboardButtonTypeText(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeKeyboardButtonTypeRequestPhoneNumber:
return UnmarshalKeyboardButtonTypeRequestPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeKeyboardButtonTypeRequestLocation:
return UnmarshalKeyboardButtonTypeRequestLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineKeyboardButtonType(data json.RawMessage) (InlineKeyboardButtonType, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeInlineKeyboardButtonTypeUrl:
return UnmarshalInlineKeyboardButtonTypeUrl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineKeyboardButtonTypeCallback:
return UnmarshalInlineKeyboardButtonTypeCallback(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineKeyboardButtonTypeCallbackGame:
return UnmarshalInlineKeyboardButtonTypeCallbackGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineKeyboardButtonTypeSwitchInline:
return UnmarshalInlineKeyboardButtonTypeSwitchInline(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineKeyboardButtonTypeBuy:
return UnmarshalInlineKeyboardButtonTypeBuy(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalReplyMarkup(data json.RawMessage) (ReplyMarkup, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeReplyMarkupRemoveKeyboard:
return UnmarshalReplyMarkupRemoveKeyboard(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeReplyMarkupForceReply:
return UnmarshalReplyMarkupForceReply(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeReplyMarkupShowKeyboard:
return UnmarshalReplyMarkupShowKeyboard(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeReplyMarkupInlineKeyboard:
return UnmarshalReplyMarkupInlineKeyboard(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalRichText(data json.RawMessage) (RichText, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeRichTextPlain:
return UnmarshalRichTextPlain(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextBold:
return UnmarshalRichTextBold(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextItalic:
return UnmarshalRichTextItalic(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextUnderline:
return UnmarshalRichTextUnderline(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextStrikethrough:
return UnmarshalRichTextStrikethrough(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextFixed:
return UnmarshalRichTextFixed(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextUrl:
return UnmarshalRichTextUrl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextEmailAddress:
return UnmarshalRichTextEmailAddress(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTexts:
return UnmarshalRichTexts(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalPageBlock(data json.RawMessage) (PageBlock, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypePageBlockTitle:
return UnmarshalPageBlockTitle(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockSubtitle:
return UnmarshalPageBlockSubtitle(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockAuthorDate:
return UnmarshalPageBlockAuthorDate(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockHeader:
return UnmarshalPageBlockHeader(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockSubheader:
return UnmarshalPageBlockSubheader(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockParagraph:
return UnmarshalPageBlockParagraph(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockPreformatted:
return UnmarshalPageBlockPreformatted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockFooter:
return UnmarshalPageBlockFooter(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockDivider:
return UnmarshalPageBlockDivider(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockAnchor:
return UnmarshalPageBlockAnchor(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockList:
return UnmarshalPageBlockList(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockBlockQuote:
return UnmarshalPageBlockBlockQuote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockPullQuote:
return UnmarshalPageBlockPullQuote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockAnimation:
return UnmarshalPageBlockAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockAudio:
return UnmarshalPageBlockAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockPhoto:
return UnmarshalPageBlockPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockVideo:
return UnmarshalPageBlockVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockCover:
return UnmarshalPageBlockCover(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockEmbedded:
return UnmarshalPageBlockEmbedded(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockEmbeddedPost:
return UnmarshalPageBlockEmbeddedPost(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockCollage:
return UnmarshalPageBlockCollage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockSlideshow:
return UnmarshalPageBlockSlideshow(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockChatLink:
return UnmarshalPageBlockChatLink(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputCredentials(data json.RawMessage) (InputCredentials, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeInputCredentialsSaved:
return UnmarshalInputCredentialsSaved(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputCredentialsNew:
return UnmarshalInputCredentialsNew(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputCredentialsAndroidPay:
return UnmarshalInputCredentialsAndroidPay(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputCredentialsApplePay:
return UnmarshalInputCredentialsApplePay(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPassportElementType(data json.RawMessage) (PassportElementType, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypePassportElementTypePersonalDetails:
return UnmarshalPassportElementTypePersonalDetails(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypePassport:
return UnmarshalPassportElementTypePassport(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeDriverLicense:
return UnmarshalPassportElementTypeDriverLicense(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeIdentityCard:
return UnmarshalPassportElementTypeIdentityCard(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeInternalPassport:
return UnmarshalPassportElementTypeInternalPassport(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeAddress:
return UnmarshalPassportElementTypeAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeUtilityBill:
return UnmarshalPassportElementTypeUtilityBill(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeBankStatement:
return UnmarshalPassportElementTypeBankStatement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeRentalAgreement:
return UnmarshalPassportElementTypeRentalAgreement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypePassportRegistration:
return UnmarshalPassportElementTypePassportRegistration(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeTemporaryRegistration:
return UnmarshalPassportElementTypeTemporaryRegistration(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypePhoneNumber:
return UnmarshalPassportElementTypePhoneNumber(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeEmailAddress:
return UnmarshalPassportElementTypeEmailAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
func UnmarshalPassportElement(data json.RawMessage) (PassportElement, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypePassportElementPersonalDetails:
return UnmarshalPassportElementPersonalDetails(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementPassport:
return UnmarshalPassportElementPassport(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementDriverLicense:
return UnmarshalPassportElementDriverLicense(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementIdentityCard:
return UnmarshalPassportElementIdentityCard(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementInternalPassport:
return UnmarshalPassportElementInternalPassport(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementAddress:
return UnmarshalPassportElementAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementUtilityBill:
return UnmarshalPassportElementUtilityBill(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementBankStatement:
return UnmarshalPassportElementBankStatement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementRentalAgreement:
return UnmarshalPassportElementRentalAgreement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementPassportRegistration:
return UnmarshalPassportElementPassportRegistration(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTemporaryRegistration:
return UnmarshalPassportElementTemporaryRegistration(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementPhoneNumber:
return UnmarshalPassportElementPhoneNumber(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementEmailAddress:
return UnmarshalPassportElementEmailAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
func UnmarshalInputPassportElement(data json.RawMessage) (InputPassportElement, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeInputPassportElementPersonalDetails:
return UnmarshalInputPassportElementPersonalDetails(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementPassport:
return UnmarshalInputPassportElementPassport(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementDriverLicense:
return UnmarshalInputPassportElementDriverLicense(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementIdentityCard:
return UnmarshalInputPassportElementIdentityCard(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementInternalPassport:
return UnmarshalInputPassportElementInternalPassport(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementAddress:
return UnmarshalInputPassportElementAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementUtilityBill:
return UnmarshalInputPassportElementUtilityBill(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementBankStatement:
return UnmarshalInputPassportElementBankStatement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementRentalAgreement:
return UnmarshalInputPassportElementRentalAgreement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementPassportRegistration:
return UnmarshalInputPassportElementPassportRegistration(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementTemporaryRegistration:
return UnmarshalInputPassportElementTemporaryRegistration(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementPhoneNumber:
return UnmarshalInputPassportElementPhoneNumber(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementEmailAddress:
return UnmarshalInputPassportElementEmailAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
func UnmarshalPassportElementErrorSource(data json.RawMessage) (PassportElementErrorSource, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypePassportElementErrorSourceUnspecified:
return UnmarshalPassportElementErrorSourceUnspecified(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceDataField:
return UnmarshalPassportElementErrorSourceDataField(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceFrontSide:
return UnmarshalPassportElementErrorSourceFrontSide(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceReverseSide:
return UnmarshalPassportElementErrorSourceReverseSide(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceSelfie:
return UnmarshalPassportElementErrorSourceSelfie(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceTranslationFile:
return UnmarshalPassportElementErrorSourceTranslationFile(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceTranslationFiles:
return UnmarshalPassportElementErrorSourceTranslationFiles(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceFile:
return UnmarshalPassportElementErrorSourceFile(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceFiles:
return UnmarshalPassportElementErrorSourceFiles(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
func UnmarshalInputPassportElementErrorSource(data json.RawMessage) (InputPassportElementErrorSource, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeInputPassportElementErrorSourceUnspecified:
return UnmarshalInputPassportElementErrorSourceUnspecified(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceDataField:
return UnmarshalInputPassportElementErrorSourceDataField(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceFrontSide:
return UnmarshalInputPassportElementErrorSourceFrontSide(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceReverseSide:
return UnmarshalInputPassportElementErrorSourceReverseSide(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceSelfie:
return UnmarshalInputPassportElementErrorSourceSelfie(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceTranslationFile:
return UnmarshalInputPassportElementErrorSourceTranslationFile(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceTranslationFiles:
return UnmarshalInputPassportElementErrorSourceTranslationFiles(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceFile:
return UnmarshalInputPassportElementErrorSourceFile(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceFiles:
return UnmarshalInputPassportElementErrorSourceFiles(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalMessageContent(data json.RawMessage) (MessageContent, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeMessageText:
return UnmarshalMessageText(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageAnimation:
return UnmarshalMessageAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageAudio:
return UnmarshalMessageAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageDocument:
return UnmarshalMessageDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessagePhoto:
return UnmarshalMessagePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageExpiredPhoto:
return UnmarshalMessageExpiredPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageSticker:
return UnmarshalMessageSticker(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageVideo:
return UnmarshalMessageVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageExpiredVideo:
return UnmarshalMessageExpiredVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageVideoNote:
return UnmarshalMessageVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageVoiceNote:
return UnmarshalMessageVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageLocation:
return UnmarshalMessageLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageVenue:
return UnmarshalMessageVenue(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageContact:
return UnmarshalMessageContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageGame:
return UnmarshalMessageGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageInvoice:
return UnmarshalMessageInvoice(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageCall:
return UnmarshalMessageCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageBasicGroupChatCreate:
return UnmarshalMessageBasicGroupChatCreate(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageSupergroupChatCreate:
return UnmarshalMessageSupergroupChatCreate(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatChangeTitle:
return UnmarshalMessageChatChangeTitle(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatChangePhoto:
return UnmarshalMessageChatChangePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatDeletePhoto:
return UnmarshalMessageChatDeletePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatAddMembers:
return UnmarshalMessageChatAddMembers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatJoinByLink:
return UnmarshalMessageChatJoinByLink(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatDeleteMember:
return UnmarshalMessageChatDeleteMember(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatUpgradeTo:
return UnmarshalMessageChatUpgradeTo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatUpgradeFrom:
return UnmarshalMessageChatUpgradeFrom(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessagePinMessage:
return UnmarshalMessagePinMessage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageScreenshotTaken:
return UnmarshalMessageScreenshotTaken(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatSetTtl:
return UnmarshalMessageChatSetTtl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageCustomServiceAction:
return UnmarshalMessageCustomServiceAction(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageGameScore:
return UnmarshalMessageGameScore(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessagePaymentSuccessful:
return UnmarshalMessagePaymentSuccessful(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessagePaymentSuccessfulBot:
return UnmarshalMessagePaymentSuccessfulBot(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageContactRegistered:
return UnmarshalMessageContactRegistered(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageWebsiteConnected:
return UnmarshalMessageWebsiteConnected(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessagePassportDataSent:
return UnmarshalMessagePassportDataSent(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessagePassportDataReceived:
return UnmarshalMessagePassportDataReceived(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageUnsupported:
return UnmarshalMessageUnsupported(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityType(data json.RawMessage) (TextEntityType, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeTextEntityTypeMention:
return UnmarshalTextEntityTypeMention(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeHashtag:
return UnmarshalTextEntityTypeHashtag(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeCashtag:
return UnmarshalTextEntityTypeCashtag(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeBotCommand:
return UnmarshalTextEntityTypeBotCommand(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeUrl:
return UnmarshalTextEntityTypeUrl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeEmailAddress:
return UnmarshalTextEntityTypeEmailAddress(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeBold:
return UnmarshalTextEntityTypeBold(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeItalic:
return UnmarshalTextEntityTypeItalic(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeCode:
return UnmarshalTextEntityTypeCode(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypePre:
return UnmarshalTextEntityTypePre(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypePreCode:
return UnmarshalTextEntityTypePreCode(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeTextUrl:
return UnmarshalTextEntityTypeTextUrl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeMentionName:
return UnmarshalTextEntityTypeMentionName(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypePhoneNumber:
return UnmarshalTextEntityTypePhoneNumber(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageContent(data json.RawMessage) (InputMessageContent, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeInputMessageText:
return UnmarshalInputMessageText(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageAnimation:
return UnmarshalInputMessageAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageAudio:
return UnmarshalInputMessageAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageDocument:
return UnmarshalInputMessageDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessagePhoto:
return UnmarshalInputMessagePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageSticker:
return UnmarshalInputMessageSticker(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageVideo:
return UnmarshalInputMessageVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageVideoNote:
return UnmarshalInputMessageVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageVoiceNote:
return UnmarshalInputMessageVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageLocation:
return UnmarshalInputMessageLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageVenue:
return UnmarshalInputMessageVenue(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageContact:
return UnmarshalInputMessageContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageGame:
return UnmarshalInputMessageGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageInvoice:
return UnmarshalInputMessageInvoice(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageForwarded:
return UnmarshalInputMessageForwarded(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilter(data json.RawMessage) (SearchMessagesFilter, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeSearchMessagesFilterEmpty:
return UnmarshalSearchMessagesFilterEmpty(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterAnimation:
return UnmarshalSearchMessagesFilterAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterAudio:
return UnmarshalSearchMessagesFilterAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterDocument:
return UnmarshalSearchMessagesFilterDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterPhoto:
return UnmarshalSearchMessagesFilterPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterVideo:
return UnmarshalSearchMessagesFilterVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterVoiceNote:
return UnmarshalSearchMessagesFilterVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterPhotoAndVideo:
return UnmarshalSearchMessagesFilterPhotoAndVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterUrl:
return UnmarshalSearchMessagesFilterUrl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterChatPhoto:
return UnmarshalSearchMessagesFilterChatPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterCall:
return UnmarshalSearchMessagesFilterCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterMissedCall:
return UnmarshalSearchMessagesFilterMissedCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterVideoNote:
return UnmarshalSearchMessagesFilterVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterVoiceAndVideoNote:
return UnmarshalSearchMessagesFilterVoiceAndVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterMention:
return UnmarshalSearchMessagesFilterMention(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterUnreadMention:
return UnmarshalSearchMessagesFilterUnreadMention(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatAction(data json.RawMessage) (ChatAction, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeChatActionTyping:
return UnmarshalChatActionTyping(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionRecordingVideo:
return UnmarshalChatActionRecordingVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionUploadingVideo:
return UnmarshalChatActionUploadingVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionRecordingVoiceNote:
return UnmarshalChatActionRecordingVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionUploadingVoiceNote:
return UnmarshalChatActionUploadingVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionUploadingPhoto:
return UnmarshalChatActionUploadingPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionUploadingDocument:
return UnmarshalChatActionUploadingDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionChoosingLocation:
return UnmarshalChatActionChoosingLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionChoosingContact:
return UnmarshalChatActionChoosingContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionStartPlayingGame:
return UnmarshalChatActionStartPlayingGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionRecordingVideoNote:
return UnmarshalChatActionRecordingVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionUploadingVideoNote:
return UnmarshalChatActionUploadingVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionCancel:
return UnmarshalChatActionCancel(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatus(data json.RawMessage) (UserStatus, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeUserStatusEmpty:
return UnmarshalUserStatusEmpty(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserStatusOnline:
return UnmarshalUserStatusOnline(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserStatusOffline:
return UnmarshalUserStatusOffline(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserStatusRecently:
return UnmarshalUserStatusRecently(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserStatusLastWeek:
return UnmarshalUserStatusLastWeek(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserStatusLastMonth:
return UnmarshalUserStatusLastMonth(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallDiscardReason(data json.RawMessage) (CallDiscardReason, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeCallDiscardReasonEmpty:
return UnmarshalCallDiscardReasonEmpty(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallDiscardReasonMissed:
return UnmarshalCallDiscardReasonMissed(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallDiscardReasonDeclined:
return UnmarshalCallDiscardReasonDeclined(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallDiscardReasonDisconnected:
return UnmarshalCallDiscardReasonDisconnected(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallDiscardReasonHungUp:
return UnmarshalCallDiscardReasonHungUp(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallState(data json.RawMessage) (CallState, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeCallStatePending:
return UnmarshalCallStatePending(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallStateExchangingKeys:
return UnmarshalCallStateExchangingKeys(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallStateReady:
return UnmarshalCallStateReady(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallStateHangingUp:
return UnmarshalCallStateHangingUp(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallStateDiscarded:
return UnmarshalCallStateDiscarded(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallStateError:
return UnmarshalCallStateError(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResult(data json.RawMessage) (InputInlineQueryResult, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeInputInlineQueryResultAnimatedGif:
return UnmarshalInputInlineQueryResultAnimatedGif(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultAnimatedMpeg4:
return UnmarshalInputInlineQueryResultAnimatedMpeg4(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultArticle:
return UnmarshalInputInlineQueryResultArticle(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultAudio:
return UnmarshalInputInlineQueryResultAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultContact:
return UnmarshalInputInlineQueryResultContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultDocument:
return UnmarshalInputInlineQueryResultDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultGame:
return UnmarshalInputInlineQueryResultGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultLocation:
return UnmarshalInputInlineQueryResultLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultPhoto:
return UnmarshalInputInlineQueryResultPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultSticker:
return UnmarshalInputInlineQueryResultSticker(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultVenue:
return UnmarshalInputInlineQueryResultVenue(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultVideo:
return UnmarshalInputInlineQueryResultVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultVoiceNote:
return UnmarshalInputInlineQueryResultVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResult(data json.RawMessage) (InlineQueryResult, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeInlineQueryResultArticle:
return UnmarshalInlineQueryResultArticle(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultContact:
return UnmarshalInlineQueryResultContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultLocation:
return UnmarshalInlineQueryResultLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultVenue:
return UnmarshalInlineQueryResultVenue(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultGame:
return UnmarshalInlineQueryResultGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultAnimation:
return UnmarshalInlineQueryResultAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultAudio:
return UnmarshalInlineQueryResultAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultDocument:
return UnmarshalInlineQueryResultDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultPhoto:
return UnmarshalInlineQueryResultPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultSticker:
return UnmarshalInlineQueryResultSticker(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultVideo:
return UnmarshalInlineQueryResultVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultVoiceNote:
return UnmarshalInlineQueryResultVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallbackQueryPayload(data json.RawMessage) (CallbackQueryPayload, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeCallbackQueryPayloadData:
return UnmarshalCallbackQueryPayloadData(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallbackQueryPayloadGame:
return UnmarshalCallbackQueryPayloadGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventAction(data json.RawMessage) (ChatEventAction, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeChatEventMessageEdited:
return UnmarshalChatEventMessageEdited(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMessageDeleted:
return UnmarshalChatEventMessageDeleted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMessagePinned:
return UnmarshalChatEventMessagePinned(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMessageUnpinned:
return UnmarshalChatEventMessageUnpinned(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMemberJoined:
return UnmarshalChatEventMemberJoined(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMemberLeft:
return UnmarshalChatEventMemberLeft(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMemberInvited:
return UnmarshalChatEventMemberInvited(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMemberPromoted:
return UnmarshalChatEventMemberPromoted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMemberRestricted:
return UnmarshalChatEventMemberRestricted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventTitleChanged:
return UnmarshalChatEventTitleChanged(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventDescriptionChanged:
return UnmarshalChatEventDescriptionChanged(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventUsernameChanged:
return UnmarshalChatEventUsernameChanged(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventPhotoChanged:
return UnmarshalChatEventPhotoChanged(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventInvitesToggled:
return UnmarshalChatEventInvitesToggled(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventSignMessagesToggled:
return UnmarshalChatEventSignMessagesToggled(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventStickerSetChanged:
return UnmarshalChatEventStickerSetChanged(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventIsAllHistoryAvailableToggled:
return UnmarshalChatEventIsAllHistoryAvailableToggled(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalLanguagePackStringValue(data json.RawMessage) (LanguagePackStringValue, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeLanguagePackStringValueOrdinary:
return UnmarshalLanguagePackStringValueOrdinary(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeLanguagePackStringValuePluralized:
return UnmarshalLanguagePackStringValuePluralized(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeLanguagePackStringValueDeleted:
return UnmarshalLanguagePackStringValueDeleted(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-09-05 21:45:29 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalDeviceToken(data json.RawMessage) (DeviceToken, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeDeviceTokenGoogleCloudMessaging:
return UnmarshalDeviceTokenGoogleCloudMessaging(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenApplePush:
return UnmarshalDeviceTokenApplePush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenApplePushVoIP:
return UnmarshalDeviceTokenApplePushVoIP(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenWindowsPush:
return UnmarshalDeviceTokenWindowsPush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenMicrosoftPush:
return UnmarshalDeviceTokenMicrosoftPush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenMicrosoftPushVoIP:
return UnmarshalDeviceTokenMicrosoftPushVoIP(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenWebPush:
return UnmarshalDeviceTokenWebPush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenSimplePush:
return UnmarshalDeviceTokenSimplePush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenUbuntuPush:
return UnmarshalDeviceTokenUbuntuPush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenBlackBerryPush:
return UnmarshalDeviceTokenBlackBerryPush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenTizenPush:
return UnmarshalDeviceTokenTizenPush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalCheckChatUsernameResult(data json.RawMessage) (CheckChatUsernameResult, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeCheckChatUsernameResultOk:
return UnmarshalCheckChatUsernameResultOk(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCheckChatUsernameResultUsernameInvalid:
return UnmarshalCheckChatUsernameResultUsernameInvalid(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCheckChatUsernameResultUsernameOccupied:
return UnmarshalCheckChatUsernameResultUsernameOccupied(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCheckChatUsernameResultPublicChatsTooMuch:
return UnmarshalCheckChatUsernameResultPublicChatsTooMuch(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCheckChatUsernameResultPublicGroupsUnavailable:
return UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalOptionValue(data json.RawMessage) (OptionValue, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeOptionValueBoolean:
return UnmarshalOptionValueBoolean(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeOptionValueEmpty:
return UnmarshalOptionValueEmpty(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeOptionValueInteger:
return UnmarshalOptionValueInteger(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeOptionValueString:
return UnmarshalOptionValueString(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRule(data json.RawMessage) (UserPrivacySettingRule, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeUserPrivacySettingRuleAllowAll:
return UnmarshalUserPrivacySettingRuleAllowAll(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingRuleAllowContacts:
return UnmarshalUserPrivacySettingRuleAllowContacts(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingRuleAllowUsers:
return UnmarshalUserPrivacySettingRuleAllowUsers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingRuleRestrictAll:
return UnmarshalUserPrivacySettingRuleRestrictAll(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingRuleRestrictContacts:
return UnmarshalUserPrivacySettingRuleRestrictContacts(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingRuleRestrictUsers:
return UnmarshalUserPrivacySettingRuleRestrictUsers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySetting(data json.RawMessage) (UserPrivacySetting, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeUserPrivacySettingShowStatus:
return UnmarshalUserPrivacySettingShowStatus(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingAllowChatInvites:
return UnmarshalUserPrivacySettingAllowChatInvites(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingAllowCalls:
return UnmarshalUserPrivacySettingAllowCalls(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatReportReason(data json.RawMessage) (ChatReportReason, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeChatReportReasonSpam:
return UnmarshalChatReportReasonSpam(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatReportReasonViolence:
return UnmarshalChatReportReasonViolence(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatReportReasonPornography:
return UnmarshalChatReportReasonPornography(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatReportReasonCopyright:
return UnmarshalChatReportReasonCopyright(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatReportReasonCustom:
return UnmarshalChatReportReasonCustom(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileType(data json.RawMessage) (FileType, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeFileTypeNone:
return UnmarshalFileTypeNone(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeAnimation:
return UnmarshalFileTypeAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeAudio:
return UnmarshalFileTypeAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeDocument:
return UnmarshalFileTypeDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypePhoto:
return UnmarshalFileTypePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeProfilePhoto:
return UnmarshalFileTypeProfilePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeSecret:
return UnmarshalFileTypeSecret(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeSecretThumbnail:
return UnmarshalFileTypeSecretThumbnail(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeSecure:
return UnmarshalFileTypeSecure(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeSticker:
return UnmarshalFileTypeSticker(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeThumbnail:
return UnmarshalFileTypeThumbnail(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeUnknown:
return UnmarshalFileTypeUnknown(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeVideo:
return UnmarshalFileTypeVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeVideoNote:
return UnmarshalFileTypeVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeVoiceNote:
return UnmarshalFileTypeVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeWallpaper:
return UnmarshalFileTypeWallpaper(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkType(data json.RawMessage) (NetworkType, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeNetworkTypeNone:
return UnmarshalNetworkTypeNone(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkTypeMobile:
return UnmarshalNetworkTypeMobile(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkTypeMobileRoaming:
return UnmarshalNetworkTypeMobileRoaming(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkTypeWiFi:
return UnmarshalNetworkTypeWiFi(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkTypeOther:
return UnmarshalNetworkTypeOther(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkStatisticsEntry(data json.RawMessage) (NetworkStatisticsEntry, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeNetworkStatisticsEntryFile:
return UnmarshalNetworkStatisticsEntryFile(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkStatisticsEntryCall:
return UnmarshalNetworkStatisticsEntryCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectionState(data json.RawMessage) (ConnectionState, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeConnectionStateWaitingForNetwork:
return UnmarshalConnectionStateWaitingForNetwork(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeConnectionStateConnectingToProxy:
return UnmarshalConnectionStateConnectingToProxy(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeConnectionStateConnecting:
return UnmarshalConnectionStateConnecting(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeConnectionStateUpdating:
return UnmarshalConnectionStateUpdating(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeConnectionStateReady:
return UnmarshalConnectionStateReady(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategory(data json.RawMessage) (TopChatCategory, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeTopChatCategoryUsers:
return UnmarshalTopChatCategoryUsers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTopChatCategoryBots:
return UnmarshalTopChatCategoryBots(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTopChatCategoryGroups:
return UnmarshalTopChatCategoryGroups(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTopChatCategoryChannels:
return UnmarshalTopChatCategoryChannels(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTopChatCategoryInlineBots:
return UnmarshalTopChatCategoryInlineBots(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTopChatCategoryCalls:
return UnmarshalTopChatCategoryCalls(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalTMeUrlType(data json.RawMessage) (TMeUrlType, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeTMeUrlTypeUser:
return UnmarshalTMeUrlTypeUser(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTMeUrlTypeSupergroup:
return UnmarshalTMeUrlTypeSupergroup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTMeUrlTypeChatInvite:
return UnmarshalTMeUrlTypeChatInvite(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTMeUrlTypeStickerSet:
return UnmarshalTMeUrlTypeStickerSet(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextParseMode(data json.RawMessage) (TextParseMode, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeTextParseModeMarkdown:
return UnmarshalTextParseModeMarkdown(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextParseModeHTML:
return UnmarshalTextParseModeHTML(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalProxyType(data json.RawMessage) (ProxyType, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeProxyTypeSocks5:
return UnmarshalProxyTypeSocks5(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeProxyTypeHttp:
return UnmarshalProxyTypeHttp(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeProxyTypeMtproto:
return UnmarshalProxyTypeMtproto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdate(data json.RawMessage) (Update, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeUpdateAuthorizationState:
return UnmarshalUpdateAuthorizationState(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewMessage:
return UnmarshalUpdateNewMessage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageSendAcknowledged:
return UnmarshalUpdateMessageSendAcknowledged(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageSendSucceeded:
return UnmarshalUpdateMessageSendSucceeded(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageSendFailed:
return UnmarshalUpdateMessageSendFailed(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageContent:
return UnmarshalUpdateMessageContent(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageEdited:
return UnmarshalUpdateMessageEdited(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageViews:
return UnmarshalUpdateMessageViews(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageContentOpened:
return UnmarshalUpdateMessageContentOpened(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageMentionRead:
return UnmarshalUpdateMessageMentionRead(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewChat:
return UnmarshalUpdateNewChat(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatTitle:
return UnmarshalUpdateChatTitle(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatPhoto:
return UnmarshalUpdateChatPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatLastMessage:
return UnmarshalUpdateChatLastMessage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatOrder:
return UnmarshalUpdateChatOrder(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatIsPinned:
return UnmarshalUpdateChatIsPinned(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatIsMarkedAsUnread:
return UnmarshalUpdateChatIsMarkedAsUnread(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatIsSponsored:
return UnmarshalUpdateChatIsSponsored(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatDefaultDisableNotification:
return UnmarshalUpdateChatDefaultDisableNotification(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatReadInbox:
return UnmarshalUpdateChatReadInbox(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatReadOutbox:
return UnmarshalUpdateChatReadOutbox(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatUnreadMentionCount:
return UnmarshalUpdateChatUnreadMentionCount(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatNotificationSettings:
return UnmarshalUpdateChatNotificationSettings(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateScopeNotificationSettings:
return UnmarshalUpdateScopeNotificationSettings(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatReplyMarkup:
return UnmarshalUpdateChatReplyMarkup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatDraftMessage:
return UnmarshalUpdateChatDraftMessage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateDeleteMessages:
return UnmarshalUpdateDeleteMessages(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUserChatAction:
return UnmarshalUpdateUserChatAction(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUserStatus:
return UnmarshalUpdateUserStatus(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUser:
return UnmarshalUpdateUser(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateBasicGroup:
return UnmarshalUpdateBasicGroup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateSupergroup:
return UnmarshalUpdateSupergroup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateSecretChat:
return UnmarshalUpdateSecretChat(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUserFullInfo:
return UnmarshalUpdateUserFullInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateBasicGroupFullInfo:
return UnmarshalUpdateBasicGroupFullInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateSupergroupFullInfo:
return UnmarshalUpdateSupergroupFullInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateServiceNotification:
return UnmarshalUpdateServiceNotification(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateFile:
return UnmarshalUpdateFile(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateFileGenerationStart:
return UnmarshalUpdateFileGenerationStart(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateFileGenerationStop:
return UnmarshalUpdateFileGenerationStop(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateCall:
return UnmarshalUpdateCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUserPrivacySettingRules:
return UnmarshalUpdateUserPrivacySettingRules(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUnreadMessageCount:
return UnmarshalUpdateUnreadMessageCount(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUnreadChatCount:
return UnmarshalUpdateUnreadChatCount(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateOption:
return UnmarshalUpdateOption(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateInstalledStickerSets:
return UnmarshalUpdateInstalledStickerSets(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateTrendingStickerSets:
return UnmarshalUpdateTrendingStickerSets(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateRecentStickers:
return UnmarshalUpdateRecentStickers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateFavoriteStickers:
return UnmarshalUpdateFavoriteStickers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateSavedAnimations:
return UnmarshalUpdateSavedAnimations(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateLanguagePackStrings:
return UnmarshalUpdateLanguagePackStrings(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateConnectionState:
return UnmarshalUpdateConnectionState(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateTermsOfService:
return UnmarshalUpdateTermsOfService(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewInlineQuery:
return UnmarshalUpdateNewInlineQuery(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewChosenInlineResult:
return UnmarshalUpdateNewChosenInlineResult(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewCallbackQuery:
return UnmarshalUpdateNewCallbackQuery(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewInlineCallbackQuery:
return UnmarshalUpdateNewInlineCallbackQuery(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewShippingQuery:
return UnmarshalUpdateNewShippingQuery(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewPreCheckoutQuery:
return UnmarshalUpdateNewPreCheckoutQuery(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewCustomEvent:
return UnmarshalUpdateNewCustomEvent(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewCustomQuery:
return UnmarshalUpdateNewCustomQuery(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}
func UnmarshalError(data json.RawMessage) (*Error, error) {
2018-10-23 12:38:10 +00:00
var resp Error
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalOk(data json.RawMessage) (*Ok, error) {
2018-10-23 12:38:10 +00:00
var resp Ok
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTdlibParameters(data json.RawMessage) (*TdlibParameters, error) {
2018-10-23 12:38:10 +00:00
var resp TdlibParameters
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthenticationCodeTypeTelegramMessage(data json.RawMessage) (*AuthenticationCodeTypeTelegramMessage, error) {
2018-10-23 12:38:10 +00:00
var resp AuthenticationCodeTypeTelegramMessage
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthenticationCodeTypeSms(data json.RawMessage) (*AuthenticationCodeTypeSms, error) {
2018-10-23 12:38:10 +00:00
var resp AuthenticationCodeTypeSms
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthenticationCodeTypeCall(data json.RawMessage) (*AuthenticationCodeTypeCall, error) {
2018-10-23 12:38:10 +00:00
var resp AuthenticationCodeTypeCall
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthenticationCodeTypeFlashCall(data json.RawMessage) (*AuthenticationCodeTypeFlashCall, error) {
2018-10-23 12:38:10 +00:00
var resp AuthenticationCodeTypeFlashCall
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthenticationCodeInfo(data json.RawMessage) (*AuthenticationCodeInfo, error) {
2018-10-23 12:38:10 +00:00
var resp AuthenticationCodeInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp EmailAddressAuthenticationCodeInfo
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalTextEntity(data json.RawMessage) (*TextEntity, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntity
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalTextEntities(data json.RawMessage) (*TextEntities, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntities
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalFormattedText(data json.RawMessage) (*FormattedText, error) {
2018-10-23 12:38:10 +00:00
var resp FormattedText
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalTermsOfService(data json.RawMessage) (*TermsOfService, error) {
2018-10-23 12:38:10 +00:00
var resp TermsOfService
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp AuthorizationStateWaitTdlibParameters
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateWaitEncryptionKey(data json.RawMessage) (*AuthorizationStateWaitEncryptionKey, error) {
2018-10-23 12:38:10 +00:00
var resp AuthorizationStateWaitEncryptionKey
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateWaitPhoneNumber(data json.RawMessage) (*AuthorizationStateWaitPhoneNumber, error) {
2018-10-23 12:38:10 +00:00
var resp AuthorizationStateWaitPhoneNumber
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateWaitCode(data json.RawMessage) (*AuthorizationStateWaitCode, error) {
2018-10-23 12:38:10 +00:00
var resp AuthorizationStateWaitCode
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateWaitPassword(data json.RawMessage) (*AuthorizationStateWaitPassword, error) {
2018-10-23 12:38:10 +00:00
var resp AuthorizationStateWaitPassword
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateReady(data json.RawMessage) (*AuthorizationStateReady, error) {
2018-10-23 12:38:10 +00:00
var resp AuthorizationStateReady
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateLoggingOut(data json.RawMessage) (*AuthorizationStateLoggingOut, error) {
2018-10-23 12:38:10 +00:00
var resp AuthorizationStateLoggingOut
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateClosing(data json.RawMessage) (*AuthorizationStateClosing, error) {
2018-10-23 12:38:10 +00:00
var resp AuthorizationStateClosing
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAuthorizationStateClosed(data json.RawMessage) (*AuthorizationStateClosed, error) {
2018-10-23 12:38:10 +00:00
var resp AuthorizationStateClosed
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalPasswordState(data json.RawMessage) (*PasswordState, error) {
2018-10-23 12:38:10 +00:00
var resp PasswordState
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalRecoveryEmailAddress(data json.RawMessage) (*RecoveryEmailAddress, error) {
2018-10-23 12:38:10 +00:00
var resp RecoveryEmailAddress
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTemporaryPasswordState(data json.RawMessage) (*TemporaryPasswordState, error) {
2018-10-23 12:38:10 +00:00
var resp TemporaryPasswordState
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalLocalFile(data json.RawMessage) (*LocalFile, error) {
2018-10-23 12:38:10 +00:00
var resp LocalFile
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalRemoteFile(data json.RawMessage) (*RemoteFile, error) {
2018-10-23 12:38:10 +00:00
var resp RemoteFile
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFile(data json.RawMessage) (*File, error) {
2018-10-23 12:38:10 +00:00
var resp File
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputFileId(data json.RawMessage) (*InputFileId, error) {
2018-10-23 12:38:10 +00:00
var resp InputFileId
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputFileRemote(data json.RawMessage) (*InputFileRemote, error) {
2018-10-23 12:38:10 +00:00
var resp InputFileRemote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputFileLocal(data json.RawMessage) (*InputFileLocal, error) {
2018-10-23 12:38:10 +00:00
var resp InputFileLocal
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputFileGenerated(data json.RawMessage) (*InputFileGenerated, error) {
2018-10-23 12:38:10 +00:00
var resp InputFileGenerated
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalPhotoSize(data json.RawMessage) (*PhotoSize, error) {
2018-10-23 12:38:10 +00:00
var resp PhotoSize
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMaskPointForehead(data json.RawMessage) (*MaskPointForehead, error) {
2018-10-23 12:38:10 +00:00
var resp MaskPointForehead
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMaskPointEyes(data json.RawMessage) (*MaskPointEyes, error) {
2018-10-23 12:38:10 +00:00
var resp MaskPointEyes
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMaskPointMouth(data json.RawMessage) (*MaskPointMouth, error) {
2018-10-23 12:38:10 +00:00
var resp MaskPointMouth
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMaskPointChin(data json.RawMessage) (*MaskPointChin, error) {
2018-10-23 12:38:10 +00:00
var resp MaskPointChin
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMaskPosition(data json.RawMessage) (*MaskPosition, error) {
2018-10-23 12:38:10 +00:00
var resp MaskPosition
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAnimation(data json.RawMessage) (*Animation, error) {
2018-10-23 12:38:10 +00:00
var resp Animation
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAudio(data json.RawMessage) (*Audio, error) {
2018-10-23 12:38:10 +00:00
var resp Audio
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDocument(data json.RawMessage) (*Document, error) {
2018-10-23 12:38:10 +00:00
var resp Document
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalPhoto(data json.RawMessage) (*Photo, error) {
2018-10-23 12:38:10 +00:00
var resp Photo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSticker(data json.RawMessage) (*Sticker, error) {
2018-10-23 12:38:10 +00:00
var resp Sticker
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalVideo(data json.RawMessage) (*Video, error) {
2018-10-23 12:38:10 +00:00
var resp Video
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalVideoNote(data json.RawMessage) (*VideoNote, error) {
2018-10-23 12:38:10 +00:00
var resp VideoNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalVoiceNote(data json.RawMessage) (*VoiceNote, error) {
2018-10-23 12:38:10 +00:00
var resp VoiceNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalContact(data json.RawMessage) (*Contact, error) {
2018-10-23 12:38:10 +00:00
var resp Contact
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalLocation(data json.RawMessage) (*Location, error) {
2018-10-23 12:38:10 +00:00
var resp Location
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalVenue(data json.RawMessage) (*Venue, error) {
2018-10-23 12:38:10 +00:00
var resp Venue
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalGame(data json.RawMessage) (*Game, error) {
2018-10-23 12:38:10 +00:00
var resp Game
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalProfilePhoto(data json.RawMessage) (*ProfilePhoto, error) {
2018-10-23 12:38:10 +00:00
var resp ProfilePhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatPhoto(data json.RawMessage) (*ChatPhoto, error) {
2018-10-23 12:38:10 +00:00
var resp ChatPhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalLinkStateNone(data json.RawMessage) (*LinkStateNone, error) {
2018-10-23 12:38:10 +00:00
var resp LinkStateNone
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalLinkStateKnowsPhoneNumber(data json.RawMessage) (*LinkStateKnowsPhoneNumber, error) {
2018-10-23 12:38:10 +00:00
var resp LinkStateKnowsPhoneNumber
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalLinkStateIsContact(data json.RawMessage) (*LinkStateIsContact, error) {
2018-10-23 12:38:10 +00:00
var resp LinkStateIsContact
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserTypeRegular(data json.RawMessage) (*UserTypeRegular, error) {
2018-10-23 12:38:10 +00:00
var resp UserTypeRegular
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserTypeDeleted(data json.RawMessage) (*UserTypeDeleted, error) {
2018-10-23 12:38:10 +00:00
var resp UserTypeDeleted
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserTypeBot(data json.RawMessage) (*UserTypeBot, error) {
2018-10-23 12:38:10 +00:00
var resp UserTypeBot
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserTypeUnknown(data json.RawMessage) (*UserTypeUnknown, error) {
2018-10-23 12:38:10 +00:00
var resp UserTypeUnknown
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalBotCommand(data json.RawMessage) (*BotCommand, error) {
2018-10-23 12:38:10 +00:00
var resp BotCommand
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalBotInfo(data json.RawMessage) (*BotInfo, error) {
2018-10-23 12:38:10 +00:00
var resp BotInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUser(data json.RawMessage) (*User, error) {
2018-10-23 12:38:10 +00:00
var resp User
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserFullInfo(data json.RawMessage) (*UserFullInfo, error) {
2018-10-23 12:38:10 +00:00
var resp UserFullInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserProfilePhotos(data json.RawMessage) (*UserProfilePhotos, error) {
2018-10-23 12:38:10 +00:00
var resp UserProfilePhotos
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUsers(data json.RawMessage) (*Users, error) {
2018-10-23 12:38:10 +00:00
var resp Users
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMemberStatusCreator(data json.RawMessage) (*ChatMemberStatusCreator, error) {
2018-10-23 12:38:10 +00:00
var resp ChatMemberStatusCreator
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMemberStatusAdministrator(data json.RawMessage) (*ChatMemberStatusAdministrator, error) {
2018-10-23 12:38:10 +00:00
var resp ChatMemberStatusAdministrator
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMemberStatusMember(data json.RawMessage) (*ChatMemberStatusMember, error) {
2018-10-23 12:38:10 +00:00
var resp ChatMemberStatusMember
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMemberStatusRestricted(data json.RawMessage) (*ChatMemberStatusRestricted, error) {
2018-10-23 12:38:10 +00:00
var resp ChatMemberStatusRestricted
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMemberStatusLeft(data json.RawMessage) (*ChatMemberStatusLeft, error) {
2018-10-23 12:38:10 +00:00
var resp ChatMemberStatusLeft
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMemberStatusBanned(data json.RawMessage) (*ChatMemberStatusBanned, error) {
2018-10-23 12:38:10 +00:00
var resp ChatMemberStatusBanned
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMember(data json.RawMessage) (*ChatMember, error) {
2018-10-23 12:38:10 +00:00
var resp ChatMember
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatMembers(data json.RawMessage) (*ChatMembers, error) {
2018-10-23 12:38:10 +00:00
var resp ChatMembers
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatMembersFilterAdministrators(data json.RawMessage) (*ChatMembersFilterAdministrators, error) {
2018-10-23 12:38:10 +00:00
var resp ChatMembersFilterAdministrators
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp ChatMembersFilterMembers
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatMembersFilterRestricted(data json.RawMessage) (*ChatMembersFilterRestricted, error) {
2018-10-23 12:38:10 +00:00
var resp ChatMembersFilterRestricted
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp ChatMembersFilterBanned
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp ChatMembersFilterBots
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp SupergroupMembersFilterRecent
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalSupergroupMembersFilterAdministrators(data json.RawMessage) (*SupergroupMembersFilterAdministrators, error) {
2018-10-23 12:38:10 +00:00
var resp SupergroupMembersFilterAdministrators
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalSupergroupMembersFilterSearch(data json.RawMessage) (*SupergroupMembersFilterSearch, error) {
2018-10-23 12:38:10 +00:00
var resp SupergroupMembersFilterSearch
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalSupergroupMembersFilterRestricted(data json.RawMessage) (*SupergroupMembersFilterRestricted, error) {
2018-10-23 12:38:10 +00:00
var resp SupergroupMembersFilterRestricted
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalSupergroupMembersFilterBanned(data json.RawMessage) (*SupergroupMembersFilterBanned, error) {
2018-10-23 12:38:10 +00:00
var resp SupergroupMembersFilterBanned
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalSupergroupMembersFilterBots(data json.RawMessage) (*SupergroupMembersFilterBots, error) {
2018-10-23 12:38:10 +00:00
var resp SupergroupMembersFilterBots
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalBasicGroup(data json.RawMessage) (*BasicGroup, error) {
2018-10-23 12:38:10 +00:00
var resp BasicGroup
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalBasicGroupFullInfo(data json.RawMessage) (*BasicGroupFullInfo, error) {
2018-10-23 12:38:10 +00:00
var resp BasicGroupFullInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSupergroup(data json.RawMessage) (*Supergroup, error) {
2018-10-23 12:38:10 +00:00
var resp Supergroup
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSupergroupFullInfo(data json.RawMessage) (*SupergroupFullInfo, error) {
2018-10-23 12:38:10 +00:00
var resp SupergroupFullInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSecretChatStatePending(data json.RawMessage) (*SecretChatStatePending, error) {
2018-10-23 12:38:10 +00:00
var resp SecretChatStatePending
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSecretChatStateReady(data json.RawMessage) (*SecretChatStateReady, error) {
2018-10-23 12:38:10 +00:00
var resp SecretChatStateReady
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSecretChatStateClosed(data json.RawMessage) (*SecretChatStateClosed, error) {
2018-10-23 12:38:10 +00:00
var resp SecretChatStateClosed
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp SecretChat
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalMessageForwardedFromUser(data json.RawMessage) (*MessageForwardedFromUser, error) {
2018-10-23 12:38:10 +00:00
var resp MessageForwardedFromUser
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalMessageForwardedPost(data json.RawMessage) (*MessageForwardedPost, error) {
2018-10-23 12:38:10 +00:00
var resp MessageForwardedPost
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalMessageSendingStatePending(data json.RawMessage) (*MessageSendingStatePending, error) {
2018-10-23 12:38:10 +00:00
var resp MessageSendingStatePending
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalMessageSendingStateFailed(data json.RawMessage) (*MessageSendingStateFailed, error) {
2018-10-23 12:38:10 +00:00
var resp MessageSendingStateFailed
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalMessage(data json.RawMessage) (*Message, error) {
2018-10-23 12:38:10 +00:00
var resp Message
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalMessages(data json.RawMessage) (*Messages, error) {
2018-10-23 12:38:10 +00:00
var resp Messages
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalFoundMessages(data json.RawMessage) (*FoundMessages, error) {
2018-10-23 12:38:10 +00:00
var resp FoundMessages
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalNotificationSettingsScopePrivateChats(data json.RawMessage) (*NotificationSettingsScopePrivateChats, error) {
2018-10-23 12:38:10 +00:00
var resp NotificationSettingsScopePrivateChats
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalNotificationSettingsScopeGroupChats(data json.RawMessage) (*NotificationSettingsScopeGroupChats, error) {
2018-10-23 12:38:10 +00:00
var resp NotificationSettingsScopeGroupChats
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatNotificationSettings(data json.RawMessage) (*ChatNotificationSettings, error) {
2018-10-23 12:38:10 +00:00
var resp ChatNotificationSettings
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalScopeNotificationSettings(data json.RawMessage) (*ScopeNotificationSettings, error) {
2018-10-23 12:38:10 +00:00
var resp ScopeNotificationSettings
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalDraftMessage(data json.RawMessage) (*DraftMessage, error) {
2018-10-23 12:38:10 +00:00
var resp DraftMessage
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatTypePrivate(data json.RawMessage) (*ChatTypePrivate, error) {
2018-10-23 12:38:10 +00:00
var resp ChatTypePrivate
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatTypeBasicGroup(data json.RawMessage) (*ChatTypeBasicGroup, error) {
2018-10-23 12:38:10 +00:00
var resp ChatTypeBasicGroup
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatTypeSupergroup(data json.RawMessage) (*ChatTypeSupergroup, error) {
2018-10-23 12:38:10 +00:00
var resp ChatTypeSupergroup
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatTypeSecret(data json.RawMessage) (*ChatTypeSecret, error) {
2018-10-23 12:38:10 +00:00
var resp ChatTypeSecret
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChat(data json.RawMessage) (*Chat, error) {
2018-10-23 12:38:10 +00:00
var resp Chat
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChats(data json.RawMessage) (*Chats, error) {
2018-10-23 12:38:10 +00:00
var resp Chats
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatInviteLink(data json.RawMessage) (*ChatInviteLink, error) {
2018-10-23 12:38:10 +00:00
var resp ChatInviteLink
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatInviteLinkInfo(data json.RawMessage) (*ChatInviteLinkInfo, error) {
2018-10-23 12:38:10 +00:00
var resp ChatInviteLinkInfo
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalKeyboardButtonTypeText(data json.RawMessage) (*KeyboardButtonTypeText, error) {
2018-10-23 12:38:10 +00:00
var resp KeyboardButtonTypeText
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalKeyboardButtonTypeRequestPhoneNumber(data json.RawMessage) (*KeyboardButtonTypeRequestPhoneNumber, error) {
2018-10-23 12:38:10 +00:00
var resp KeyboardButtonTypeRequestPhoneNumber
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalKeyboardButtonTypeRequestLocation(data json.RawMessage) (*KeyboardButtonTypeRequestLocation, error) {
2018-10-23 12:38:10 +00:00
var resp KeyboardButtonTypeRequestLocation
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalKeyboardButton(data json.RawMessage) (*KeyboardButton, error) {
2018-10-23 12:38:10 +00:00
var resp KeyboardButton
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalInlineKeyboardButtonTypeUrl(data json.RawMessage) (*InlineKeyboardButtonTypeUrl, error) {
2018-10-23 12:38:10 +00:00
var resp InlineKeyboardButtonTypeUrl
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalInlineKeyboardButtonTypeCallback(data json.RawMessage) (*InlineKeyboardButtonTypeCallback, error) {
2018-10-23 12:38:10 +00:00
var resp InlineKeyboardButtonTypeCallback
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalInlineKeyboardButtonTypeCallbackGame(data json.RawMessage) (*InlineKeyboardButtonTypeCallbackGame, error) {
2018-10-23 12:38:10 +00:00
var resp InlineKeyboardButtonTypeCallbackGame
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalInlineKeyboardButtonTypeSwitchInline(data json.RawMessage) (*InlineKeyboardButtonTypeSwitchInline, error) {
2018-10-23 12:38:10 +00:00
var resp InlineKeyboardButtonTypeSwitchInline
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalInlineKeyboardButtonTypeBuy(data json.RawMessage) (*InlineKeyboardButtonTypeBuy, error) {
2018-10-23 12:38:10 +00:00
var resp InlineKeyboardButtonTypeBuy
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalInlineKeyboardButton(data json.RawMessage) (*InlineKeyboardButton, error) {
2018-10-23 12:38:10 +00:00
var resp InlineKeyboardButton
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalReplyMarkupRemoveKeyboard(data json.RawMessage) (*ReplyMarkupRemoveKeyboard, error) {
2018-10-23 12:38:10 +00:00
var resp ReplyMarkupRemoveKeyboard
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalReplyMarkupForceReply(data json.RawMessage) (*ReplyMarkupForceReply, error) {
2018-10-23 12:38:10 +00:00
var resp ReplyMarkupForceReply
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalReplyMarkupShowKeyboard(data json.RawMessage) (*ReplyMarkupShowKeyboard, error) {
2018-10-23 12:38:10 +00:00
var resp ReplyMarkupShowKeyboard
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalReplyMarkupInlineKeyboard(data json.RawMessage) (*ReplyMarkupInlineKeyboard, error) {
2018-10-23 12:38:10 +00:00
var resp ReplyMarkupInlineKeyboard
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextPlain(data json.RawMessage) (*RichTextPlain, error) {
2018-10-23 12:38:10 +00:00
var resp RichTextPlain
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextBold(data json.RawMessage) (*RichTextBold, error) {
2018-10-23 12:38:10 +00:00
var resp RichTextBold
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextItalic(data json.RawMessage) (*RichTextItalic, error) {
2018-10-23 12:38:10 +00:00
var resp RichTextItalic
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextUnderline(data json.RawMessage) (*RichTextUnderline, error) {
2018-10-23 12:38:10 +00:00
var resp RichTextUnderline
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextStrikethrough(data json.RawMessage) (*RichTextStrikethrough, error) {
2018-10-23 12:38:10 +00:00
var resp RichTextStrikethrough
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextFixed(data json.RawMessage) (*RichTextFixed, error) {
2018-10-23 12:38:10 +00:00
var resp RichTextFixed
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextUrl(data json.RawMessage) (*RichTextUrl, error) {
2018-10-23 12:38:10 +00:00
var resp RichTextUrl
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTextEmailAddress(data json.RawMessage) (*RichTextEmailAddress, error) {
2018-10-23 12:38:10 +00:00
var resp RichTextEmailAddress
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalRichTexts(data json.RawMessage) (*RichTexts, error) {
2018-10-23 12:38:10 +00:00
var resp RichTexts
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockTitle(data json.RawMessage) (*PageBlockTitle, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockTitle
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockSubtitle(data json.RawMessage) (*PageBlockSubtitle, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockSubtitle
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockAuthorDate(data json.RawMessage) (*PageBlockAuthorDate, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockAuthorDate
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockHeader(data json.RawMessage) (*PageBlockHeader, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockHeader
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockSubheader(data json.RawMessage) (*PageBlockSubheader, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockSubheader
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockParagraph(data json.RawMessage) (*PageBlockParagraph, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockParagraph
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockPreformatted(data json.RawMessage) (*PageBlockPreformatted, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockPreformatted
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockFooter(data json.RawMessage) (*PageBlockFooter, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockFooter
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockDivider(data json.RawMessage) (*PageBlockDivider, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockDivider
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockAnchor(data json.RawMessage) (*PageBlockAnchor, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockAnchor
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockList(data json.RawMessage) (*PageBlockList, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockList
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockBlockQuote(data json.RawMessage) (*PageBlockBlockQuote, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockBlockQuote
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockPullQuote(data json.RawMessage) (*PageBlockPullQuote, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockPullQuote
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockAnimation(data json.RawMessage) (*PageBlockAnimation, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockAnimation
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockAudio(data json.RawMessage) (*PageBlockAudio, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockAudio
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockPhoto(data json.RawMessage) (*PageBlockPhoto, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockPhoto
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockVideo(data json.RawMessage) (*PageBlockVideo, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockVideo
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockCover(data json.RawMessage) (*PageBlockCover, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockCover
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockEmbedded(data json.RawMessage) (*PageBlockEmbedded, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockEmbedded
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockEmbeddedPost(data json.RawMessage) (*PageBlockEmbeddedPost, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockEmbeddedPost
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockCollage(data json.RawMessage) (*PageBlockCollage, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockCollage
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockSlideshow(data json.RawMessage) (*PageBlockSlideshow, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockSlideshow
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalPageBlockChatLink(data json.RawMessage) (*PageBlockChatLink, error) {
2018-10-23 12:38:10 +00:00
var resp PageBlockChatLink
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalWebPageInstantView(data json.RawMessage) (*WebPageInstantView, error) {
2018-10-23 12:38:10 +00:00
var resp WebPageInstantView
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalWebPage(data json.RawMessage) (*WebPage, error) {
2018-10-23 12:38:10 +00:00
var resp WebPage
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalAddress(data json.RawMessage) (*Address, error) {
2018-10-23 12:38:10 +00:00
var resp Address
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalLabeledPricePart(data json.RawMessage) (*LabeledPricePart, error) {
2018-10-23 12:38:10 +00:00
var resp LabeledPricePart
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalInvoice(data json.RawMessage) (*Invoice, error) {
2018-10-23 12:38:10 +00:00
var resp Invoice
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp OrderInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp ShippingOption
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp SavedCredentials
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputCredentialsSaved
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputCredentialsNew
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputCredentialsAndroidPay(data json.RawMessage) (*InputCredentialsAndroidPay, error) {
2018-10-23 12:38:10 +00:00
var resp InputCredentialsAndroidPay
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalInputCredentialsApplePay(data json.RawMessage) (*InputCredentialsApplePay, error) {
2018-10-23 12:38:10 +00:00
var resp InputCredentialsApplePay
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPaymentsProviderStripe(data json.RawMessage) (*PaymentsProviderStripe, error) {
2018-10-23 12:38:10 +00:00
var resp PaymentsProviderStripe
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalPaymentForm(data json.RawMessage) (*PaymentForm, error) {
2018-10-23 12:38:10 +00:00
var resp PaymentForm
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp ValidatedOrderInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PaymentResult
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PaymentReceipt
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalDatedFile(data json.RawMessage) (*DatedFile, error) {
2018-10-23 12:38:10 +00:00
var resp DatedFile
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypePersonalDetails
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypePassport
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypeDriverLicense
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypeIdentityCard
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypeInternalPassport
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypeAddress
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypeUtilityBill
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypeBankStatement
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypeRentalAgreement
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypePassportRegistration
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypeTemporaryRegistration
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypePhoneNumber
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTypeEmailAddress
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp Date
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PersonalDetails
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp IdentityDocument
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputIdentityDocument
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PersonalDocument
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPersonalDocument
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementPersonalDetails
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementPassport
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementDriverLicense
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementIdentityCard
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementInternalPassport
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementAddress
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementUtilityBill
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementBankStatement
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementRentalAgreement
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementPassportRegistration
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementTemporaryRegistration
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementPhoneNumber
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementEmailAddress
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementPersonalDetails
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementPassport
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementDriverLicense
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementIdentityCard
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementInternalPassport
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementAddress
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementUtilityBill
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementBankStatement
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementRentalAgreement
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementPassportRegistration
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementTemporaryRegistration
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementPhoneNumber
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementEmailAddress
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElements
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementErrorSourceUnspecified
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementErrorSourceDataField
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementErrorSourceFrontSide
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementErrorSourceReverseSide
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementErrorSourceSelfie
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementErrorSourceTranslationFile
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementErrorSourceTranslationFiles
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementErrorSourceFile
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementErrorSourceFiles
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportElementError
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportSuitableElement
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportRequiredElement
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp PassportAuthorizationForm
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalEncryptedCredentials(data json.RawMessage) (*EncryptedCredentials, error) {
2018-10-23 12:38:10 +00:00
var resp EncryptedCredentials
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp EncryptedPassportElement
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementErrorSourceUnspecified
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementErrorSourceDataField
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementErrorSourceFrontSide
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementErrorSourceReverseSide
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementErrorSourceSelfie
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementErrorSourceTranslationFile
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementErrorSourceTranslationFiles
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementErrorSourceFile
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementErrorSourceFiles
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp InputPassportElementError
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageText(data json.RawMessage) (*MessageText, error) {
2018-10-23 12:38:10 +00:00
var resp MessageText
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageAnimation(data json.RawMessage) (*MessageAnimation, error) {
2018-10-23 12:38:10 +00:00
var resp MessageAnimation
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageAudio(data json.RawMessage) (*MessageAudio, error) {
2018-10-23 12:38:10 +00:00
var resp MessageAudio
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageDocument(data json.RawMessage) (*MessageDocument, error) {
2018-10-23 12:38:10 +00:00
var resp MessageDocument
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessagePhoto(data json.RawMessage) (*MessagePhoto, error) {
2018-10-23 12:38:10 +00:00
var resp MessagePhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageExpiredPhoto(data json.RawMessage) (*MessageExpiredPhoto, error) {
2018-10-23 12:38:10 +00:00
var resp MessageExpiredPhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageSticker(data json.RawMessage) (*MessageSticker, error) {
2018-10-23 12:38:10 +00:00
var resp MessageSticker
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageVideo(data json.RawMessage) (*MessageVideo, error) {
2018-10-23 12:38:10 +00:00
var resp MessageVideo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageExpiredVideo(data json.RawMessage) (*MessageExpiredVideo, error) {
2018-10-23 12:38:10 +00:00
var resp MessageExpiredVideo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageVideoNote(data json.RawMessage) (*MessageVideoNote, error) {
2018-10-23 12:38:10 +00:00
var resp MessageVideoNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageVoiceNote(data json.RawMessage) (*MessageVoiceNote, error) {
2018-10-23 12:38:10 +00:00
var resp MessageVoiceNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageLocation(data json.RawMessage) (*MessageLocation, error) {
2018-10-23 12:38:10 +00:00
var resp MessageLocation
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageVenue(data json.RawMessage) (*MessageVenue, error) {
2018-10-23 12:38:10 +00:00
var resp MessageVenue
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageContact(data json.RawMessage) (*MessageContact, error) {
2018-10-23 12:38:10 +00:00
var resp MessageContact
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageGame(data json.RawMessage) (*MessageGame, error) {
2018-10-23 12:38:10 +00:00
var resp MessageGame
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageInvoice(data json.RawMessage) (*MessageInvoice, error) {
2018-10-23 12:38:10 +00:00
var resp MessageInvoice
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageCall(data json.RawMessage) (*MessageCall, error) {
2018-10-23 12:38:10 +00:00
var resp MessageCall
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageBasicGroupChatCreate(data json.RawMessage) (*MessageBasicGroupChatCreate, error) {
2018-10-23 12:38:10 +00:00
var resp MessageBasicGroupChatCreate
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageSupergroupChatCreate(data json.RawMessage) (*MessageSupergroupChatCreate, error) {
2018-10-23 12:38:10 +00:00
var resp MessageSupergroupChatCreate
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatChangeTitle(data json.RawMessage) (*MessageChatChangeTitle, error) {
2018-10-23 12:38:10 +00:00
var resp MessageChatChangeTitle
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatChangePhoto(data json.RawMessage) (*MessageChatChangePhoto, error) {
2018-10-23 12:38:10 +00:00
var resp MessageChatChangePhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatDeletePhoto(data json.RawMessage) (*MessageChatDeletePhoto, error) {
2018-10-23 12:38:10 +00:00
var resp MessageChatDeletePhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatAddMembers(data json.RawMessage) (*MessageChatAddMembers, error) {
2018-10-23 12:38:10 +00:00
var resp MessageChatAddMembers
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatJoinByLink(data json.RawMessage) (*MessageChatJoinByLink, error) {
2018-10-23 12:38:10 +00:00
var resp MessageChatJoinByLink
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatDeleteMember(data json.RawMessage) (*MessageChatDeleteMember, error) {
2018-10-23 12:38:10 +00:00
var resp MessageChatDeleteMember
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatUpgradeTo(data json.RawMessage) (*MessageChatUpgradeTo, error) {
2018-10-23 12:38:10 +00:00
var resp MessageChatUpgradeTo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatUpgradeFrom(data json.RawMessage) (*MessageChatUpgradeFrom, error) {
2018-10-23 12:38:10 +00:00
var resp MessageChatUpgradeFrom
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessagePinMessage(data json.RawMessage) (*MessagePinMessage, error) {
2018-10-23 12:38:10 +00:00
var resp MessagePinMessage
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageScreenshotTaken(data json.RawMessage) (*MessageScreenshotTaken, error) {
2018-10-23 12:38:10 +00:00
var resp MessageScreenshotTaken
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageChatSetTtl(data json.RawMessage) (*MessageChatSetTtl, error) {
2018-10-23 12:38:10 +00:00
var resp MessageChatSetTtl
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageCustomServiceAction(data json.RawMessage) (*MessageCustomServiceAction, error) {
2018-10-23 12:38:10 +00:00
var resp MessageCustomServiceAction
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageGameScore(data json.RawMessage) (*MessageGameScore, error) {
2018-10-23 12:38:10 +00:00
var resp MessageGameScore
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessagePaymentSuccessful(data json.RawMessage) (*MessagePaymentSuccessful, error) {
2018-10-23 12:38:10 +00:00
var resp MessagePaymentSuccessful
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessagePaymentSuccessfulBot(data json.RawMessage) (*MessagePaymentSuccessfulBot, error) {
2018-10-23 12:38:10 +00:00
var resp MessagePaymentSuccessfulBot
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageContactRegistered(data json.RawMessage) (*MessageContactRegistered, error) {
2018-10-23 12:38:10 +00:00
var resp MessageContactRegistered
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalMessageWebsiteConnected(data json.RawMessage) (*MessageWebsiteConnected, error) {
2018-10-23 12:38:10 +00:00
var resp MessageWebsiteConnected
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalMessagePassportDataSent(data json.RawMessage) (*MessagePassportDataSent, error) {
2018-10-23 12:38:10 +00:00
var resp MessagePassportDataSent
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalMessagePassportDataReceived(data json.RawMessage) (*MessagePassportDataReceived, error) {
2018-10-23 12:38:10 +00:00
var resp MessagePassportDataReceived
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalMessageUnsupported(data json.RawMessage) (*MessageUnsupported, error) {
2018-10-23 12:38:10 +00:00
var resp MessageUnsupported
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeMention(data json.RawMessage) (*TextEntityTypeMention, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypeMention
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeHashtag(data json.RawMessage) (*TextEntityTypeHashtag, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypeHashtag
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeCashtag(data json.RawMessage) (*TextEntityTypeCashtag, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypeCashtag
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeBotCommand(data json.RawMessage) (*TextEntityTypeBotCommand, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypeBotCommand
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeUrl(data json.RawMessage) (*TextEntityTypeUrl, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypeUrl
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeEmailAddress(data json.RawMessage) (*TextEntityTypeEmailAddress, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypeEmailAddress
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeBold(data json.RawMessage) (*TextEntityTypeBold, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypeBold
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeItalic(data json.RawMessage) (*TextEntityTypeItalic, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypeItalic
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeCode(data json.RawMessage) (*TextEntityTypeCode, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypeCode
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypePre(data json.RawMessage) (*TextEntityTypePre, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypePre
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypePreCode(data json.RawMessage) (*TextEntityTypePreCode, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypePreCode
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeTextUrl(data json.RawMessage) (*TextEntityTypeTextUrl, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypeTextUrl
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypeMentionName(data json.RawMessage) (*TextEntityTypeMentionName, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypeMentionName
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextEntityTypePhoneNumber(data json.RawMessage) (*TextEntityTypePhoneNumber, error) {
2018-10-23 12:38:10 +00:00
var resp TextEntityTypePhoneNumber
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputThumbnail(data json.RawMessage) (*InputThumbnail, error) {
2018-10-23 12:38:10 +00:00
var resp InputThumbnail
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageText(data json.RawMessage) (*InputMessageText, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageText
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageAnimation(data json.RawMessage) (*InputMessageAnimation, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageAnimation
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageAudio(data json.RawMessage) (*InputMessageAudio, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageAudio
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageDocument(data json.RawMessage) (*InputMessageDocument, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageDocument
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessagePhoto(data json.RawMessage) (*InputMessagePhoto, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessagePhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageSticker(data json.RawMessage) (*InputMessageSticker, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageSticker
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageVideo(data json.RawMessage) (*InputMessageVideo, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageVideo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageVideoNote(data json.RawMessage) (*InputMessageVideoNote, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageVideoNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageVoiceNote(data json.RawMessage) (*InputMessageVoiceNote, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageVoiceNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageLocation(data json.RawMessage) (*InputMessageLocation, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageLocation
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageVenue(data json.RawMessage) (*InputMessageVenue, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageVenue
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageContact(data json.RawMessage) (*InputMessageContact, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageContact
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageGame(data json.RawMessage) (*InputMessageGame, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageGame
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageInvoice(data json.RawMessage) (*InputMessageInvoice, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageInvoice
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputMessageForwarded(data json.RawMessage) (*InputMessageForwarded, error) {
2018-10-23 12:38:10 +00:00
var resp InputMessageForwarded
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterEmpty(data json.RawMessage) (*SearchMessagesFilterEmpty, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterEmpty
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterAnimation(data json.RawMessage) (*SearchMessagesFilterAnimation, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterAnimation
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterAudio(data json.RawMessage) (*SearchMessagesFilterAudio, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterAudio
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterDocument(data json.RawMessage) (*SearchMessagesFilterDocument, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterDocument
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterPhoto(data json.RawMessage) (*SearchMessagesFilterPhoto, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterPhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterVideo(data json.RawMessage) (*SearchMessagesFilterVideo, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterVideo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterVoiceNote(data json.RawMessage) (*SearchMessagesFilterVoiceNote, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterVoiceNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterPhotoAndVideo(data json.RawMessage) (*SearchMessagesFilterPhotoAndVideo, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterPhotoAndVideo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterUrl(data json.RawMessage) (*SearchMessagesFilterUrl, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterUrl
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterChatPhoto(data json.RawMessage) (*SearchMessagesFilterChatPhoto, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterChatPhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterCall(data json.RawMessage) (*SearchMessagesFilterCall, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterCall
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterMissedCall(data json.RawMessage) (*SearchMessagesFilterMissedCall, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterMissedCall
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterVideoNote(data json.RawMessage) (*SearchMessagesFilterVideoNote, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterVideoNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterVoiceAndVideoNote(data json.RawMessage) (*SearchMessagesFilterVoiceAndVideoNote, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterVoiceAndVideoNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterMention(data json.RawMessage) (*SearchMessagesFilterMention, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterMention
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSearchMessagesFilterUnreadMention(data json.RawMessage) (*SearchMessagesFilterUnreadMention, error) {
2018-10-23 12:38:10 +00:00
var resp SearchMessagesFilterUnreadMention
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionTyping(data json.RawMessage) (*ChatActionTyping, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionTyping
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionRecordingVideo(data json.RawMessage) (*ChatActionRecordingVideo, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionRecordingVideo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionUploadingVideo(data json.RawMessage) (*ChatActionUploadingVideo, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionUploadingVideo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionRecordingVoiceNote(data json.RawMessage) (*ChatActionRecordingVoiceNote, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionRecordingVoiceNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionUploadingVoiceNote(data json.RawMessage) (*ChatActionUploadingVoiceNote, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionUploadingVoiceNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionUploadingPhoto(data json.RawMessage) (*ChatActionUploadingPhoto, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionUploadingPhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionUploadingDocument(data json.RawMessage) (*ChatActionUploadingDocument, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionUploadingDocument
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionChoosingLocation(data json.RawMessage) (*ChatActionChoosingLocation, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionChoosingLocation
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionChoosingContact(data json.RawMessage) (*ChatActionChoosingContact, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionChoosingContact
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionStartPlayingGame(data json.RawMessage) (*ChatActionStartPlayingGame, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionStartPlayingGame
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionRecordingVideoNote(data json.RawMessage) (*ChatActionRecordingVideoNote, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionRecordingVideoNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionUploadingVideoNote(data json.RawMessage) (*ChatActionUploadingVideoNote, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionUploadingVideoNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatActionCancel(data json.RawMessage) (*ChatActionCancel, error) {
2018-10-23 12:38:10 +00:00
var resp ChatActionCancel
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatusEmpty(data json.RawMessage) (*UserStatusEmpty, error) {
2018-10-23 12:38:10 +00:00
var resp UserStatusEmpty
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatusOnline(data json.RawMessage) (*UserStatusOnline, error) {
2018-10-23 12:38:10 +00:00
var resp UserStatusOnline
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatusOffline(data json.RawMessage) (*UserStatusOffline, error) {
2018-10-23 12:38:10 +00:00
var resp UserStatusOffline
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatusRecently(data json.RawMessage) (*UserStatusRecently, error) {
2018-10-23 12:38:10 +00:00
var resp UserStatusRecently
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatusLastWeek(data json.RawMessage) (*UserStatusLastWeek, error) {
2018-10-23 12:38:10 +00:00
var resp UserStatusLastWeek
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserStatusLastMonth(data json.RawMessage) (*UserStatusLastMonth, error) {
2018-10-23 12:38:10 +00:00
var resp UserStatusLastMonth
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStickers(data json.RawMessage) (*Stickers, error) {
2018-10-23 12:38:10 +00:00
var resp Stickers
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStickerEmojis(data json.RawMessage) (*StickerEmojis, error) {
2018-10-23 12:38:10 +00:00
var resp StickerEmojis
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStickerSet(data json.RawMessage) (*StickerSet, error) {
2018-10-23 12:38:10 +00:00
var resp StickerSet
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStickerSetInfo(data json.RawMessage) (*StickerSetInfo, error) {
2018-10-23 12:38:10 +00:00
var resp StickerSetInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStickerSets(data json.RawMessage) (*StickerSets, error) {
2018-10-23 12:38:10 +00:00
var resp StickerSets
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallDiscardReasonEmpty(data json.RawMessage) (*CallDiscardReasonEmpty, error) {
2018-10-23 12:38:10 +00:00
var resp CallDiscardReasonEmpty
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallDiscardReasonMissed(data json.RawMessage) (*CallDiscardReasonMissed, error) {
2018-10-23 12:38:10 +00:00
var resp CallDiscardReasonMissed
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallDiscardReasonDeclined(data json.RawMessage) (*CallDiscardReasonDeclined, error) {
2018-10-23 12:38:10 +00:00
var resp CallDiscardReasonDeclined
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallDiscardReasonDisconnected(data json.RawMessage) (*CallDiscardReasonDisconnected, error) {
2018-10-23 12:38:10 +00:00
var resp CallDiscardReasonDisconnected
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallDiscardReasonHungUp(data json.RawMessage) (*CallDiscardReasonHungUp, error) {
2018-10-23 12:38:10 +00:00
var resp CallDiscardReasonHungUp
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallProtocol(data json.RawMessage) (*CallProtocol, error) {
2018-10-23 12:38:10 +00:00
var resp CallProtocol
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallConnection(data json.RawMessage) (*CallConnection, error) {
2018-10-23 12:38:10 +00:00
var resp CallConnection
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallId(data json.RawMessage) (*CallId, error) {
2018-10-23 12:38:10 +00:00
var resp CallId
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallStatePending(data json.RawMessage) (*CallStatePending, error) {
2018-10-23 12:38:10 +00:00
var resp CallStatePending
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallStateExchangingKeys(data json.RawMessage) (*CallStateExchangingKeys, error) {
2018-10-23 12:38:10 +00:00
var resp CallStateExchangingKeys
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallStateReady(data json.RawMessage) (*CallStateReady, error) {
2018-10-23 12:38:10 +00:00
var resp CallStateReady
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallStateHangingUp(data json.RawMessage) (*CallStateHangingUp, error) {
2018-10-23 12:38:10 +00:00
var resp CallStateHangingUp
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallStateDiscarded(data json.RawMessage) (*CallStateDiscarded, error) {
2018-10-23 12:38:10 +00:00
var resp CallStateDiscarded
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallStateError(data json.RawMessage) (*CallStateError, error) {
2018-10-23 12:38:10 +00:00
var resp CallStateError
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCall(data json.RawMessage) (*Call, error) {
2018-10-23 12:38:10 +00:00
var resp Call
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAnimations(data json.RawMessage) (*Animations, error) {
2018-10-23 12:38:10 +00:00
var resp Animations
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalImportedContacts(data json.RawMessage) (*ImportedContacts, error) {
2018-10-23 12:38:10 +00:00
var resp ImportedContacts
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultAnimatedGif(data json.RawMessage) (*InputInlineQueryResultAnimatedGif, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultAnimatedGif
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultAnimatedMpeg4(data json.RawMessage) (*InputInlineQueryResultAnimatedMpeg4, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultAnimatedMpeg4
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultArticle(data json.RawMessage) (*InputInlineQueryResultArticle, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultArticle
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultAudio(data json.RawMessage) (*InputInlineQueryResultAudio, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultAudio
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultContact(data json.RawMessage) (*InputInlineQueryResultContact, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultContact
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultDocument(data json.RawMessage) (*InputInlineQueryResultDocument, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultDocument
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultGame(data json.RawMessage) (*InputInlineQueryResultGame, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultGame
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultLocation(data json.RawMessage) (*InputInlineQueryResultLocation, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultLocation
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultPhoto(data json.RawMessage) (*InputInlineQueryResultPhoto, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultPhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultSticker(data json.RawMessage) (*InputInlineQueryResultSticker, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultSticker
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultVenue(data json.RawMessage) (*InputInlineQueryResultVenue, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultVenue
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultVideo(data json.RawMessage) (*InputInlineQueryResultVideo, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultVideo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputInlineQueryResultVoiceNote(data json.RawMessage) (*InputInlineQueryResultVoiceNote, error) {
2018-10-23 12:38:10 +00:00
var resp InputInlineQueryResultVoiceNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultArticle(data json.RawMessage) (*InlineQueryResultArticle, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResultArticle
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultContact(data json.RawMessage) (*InlineQueryResultContact, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResultContact
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultLocation(data json.RawMessage) (*InlineQueryResultLocation, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResultLocation
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultVenue(data json.RawMessage) (*InlineQueryResultVenue, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResultVenue
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultGame(data json.RawMessage) (*InlineQueryResultGame, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResultGame
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultAnimation(data json.RawMessage) (*InlineQueryResultAnimation, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResultAnimation
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultAudio(data json.RawMessage) (*InlineQueryResultAudio, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResultAudio
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultDocument(data json.RawMessage) (*InlineQueryResultDocument, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResultDocument
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultPhoto(data json.RawMessage) (*InlineQueryResultPhoto, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResultPhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultSticker(data json.RawMessage) (*InlineQueryResultSticker, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResultSticker
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultVideo(data json.RawMessage) (*InlineQueryResultVideo, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResultVideo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResultVoiceNote(data json.RawMessage) (*InlineQueryResultVoiceNote, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResultVoiceNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInlineQueryResults(data json.RawMessage) (*InlineQueryResults, error) {
2018-10-23 12:38:10 +00:00
var resp InlineQueryResults
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallbackQueryPayloadData(data json.RawMessage) (*CallbackQueryPayloadData, error) {
2018-10-23 12:38:10 +00:00
var resp CallbackQueryPayloadData
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallbackQueryPayloadGame(data json.RawMessage) (*CallbackQueryPayloadGame, error) {
2018-10-23 12:38:10 +00:00
var resp CallbackQueryPayloadGame
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCallbackQueryAnswer(data json.RawMessage) (*CallbackQueryAnswer, error) {
2018-10-23 12:38:10 +00:00
var resp CallbackQueryAnswer
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCustomRequestResult(data json.RawMessage) (*CustomRequestResult, error) {
2018-10-23 12:38:10 +00:00
var resp CustomRequestResult
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalGameHighScore(data json.RawMessage) (*GameHighScore, error) {
2018-10-23 12:38:10 +00:00
var resp GameHighScore
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalGameHighScores(data json.RawMessage) (*GameHighScores, error) {
2018-10-23 12:38:10 +00:00
var resp GameHighScores
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMessageEdited(data json.RawMessage) (*ChatEventMessageEdited, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventMessageEdited
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMessageDeleted(data json.RawMessage) (*ChatEventMessageDeleted, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventMessageDeleted
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMessagePinned(data json.RawMessage) (*ChatEventMessagePinned, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventMessagePinned
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMessageUnpinned(data json.RawMessage) (*ChatEventMessageUnpinned, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventMessageUnpinned
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMemberJoined(data json.RawMessage) (*ChatEventMemberJoined, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventMemberJoined
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMemberLeft(data json.RawMessage) (*ChatEventMemberLeft, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventMemberLeft
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMemberInvited(data json.RawMessage) (*ChatEventMemberInvited, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventMemberInvited
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMemberPromoted(data json.RawMessage) (*ChatEventMemberPromoted, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventMemberPromoted
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventMemberRestricted(data json.RawMessage) (*ChatEventMemberRestricted, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventMemberRestricted
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatEventTitleChanged(data json.RawMessage) (*ChatEventTitleChanged, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventTitleChanged
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatEventDescriptionChanged(data json.RawMessage) (*ChatEventDescriptionChanged, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventDescriptionChanged
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatEventUsernameChanged(data json.RawMessage) (*ChatEventUsernameChanged, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventUsernameChanged
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatEventPhotoChanged(data json.RawMessage) (*ChatEventPhotoChanged, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventPhotoChanged
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatEventInvitesToggled(data json.RawMessage) (*ChatEventInvitesToggled, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventInvitesToggled
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatEventSignMessagesToggled(data json.RawMessage) (*ChatEventSignMessagesToggled, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventSignMessagesToggled
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatEventStickerSetChanged(data json.RawMessage) (*ChatEventStickerSetChanged, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventStickerSetChanged
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatEventIsAllHistoryAvailableToggled(data json.RawMessage) (*ChatEventIsAllHistoryAvailableToggled, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEventIsAllHistoryAvailableToggled
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalChatEvent(data json.RawMessage) (*ChatEvent, error) {
2018-10-23 12:38:10 +00:00
var resp ChatEvent
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp ChatEvents
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp ChatEventLogFilters
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp LanguagePackStringValueOrdinary
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp LanguagePackStringValuePluralized
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalLanguagePackStringValueDeleted(data json.RawMessage) (*LanguagePackStringValueDeleted, error) {
2018-10-23 12:38:10 +00:00
var resp LanguagePackStringValueDeleted
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalLanguagePackString(data json.RawMessage) (*LanguagePackString, error) {
2018-10-23 12:38:10 +00:00
var resp LanguagePackString
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalLanguagePackStrings(data json.RawMessage) (*LanguagePackStrings, error) {
2018-10-23 12:38:10 +00:00
var resp LanguagePackStrings
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalLanguagePackInfo(data json.RawMessage) (*LanguagePackInfo, error) {
2018-10-23 12:38:10 +00:00
var resp LanguagePackInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalLocalizationTargetInfo(data json.RawMessage) (*LocalizationTargetInfo, error) {
2018-10-23 12:38:10 +00:00
var resp LocalizationTargetInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDeviceTokenGoogleCloudMessaging(data json.RawMessage) (*DeviceTokenGoogleCloudMessaging, error) {
2018-10-23 12:38:10 +00:00
var resp DeviceTokenGoogleCloudMessaging
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDeviceTokenApplePush(data json.RawMessage) (*DeviceTokenApplePush, error) {
2018-10-23 12:38:10 +00:00
var resp DeviceTokenApplePush
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDeviceTokenApplePushVoIP(data json.RawMessage) (*DeviceTokenApplePushVoIP, error) {
2018-10-23 12:38:10 +00:00
var resp DeviceTokenApplePushVoIP
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDeviceTokenWindowsPush(data json.RawMessage) (*DeviceTokenWindowsPush, error) {
2018-10-23 12:38:10 +00:00
var resp DeviceTokenWindowsPush
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDeviceTokenMicrosoftPush(data json.RawMessage) (*DeviceTokenMicrosoftPush, error) {
2018-10-23 12:38:10 +00:00
var resp DeviceTokenMicrosoftPush
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDeviceTokenMicrosoftPushVoIP(data json.RawMessage) (*DeviceTokenMicrosoftPushVoIP, error) {
2018-10-23 12:38:10 +00:00
var resp DeviceTokenMicrosoftPushVoIP
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDeviceTokenWebPush(data json.RawMessage) (*DeviceTokenWebPush, error) {
2018-10-23 12:38:10 +00:00
var resp DeviceTokenWebPush
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDeviceTokenSimplePush(data json.RawMessage) (*DeviceTokenSimplePush, error) {
2018-10-23 12:38:10 +00:00
var resp DeviceTokenSimplePush
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDeviceTokenUbuntuPush(data json.RawMessage) (*DeviceTokenUbuntuPush, error) {
2018-10-23 12:38:10 +00:00
var resp DeviceTokenUbuntuPush
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDeviceTokenBlackBerryPush(data json.RawMessage) (*DeviceTokenBlackBerryPush, error) {
2018-10-23 12:38:10 +00:00
var resp DeviceTokenBlackBerryPush
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalDeviceTokenTizenPush(data json.RawMessage) (*DeviceTokenTizenPush, error) {
2018-10-23 12:38:10 +00:00
var resp DeviceTokenTizenPush
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalWallpaper(data json.RawMessage) (*Wallpaper, error) {
2018-10-23 12:38:10 +00:00
var resp Wallpaper
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalWallpapers(data json.RawMessage) (*Wallpapers, error) {
2018-10-23 12:38:10 +00:00
var resp Wallpapers
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalHashtags(data json.RawMessage) (*Hashtags, error) {
2018-10-23 12:38:10 +00:00
var resp Hashtags
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCheckChatUsernameResultOk(data json.RawMessage) (*CheckChatUsernameResultOk, error) {
2018-10-23 12:38:10 +00:00
var resp CheckChatUsernameResultOk
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCheckChatUsernameResultUsernameInvalid(data json.RawMessage) (*CheckChatUsernameResultUsernameInvalid, error) {
2018-10-23 12:38:10 +00:00
var resp CheckChatUsernameResultUsernameInvalid
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCheckChatUsernameResultUsernameOccupied(data json.RawMessage) (*CheckChatUsernameResultUsernameOccupied, error) {
2018-10-23 12:38:10 +00:00
var resp CheckChatUsernameResultUsernameOccupied
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCheckChatUsernameResultPublicChatsTooMuch(data json.RawMessage) (*CheckChatUsernameResultPublicChatsTooMuch, error) {
2018-10-23 12:38:10 +00:00
var resp CheckChatUsernameResultPublicChatsTooMuch
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data json.RawMessage) (*CheckChatUsernameResultPublicGroupsUnavailable, error) {
2018-10-23 12:38:10 +00:00
var resp CheckChatUsernameResultPublicGroupsUnavailable
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalOptionValueBoolean(data json.RawMessage) (*OptionValueBoolean, error) {
2018-10-23 12:38:10 +00:00
var resp OptionValueBoolean
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalOptionValueEmpty(data json.RawMessage) (*OptionValueEmpty, error) {
2018-10-23 12:38:10 +00:00
var resp OptionValueEmpty
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalOptionValueInteger(data json.RawMessage) (*OptionValueInteger, error) {
2018-10-23 12:38:10 +00:00
var resp OptionValueInteger
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalOptionValueString(data json.RawMessage) (*OptionValueString, error) {
2018-10-23 12:38:10 +00:00
var resp OptionValueString
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRuleAllowAll(data json.RawMessage) (*UserPrivacySettingRuleAllowAll, error) {
2018-10-23 12:38:10 +00:00
var resp UserPrivacySettingRuleAllowAll
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRuleAllowContacts(data json.RawMessage) (*UserPrivacySettingRuleAllowContacts, error) {
2018-10-23 12:38:10 +00:00
var resp UserPrivacySettingRuleAllowContacts
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRuleAllowUsers(data json.RawMessage) (*UserPrivacySettingRuleAllowUsers, error) {
2018-10-23 12:38:10 +00:00
var resp UserPrivacySettingRuleAllowUsers
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRuleRestrictAll(data json.RawMessage) (*UserPrivacySettingRuleRestrictAll, error) {
2018-10-23 12:38:10 +00:00
var resp UserPrivacySettingRuleRestrictAll
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRuleRestrictContacts(data json.RawMessage) (*UserPrivacySettingRuleRestrictContacts, error) {
2018-10-23 12:38:10 +00:00
var resp UserPrivacySettingRuleRestrictContacts
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRuleRestrictUsers(data json.RawMessage) (*UserPrivacySettingRuleRestrictUsers, error) {
2018-10-23 12:38:10 +00:00
var resp UserPrivacySettingRuleRestrictUsers
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingRules(data json.RawMessage) (*UserPrivacySettingRules, error) {
2018-10-23 12:38:10 +00:00
var resp UserPrivacySettingRules
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingShowStatus(data json.RawMessage) (*UserPrivacySettingShowStatus, error) {
2018-10-23 12:38:10 +00:00
var resp UserPrivacySettingShowStatus
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingAllowChatInvites(data json.RawMessage) (*UserPrivacySettingAllowChatInvites, error) {
2018-10-23 12:38:10 +00:00
var resp UserPrivacySettingAllowChatInvites
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUserPrivacySettingAllowCalls(data json.RawMessage) (*UserPrivacySettingAllowCalls, error) {
2018-10-23 12:38:10 +00:00
var resp UserPrivacySettingAllowCalls
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalAccountTtl(data json.RawMessage) (*AccountTtl, error) {
2018-10-23 12:38:10 +00:00
var resp AccountTtl
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSession(data json.RawMessage) (*Session, error) {
2018-10-23 12:38:10 +00:00
var resp Session
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalSessions(data json.RawMessage) (*Sessions, error) {
2018-10-23 12:38:10 +00:00
var resp Sessions
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectedWebsite(data json.RawMessage) (*ConnectedWebsite, error) {
2018-10-23 12:38:10 +00:00
var resp ConnectedWebsite
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectedWebsites(data json.RawMessage) (*ConnectedWebsites, error) {
2018-10-23 12:38:10 +00:00
var resp ConnectedWebsites
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatReportSpamState(data json.RawMessage) (*ChatReportSpamState, error) {
2018-10-23 12:38:10 +00:00
var resp ChatReportSpamState
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatReportReasonSpam(data json.RawMessage) (*ChatReportReasonSpam, error) {
2018-10-23 12:38:10 +00:00
var resp ChatReportReasonSpam
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatReportReasonViolence(data json.RawMessage) (*ChatReportReasonViolence, error) {
2018-10-23 12:38:10 +00:00
var resp ChatReportReasonViolence
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalChatReportReasonPornography(data json.RawMessage) (*ChatReportReasonPornography, error) {
2018-10-23 12:38:10 +00:00
var resp ChatReportReasonPornography
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalChatReportReasonCopyright(data json.RawMessage) (*ChatReportReasonCopyright, error) {
2018-10-23 12:38:10 +00:00
var resp ChatReportReasonCopyright
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalChatReportReasonCustom(data json.RawMessage) (*ChatReportReasonCustom, error) {
2018-10-23 12:38:10 +00:00
var resp ChatReportReasonCustom
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalPublicMessageLink(data json.RawMessage) (*PublicMessageLink, error) {
2018-10-23 12:38:10 +00:00
var resp PublicMessageLink
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeNone(data json.RawMessage) (*FileTypeNone, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeNone
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeAnimation(data json.RawMessage) (*FileTypeAnimation, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeAnimation
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeAudio(data json.RawMessage) (*FileTypeAudio, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeAudio
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeDocument(data json.RawMessage) (*FileTypeDocument, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeDocument
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypePhoto(data json.RawMessage) (*FileTypePhoto, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypePhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeProfilePhoto(data json.RawMessage) (*FileTypeProfilePhoto, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeProfilePhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeSecret(data json.RawMessage) (*FileTypeSecret, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeSecret
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp FileTypeSecretThumbnail
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalFileTypeSecure(data json.RawMessage) (*FileTypeSecure, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeSecure
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp FileTypeSticker
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeThumbnail(data json.RawMessage) (*FileTypeThumbnail, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeThumbnail
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeUnknown(data json.RawMessage) (*FileTypeUnknown, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeUnknown
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeVideo(data json.RawMessage) (*FileTypeVideo, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeVideo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeVideoNote(data json.RawMessage) (*FileTypeVideoNote, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeVideoNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeVoiceNote(data json.RawMessage) (*FileTypeVoiceNote, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeVoiceNote
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalFileTypeWallpaper(data json.RawMessage) (*FileTypeWallpaper, error) {
2018-10-23 12:38:10 +00:00
var resp FileTypeWallpaper
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStorageStatisticsByFileType(data json.RawMessage) (*StorageStatisticsByFileType, error) {
2018-10-23 12:38:10 +00:00
var resp StorageStatisticsByFileType
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStorageStatisticsByChat(data json.RawMessage) (*StorageStatisticsByChat, error) {
2018-10-23 12:38:10 +00:00
var resp StorageStatisticsByChat
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStorageStatistics(data json.RawMessage) (*StorageStatistics, error) {
2018-10-23 12:38:10 +00:00
var resp StorageStatistics
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalStorageStatisticsFast(data json.RawMessage) (*StorageStatisticsFast, error) {
2018-10-23 12:38:10 +00:00
var resp StorageStatisticsFast
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkTypeNone(data json.RawMessage) (*NetworkTypeNone, error) {
2018-10-23 12:38:10 +00:00
var resp NetworkTypeNone
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkTypeMobile(data json.RawMessage) (*NetworkTypeMobile, error) {
2018-10-23 12:38:10 +00:00
var resp NetworkTypeMobile
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkTypeMobileRoaming(data json.RawMessage) (*NetworkTypeMobileRoaming, error) {
2018-10-23 12:38:10 +00:00
var resp NetworkTypeMobileRoaming
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkTypeWiFi(data json.RawMessage) (*NetworkTypeWiFi, error) {
2018-10-23 12:38:10 +00:00
var resp NetworkTypeWiFi
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkTypeOther(data json.RawMessage) (*NetworkTypeOther, error) {
2018-10-23 12:38:10 +00:00
var resp NetworkTypeOther
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkStatisticsEntryFile(data json.RawMessage) (*NetworkStatisticsEntryFile, error) {
2018-10-23 12:38:10 +00:00
var resp NetworkStatisticsEntryFile
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkStatisticsEntryCall(data json.RawMessage) (*NetworkStatisticsEntryCall, error) {
2018-10-23 12:38:10 +00:00
var resp NetworkStatisticsEntryCall
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalNetworkStatistics(data json.RawMessage) (*NetworkStatistics, error) {
2018-10-23 12:38:10 +00:00
var resp NetworkStatistics
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectionStateWaitingForNetwork(data json.RawMessage) (*ConnectionStateWaitingForNetwork, error) {
2018-10-23 12:38:10 +00:00
var resp ConnectionStateWaitingForNetwork
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectionStateConnectingToProxy(data json.RawMessage) (*ConnectionStateConnectingToProxy, error) {
2018-10-23 12:38:10 +00:00
var resp ConnectionStateConnectingToProxy
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectionStateConnecting(data json.RawMessage) (*ConnectionStateConnecting, error) {
2018-10-23 12:38:10 +00:00
var resp ConnectionStateConnecting
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectionStateUpdating(data json.RawMessage) (*ConnectionStateUpdating, error) {
2018-10-23 12:38:10 +00:00
var resp ConnectionStateUpdating
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalConnectionStateReady(data json.RawMessage) (*ConnectionStateReady, error) {
2018-10-23 12:38:10 +00:00
var resp ConnectionStateReady
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategoryUsers(data json.RawMessage) (*TopChatCategoryUsers, error) {
2018-10-23 12:38:10 +00:00
var resp TopChatCategoryUsers
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategoryBots(data json.RawMessage) (*TopChatCategoryBots, error) {
2018-10-23 12:38:10 +00:00
var resp TopChatCategoryBots
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategoryGroups(data json.RawMessage) (*TopChatCategoryGroups, error) {
2018-10-23 12:38:10 +00:00
var resp TopChatCategoryGroups
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategoryChannels(data json.RawMessage) (*TopChatCategoryChannels, error) {
2018-10-23 12:38:10 +00:00
var resp TopChatCategoryChannels
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategoryInlineBots(data json.RawMessage) (*TopChatCategoryInlineBots, error) {
2018-10-23 12:38:10 +00:00
var resp TopChatCategoryInlineBots
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTopChatCategoryCalls(data json.RawMessage) (*TopChatCategoryCalls, error) {
2018-10-23 12:38:10 +00:00
var resp TopChatCategoryCalls
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTMeUrlTypeUser(data json.RawMessage) (*TMeUrlTypeUser, error) {
2018-10-23 12:38:10 +00:00
var resp TMeUrlTypeUser
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTMeUrlTypeSupergroup(data json.RawMessage) (*TMeUrlTypeSupergroup, error) {
2018-10-23 12:38:10 +00:00
var resp TMeUrlTypeSupergroup
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTMeUrlTypeChatInvite(data json.RawMessage) (*TMeUrlTypeChatInvite, error) {
2018-10-23 12:38:10 +00:00
var resp TMeUrlTypeChatInvite
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTMeUrlTypeStickerSet(data json.RawMessage) (*TMeUrlTypeStickerSet, error) {
2018-10-23 12:38:10 +00:00
var resp TMeUrlTypeStickerSet
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTMeUrl(data json.RawMessage) (*TMeUrl, error) {
2018-10-23 12:38:10 +00:00
var resp TMeUrl
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTMeUrls(data json.RawMessage) (*TMeUrls, error) {
2018-10-23 12:38:10 +00:00
var resp TMeUrls
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalCount(data json.RawMessage) (*Count, error) {
2018-10-23 12:38:10 +00:00
var resp Count
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalText(data json.RawMessage) (*Text, error) {
2018-10-23 12:38:10 +00:00
var resp Text
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp Seconds
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalDeepLinkInfo(data json.RawMessage) (*DeepLinkInfo, error) {
2018-10-23 12:38:10 +00:00
var resp DeepLinkInfo
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp TextParseModeMarkdown
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTextParseModeHTML(data json.RawMessage) (*TextParseModeHTML, error) {
2018-10-23 12:38:10 +00:00
var resp TextParseModeHTML
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp ProxyTypeSocks5
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalProxyTypeHttp(data json.RawMessage) (*ProxyTypeHttp, error) {
2018-10-23 12:38:10 +00:00
var resp ProxyTypeHttp
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalProxyTypeMtproto(data json.RawMessage) (*ProxyTypeMtproto, error) {
2018-10-23 12:38:10 +00:00
var resp ProxyTypeMtproto
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalProxy(data json.RawMessage) (*Proxy, error) {
2018-10-23 12:38:10 +00:00
var resp Proxy
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp Proxies
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalInputSticker(data json.RawMessage) (*InputSticker, error) {
2018-10-23 12:38:10 +00:00
var resp InputSticker
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateAuthorizationState(data json.RawMessage) (*UpdateAuthorizationState, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateAuthorizationState
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewMessage(data json.RawMessage) (*UpdateNewMessage, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateNewMessage
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageSendAcknowledged(data json.RawMessage) (*UpdateMessageSendAcknowledged, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateMessageSendAcknowledged
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageSendSucceeded(data json.RawMessage) (*UpdateMessageSendSucceeded, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateMessageSendSucceeded
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageSendFailed(data json.RawMessage) (*UpdateMessageSendFailed, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateMessageSendFailed
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageContent(data json.RawMessage) (*UpdateMessageContent, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateMessageContent
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageEdited(data json.RawMessage) (*UpdateMessageEdited, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateMessageEdited
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageViews(data json.RawMessage) (*UpdateMessageViews, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateMessageViews
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageContentOpened(data json.RawMessage) (*UpdateMessageContentOpened, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateMessageContentOpened
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateMessageMentionRead(data json.RawMessage) (*UpdateMessageMentionRead, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateMessageMentionRead
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewChat(data json.RawMessage) (*UpdateNewChat, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateNewChat
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateChatTitle(data json.RawMessage) (*UpdateChatTitle, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatTitle
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateChatPhoto(data json.RawMessage) (*UpdateChatPhoto, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatPhoto
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateChatLastMessage(data json.RawMessage) (*UpdateChatLastMessage, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatLastMessage
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateChatOrder(data json.RawMessage) (*UpdateChatOrder, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatOrder
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateChatIsPinned(data json.RawMessage) (*UpdateChatIsPinned, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatIsPinned
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalUpdateChatIsMarkedAsUnread(data json.RawMessage) (*UpdateChatIsMarkedAsUnread, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatIsMarkedAsUnread
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalUpdateChatIsSponsored(data json.RawMessage) (*UpdateChatIsSponsored, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatIsSponsored
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalUpdateChatDefaultDisableNotification(data json.RawMessage) (*UpdateChatDefaultDisableNotification, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatDefaultDisableNotification
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUpdateChatReadInbox(data json.RawMessage) (*UpdateChatReadInbox, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatReadInbox
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateChatReadOutbox(data json.RawMessage) (*UpdateChatReadOutbox, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatReadOutbox
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateChatUnreadMentionCount(data json.RawMessage) (*UpdateChatUnreadMentionCount, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatUnreadMentionCount
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalUpdateChatNotificationSettings(data json.RawMessage) (*UpdateChatNotificationSettings, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatNotificationSettings
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
func UnmarshalUpdateScopeNotificationSettings(data json.RawMessage) (*UpdateScopeNotificationSettings, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateScopeNotificationSettings
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateChatReplyMarkup(data json.RawMessage) (*UpdateChatReplyMarkup, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatReplyMarkup
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateChatDraftMessage(data json.RawMessage) (*UpdateChatDraftMessage, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateChatDraftMessage
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateDeleteMessages(data json.RawMessage) (*UpdateDeleteMessages, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateDeleteMessages
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateUserChatAction(data json.RawMessage) (*UpdateUserChatAction, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateUserChatAction
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateUserStatus(data json.RawMessage) (*UpdateUserStatus, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateUserStatus
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateUser(data json.RawMessage) (*UpdateUser, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateUser
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateBasicGroup(data json.RawMessage) (*UpdateBasicGroup, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateBasicGroup
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateSupergroup(data json.RawMessage) (*UpdateSupergroup, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateSupergroup
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateSecretChat(data json.RawMessage) (*UpdateSecretChat, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateSecretChat
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateUserFullInfo(data json.RawMessage) (*UpdateUserFullInfo, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateUserFullInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateBasicGroupFullInfo(data json.RawMessage) (*UpdateBasicGroupFullInfo, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateBasicGroupFullInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateSupergroupFullInfo(data json.RawMessage) (*UpdateSupergroupFullInfo, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateSupergroupFullInfo
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateServiceNotification(data json.RawMessage) (*UpdateServiceNotification, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateServiceNotification
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateFile(data json.RawMessage) (*UpdateFile, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateFile
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateFileGenerationStart(data json.RawMessage) (*UpdateFileGenerationStart, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateFileGenerationStart
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateFileGenerationStop(data json.RawMessage) (*UpdateFileGenerationStop, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateFileGenerationStop
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateCall(data json.RawMessage) (*UpdateCall, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateCall
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateUserPrivacySettingRules(data json.RawMessage) (*UpdateUserPrivacySettingRules, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateUserPrivacySettingRules
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateUnreadMessageCount(data json.RawMessage) (*UpdateUnreadMessageCount, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateUnreadMessageCount
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp UpdateUnreadChatCount
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp UpdateOption
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateInstalledStickerSets(data json.RawMessage) (*UpdateInstalledStickerSets, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateInstalledStickerSets
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateTrendingStickerSets(data json.RawMessage) (*UpdateTrendingStickerSets, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateTrendingStickerSets
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateRecentStickers(data json.RawMessage) (*UpdateRecentStickers, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateRecentStickers
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateFavoriteStickers(data json.RawMessage) (*UpdateFavoriteStickers, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateFavoriteStickers
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateSavedAnimations(data json.RawMessage) (*UpdateSavedAnimations, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateSavedAnimations
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
2018-09-05 21:45:29 +00:00
func UnmarshalUpdateLanguagePackStrings(data json.RawMessage) (*UpdateLanguagePackStrings, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateLanguagePackStrings
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp UpdateConnectionState
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +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) {
2018-10-23 12:38:10 +00:00
var resp UpdateTermsOfService
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-09-05 21:45:29 +00:00
}
2018-08-30 14:55:42 +00:00
func UnmarshalUpdateNewInlineQuery(data json.RawMessage) (*UpdateNewInlineQuery, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateNewInlineQuery
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewChosenInlineResult(data json.RawMessage) (*UpdateNewChosenInlineResult, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateNewChosenInlineResult
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewCallbackQuery(data json.RawMessage) (*UpdateNewCallbackQuery, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateNewCallbackQuery
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewInlineCallbackQuery(data json.RawMessage) (*UpdateNewInlineCallbackQuery, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateNewInlineCallbackQuery
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewShippingQuery(data json.RawMessage) (*UpdateNewShippingQuery, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateNewShippingQuery
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewPreCheckoutQuery(data json.RawMessage) (*UpdateNewPreCheckoutQuery, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateNewPreCheckoutQuery
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewCustomEvent(data json.RawMessage) (*UpdateNewCustomEvent, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateNewCustomEvent
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalUpdateNewCustomQuery(data json.RawMessage) (*UpdateNewCustomQuery, error) {
2018-10-23 12:38:10 +00:00
var resp UpdateNewCustomQuery
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestInt(data json.RawMessage) (*TestInt, error) {
2018-10-23 12:38:10 +00:00
var resp TestInt
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestString(data json.RawMessage) (*TestString, error) {
2018-10-23 12:38:10 +00:00
var resp TestString
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestBytes(data json.RawMessage) (*TestBytes, error) {
2018-10-23 12:38:10 +00:00
var resp TestBytes
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestVectorInt(data json.RawMessage) (*TestVectorInt, error) {
2018-10-23 12:38:10 +00:00
var resp TestVectorInt
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestVectorIntObject(data json.RawMessage) (*TestVectorIntObject, error) {
2018-10-23 12:38:10 +00:00
var resp TestVectorIntObject
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestVectorString(data json.RawMessage) (*TestVectorString, error) {
2018-10-23 12:38:10 +00:00
var resp TestVectorString
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalTestVectorStringObject(data json.RawMessage) (*TestVectorStringObject, error) {
2018-10-23 12:38:10 +00:00
var resp TestVectorStringObject
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &resp)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
return &resp, err
2018-08-30 14:55:42 +00:00
}
func UnmarshalType(data json.RawMessage) (Type, error) {
2018-10-23 12:38:10 +00:00
var meta meta
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
err := json.Unmarshal(data, &meta)
if err != nil {
return nil, err
}
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
switch meta.Type {
case TypeError:
return UnmarshalError(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeOk:
return UnmarshalOk(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTdlibParameters:
return UnmarshalTdlibParameters(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthenticationCodeTypeTelegramMessage:
return UnmarshalAuthenticationCodeTypeTelegramMessage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthenticationCodeTypeSms:
return UnmarshalAuthenticationCodeTypeSms(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthenticationCodeTypeCall:
return UnmarshalAuthenticationCodeTypeCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthenticationCodeTypeFlashCall:
return UnmarshalAuthenticationCodeTypeFlashCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthenticationCodeInfo:
return UnmarshalAuthenticationCodeInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeEmailAddressAuthenticationCodeInfo:
return UnmarshalEmailAddressAuthenticationCodeInfo(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntity:
return UnmarshalTextEntity(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntities:
return UnmarshalTextEntities(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeFormattedText:
return UnmarshalFormattedText(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeTermsOfService:
return UnmarshalTermsOfService(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateWaitTdlibParameters:
return UnmarshalAuthorizationStateWaitTdlibParameters(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateWaitEncryptionKey:
return UnmarshalAuthorizationStateWaitEncryptionKey(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateWaitPhoneNumber:
return UnmarshalAuthorizationStateWaitPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateWaitCode:
return UnmarshalAuthorizationStateWaitCode(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateWaitPassword:
return UnmarshalAuthorizationStateWaitPassword(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateReady:
return UnmarshalAuthorizationStateReady(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateLoggingOut:
return UnmarshalAuthorizationStateLoggingOut(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateClosing:
return UnmarshalAuthorizationStateClosing(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAuthorizationStateClosed:
return UnmarshalAuthorizationStateClosed(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePasswordState:
return UnmarshalPasswordState(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRecoveryEmailAddress:
return UnmarshalRecoveryEmailAddress(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTemporaryPasswordState:
return UnmarshalTemporaryPasswordState(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeLocalFile:
return UnmarshalLocalFile(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRemoteFile:
return UnmarshalRemoteFile(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFile:
return UnmarshalFile(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputFileId:
return UnmarshalInputFileId(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputFileRemote:
return UnmarshalInputFileRemote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputFileLocal:
return UnmarshalInputFileLocal(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputFileGenerated:
return UnmarshalInputFileGenerated(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePhotoSize:
return UnmarshalPhotoSize(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMaskPointForehead:
return UnmarshalMaskPointForehead(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMaskPointEyes:
return UnmarshalMaskPointEyes(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMaskPointMouth:
return UnmarshalMaskPointMouth(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMaskPointChin:
return UnmarshalMaskPointChin(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMaskPosition:
return UnmarshalMaskPosition(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAnimation:
return UnmarshalAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAudio:
return UnmarshalAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDocument:
return UnmarshalDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePhoto:
return UnmarshalPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSticker:
return UnmarshalSticker(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeVideo:
return UnmarshalVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeVideoNote:
return UnmarshalVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeVoiceNote:
return UnmarshalVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeContact:
return UnmarshalContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeLocation:
return UnmarshalLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeVenue:
return UnmarshalVenue(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeGame:
return UnmarshalGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeProfilePhoto:
return UnmarshalProfilePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatPhoto:
return UnmarshalChatPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeLinkStateNone:
return UnmarshalLinkStateNone(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeLinkStateKnowsPhoneNumber:
return UnmarshalLinkStateKnowsPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeLinkStateIsContact:
return UnmarshalLinkStateIsContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserTypeRegular:
return UnmarshalUserTypeRegular(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserTypeDeleted:
return UnmarshalUserTypeDeleted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserTypeBot:
return UnmarshalUserTypeBot(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserTypeUnknown:
return UnmarshalUserTypeUnknown(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeBotCommand:
return UnmarshalBotCommand(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeBotInfo:
return UnmarshalBotInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUser:
return UnmarshalUser(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserFullInfo:
return UnmarshalUserFullInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserProfilePhotos:
return UnmarshalUserProfilePhotos(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUsers:
return UnmarshalUsers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMemberStatusCreator:
return UnmarshalChatMemberStatusCreator(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMemberStatusAdministrator:
return UnmarshalChatMemberStatusAdministrator(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMemberStatusMember:
return UnmarshalChatMemberStatusMember(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMemberStatusRestricted:
return UnmarshalChatMemberStatusRestricted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMemberStatusLeft:
return UnmarshalChatMemberStatusLeft(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMemberStatusBanned:
return UnmarshalChatMemberStatusBanned(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMember:
return UnmarshalChatMember(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMembers:
return UnmarshalChatMembers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMembersFilterAdministrators:
return UnmarshalChatMembersFilterAdministrators(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMembersFilterMembers:
return UnmarshalChatMembersFilterMembers(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMembersFilterRestricted:
return UnmarshalChatMembersFilterRestricted(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMembersFilterBanned:
return UnmarshalChatMembersFilterBanned(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatMembersFilterBots:
return UnmarshalChatMembersFilterBots(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroupMembersFilterRecent:
return UnmarshalSupergroupMembersFilterRecent(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroupMembersFilterAdministrators:
return UnmarshalSupergroupMembersFilterAdministrators(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroupMembersFilterSearch:
return UnmarshalSupergroupMembersFilterSearch(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroupMembersFilterRestricted:
return UnmarshalSupergroupMembersFilterRestricted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroupMembersFilterBanned:
return UnmarshalSupergroupMembersFilterBanned(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroupMembersFilterBots:
return UnmarshalSupergroupMembersFilterBots(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeBasicGroup:
return UnmarshalBasicGroup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeBasicGroupFullInfo:
return UnmarshalBasicGroupFullInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroup:
return UnmarshalSupergroup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSupergroupFullInfo:
return UnmarshalSupergroupFullInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSecretChatStatePending:
return UnmarshalSecretChatStatePending(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSecretChatStateReady:
return UnmarshalSecretChatStateReady(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSecretChatStateClosed:
return UnmarshalSecretChatStateClosed(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSecretChat:
return UnmarshalSecretChat(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageForwardedFromUser:
return UnmarshalMessageForwardedFromUser(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageForwardedPost:
return UnmarshalMessageForwardedPost(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageSendingStatePending:
return UnmarshalMessageSendingStatePending(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageSendingStateFailed:
return UnmarshalMessageSendingStateFailed(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessage:
return UnmarshalMessage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessages:
return UnmarshalMessages(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFoundMessages:
return UnmarshalFoundMessages(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNotificationSettingsScopePrivateChats:
return UnmarshalNotificationSettingsScopePrivateChats(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNotificationSettingsScopeGroupChats:
return UnmarshalNotificationSettingsScopeGroupChats(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatNotificationSettings:
return UnmarshalChatNotificationSettings(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeScopeNotificationSettings:
return UnmarshalScopeNotificationSettings(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDraftMessage:
return UnmarshalDraftMessage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatTypePrivate:
return UnmarshalChatTypePrivate(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatTypeBasicGroup:
return UnmarshalChatTypeBasicGroup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatTypeSupergroup:
return UnmarshalChatTypeSupergroup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatTypeSecret:
return UnmarshalChatTypeSecret(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChat:
return UnmarshalChat(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChats:
return UnmarshalChats(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatInviteLink:
return UnmarshalChatInviteLink(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatInviteLinkInfo:
return UnmarshalChatInviteLinkInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeKeyboardButtonTypeText:
return UnmarshalKeyboardButtonTypeText(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeKeyboardButtonTypeRequestPhoneNumber:
return UnmarshalKeyboardButtonTypeRequestPhoneNumber(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeKeyboardButtonTypeRequestLocation:
return UnmarshalKeyboardButtonTypeRequestLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeKeyboardButton:
return UnmarshalKeyboardButton(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineKeyboardButtonTypeUrl:
return UnmarshalInlineKeyboardButtonTypeUrl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineKeyboardButtonTypeCallback:
return UnmarshalInlineKeyboardButtonTypeCallback(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineKeyboardButtonTypeCallbackGame:
return UnmarshalInlineKeyboardButtonTypeCallbackGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineKeyboardButtonTypeSwitchInline:
return UnmarshalInlineKeyboardButtonTypeSwitchInline(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineKeyboardButtonTypeBuy:
return UnmarshalInlineKeyboardButtonTypeBuy(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineKeyboardButton:
return UnmarshalInlineKeyboardButton(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeReplyMarkupRemoveKeyboard:
return UnmarshalReplyMarkupRemoveKeyboard(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeReplyMarkupForceReply:
return UnmarshalReplyMarkupForceReply(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeReplyMarkupShowKeyboard:
return UnmarshalReplyMarkupShowKeyboard(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeReplyMarkupInlineKeyboard:
return UnmarshalReplyMarkupInlineKeyboard(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextPlain:
return UnmarshalRichTextPlain(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextBold:
return UnmarshalRichTextBold(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextItalic:
return UnmarshalRichTextItalic(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextUnderline:
return UnmarshalRichTextUnderline(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextStrikethrough:
return UnmarshalRichTextStrikethrough(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextFixed:
return UnmarshalRichTextFixed(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextUrl:
return UnmarshalRichTextUrl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTextEmailAddress:
return UnmarshalRichTextEmailAddress(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeRichTexts:
return UnmarshalRichTexts(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockTitle:
return UnmarshalPageBlockTitle(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockSubtitle:
return UnmarshalPageBlockSubtitle(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockAuthorDate:
return UnmarshalPageBlockAuthorDate(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockHeader:
return UnmarshalPageBlockHeader(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockSubheader:
return UnmarshalPageBlockSubheader(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockParagraph:
return UnmarshalPageBlockParagraph(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockPreformatted:
return UnmarshalPageBlockPreformatted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockFooter:
return UnmarshalPageBlockFooter(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockDivider:
return UnmarshalPageBlockDivider(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockAnchor:
return UnmarshalPageBlockAnchor(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockList:
return UnmarshalPageBlockList(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockBlockQuote:
return UnmarshalPageBlockBlockQuote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockPullQuote:
return UnmarshalPageBlockPullQuote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockAnimation:
return UnmarshalPageBlockAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockAudio:
return UnmarshalPageBlockAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockPhoto:
return UnmarshalPageBlockPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockVideo:
return UnmarshalPageBlockVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockCover:
return UnmarshalPageBlockCover(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockEmbedded:
return UnmarshalPageBlockEmbedded(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockEmbeddedPost:
return UnmarshalPageBlockEmbeddedPost(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockCollage:
return UnmarshalPageBlockCollage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockSlideshow:
return UnmarshalPageBlockSlideshow(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePageBlockChatLink:
return UnmarshalPageBlockChatLink(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeWebPageInstantView:
return UnmarshalWebPageInstantView(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeWebPage:
return UnmarshalWebPage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAddress:
return UnmarshalAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeLabeledPricePart:
return UnmarshalLabeledPricePart(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInvoice:
return UnmarshalInvoice(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeOrderInfo:
return UnmarshalOrderInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeShippingOption:
return UnmarshalShippingOption(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSavedCredentials:
return UnmarshalSavedCredentials(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputCredentialsSaved:
return UnmarshalInputCredentialsSaved(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputCredentialsNew:
return UnmarshalInputCredentialsNew(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputCredentialsAndroidPay:
return UnmarshalInputCredentialsAndroidPay(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputCredentialsApplePay:
return UnmarshalInputCredentialsApplePay(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePaymentsProviderStripe:
return UnmarshalPaymentsProviderStripe(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePaymentForm:
return UnmarshalPaymentForm(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeValidatedOrderInfo:
return UnmarshalValidatedOrderInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePaymentResult:
return UnmarshalPaymentResult(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePaymentReceipt:
return UnmarshalPaymentReceipt(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDatedFile:
return UnmarshalDatedFile(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypePersonalDetails:
return UnmarshalPassportElementTypePersonalDetails(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypePassport:
return UnmarshalPassportElementTypePassport(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeDriverLicense:
return UnmarshalPassportElementTypeDriverLicense(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeIdentityCard:
return UnmarshalPassportElementTypeIdentityCard(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeInternalPassport:
return UnmarshalPassportElementTypeInternalPassport(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeAddress:
return UnmarshalPassportElementTypeAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeUtilityBill:
return UnmarshalPassportElementTypeUtilityBill(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeBankStatement:
return UnmarshalPassportElementTypeBankStatement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeRentalAgreement:
return UnmarshalPassportElementTypeRentalAgreement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypePassportRegistration:
return UnmarshalPassportElementTypePassportRegistration(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeTemporaryRegistration:
return UnmarshalPassportElementTypeTemporaryRegistration(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypePhoneNumber:
return UnmarshalPassportElementTypePhoneNumber(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTypeEmailAddress:
return UnmarshalPassportElementTypeEmailAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeDate:
return UnmarshalDate(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePersonalDetails:
return UnmarshalPersonalDetails(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeIdentityDocument:
return UnmarshalIdentityDocument(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputIdentityDocument:
return UnmarshalInputIdentityDocument(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePersonalDocument:
return UnmarshalPersonalDocument(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPersonalDocument:
return UnmarshalInputPersonalDocument(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementPersonalDetails:
return UnmarshalPassportElementPersonalDetails(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementPassport:
return UnmarshalPassportElementPassport(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementDriverLicense:
return UnmarshalPassportElementDriverLicense(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementIdentityCard:
return UnmarshalPassportElementIdentityCard(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementInternalPassport:
return UnmarshalPassportElementInternalPassport(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementAddress:
return UnmarshalPassportElementAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementUtilityBill:
return UnmarshalPassportElementUtilityBill(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementBankStatement:
return UnmarshalPassportElementBankStatement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementRentalAgreement:
return UnmarshalPassportElementRentalAgreement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementPassportRegistration:
return UnmarshalPassportElementPassportRegistration(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementTemporaryRegistration:
return UnmarshalPassportElementTemporaryRegistration(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementPhoneNumber:
return UnmarshalPassportElementPhoneNumber(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementEmailAddress:
return UnmarshalPassportElementEmailAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementPersonalDetails:
return UnmarshalInputPassportElementPersonalDetails(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementPassport:
return UnmarshalInputPassportElementPassport(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementDriverLicense:
return UnmarshalInputPassportElementDriverLicense(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementIdentityCard:
return UnmarshalInputPassportElementIdentityCard(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementInternalPassport:
return UnmarshalInputPassportElementInternalPassport(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementAddress:
return UnmarshalInputPassportElementAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementUtilityBill:
return UnmarshalInputPassportElementUtilityBill(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementBankStatement:
return UnmarshalInputPassportElementBankStatement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementRentalAgreement:
return UnmarshalInputPassportElementRentalAgreement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementPassportRegistration:
return UnmarshalInputPassportElementPassportRegistration(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementTemporaryRegistration:
return UnmarshalInputPassportElementTemporaryRegistration(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementPhoneNumber:
return UnmarshalInputPassportElementPhoneNumber(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementEmailAddress:
return UnmarshalInputPassportElementEmailAddress(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElements:
return UnmarshalPassportElements(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceUnspecified:
return UnmarshalPassportElementErrorSourceUnspecified(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceDataField:
return UnmarshalPassportElementErrorSourceDataField(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceFrontSide:
return UnmarshalPassportElementErrorSourceFrontSide(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceReverseSide:
return UnmarshalPassportElementErrorSourceReverseSide(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceSelfie:
return UnmarshalPassportElementErrorSourceSelfie(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceTranslationFile:
return UnmarshalPassportElementErrorSourceTranslationFile(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceTranslationFiles:
return UnmarshalPassportElementErrorSourceTranslationFiles(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceFile:
return UnmarshalPassportElementErrorSourceFile(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementErrorSourceFiles:
return UnmarshalPassportElementErrorSourceFiles(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportElementError:
return UnmarshalPassportElementError(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportSuitableElement:
return UnmarshalPassportSuitableElement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportRequiredElement:
return UnmarshalPassportRequiredElement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypePassportAuthorizationForm:
return UnmarshalPassportAuthorizationForm(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeEncryptedCredentials:
return UnmarshalEncryptedCredentials(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeEncryptedPassportElement:
return UnmarshalEncryptedPassportElement(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceUnspecified:
return UnmarshalInputPassportElementErrorSourceUnspecified(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceDataField:
return UnmarshalInputPassportElementErrorSourceDataField(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceFrontSide:
return UnmarshalInputPassportElementErrorSourceFrontSide(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceReverseSide:
return UnmarshalInputPassportElementErrorSourceReverseSide(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceSelfie:
return UnmarshalInputPassportElementErrorSourceSelfie(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceTranslationFile:
return UnmarshalInputPassportElementErrorSourceTranslationFile(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceTranslationFiles:
return UnmarshalInputPassportElementErrorSourceTranslationFiles(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceFile:
return UnmarshalInputPassportElementErrorSourceFile(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementErrorSourceFiles:
return UnmarshalInputPassportElementErrorSourceFiles(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputPassportElementError:
return UnmarshalInputPassportElementError(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageText:
return UnmarshalMessageText(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageAnimation:
return UnmarshalMessageAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageAudio:
return UnmarshalMessageAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageDocument:
return UnmarshalMessageDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessagePhoto:
return UnmarshalMessagePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageExpiredPhoto:
return UnmarshalMessageExpiredPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageSticker:
return UnmarshalMessageSticker(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageVideo:
return UnmarshalMessageVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageExpiredVideo:
return UnmarshalMessageExpiredVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageVideoNote:
return UnmarshalMessageVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageVoiceNote:
return UnmarshalMessageVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageLocation:
return UnmarshalMessageLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageVenue:
return UnmarshalMessageVenue(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageContact:
return UnmarshalMessageContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageGame:
return UnmarshalMessageGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageInvoice:
return UnmarshalMessageInvoice(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageCall:
return UnmarshalMessageCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageBasicGroupChatCreate:
return UnmarshalMessageBasicGroupChatCreate(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageSupergroupChatCreate:
return UnmarshalMessageSupergroupChatCreate(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatChangeTitle:
return UnmarshalMessageChatChangeTitle(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatChangePhoto:
return UnmarshalMessageChatChangePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatDeletePhoto:
return UnmarshalMessageChatDeletePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatAddMembers:
return UnmarshalMessageChatAddMembers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatJoinByLink:
return UnmarshalMessageChatJoinByLink(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatDeleteMember:
return UnmarshalMessageChatDeleteMember(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatUpgradeTo:
return UnmarshalMessageChatUpgradeTo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatUpgradeFrom:
return UnmarshalMessageChatUpgradeFrom(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessagePinMessage:
return UnmarshalMessagePinMessage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageScreenshotTaken:
return UnmarshalMessageScreenshotTaken(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageChatSetTtl:
return UnmarshalMessageChatSetTtl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageCustomServiceAction:
return UnmarshalMessageCustomServiceAction(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageGameScore:
return UnmarshalMessageGameScore(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessagePaymentSuccessful:
return UnmarshalMessagePaymentSuccessful(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessagePaymentSuccessfulBot:
return UnmarshalMessagePaymentSuccessfulBot(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageContactRegistered:
return UnmarshalMessageContactRegistered(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageWebsiteConnected:
return UnmarshalMessageWebsiteConnected(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessagePassportDataSent:
return UnmarshalMessagePassportDataSent(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessagePassportDataReceived:
return UnmarshalMessagePassportDataReceived(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeMessageUnsupported:
return UnmarshalMessageUnsupported(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeMention:
return UnmarshalTextEntityTypeMention(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeHashtag:
return UnmarshalTextEntityTypeHashtag(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeCashtag:
return UnmarshalTextEntityTypeCashtag(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeBotCommand:
return UnmarshalTextEntityTypeBotCommand(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeUrl:
return UnmarshalTextEntityTypeUrl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeEmailAddress:
return UnmarshalTextEntityTypeEmailAddress(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeBold:
return UnmarshalTextEntityTypeBold(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeItalic:
return UnmarshalTextEntityTypeItalic(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeCode:
return UnmarshalTextEntityTypeCode(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypePre:
return UnmarshalTextEntityTypePre(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypePreCode:
return UnmarshalTextEntityTypePreCode(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeTextUrl:
return UnmarshalTextEntityTypeTextUrl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypeMentionName:
return UnmarshalTextEntityTypeMentionName(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextEntityTypePhoneNumber:
return UnmarshalTextEntityTypePhoneNumber(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputThumbnail:
return UnmarshalInputThumbnail(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageText:
return UnmarshalInputMessageText(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageAnimation:
return UnmarshalInputMessageAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageAudio:
return UnmarshalInputMessageAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageDocument:
return UnmarshalInputMessageDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessagePhoto:
return UnmarshalInputMessagePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageSticker:
return UnmarshalInputMessageSticker(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageVideo:
return UnmarshalInputMessageVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageVideoNote:
return UnmarshalInputMessageVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageVoiceNote:
return UnmarshalInputMessageVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageLocation:
return UnmarshalInputMessageLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageVenue:
return UnmarshalInputMessageVenue(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageContact:
return UnmarshalInputMessageContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageGame:
return UnmarshalInputMessageGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageInvoice:
return UnmarshalInputMessageInvoice(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputMessageForwarded:
return UnmarshalInputMessageForwarded(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterEmpty:
return UnmarshalSearchMessagesFilterEmpty(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterAnimation:
return UnmarshalSearchMessagesFilterAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterAudio:
return UnmarshalSearchMessagesFilterAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterDocument:
return UnmarshalSearchMessagesFilterDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterPhoto:
return UnmarshalSearchMessagesFilterPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterVideo:
return UnmarshalSearchMessagesFilterVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterVoiceNote:
return UnmarshalSearchMessagesFilterVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterPhotoAndVideo:
return UnmarshalSearchMessagesFilterPhotoAndVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterUrl:
return UnmarshalSearchMessagesFilterUrl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterChatPhoto:
return UnmarshalSearchMessagesFilterChatPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterCall:
return UnmarshalSearchMessagesFilterCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterMissedCall:
return UnmarshalSearchMessagesFilterMissedCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterVideoNote:
return UnmarshalSearchMessagesFilterVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterVoiceAndVideoNote:
return UnmarshalSearchMessagesFilterVoiceAndVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterMention:
return UnmarshalSearchMessagesFilterMention(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSearchMessagesFilterUnreadMention:
return UnmarshalSearchMessagesFilterUnreadMention(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionTyping:
return UnmarshalChatActionTyping(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionRecordingVideo:
return UnmarshalChatActionRecordingVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionUploadingVideo:
return UnmarshalChatActionUploadingVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionRecordingVoiceNote:
return UnmarshalChatActionRecordingVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionUploadingVoiceNote:
return UnmarshalChatActionUploadingVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionUploadingPhoto:
return UnmarshalChatActionUploadingPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionUploadingDocument:
return UnmarshalChatActionUploadingDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionChoosingLocation:
return UnmarshalChatActionChoosingLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionChoosingContact:
return UnmarshalChatActionChoosingContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionStartPlayingGame:
return UnmarshalChatActionStartPlayingGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionRecordingVideoNote:
return UnmarshalChatActionRecordingVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionUploadingVideoNote:
return UnmarshalChatActionUploadingVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatActionCancel:
return UnmarshalChatActionCancel(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserStatusEmpty:
return UnmarshalUserStatusEmpty(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserStatusOnline:
return UnmarshalUserStatusOnline(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserStatusOffline:
return UnmarshalUserStatusOffline(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserStatusRecently:
return UnmarshalUserStatusRecently(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserStatusLastWeek:
return UnmarshalUserStatusLastWeek(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserStatusLastMonth:
return UnmarshalUserStatusLastMonth(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeStickers:
return UnmarshalStickers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeStickerEmojis:
return UnmarshalStickerEmojis(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeStickerSet:
return UnmarshalStickerSet(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeStickerSetInfo:
return UnmarshalStickerSetInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeStickerSets:
return UnmarshalStickerSets(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallDiscardReasonEmpty:
return UnmarshalCallDiscardReasonEmpty(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallDiscardReasonMissed:
return UnmarshalCallDiscardReasonMissed(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallDiscardReasonDeclined:
return UnmarshalCallDiscardReasonDeclined(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallDiscardReasonDisconnected:
return UnmarshalCallDiscardReasonDisconnected(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallDiscardReasonHungUp:
return UnmarshalCallDiscardReasonHungUp(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallProtocol:
return UnmarshalCallProtocol(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallConnection:
return UnmarshalCallConnection(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallId:
return UnmarshalCallId(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallStatePending:
return UnmarshalCallStatePending(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallStateExchangingKeys:
return UnmarshalCallStateExchangingKeys(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallStateReady:
return UnmarshalCallStateReady(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallStateHangingUp:
return UnmarshalCallStateHangingUp(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallStateDiscarded:
return UnmarshalCallStateDiscarded(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallStateError:
return UnmarshalCallStateError(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCall:
return UnmarshalCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAnimations:
return UnmarshalAnimations(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeImportedContacts:
return UnmarshalImportedContacts(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultAnimatedGif:
return UnmarshalInputInlineQueryResultAnimatedGif(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultAnimatedMpeg4:
return UnmarshalInputInlineQueryResultAnimatedMpeg4(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultArticle:
return UnmarshalInputInlineQueryResultArticle(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultAudio:
return UnmarshalInputInlineQueryResultAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultContact:
return UnmarshalInputInlineQueryResultContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultDocument:
return UnmarshalInputInlineQueryResultDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultGame:
return UnmarshalInputInlineQueryResultGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultLocation:
return UnmarshalInputInlineQueryResultLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultPhoto:
return UnmarshalInputInlineQueryResultPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultSticker:
return UnmarshalInputInlineQueryResultSticker(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultVenue:
return UnmarshalInputInlineQueryResultVenue(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultVideo:
return UnmarshalInputInlineQueryResultVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputInlineQueryResultVoiceNote:
return UnmarshalInputInlineQueryResultVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultArticle:
return UnmarshalInlineQueryResultArticle(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultContact:
return UnmarshalInlineQueryResultContact(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultLocation:
return UnmarshalInlineQueryResultLocation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultVenue:
return UnmarshalInlineQueryResultVenue(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultGame:
return UnmarshalInlineQueryResultGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultAnimation:
return UnmarshalInlineQueryResultAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultAudio:
return UnmarshalInlineQueryResultAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultDocument:
return UnmarshalInlineQueryResultDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultPhoto:
return UnmarshalInlineQueryResultPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultSticker:
return UnmarshalInlineQueryResultSticker(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultVideo:
return UnmarshalInlineQueryResultVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResultVoiceNote:
return UnmarshalInlineQueryResultVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInlineQueryResults:
return UnmarshalInlineQueryResults(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallbackQueryPayloadData:
return UnmarshalCallbackQueryPayloadData(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallbackQueryPayloadGame:
return UnmarshalCallbackQueryPayloadGame(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCallbackQueryAnswer:
return UnmarshalCallbackQueryAnswer(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCustomRequestResult:
return UnmarshalCustomRequestResult(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeGameHighScore:
return UnmarshalGameHighScore(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeGameHighScores:
return UnmarshalGameHighScores(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMessageEdited:
return UnmarshalChatEventMessageEdited(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMessageDeleted:
return UnmarshalChatEventMessageDeleted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMessagePinned:
return UnmarshalChatEventMessagePinned(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMessageUnpinned:
return UnmarshalChatEventMessageUnpinned(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMemberJoined:
return UnmarshalChatEventMemberJoined(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMemberLeft:
return UnmarshalChatEventMemberLeft(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMemberInvited:
return UnmarshalChatEventMemberInvited(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMemberPromoted:
return UnmarshalChatEventMemberPromoted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventMemberRestricted:
return UnmarshalChatEventMemberRestricted(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventTitleChanged:
return UnmarshalChatEventTitleChanged(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventDescriptionChanged:
return UnmarshalChatEventDescriptionChanged(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventUsernameChanged:
return UnmarshalChatEventUsernameChanged(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventPhotoChanged:
return UnmarshalChatEventPhotoChanged(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventInvitesToggled:
return UnmarshalChatEventInvitesToggled(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventSignMessagesToggled:
return UnmarshalChatEventSignMessagesToggled(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventStickerSetChanged:
return UnmarshalChatEventStickerSetChanged(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventIsAllHistoryAvailableToggled:
return UnmarshalChatEventIsAllHistoryAvailableToggled(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEvent:
return UnmarshalChatEvent(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEvents:
return UnmarshalChatEvents(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatEventLogFilters:
return UnmarshalChatEventLogFilters(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeLanguagePackStringValueOrdinary:
return UnmarshalLanguagePackStringValueOrdinary(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeLanguagePackStringValuePluralized:
return UnmarshalLanguagePackStringValuePluralized(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeLanguagePackStringValueDeleted:
return UnmarshalLanguagePackStringValueDeleted(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeLanguagePackString:
return UnmarshalLanguagePackString(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeLanguagePackStrings:
return UnmarshalLanguagePackStrings(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeLanguagePackInfo:
return UnmarshalLanguagePackInfo(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeLocalizationTargetInfo:
return UnmarshalLocalizationTargetInfo(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenGoogleCloudMessaging:
return UnmarshalDeviceTokenGoogleCloudMessaging(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenApplePush:
return UnmarshalDeviceTokenApplePush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenApplePushVoIP:
return UnmarshalDeviceTokenApplePushVoIP(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenWindowsPush:
return UnmarshalDeviceTokenWindowsPush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenMicrosoftPush:
return UnmarshalDeviceTokenMicrosoftPush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenMicrosoftPushVoIP:
return UnmarshalDeviceTokenMicrosoftPushVoIP(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenWebPush:
return UnmarshalDeviceTokenWebPush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenSimplePush:
return UnmarshalDeviceTokenSimplePush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenUbuntuPush:
return UnmarshalDeviceTokenUbuntuPush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenBlackBerryPush:
return UnmarshalDeviceTokenBlackBerryPush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeviceTokenTizenPush:
return UnmarshalDeviceTokenTizenPush(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeWallpaper:
return UnmarshalWallpaper(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeWallpapers:
return UnmarshalWallpapers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeHashtags:
return UnmarshalHashtags(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCheckChatUsernameResultOk:
return UnmarshalCheckChatUsernameResultOk(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCheckChatUsernameResultUsernameInvalid:
return UnmarshalCheckChatUsernameResultUsernameInvalid(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCheckChatUsernameResultUsernameOccupied:
return UnmarshalCheckChatUsernameResultUsernameOccupied(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCheckChatUsernameResultPublicChatsTooMuch:
return UnmarshalCheckChatUsernameResultPublicChatsTooMuch(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCheckChatUsernameResultPublicGroupsUnavailable:
return UnmarshalCheckChatUsernameResultPublicGroupsUnavailable(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeOptionValueBoolean:
return UnmarshalOptionValueBoolean(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeOptionValueEmpty:
return UnmarshalOptionValueEmpty(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeOptionValueInteger:
return UnmarshalOptionValueInteger(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeOptionValueString:
return UnmarshalOptionValueString(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingRuleAllowAll:
return UnmarshalUserPrivacySettingRuleAllowAll(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingRuleAllowContacts:
return UnmarshalUserPrivacySettingRuleAllowContacts(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingRuleAllowUsers:
return UnmarshalUserPrivacySettingRuleAllowUsers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingRuleRestrictAll:
return UnmarshalUserPrivacySettingRuleRestrictAll(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingRuleRestrictContacts:
return UnmarshalUserPrivacySettingRuleRestrictContacts(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingRuleRestrictUsers:
return UnmarshalUserPrivacySettingRuleRestrictUsers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingRules:
return UnmarshalUserPrivacySettingRules(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingShowStatus:
return UnmarshalUserPrivacySettingShowStatus(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingAllowChatInvites:
return UnmarshalUserPrivacySettingAllowChatInvites(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUserPrivacySettingAllowCalls:
return UnmarshalUserPrivacySettingAllowCalls(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeAccountTtl:
return UnmarshalAccountTtl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSession:
return UnmarshalSession(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSessions:
return UnmarshalSessions(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeConnectedWebsite:
return UnmarshalConnectedWebsite(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeConnectedWebsites:
return UnmarshalConnectedWebsites(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatReportSpamState:
return UnmarshalChatReportSpamState(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatReportReasonSpam:
return UnmarshalChatReportReasonSpam(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatReportReasonViolence:
return UnmarshalChatReportReasonViolence(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatReportReasonPornography:
return UnmarshalChatReportReasonPornography(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatReportReasonCopyright:
return UnmarshalChatReportReasonCopyright(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeChatReportReasonCustom:
return UnmarshalChatReportReasonCustom(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypePublicMessageLink:
return UnmarshalPublicMessageLink(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeNone:
return UnmarshalFileTypeNone(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeAnimation:
return UnmarshalFileTypeAnimation(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeAudio:
return UnmarshalFileTypeAudio(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeDocument:
return UnmarshalFileTypeDocument(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypePhoto:
return UnmarshalFileTypePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeProfilePhoto:
return UnmarshalFileTypeProfilePhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeSecret:
return UnmarshalFileTypeSecret(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeSecretThumbnail:
return UnmarshalFileTypeSecretThumbnail(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeSecure:
return UnmarshalFileTypeSecure(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeSticker:
return UnmarshalFileTypeSticker(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeThumbnail:
return UnmarshalFileTypeThumbnail(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeUnknown:
return UnmarshalFileTypeUnknown(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeVideo:
return UnmarshalFileTypeVideo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeVideoNote:
return UnmarshalFileTypeVideoNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeVoiceNote:
return UnmarshalFileTypeVoiceNote(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeFileTypeWallpaper:
return UnmarshalFileTypeWallpaper(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeStorageStatisticsByFileType:
return UnmarshalStorageStatisticsByFileType(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeStorageStatisticsByChat:
return UnmarshalStorageStatisticsByChat(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeStorageStatistics:
return UnmarshalStorageStatistics(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeStorageStatisticsFast:
return UnmarshalStorageStatisticsFast(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkTypeNone:
return UnmarshalNetworkTypeNone(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkTypeMobile:
return UnmarshalNetworkTypeMobile(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkTypeMobileRoaming:
return UnmarshalNetworkTypeMobileRoaming(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkTypeWiFi:
return UnmarshalNetworkTypeWiFi(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkTypeOther:
return UnmarshalNetworkTypeOther(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkStatisticsEntryFile:
return UnmarshalNetworkStatisticsEntryFile(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkStatisticsEntryCall:
return UnmarshalNetworkStatisticsEntryCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeNetworkStatistics:
return UnmarshalNetworkStatistics(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeConnectionStateWaitingForNetwork:
return UnmarshalConnectionStateWaitingForNetwork(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeConnectionStateConnectingToProxy:
return UnmarshalConnectionStateConnectingToProxy(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeConnectionStateConnecting:
return UnmarshalConnectionStateConnecting(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeConnectionStateUpdating:
return UnmarshalConnectionStateUpdating(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeConnectionStateReady:
return UnmarshalConnectionStateReady(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTopChatCategoryUsers:
return UnmarshalTopChatCategoryUsers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTopChatCategoryBots:
return UnmarshalTopChatCategoryBots(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTopChatCategoryGroups:
return UnmarshalTopChatCategoryGroups(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTopChatCategoryChannels:
return UnmarshalTopChatCategoryChannels(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTopChatCategoryInlineBots:
return UnmarshalTopChatCategoryInlineBots(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTopChatCategoryCalls:
return UnmarshalTopChatCategoryCalls(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTMeUrlTypeUser:
return UnmarshalTMeUrlTypeUser(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTMeUrlTypeSupergroup:
return UnmarshalTMeUrlTypeSupergroup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTMeUrlTypeChatInvite:
return UnmarshalTMeUrlTypeChatInvite(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTMeUrlTypeStickerSet:
return UnmarshalTMeUrlTypeStickerSet(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTMeUrl:
return UnmarshalTMeUrl(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTMeUrls:
return UnmarshalTMeUrls(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeCount:
return UnmarshalCount(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeText:
return UnmarshalText(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeSeconds:
return UnmarshalSeconds(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeDeepLinkInfo:
return UnmarshalDeepLinkInfo(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextParseModeMarkdown:
return UnmarshalTextParseModeMarkdown(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTextParseModeHTML:
return UnmarshalTextParseModeHTML(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeProxyTypeSocks5:
return UnmarshalProxyTypeSocks5(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeProxyTypeHttp:
return UnmarshalProxyTypeHttp(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeProxyTypeMtproto:
return UnmarshalProxyTypeMtproto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeProxy:
return UnmarshalProxy(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeProxies:
return UnmarshalProxies(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeInputSticker:
return UnmarshalInputSticker(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateAuthorizationState:
return UnmarshalUpdateAuthorizationState(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewMessage:
return UnmarshalUpdateNewMessage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageSendAcknowledged:
return UnmarshalUpdateMessageSendAcknowledged(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageSendSucceeded:
return UnmarshalUpdateMessageSendSucceeded(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageSendFailed:
return UnmarshalUpdateMessageSendFailed(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageContent:
return UnmarshalUpdateMessageContent(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageEdited:
return UnmarshalUpdateMessageEdited(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageViews:
return UnmarshalUpdateMessageViews(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageContentOpened:
return UnmarshalUpdateMessageContentOpened(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateMessageMentionRead:
return UnmarshalUpdateMessageMentionRead(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewChat:
return UnmarshalUpdateNewChat(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatTitle:
return UnmarshalUpdateChatTitle(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatPhoto:
return UnmarshalUpdateChatPhoto(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatLastMessage:
return UnmarshalUpdateChatLastMessage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatOrder:
return UnmarshalUpdateChatOrder(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatIsPinned:
return UnmarshalUpdateChatIsPinned(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatIsMarkedAsUnread:
return UnmarshalUpdateChatIsMarkedAsUnread(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatIsSponsored:
return UnmarshalUpdateChatIsSponsored(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatDefaultDisableNotification:
return UnmarshalUpdateChatDefaultDisableNotification(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatReadInbox:
return UnmarshalUpdateChatReadInbox(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatReadOutbox:
return UnmarshalUpdateChatReadOutbox(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatUnreadMentionCount:
return UnmarshalUpdateChatUnreadMentionCount(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatNotificationSettings:
return UnmarshalUpdateChatNotificationSettings(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateScopeNotificationSettings:
return UnmarshalUpdateScopeNotificationSettings(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatReplyMarkup:
return UnmarshalUpdateChatReplyMarkup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateChatDraftMessage:
return UnmarshalUpdateChatDraftMessage(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateDeleteMessages:
return UnmarshalUpdateDeleteMessages(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUserChatAction:
return UnmarshalUpdateUserChatAction(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUserStatus:
return UnmarshalUpdateUserStatus(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUser:
return UnmarshalUpdateUser(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateBasicGroup:
return UnmarshalUpdateBasicGroup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateSupergroup:
return UnmarshalUpdateSupergroup(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateSecretChat:
return UnmarshalUpdateSecretChat(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUserFullInfo:
return UnmarshalUpdateUserFullInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateBasicGroupFullInfo:
return UnmarshalUpdateBasicGroupFullInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateSupergroupFullInfo:
return UnmarshalUpdateSupergroupFullInfo(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateServiceNotification:
return UnmarshalUpdateServiceNotification(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateFile:
return UnmarshalUpdateFile(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateFileGenerationStart:
return UnmarshalUpdateFileGenerationStart(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateFileGenerationStop:
return UnmarshalUpdateFileGenerationStop(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateCall:
return UnmarshalUpdateCall(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUserPrivacySettingRules:
return UnmarshalUpdateUserPrivacySettingRules(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUnreadMessageCount:
return UnmarshalUpdateUnreadMessageCount(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateUnreadChatCount:
return UnmarshalUpdateUnreadChatCount(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateOption:
return UnmarshalUpdateOption(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateInstalledStickerSets:
return UnmarshalUpdateInstalledStickerSets(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateTrendingStickerSets:
return UnmarshalUpdateTrendingStickerSets(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateRecentStickers:
return UnmarshalUpdateRecentStickers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateFavoriteStickers:
return UnmarshalUpdateFavoriteStickers(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateSavedAnimations:
return UnmarshalUpdateSavedAnimations(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateLanguagePackStrings:
return UnmarshalUpdateLanguagePackStrings(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateConnectionState:
return UnmarshalUpdateConnectionState(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateTermsOfService:
return UnmarshalUpdateTermsOfService(data)
2018-09-05 21:45:29 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewInlineQuery:
return UnmarshalUpdateNewInlineQuery(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewChosenInlineResult:
return UnmarshalUpdateNewChosenInlineResult(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewCallbackQuery:
return UnmarshalUpdateNewCallbackQuery(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewInlineCallbackQuery:
return UnmarshalUpdateNewInlineCallbackQuery(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewShippingQuery:
return UnmarshalUpdateNewShippingQuery(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewPreCheckoutQuery:
return UnmarshalUpdateNewPreCheckoutQuery(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewCustomEvent:
return UnmarshalUpdateNewCustomEvent(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeUpdateNewCustomQuery:
return UnmarshalUpdateNewCustomQuery(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTestInt:
return UnmarshalTestInt(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTestString:
return UnmarshalTestString(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTestBytes:
return UnmarshalTestBytes(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTestVectorInt:
return UnmarshalTestVectorInt(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTestVectorIntObject:
return UnmarshalTestVectorIntObject(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTestVectorString:
return UnmarshalTestVectorString(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
case TypeTestVectorStringObject:
return UnmarshalTestVectorStringObject(data)
2018-08-30 14:55:42 +00:00
2018-10-23 12:38:10 +00:00
default:
return nil, fmt.Errorf("Error unmarshaling. Unknown type: " + meta.Type)
}
2018-08-30 14:55:42 +00:00
}