tg

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 3 Imported by: 472

Documentation ¶

Overview ¶

Package tg contains generated types from MTProto Telegram API.

Index ¶

Constants ¶

View Source
const AccountAcceptAuthorizationRequestTypeID = 0xe7027c94

AccountAcceptAuthorizationRequestTypeID is TL type id of AccountAcceptAuthorizationRequest.

View Source
const AccountAuthorizationFormTypeID = 0xad2e1cd8

AccountAuthorizationFormTypeID is TL type id of AccountAuthorizationForm.

View Source
const AccountAuthorizationsTypeID = 0x1250abde

AccountAuthorizationsTypeID is TL type id of AccountAuthorizations.

View Source
const AccountAutoDownloadSettingsTypeID = 0x63cacf26

AccountAutoDownloadSettingsTypeID is TL type id of AccountAutoDownloadSettings.

View Source
const AccountCancelPasswordEmailRequestTypeID = 0xc1cbd5b6

AccountCancelPasswordEmailRequestTypeID is TL type id of AccountCancelPasswordEmailRequest.

View Source
const AccountChangePhoneRequestTypeID = 0x70c32edb

AccountChangePhoneRequestTypeID is TL type id of AccountChangePhoneRequest.

View Source
const AccountCheckUsernameRequestTypeID = 0x2714d86c

AccountCheckUsernameRequestTypeID is TL type id of AccountCheckUsernameRequest.

View Source
const AccountConfirmPasswordEmailRequestTypeID = 0x8fdf1920

AccountConfirmPasswordEmailRequestTypeID is TL type id of AccountConfirmPasswordEmailRequest.

View Source
const AccountConfirmPhoneRequestTypeID = 0x5f2178c3

AccountConfirmPhoneRequestTypeID is TL type id of AccountConfirmPhoneRequest.

View Source
const AccountContentSettingsTypeID = 0x57e28221

AccountContentSettingsTypeID is TL type id of AccountContentSettings.

View Source
const AccountCreateThemeRequestTypeID = 0x8432c21f

AccountCreateThemeRequestTypeID is TL type id of AccountCreateThemeRequest.

View Source
const AccountDaysTTLTypeID = 0xb8d0afdf

AccountDaysTTLTypeID is TL type id of AccountDaysTTL.

View Source
const AccountDeleteAccountRequestTypeID = 0x418d4e0b

AccountDeleteAccountRequestTypeID is TL type id of AccountDeleteAccountRequest.

View Source
const AccountDeleteSecureValueRequestTypeID = 0xb880bc4b

AccountDeleteSecureValueRequestTypeID is TL type id of AccountDeleteSecureValueRequest.

View Source
const AccountFinishTakeoutSessionRequestTypeID = 0x1d2652ee

AccountFinishTakeoutSessionRequestTypeID is TL type id of AccountFinishTakeoutSessionRequest.

View Source
const AccountGetAccountTTLRequestTypeID = 0x8fc711d

AccountGetAccountTTLRequestTypeID is TL type id of AccountGetAccountTTLRequest.

View Source
const AccountGetAllSecureValuesRequestTypeID = 0xb288bc7d

AccountGetAllSecureValuesRequestTypeID is TL type id of AccountGetAllSecureValuesRequest.

View Source
const AccountGetAuthorizationFormRequestTypeID = 0xb86ba8e1

AccountGetAuthorizationFormRequestTypeID is TL type id of AccountGetAuthorizationFormRequest.

View Source
const AccountGetAuthorizationsRequestTypeID = 0xe320c158

AccountGetAuthorizationsRequestTypeID is TL type id of AccountGetAuthorizationsRequest.

View Source
const AccountGetAutoDownloadSettingsRequestTypeID = 0x56da0b3f

AccountGetAutoDownloadSettingsRequestTypeID is TL type id of AccountGetAutoDownloadSettingsRequest.

View Source
const AccountGetContactSignUpNotificationRequestTypeID = 0x9f07c728

AccountGetContactSignUpNotificationRequestTypeID is TL type id of AccountGetContactSignUpNotificationRequest.

View Source
const AccountGetContentSettingsRequestTypeID = 0x8b9b4dae

AccountGetContentSettingsRequestTypeID is TL type id of AccountGetContentSettingsRequest.

View Source
const AccountGetGlobalPrivacySettingsRequestTypeID = 0xeb2b4cf6

AccountGetGlobalPrivacySettingsRequestTypeID is TL type id of AccountGetGlobalPrivacySettingsRequest.

View Source
const AccountGetMultiWallPapersRequestTypeID = 0x65ad71dc

AccountGetMultiWallPapersRequestTypeID is TL type id of AccountGetMultiWallPapersRequest.

View Source
const AccountGetNotifyExceptionsRequestTypeID = 0x53577479

AccountGetNotifyExceptionsRequestTypeID is TL type id of AccountGetNotifyExceptionsRequest.

View Source
const AccountGetNotifySettingsRequestTypeID = 0x12b3ad31

AccountGetNotifySettingsRequestTypeID is TL type id of AccountGetNotifySettingsRequest.

View Source
const AccountGetPasswordRequestTypeID = 0x548a30f5

AccountGetPasswordRequestTypeID is TL type id of AccountGetPasswordRequest.

View Source
const AccountGetPasswordSettingsRequestTypeID = 0x9cd4eaf9

AccountGetPasswordSettingsRequestTypeID is TL type id of AccountGetPasswordSettingsRequest.

View Source
const AccountGetPrivacyRequestTypeID = 0xdadbc950

AccountGetPrivacyRequestTypeID is TL type id of AccountGetPrivacyRequest.

View Source
const AccountGetSecureValueRequestTypeID = 0x73665bc2

AccountGetSecureValueRequestTypeID is TL type id of AccountGetSecureValueRequest.

View Source
const AccountGetThemeRequestTypeID = 0x8d9d742b

AccountGetThemeRequestTypeID is TL type id of AccountGetThemeRequest.

View Source
const AccountGetThemesRequestTypeID = 0x285946f8

AccountGetThemesRequestTypeID is TL type id of AccountGetThemesRequest.

View Source
const AccountGetTmpPasswordRequestTypeID = 0x449e0b51

AccountGetTmpPasswordRequestTypeID is TL type id of AccountGetTmpPasswordRequest.

View Source
const AccountGetWallPaperRequestTypeID = 0xfc8ddbea

AccountGetWallPaperRequestTypeID is TL type id of AccountGetWallPaperRequest.

View Source
const AccountGetWallPapersRequestTypeID = 0xaabb1763

AccountGetWallPapersRequestTypeID is TL type id of AccountGetWallPapersRequest.

View Source
const AccountGetWebAuthorizationsRequestTypeID = 0x182e6d6f

AccountGetWebAuthorizationsRequestTypeID is TL type id of AccountGetWebAuthorizationsRequest.

View Source
const AccountInitTakeoutSessionRequestTypeID = 0xf05b4804

AccountInitTakeoutSessionRequestTypeID is TL type id of AccountInitTakeoutSessionRequest.

View Source
const AccountInstallThemeRequestTypeID = 0x7ae43737

AccountInstallThemeRequestTypeID is TL type id of AccountInstallThemeRequest.

View Source
const AccountInstallWallPaperRequestTypeID = 0xfeed5769

AccountInstallWallPaperRequestTypeID is TL type id of AccountInstallWallPaperRequest.

View Source
const AccountPasswordInputSettingsTypeID = 0xc23727c9

AccountPasswordInputSettingsTypeID is TL type id of AccountPasswordInputSettings.

View Source
const AccountPasswordSettingsTypeID = 0x9a5c33e5

AccountPasswordSettingsTypeID is TL type id of AccountPasswordSettings.

View Source
const AccountPasswordTypeID = 0xad2641f8

AccountPasswordTypeID is TL type id of AccountPassword.

View Source
const AccountPrivacyRulesTypeID = 0x50a04e45

AccountPrivacyRulesTypeID is TL type id of AccountPrivacyRules.

View Source
const AccountRegisterDeviceRequestTypeID = 0x68976c6f

AccountRegisterDeviceRequestTypeID is TL type id of AccountRegisterDeviceRequest.

View Source
const AccountReportPeerRequestTypeID = 0xae189d5f

AccountReportPeerRequestTypeID is TL type id of AccountReportPeerRequest.

View Source
const AccountResendPasswordEmailRequestTypeID = 0x7a7f2a15

AccountResendPasswordEmailRequestTypeID is TL type id of AccountResendPasswordEmailRequest.

View Source
const AccountResetAuthorizationRequestTypeID = 0xdf77f3bc

AccountResetAuthorizationRequestTypeID is TL type id of AccountResetAuthorizationRequest.

View Source
const AccountResetNotifySettingsRequestTypeID = 0xdb7e1747

AccountResetNotifySettingsRequestTypeID is TL type id of AccountResetNotifySettingsRequest.

View Source
const AccountResetWallPapersRequestTypeID = 0xbb3b9804

AccountResetWallPapersRequestTypeID is TL type id of AccountResetWallPapersRequest.

View Source
const AccountResetWebAuthorizationRequestTypeID = 0x2d01b9ef

AccountResetWebAuthorizationRequestTypeID is TL type id of AccountResetWebAuthorizationRequest.

View Source
const AccountResetWebAuthorizationsRequestTypeID = 0x682d2594

AccountResetWebAuthorizationsRequestTypeID is TL type id of AccountResetWebAuthorizationsRequest.

View Source
const AccountSaveAutoDownloadSettingsRequestTypeID = 0x76f36233

AccountSaveAutoDownloadSettingsRequestTypeID is TL type id of AccountSaveAutoDownloadSettingsRequest.

View Source
const AccountSaveSecureValueRequestTypeID = 0x899fe31d

AccountSaveSecureValueRequestTypeID is TL type id of AccountSaveSecureValueRequest.

View Source
const AccountSaveThemeRequestTypeID = 0xf257106c

AccountSaveThemeRequestTypeID is TL type id of AccountSaveThemeRequest.

View Source
const AccountSaveWallPaperRequestTypeID = 0x6c5a5b37

AccountSaveWallPaperRequestTypeID is TL type id of AccountSaveWallPaperRequest.

View Source
const AccountSendChangePhoneCodeRequestTypeID = 0x82574ae5

AccountSendChangePhoneCodeRequestTypeID is TL type id of AccountSendChangePhoneCodeRequest.

View Source
const AccountSendConfirmPhoneCodeRequestTypeID = 0x1b3faa88

AccountSendConfirmPhoneCodeRequestTypeID is TL type id of AccountSendConfirmPhoneCodeRequest.

View Source
const AccountSendVerifyEmailCodeRequestTypeID = 0x7011509f

AccountSendVerifyEmailCodeRequestTypeID is TL type id of AccountSendVerifyEmailCodeRequest.

View Source
const AccountSendVerifyPhoneCodeRequestTypeID = 0xa5a356f9

AccountSendVerifyPhoneCodeRequestTypeID is TL type id of AccountSendVerifyPhoneCodeRequest.

View Source
const AccountSentEmailCodeTypeID = 0x811f854f

AccountSentEmailCodeTypeID is TL type id of AccountSentEmailCode.

View Source
const AccountSetAccountTTLRequestTypeID = 0x2442485e

AccountSetAccountTTLRequestTypeID is TL type id of AccountSetAccountTTLRequest.

View Source
const AccountSetContactSignUpNotificationRequestTypeID = 0xcff43f61

AccountSetContactSignUpNotificationRequestTypeID is TL type id of AccountSetContactSignUpNotificationRequest.

View Source
const AccountSetContentSettingsRequestTypeID = 0xb574b16b

AccountSetContentSettingsRequestTypeID is TL type id of AccountSetContentSettingsRequest.

View Source
const AccountSetGlobalPrivacySettingsRequestTypeID = 0x1edaaac2

AccountSetGlobalPrivacySettingsRequestTypeID is TL type id of AccountSetGlobalPrivacySettingsRequest.

View Source
const AccountSetPrivacyRequestTypeID = 0xc9f81ce8

AccountSetPrivacyRequestTypeID is TL type id of AccountSetPrivacyRequest.

View Source
const AccountTakeoutTypeID = 0x4dba4501

AccountTakeoutTypeID is TL type id of AccountTakeout.

View Source
const AccountThemesNotModifiedTypeID = 0xf41eb622

AccountThemesNotModifiedTypeID is TL type id of AccountThemesNotModified.

View Source
const AccountThemesTypeID = 0x7f676421

AccountThemesTypeID is TL type id of AccountThemes.

View Source
const AccountTmpPasswordTypeID = 0xdb64fd34

AccountTmpPasswordTypeID is TL type id of AccountTmpPassword.

View Source
const AccountUnregisterDeviceRequestTypeID = 0x3076c4bf

AccountUnregisterDeviceRequestTypeID is TL type id of AccountUnregisterDeviceRequest.

View Source
const AccountUpdateDeviceLockedRequestTypeID = 0x38df3532

AccountUpdateDeviceLockedRequestTypeID is TL type id of AccountUpdateDeviceLockedRequest.

View Source
const AccountUpdateNotifySettingsRequestTypeID = 0x84be5b93

AccountUpdateNotifySettingsRequestTypeID is TL type id of AccountUpdateNotifySettingsRequest.

View Source
const AccountUpdatePasswordSettingsRequestTypeID = 0xa59b102f

AccountUpdatePasswordSettingsRequestTypeID is TL type id of AccountUpdatePasswordSettingsRequest.

View Source
const AccountUpdateProfileRequestTypeID = 0x78515775

AccountUpdateProfileRequestTypeID is TL type id of AccountUpdateProfileRequest.

View Source
const AccountUpdateStatusRequestTypeID = 0x6628562c

AccountUpdateStatusRequestTypeID is TL type id of AccountUpdateStatusRequest.

View Source
const AccountUpdateThemeRequestTypeID = 0x5cb367d5

AccountUpdateThemeRequestTypeID is TL type id of AccountUpdateThemeRequest.

View Source
const AccountUpdateUsernameRequestTypeID = 0x3e0bdd7c

AccountUpdateUsernameRequestTypeID is TL type id of AccountUpdateUsernameRequest.

View Source
const AccountUploadThemeRequestTypeID = 0x1c3db333

AccountUploadThemeRequestTypeID is TL type id of AccountUploadThemeRequest.

View Source
const AccountUploadWallPaperRequestTypeID = 0xdd853661

AccountUploadWallPaperRequestTypeID is TL type id of AccountUploadWallPaperRequest.

View Source
const AccountVerifyEmailRequestTypeID = 0xecba39db

AccountVerifyEmailRequestTypeID is TL type id of AccountVerifyEmailRequest.

View Source
const AccountVerifyPhoneRequestTypeID = 0x4dd3a7f6

AccountVerifyPhoneRequestTypeID is TL type id of AccountVerifyPhoneRequest.

View Source
const AccountWallPapersNotModifiedTypeID = 0x1c199183

AccountWallPapersNotModifiedTypeID is TL type id of AccountWallPapersNotModified.

View Source
const AccountWallPapersTypeID = 0x702b65a9

AccountWallPapersTypeID is TL type id of AccountWallPapers.

View Source
const AccountWebAuthorizationsTypeID = 0xed56c9fc

AccountWebAuthorizationsTypeID is TL type id of AccountWebAuthorizations.

View Source
const AuthAcceptLoginTokenRequestTypeID = 0xe894ad4d

AuthAcceptLoginTokenRequestTypeID is TL type id of AuthAcceptLoginTokenRequest.

View Source
const AuthAuthorizationSignUpRequiredTypeID = 0x44747e9a

AuthAuthorizationSignUpRequiredTypeID is TL type id of AuthAuthorizationSignUpRequired.

View Source
const AuthAuthorizationTypeID = 0xcd050916

AuthAuthorizationTypeID is TL type id of AuthAuthorization.

View Source
const AuthBindTempAuthKeyRequestTypeID = 0xcdd42a05

AuthBindTempAuthKeyRequestTypeID is TL type id of AuthBindTempAuthKeyRequest.

View Source
const AuthCancelCodeRequestTypeID = 0x1f040578

AuthCancelCodeRequestTypeID is TL type id of AuthCancelCodeRequest.

View Source
const AuthCheckPasswordRequestTypeID = 0xd18b4d16

AuthCheckPasswordRequestTypeID is TL type id of AuthCheckPasswordRequest.

View Source
const AuthCodeTypeCallTypeID = 0x741cd3e3

AuthCodeTypeCallTypeID is TL type id of AuthCodeTypeCall.

View Source
const AuthCodeTypeFlashCallTypeID = 0x226ccefb

AuthCodeTypeFlashCallTypeID is TL type id of AuthCodeTypeFlashCall.

View Source
const AuthCodeTypeSmsTypeID = 0x72a3158c

AuthCodeTypeSmsTypeID is TL type id of AuthCodeTypeSms.

View Source
const AuthDropTempAuthKeysRequestTypeID = 0x8e48a188

AuthDropTempAuthKeysRequestTypeID is TL type id of AuthDropTempAuthKeysRequest.

View Source
const AuthExportAuthorizationRequestTypeID = 0xe5bfffcd

AuthExportAuthorizationRequestTypeID is TL type id of AuthExportAuthorizationRequest.

View Source
const AuthExportLoginTokenRequestTypeID = 0xb1b41517

AuthExportLoginTokenRequestTypeID is TL type id of AuthExportLoginTokenRequest.

View Source
const AuthExportedAuthorizationTypeID = 0xdf969c2d

AuthExportedAuthorizationTypeID is TL type id of AuthExportedAuthorization.

View Source
const AuthImportAuthorizationRequestTypeID = 0xe3ef9613

AuthImportAuthorizationRequestTypeID is TL type id of AuthImportAuthorizationRequest.

View Source
const AuthImportBotAuthorizationRequestTypeID = 0x67a3ff2c

AuthImportBotAuthorizationRequestTypeID is TL type id of AuthImportBotAuthorizationRequest.

View Source
const AuthImportLoginTokenRequestTypeID = 0x95ac5ce4

AuthImportLoginTokenRequestTypeID is TL type id of AuthImportLoginTokenRequest.

View Source
const AuthLogOutRequestTypeID = 0x5717da40

AuthLogOutRequestTypeID is TL type id of AuthLogOutRequest.

View Source
const AuthLoginTokenMigrateToTypeID = 0x68e9916

AuthLoginTokenMigrateToTypeID is TL type id of AuthLoginTokenMigrateTo.

View Source
const AuthLoginTokenSuccessTypeID = 0x390d5c5e

AuthLoginTokenSuccessTypeID is TL type id of AuthLoginTokenSuccess.

View Source
const AuthLoginTokenTypeID = 0x629f1980

AuthLoginTokenTypeID is TL type id of AuthLoginToken.

View Source
const AuthPasswordRecoveryTypeID = 0x137948a5

AuthPasswordRecoveryTypeID is TL type id of AuthPasswordRecovery.

View Source
const AuthRecoverPasswordRequestTypeID = 0x4ea56e92

AuthRecoverPasswordRequestTypeID is TL type id of AuthRecoverPasswordRequest.

View Source
const AuthRequestPasswordRecoveryRequestTypeID = 0xd897bc66

AuthRequestPasswordRecoveryRequestTypeID is TL type id of AuthRequestPasswordRecoveryRequest.

View Source
const AuthResendCodeRequestTypeID = 0x3ef1a9bf

AuthResendCodeRequestTypeID is TL type id of AuthResendCodeRequest.

View Source
const AuthResetAuthorizationsRequestTypeID = 0x9fab0d1a

AuthResetAuthorizationsRequestTypeID is TL type id of AuthResetAuthorizationsRequest.

View Source
const AuthSendCodeRequestTypeID = 0xa677244f

AuthSendCodeRequestTypeID is TL type id of AuthSendCodeRequest.

View Source
const AuthSentCodeTypeAppTypeID = 0x3dbb5986

AuthSentCodeTypeAppTypeID is TL type id of AuthSentCodeTypeApp.

View Source
const AuthSentCodeTypeCallTypeID = 0x5353e5a7

AuthSentCodeTypeCallTypeID is TL type id of AuthSentCodeTypeCall.

View Source
const AuthSentCodeTypeFlashCallTypeID = 0xab03c6d9

AuthSentCodeTypeFlashCallTypeID is TL type id of AuthSentCodeTypeFlashCall.

View Source
const AuthSentCodeTypeID = 0x5e002502

AuthSentCodeTypeID is TL type id of AuthSentCode.

View Source
const AuthSentCodeTypeSmsTypeID = 0xc000bba2

AuthSentCodeTypeSmsTypeID is TL type id of AuthSentCodeTypeSms.

View Source
const AuthSignInRequestTypeID = 0xbcd51581

AuthSignInRequestTypeID is TL type id of AuthSignInRequest.

View Source
const AuthSignUpRequestTypeID = 0x80eee427

AuthSignUpRequestTypeID is TL type id of AuthSignUpRequest.

View Source
const AuthorizationTypeID = 0xad01d61d

AuthorizationTypeID is TL type id of Authorization.

View Source
const AutoDownloadSettingsTypeID = 0xe04232f3

AutoDownloadSettingsTypeID is TL type id of AutoDownloadSettings.

View Source
const BankCardOpenUrlTypeID = 0xf568028a

BankCardOpenUrlTypeID is TL type id of BankCardOpenUrl.

View Source
const BaseThemeArcticTypeID = 0x5b11125a

BaseThemeArcticTypeID is TL type id of BaseThemeArctic.

View Source
const BaseThemeClassicTypeID = 0xc3a12462

BaseThemeClassicTypeID is TL type id of BaseThemeClassic.

View Source
const BaseThemeDayTypeID = 0xfbd81688

BaseThemeDayTypeID is TL type id of BaseThemeDay.

View Source
const BaseThemeNightTypeID = 0xb7b31ea8

BaseThemeNightTypeID is TL type id of BaseThemeNight.

View Source
const BaseThemeTintedTypeID = 0x6d5f77ee

BaseThemeTintedTypeID is TL type id of BaseThemeTinted.

View Source
const BoolFalseTypeID = 0xbc799737

BoolFalseTypeID is TL type id of BoolFalse.

View Source
const BoolTrueTypeID = 0x997275b5

BoolTrueTypeID is TL type id of BoolTrue.

View Source
const BotCommandTypeID = 0xc27ac8c7

BotCommandTypeID is TL type id of BotCommand.

View Source
const BotInfoTypeID = 0x98e81d3a

BotInfoTypeID is TL type id of BotInfo.

View Source
const BotInlineMediaResultTypeID = 0x17db940b

BotInlineMediaResultTypeID is TL type id of BotInlineMediaResult.

View Source
const BotInlineMessageMediaAutoTypeID = 0x764cf810

BotInlineMessageMediaAutoTypeID is TL type id of BotInlineMessageMediaAuto.

View Source
const BotInlineMessageMediaContactTypeID = 0x18d1cdc2

BotInlineMessageMediaContactTypeID is TL type id of BotInlineMessageMediaContact.

View Source
const BotInlineMessageMediaGeoTypeID = 0x51846fd

BotInlineMessageMediaGeoTypeID is TL type id of BotInlineMessageMediaGeo.

View Source
const BotInlineMessageMediaVenueTypeID = 0x8a86659c

BotInlineMessageMediaVenueTypeID is TL type id of BotInlineMessageMediaVenue.

View Source
const BotInlineMessageTextTypeID = 0x8c7f65e2

BotInlineMessageTextTypeID is TL type id of BotInlineMessageText.

View Source
const BotInlineResultTypeID = 0x11965f3a

BotInlineResultTypeID is TL type id of BotInlineResult.

View Source
const BotsAnswerWebhookJSONQueryRequestTypeID = 0xe6213f4d

BotsAnswerWebhookJSONQueryRequestTypeID is TL type id of BotsAnswerWebhookJSONQueryRequest.

View Source
const BotsSendCustomRequestRequestTypeID = 0xaa2769ed

BotsSendCustomRequestRequestTypeID is TL type id of BotsSendCustomRequestRequest.

View Source
const BotsSetBotCommandsRequestTypeID = 0x805d46f6

BotsSetBotCommandsRequestTypeID is TL type id of BotsSetBotCommandsRequest.

View Source
const CdnConfigTypeID = 0x5725e40a

CdnConfigTypeID is TL type id of CdnConfig.

View Source
const CdnPublicKeyTypeID = 0xc982eaba

CdnPublicKeyTypeID is TL type id of CdnPublicKey.

View Source
const ChannelAdminLogEventActionChangeAboutTypeID = 0x55188a2e

ChannelAdminLogEventActionChangeAboutTypeID is TL type id of ChannelAdminLogEventActionChangeAbout.

View Source
const ChannelAdminLogEventActionChangeLinkedChatTypeID = 0xa26f881b

ChannelAdminLogEventActionChangeLinkedChatTypeID is TL type id of ChannelAdminLogEventActionChangeLinkedChat.

View Source
const ChannelAdminLogEventActionChangeLocationTypeID = 0xe6b76ae

ChannelAdminLogEventActionChangeLocationTypeID is TL type id of ChannelAdminLogEventActionChangeLocation.

View Source
const ChannelAdminLogEventActionChangePhotoTypeID = 0x434bd2af

ChannelAdminLogEventActionChangePhotoTypeID is TL type id of ChannelAdminLogEventActionChangePhoto.

View Source
const ChannelAdminLogEventActionChangeStickerSetTypeID = 0xb1c3caa7

ChannelAdminLogEventActionChangeStickerSetTypeID is TL type id of ChannelAdminLogEventActionChangeStickerSet.

View Source
const ChannelAdminLogEventActionChangeTitleTypeID = 0xe6dfb825

ChannelAdminLogEventActionChangeTitleTypeID is TL type id of ChannelAdminLogEventActionChangeTitle.

View Source
const ChannelAdminLogEventActionChangeUsernameTypeID = 0x6a4afc38

ChannelAdminLogEventActionChangeUsernameTypeID is TL type id of ChannelAdminLogEventActionChangeUsername.

View Source
const ChannelAdminLogEventActionDefaultBannedRightsTypeID = 0x2df5fc0a

ChannelAdminLogEventActionDefaultBannedRightsTypeID is TL type id of ChannelAdminLogEventActionDefaultBannedRights.

View Source
const ChannelAdminLogEventActionDeleteMessageTypeID = 0x42e047bb

ChannelAdminLogEventActionDeleteMessageTypeID is TL type id of ChannelAdminLogEventActionDeleteMessage.

View Source
const ChannelAdminLogEventActionEditMessageTypeID = 0x709b2405

ChannelAdminLogEventActionEditMessageTypeID is TL type id of ChannelAdminLogEventActionEditMessage.

View Source
const ChannelAdminLogEventActionParticipantInviteTypeID = 0xe31c34d8

ChannelAdminLogEventActionParticipantInviteTypeID is TL type id of ChannelAdminLogEventActionParticipantInvite.

View Source
const ChannelAdminLogEventActionParticipantJoinTypeID = 0x183040d3

ChannelAdminLogEventActionParticipantJoinTypeID is TL type id of ChannelAdminLogEventActionParticipantJoin.

View Source
const ChannelAdminLogEventActionParticipantLeaveTypeID = 0xf89777f2

ChannelAdminLogEventActionParticipantLeaveTypeID is TL type id of ChannelAdminLogEventActionParticipantLeave.

View Source
const ChannelAdminLogEventActionParticipantToggleAdminTypeID = 0xd5676710

ChannelAdminLogEventActionParticipantToggleAdminTypeID is TL type id of ChannelAdminLogEventActionParticipantToggleAdmin.

View Source
const ChannelAdminLogEventActionParticipantToggleBanTypeID = 0xe6d83d7e

ChannelAdminLogEventActionParticipantToggleBanTypeID is TL type id of ChannelAdminLogEventActionParticipantToggleBan.

View Source
const ChannelAdminLogEventActionStopPollTypeID = 0x8f079643

ChannelAdminLogEventActionStopPollTypeID is TL type id of ChannelAdminLogEventActionStopPoll.

View Source
const ChannelAdminLogEventActionToggleInvitesTypeID = 0x1b7907ae

ChannelAdminLogEventActionToggleInvitesTypeID is TL type id of ChannelAdminLogEventActionToggleInvites.

View Source
const ChannelAdminLogEventActionTogglePreHistoryHiddenTypeID = 0x5f5c95f1

ChannelAdminLogEventActionTogglePreHistoryHiddenTypeID is TL type id of ChannelAdminLogEventActionTogglePreHistoryHidden.

View Source
const ChannelAdminLogEventActionToggleSignaturesTypeID = 0x26ae0971

ChannelAdminLogEventActionToggleSignaturesTypeID is TL type id of ChannelAdminLogEventActionToggleSignatures.

View Source
const ChannelAdminLogEventActionToggleSlowModeTypeID = 0x53909779

ChannelAdminLogEventActionToggleSlowModeTypeID is TL type id of ChannelAdminLogEventActionToggleSlowMode.

View Source
const ChannelAdminLogEventActionUpdatePinnedTypeID = 0xe9e82c18

ChannelAdminLogEventActionUpdatePinnedTypeID is TL type id of ChannelAdminLogEventActionUpdatePinned.

View Source
const ChannelAdminLogEventTypeID = 0x3b5a3e40

ChannelAdminLogEventTypeID is TL type id of ChannelAdminLogEvent.

View Source
const ChannelAdminLogEventsFilterTypeID = 0xea107ae4

ChannelAdminLogEventsFilterTypeID is TL type id of ChannelAdminLogEventsFilter.

View Source
const ChannelForbiddenTypeID = 0x289da732

ChannelForbiddenTypeID is TL type id of ChannelForbidden.

View Source
const ChannelFullTypeID = 0xf0e6672a

ChannelFullTypeID is TL type id of ChannelFull.

View Source
const ChannelLocationEmptyTypeID = 0xbfb5ad8b

ChannelLocationEmptyTypeID is TL type id of ChannelLocationEmpty.

View Source
const ChannelLocationTypeID = 0x209b82db

ChannelLocationTypeID is TL type id of ChannelLocation.

View Source
const ChannelMessagesFilterEmptyTypeID = 0x94d42ee7

ChannelMessagesFilterEmptyTypeID is TL type id of ChannelMessagesFilterEmpty.

View Source
const ChannelMessagesFilterTypeID = 0xcd77d957

ChannelMessagesFilterTypeID is TL type id of ChannelMessagesFilter.

View Source
const ChannelParticipantAdminTypeID = 0xccbebbaf

ChannelParticipantAdminTypeID is TL type id of ChannelParticipantAdmin.

View Source
const ChannelParticipantBannedTypeID = 0x1c0facaf

ChannelParticipantBannedTypeID is TL type id of ChannelParticipantBanned.

View Source
const ChannelParticipantCreatorTypeID = 0x447dca4b

ChannelParticipantCreatorTypeID is TL type id of ChannelParticipantCreator.

View Source
const ChannelParticipantLeftTypeID = 0xc3c6796b

ChannelParticipantLeftTypeID is TL type id of ChannelParticipantLeft.

View Source
const ChannelParticipantSelfTypeID = 0xa3289a6d

ChannelParticipantSelfTypeID is TL type id of ChannelParticipantSelf.

View Source
const ChannelParticipantTypeID = 0x15ebac1d

ChannelParticipantTypeID is TL type id of ChannelParticipant.

View Source
const ChannelParticipantsAdminsTypeID = 0xb4608969

ChannelParticipantsAdminsTypeID is TL type id of ChannelParticipantsAdmins.

View Source
const ChannelParticipantsBannedTypeID = 0x1427a5e1

ChannelParticipantsBannedTypeID is TL type id of ChannelParticipantsBanned.

View Source
const ChannelParticipantsBotsTypeID = 0xb0d1865b

ChannelParticipantsBotsTypeID is TL type id of ChannelParticipantsBots.

View Source
const ChannelParticipantsContactsTypeID = 0xbb6ae88d

ChannelParticipantsContactsTypeID is TL type id of ChannelParticipantsContacts.

View Source
const ChannelParticipantsKickedTypeID = 0xa3b54985

ChannelParticipantsKickedTypeID is TL type id of ChannelParticipantsKicked.

View Source
const ChannelParticipantsMentionsTypeID = 0xe04b5ceb

ChannelParticipantsMentionsTypeID is TL type id of ChannelParticipantsMentions.

View Source
const ChannelParticipantsRecentTypeID = 0xde3f3c79

ChannelParticipantsRecentTypeID is TL type id of ChannelParticipantsRecent.

View Source
const ChannelParticipantsSearchTypeID = 0x656ac4b

ChannelParticipantsSearchTypeID is TL type id of ChannelParticipantsSearch.

View Source
const ChannelTypeID = 0xd31a961e

ChannelTypeID is TL type id of Channel.

View Source
const ChannelsAdminLogResultsTypeID = 0xed8af74d

ChannelsAdminLogResultsTypeID is TL type id of ChannelsAdminLogResults.

View Source
const ChannelsChannelParticipantTypeID = 0xd0d9b163

ChannelsChannelParticipantTypeID is TL type id of ChannelsChannelParticipant.

View Source
const ChannelsChannelParticipantsNotModifiedTypeID = 0xf0173fe9

ChannelsChannelParticipantsNotModifiedTypeID is TL type id of ChannelsChannelParticipantsNotModified.

View Source
const ChannelsChannelParticipantsTypeID = 0xf56ee2a8

ChannelsChannelParticipantsTypeID is TL type id of ChannelsChannelParticipants.

View Source
const ChannelsCheckUsernameRequestTypeID = 0x10e6bd2c

ChannelsCheckUsernameRequestTypeID is TL type id of ChannelsCheckUsernameRequest.

View Source
const ChannelsCreateChannelRequestTypeID = 0x3d5fb10f

ChannelsCreateChannelRequestTypeID is TL type id of ChannelsCreateChannelRequest.

View Source
const ChannelsDeleteChannelRequestTypeID = 0xc0111fe3

ChannelsDeleteChannelRequestTypeID is TL type id of ChannelsDeleteChannelRequest.

View Source
const ChannelsDeleteHistoryRequestTypeID = 0xaf369d42

ChannelsDeleteHistoryRequestTypeID is TL type id of ChannelsDeleteHistoryRequest.

View Source
const ChannelsDeleteMessagesRequestTypeID = 0x84c1fd4e

ChannelsDeleteMessagesRequestTypeID is TL type id of ChannelsDeleteMessagesRequest.

View Source
const ChannelsDeleteUserHistoryRequestTypeID = 0xd10dd71b

ChannelsDeleteUserHistoryRequestTypeID is TL type id of ChannelsDeleteUserHistoryRequest.

View Source
const ChannelsEditAdminRequestTypeID = 0xd33c8902

ChannelsEditAdminRequestTypeID is TL type id of ChannelsEditAdminRequest.

View Source
const ChannelsEditBannedRequestTypeID = 0x72796912

ChannelsEditBannedRequestTypeID is TL type id of ChannelsEditBannedRequest.

View Source
const ChannelsEditCreatorRequestTypeID = 0x8f38cd1f

ChannelsEditCreatorRequestTypeID is TL type id of ChannelsEditCreatorRequest.

View Source
const ChannelsEditLocationRequestTypeID = 0x58e63f6d

ChannelsEditLocationRequestTypeID is TL type id of ChannelsEditLocationRequest.

View Source
const ChannelsEditPhotoRequestTypeID = 0xf12e57c9

ChannelsEditPhotoRequestTypeID is TL type id of ChannelsEditPhotoRequest.

View Source
const ChannelsEditTitleRequestTypeID = 0x566decd0

ChannelsEditTitleRequestTypeID is TL type id of ChannelsEditTitleRequest.

View Source
const ChannelsExportMessageLinkRequestTypeID = 0xe63fadeb

ChannelsExportMessageLinkRequestTypeID is TL type id of ChannelsExportMessageLinkRequest.

View Source
const ChannelsGetAdminLogRequestTypeID = 0x33ddf480

ChannelsGetAdminLogRequestTypeID is TL type id of ChannelsGetAdminLogRequest.

View Source
const ChannelsGetAdminedPublicChannelsRequestTypeID = 0xf8b036af

ChannelsGetAdminedPublicChannelsRequestTypeID is TL type id of ChannelsGetAdminedPublicChannelsRequest.

View Source
const ChannelsGetChannelsRequestTypeID = 0xa7f6bbb

ChannelsGetChannelsRequestTypeID is TL type id of ChannelsGetChannelsRequest.

View Source
const ChannelsGetFullChannelRequestTypeID = 0x8736a09

ChannelsGetFullChannelRequestTypeID is TL type id of ChannelsGetFullChannelRequest.

View Source
const ChannelsGetGroupsForDiscussionRequestTypeID = 0xf5dad378

ChannelsGetGroupsForDiscussionRequestTypeID is TL type id of ChannelsGetGroupsForDiscussionRequest.

View Source
const ChannelsGetInactiveChannelsRequestTypeID = 0x11e831ee

ChannelsGetInactiveChannelsRequestTypeID is TL type id of ChannelsGetInactiveChannelsRequest.

View Source
const ChannelsGetLeftChannelsRequestTypeID = 0x8341ecc0

ChannelsGetLeftChannelsRequestTypeID is TL type id of ChannelsGetLeftChannelsRequest.

View Source
const ChannelsGetMessagesRequestTypeID = 0xad8c9a23

ChannelsGetMessagesRequestTypeID is TL type id of ChannelsGetMessagesRequest.

View Source
const ChannelsGetParticipantRequestTypeID = 0x546dd7a6

ChannelsGetParticipantRequestTypeID is TL type id of ChannelsGetParticipantRequest.

View Source
const ChannelsGetParticipantsRequestTypeID = 0x123e05e9

ChannelsGetParticipantsRequestTypeID is TL type id of ChannelsGetParticipantsRequest.

View Source
const ChannelsInviteToChannelRequestTypeID = 0x199f3a6c

ChannelsInviteToChannelRequestTypeID is TL type id of ChannelsInviteToChannelRequest.

View Source
const ChannelsJoinChannelRequestTypeID = 0x24b524c5

ChannelsJoinChannelRequestTypeID is TL type id of ChannelsJoinChannelRequest.

View Source
const ChannelsLeaveChannelRequestTypeID = 0xf836aa95

ChannelsLeaveChannelRequestTypeID is TL type id of ChannelsLeaveChannelRequest.

View Source
const ChannelsReadHistoryRequestTypeID = 0xcc104937

ChannelsReadHistoryRequestTypeID is TL type id of ChannelsReadHistoryRequest.

View Source
const ChannelsReadMessageContentsRequestTypeID = 0xeab5dc38

ChannelsReadMessageContentsRequestTypeID is TL type id of ChannelsReadMessageContentsRequest.

View Source
const ChannelsReportSpamRequestTypeID = 0xfe087810

ChannelsReportSpamRequestTypeID is TL type id of ChannelsReportSpamRequest.

View Source
const ChannelsSetDiscussionGroupRequestTypeID = 0x40582bb2

ChannelsSetDiscussionGroupRequestTypeID is TL type id of ChannelsSetDiscussionGroupRequest.

View Source
const ChannelsSetStickersRequestTypeID = 0xea8ca4f9

ChannelsSetStickersRequestTypeID is TL type id of ChannelsSetStickersRequest.

View Source
const ChannelsTogglePreHistoryHiddenRequestTypeID = 0xeabbb94c

ChannelsTogglePreHistoryHiddenRequestTypeID is TL type id of ChannelsTogglePreHistoryHiddenRequest.

View Source
const ChannelsToggleSignaturesRequestTypeID = 0x1f69b606

ChannelsToggleSignaturesRequestTypeID is TL type id of ChannelsToggleSignaturesRequest.

View Source
const ChannelsToggleSlowModeRequestTypeID = 0xedd49ef0

ChannelsToggleSlowModeRequestTypeID is TL type id of ChannelsToggleSlowModeRequest.

View Source
const ChannelsUpdateUsernameRequestTypeID = 0x3514b3de

ChannelsUpdateUsernameRequestTypeID is TL type id of ChannelsUpdateUsernameRequest.

View Source
const ChatAdminRightsTypeID = 0x5fb224d5

ChatAdminRightsTypeID is TL type id of ChatAdminRights.

View Source
const ChatBannedRightsTypeID = 0x9f120418

ChatBannedRightsTypeID is TL type id of ChatBannedRights.

View Source
const ChatEmptyTypeID = 0x9ba2d800

ChatEmptyTypeID is TL type id of ChatEmpty.

View Source
const ChatForbiddenTypeID = 0x7328bdb

ChatForbiddenTypeID is TL type id of ChatForbidden.

View Source
const ChatFullTypeID = 0x1b7c9db3

ChatFullTypeID is TL type id of ChatFull.

View Source
const ChatInviteAlreadyTypeID = 0x5a686d7c

ChatInviteAlreadyTypeID is TL type id of ChatInviteAlready.

View Source
const ChatInviteEmptyTypeID = 0x69df3769

ChatInviteEmptyTypeID is TL type id of ChatInviteEmpty.

View Source
const ChatInviteExportedTypeID = 0xfc2e05bc

ChatInviteExportedTypeID is TL type id of ChatInviteExported.

View Source
const ChatInvitePeekTypeID = 0x61695cb0

ChatInvitePeekTypeID is TL type id of ChatInvitePeek.

View Source
const ChatInviteTypeID = 0xdfc2f58e

ChatInviteTypeID is TL type id of ChatInvite.

View Source
const ChatOnlinesTypeID = 0xf041e250

ChatOnlinesTypeID is TL type id of ChatOnlines.

View Source
const ChatParticipantAdminTypeID = 0xe2d6e436

ChatParticipantAdminTypeID is TL type id of ChatParticipantAdmin.

View Source
const ChatParticipantCreatorTypeID = 0xda13538a

ChatParticipantCreatorTypeID is TL type id of ChatParticipantCreator.

View Source
const ChatParticipantTypeID = 0xc8d7493e

ChatParticipantTypeID is TL type id of ChatParticipant.

View Source
const ChatParticipantsForbiddenTypeID = 0xfc900c2b

ChatParticipantsForbiddenTypeID is TL type id of ChatParticipantsForbidden.

View Source
const ChatParticipantsTypeID = 0x3f460fed

ChatParticipantsTypeID is TL type id of ChatParticipants.

View Source
const ChatPhotoEmptyTypeID = 0x37c1011c

ChatPhotoEmptyTypeID is TL type id of ChatPhotoEmpty.

View Source
const ChatPhotoTypeID = 0xd20b9f3c

ChatPhotoTypeID is TL type id of ChatPhoto.

View Source
const ChatTypeID = 0x3bda1bde

ChatTypeID is TL type id of Chat.

View Source
const CodeSettingsTypeID = 0xdebebe83

CodeSettingsTypeID is TL type id of CodeSettings.

View Source
const ConfigTypeID = 0x330b4067

ConfigTypeID is TL type id of Config.

View Source
const ContactStatusTypeID = 0xd3680c61

ContactStatusTypeID is TL type id of ContactStatus.

View Source
const ContactTypeID = 0xf911c994

ContactTypeID is TL type id of Contact.

View Source
const ContactsAcceptContactRequestTypeID = 0xf831a20f

ContactsAcceptContactRequestTypeID is TL type id of ContactsAcceptContactRequest.

View Source
const ContactsAddContactRequestTypeID = 0xe8f463d0

ContactsAddContactRequestTypeID is TL type id of ContactsAddContactRequest.

View Source
const ContactsBlockFromRepliesRequestTypeID = 0x29a8962c

ContactsBlockFromRepliesRequestTypeID is TL type id of ContactsBlockFromRepliesRequest.

View Source
const ContactsBlockRequestTypeID = 0x68cc1411

ContactsBlockRequestTypeID is TL type id of ContactsBlockRequest.

View Source
const ContactsBlockedSliceTypeID = 0xe1664194

ContactsBlockedSliceTypeID is TL type id of ContactsBlockedSlice.

View Source
const ContactsBlockedTypeID = 0xade1591

ContactsBlockedTypeID is TL type id of ContactsBlocked.

View Source
const ContactsContactsNotModifiedTypeID = 0xb74ba9d2

ContactsContactsNotModifiedTypeID is TL type id of ContactsContactsNotModified.

View Source
const ContactsContactsTypeID = 0xeae87e42

ContactsContactsTypeID is TL type id of ContactsContacts.

View Source
const ContactsDeleteByPhonesRequestTypeID = 0x1013fd9e

ContactsDeleteByPhonesRequestTypeID is TL type id of ContactsDeleteByPhonesRequest.

View Source
const ContactsDeleteContactsRequestTypeID = 0x96a0e00

ContactsDeleteContactsRequestTypeID is TL type id of ContactsDeleteContactsRequest.

View Source
const ContactsFoundTypeID = 0xb3134d9d

ContactsFoundTypeID is TL type id of ContactsFound.

View Source
const ContactsGetBlockedRequestTypeID = 0xf57c350f

ContactsGetBlockedRequestTypeID is TL type id of ContactsGetBlockedRequest.

View Source
const ContactsGetContactIDsRequestTypeID = 0x2caa4a42

ContactsGetContactIDsRequestTypeID is TL type id of ContactsGetContactIDsRequest.

View Source
const ContactsGetContactsRequestTypeID = 0xc023849f

ContactsGetContactsRequestTypeID is TL type id of ContactsGetContactsRequest.

View Source
const ContactsGetLocatedRequestTypeID = 0xd348bc44

ContactsGetLocatedRequestTypeID is TL type id of ContactsGetLocatedRequest.

View Source
const ContactsGetSavedRequestTypeID = 0x82f1e39f

ContactsGetSavedRequestTypeID is TL type id of ContactsGetSavedRequest.

View Source
const ContactsGetStatusesRequestTypeID = 0xc4a353ee

ContactsGetStatusesRequestTypeID is TL type id of ContactsGetStatusesRequest.

View Source
const ContactsGetTopPeersRequestTypeID = 0xd4982db5

ContactsGetTopPeersRequestTypeID is TL type id of ContactsGetTopPeersRequest.

View Source
const ContactsImportContactsRequestTypeID = 0x2c800be5

ContactsImportContactsRequestTypeID is TL type id of ContactsImportContactsRequest.

View Source
const ContactsImportedContactsTypeID = 0x77d01c3b

ContactsImportedContactsTypeID is TL type id of ContactsImportedContacts.

View Source
const ContactsResetSavedRequestTypeID = 0x879537f1

ContactsResetSavedRequestTypeID is TL type id of ContactsResetSavedRequest.

View Source
const ContactsResetTopPeerRatingRequestTypeID = 0x1ae373ac

ContactsResetTopPeerRatingRequestTypeID is TL type id of ContactsResetTopPeerRatingRequest.

View Source
const ContactsResolveUsernameRequestTypeID = 0xf93ccba3

ContactsResolveUsernameRequestTypeID is TL type id of ContactsResolveUsernameRequest.

View Source
const ContactsResolvedPeerTypeID = 0x7f077ad9

ContactsResolvedPeerTypeID is TL type id of ContactsResolvedPeer.

View Source
const ContactsSearchRequestTypeID = 0x11f812d8

ContactsSearchRequestTypeID is TL type id of ContactsSearchRequest.

View Source
const ContactsToggleTopPeersRequestTypeID = 0x8514bdda

ContactsToggleTopPeersRequestTypeID is TL type id of ContactsToggleTopPeersRequest.

View Source
const ContactsTopPeersDisabledTypeID = 0xb52c939d

ContactsTopPeersDisabledTypeID is TL type id of ContactsTopPeersDisabled.

View Source
const ContactsTopPeersNotModifiedTypeID = 0xde266ef5

ContactsTopPeersNotModifiedTypeID is TL type id of ContactsTopPeersNotModified.

View Source
const ContactsTopPeersTypeID = 0x70b772a8

ContactsTopPeersTypeID is TL type id of ContactsTopPeers.

View Source
const ContactsUnblockRequestTypeID = 0xbea65d50

ContactsUnblockRequestTypeID is TL type id of ContactsUnblockRequest.

View Source
const DataJSONTypeID = 0x7d748d04

DataJSONTypeID is TL type id of DataJSON.

View Source
const DcOptionTypeID = 0x18b7a10d

DcOptionTypeID is TL type id of DcOption.

View Source
const DialogFilterSuggestedTypeID = 0x77744d4a

DialogFilterSuggestedTypeID is TL type id of DialogFilterSuggested.

View Source
const DialogFilterTypeID = 0x7438f7e8

DialogFilterTypeID is TL type id of DialogFilter.

View Source
const DialogFolderTypeID = 0x71bd134c

DialogFolderTypeID is TL type id of DialogFolder.

View Source
const DialogPeerFolderTypeID = 0x514519e2

DialogPeerFolderTypeID is TL type id of DialogPeerFolder.

View Source
const DialogPeerTypeID = 0xe56dbf05

DialogPeerTypeID is TL type id of DialogPeer.

View Source
const DialogTypeID = 0x2c171f72

DialogTypeID is TL type id of Dialog.

View Source
const DocumentAttributeAnimatedTypeID = 0x11b58939

DocumentAttributeAnimatedTypeID is TL type id of DocumentAttributeAnimated.

View Source
const DocumentAttributeAudioTypeID = 0x9852f9c6

DocumentAttributeAudioTypeID is TL type id of DocumentAttributeAudio.

View Source
const DocumentAttributeFilenameTypeID = 0x15590068

DocumentAttributeFilenameTypeID is TL type id of DocumentAttributeFilename.

View Source
const DocumentAttributeHasStickersTypeID = 0x9801d2f7

DocumentAttributeHasStickersTypeID is TL type id of DocumentAttributeHasStickers.

View Source
const DocumentAttributeImageSizeTypeID = 0x6c37c15c

DocumentAttributeImageSizeTypeID is TL type id of DocumentAttributeImageSize.

View Source
const DocumentAttributeStickerTypeID = 0x6319d612

DocumentAttributeStickerTypeID is TL type id of DocumentAttributeSticker.

View Source
const DocumentAttributeVideoTypeID = 0xef02ce6

DocumentAttributeVideoTypeID is TL type id of DocumentAttributeVideo.

View Source
const DocumentEmptyTypeID = 0x36f8c871

DocumentEmptyTypeID is TL type id of DocumentEmpty.

View Source
const DocumentTypeID = 0x1e87342b

DocumentTypeID is TL type id of Document.

View Source
const DraftMessageEmptyTypeID = 0x1b0c841a

DraftMessageEmptyTypeID is TL type id of DraftMessageEmpty.

View Source
const DraftMessageTypeID = 0xfd8e711f

DraftMessageTypeID is TL type id of DraftMessage.

View Source
const EmojiKeywordDeletedTypeID = 0x236df622

EmojiKeywordDeletedTypeID is TL type id of EmojiKeywordDeleted.

View Source
const EmojiKeywordTypeID = 0xd5b3b9f9

EmojiKeywordTypeID is TL type id of EmojiKeyword.

View Source
const EmojiKeywordsDifferenceTypeID = 0x5cc761bd

EmojiKeywordsDifferenceTypeID is TL type id of EmojiKeywordsDifference.

View Source
const EmojiLanguageTypeID = 0xb3fb5361

EmojiLanguageTypeID is TL type id of EmojiLanguage.

View Source
const EmojiURLTypeID = 0xa575739d

EmojiURLTypeID is TL type id of EmojiURL.

View Source
const EncryptedChatDiscardedTypeID = 0x13d6dd27

EncryptedChatDiscardedTypeID is TL type id of EncryptedChatDiscarded.

View Source
const EncryptedChatEmptyTypeID = 0xab7ec0a0

EncryptedChatEmptyTypeID is TL type id of EncryptedChatEmpty.

View Source
const EncryptedChatRequestedTypeID = 0x62718a82

EncryptedChatRequestedTypeID is TL type id of EncryptedChatRequested.

View Source
const EncryptedChatTypeID = 0xfa56ce36

EncryptedChatTypeID is TL type id of EncryptedChat.

View Source
const EncryptedChatWaitingTypeID = 0x3bf703dc

EncryptedChatWaitingTypeID is TL type id of EncryptedChatWaiting.

View Source
const EncryptedFileEmptyTypeID = 0xc21f497e

EncryptedFileEmptyTypeID is TL type id of EncryptedFileEmpty.

View Source
const EncryptedFileTypeID = 0x4a70994c

EncryptedFileTypeID is TL type id of EncryptedFile.

View Source
const EncryptedMessageServiceTypeID = 0x23734b06

EncryptedMessageServiceTypeID is TL type id of EncryptedMessageService.

View Source
const EncryptedMessageTypeID = 0xed18c118

EncryptedMessageTypeID is TL type id of EncryptedMessage.

View Source
const ErrorTypeID = 0xc4b9f9bb

ErrorTypeID is TL type id of Error.

View Source
const ExportedMessageLinkTypeID = 0x5dab1af4

ExportedMessageLinkTypeID is TL type id of ExportedMessageLink.

View Source
const FileHashTypeID = 0x6242c773

FileHashTypeID is TL type id of FileHash.

View Source
const FileLocationToBeDeprecatedTypeID = 0xbc7fc6cd

FileLocationToBeDeprecatedTypeID is TL type id of FileLocationToBeDeprecated.

View Source
const FolderPeerTypeID = 0xe9baa668

FolderPeerTypeID is TL type id of FolderPeer.

View Source
const FolderTypeID = 0xff544e65

FolderTypeID is TL type id of Folder.

View Source
const FoldersDeleteFolderRequestTypeID = 0x1c295881

FoldersDeleteFolderRequestTypeID is TL type id of FoldersDeleteFolderRequest.

View Source
const FoldersEditPeerFoldersRequestTypeID = 0x6847d0ab

FoldersEditPeerFoldersRequestTypeID is TL type id of FoldersEditPeerFoldersRequest.

View Source
const GameTypeID = 0xbdf9653b

GameTypeID is TL type id of Game.

View Source
const GeoPointEmptyTypeID = 0x1117dd5f

GeoPointEmptyTypeID is TL type id of GeoPointEmpty.

View Source
const GeoPointTypeID = 0xb2a2f663

GeoPointTypeID is TL type id of GeoPoint.

View Source
const GlobalPrivacySettingsTypeID = 0xbea2f424

GlobalPrivacySettingsTypeID is TL type id of GlobalPrivacySettings.

View Source
const HelpAcceptTermsOfServiceRequestTypeID = 0xee72f79a

HelpAcceptTermsOfServiceRequestTypeID is TL type id of HelpAcceptTermsOfServiceRequest.

View Source
const HelpAppUpdateTypeID = 0x1da7158f

HelpAppUpdateTypeID is TL type id of HelpAppUpdate.

View Source
const HelpCountriesListNotModifiedTypeID = 0x93cc1f32

HelpCountriesListNotModifiedTypeID is TL type id of HelpCountriesListNotModified.

View Source
const HelpCountriesListTypeID = 0x87d0759e

HelpCountriesListTypeID is TL type id of HelpCountriesList.

View Source
const HelpCountryCodeTypeID = 0x4203c5ef

HelpCountryCodeTypeID is TL type id of HelpCountryCode.

View Source
const HelpCountryTypeID = 0xc3878e23

HelpCountryTypeID is TL type id of HelpCountry.

View Source
const HelpDeepLinkInfoEmptyTypeID = 0x66afa166

HelpDeepLinkInfoEmptyTypeID is TL type id of HelpDeepLinkInfoEmpty.

View Source
const HelpDeepLinkInfoTypeID = 0x6a4ee832

HelpDeepLinkInfoTypeID is TL type id of HelpDeepLinkInfo.

View Source
const HelpDismissSuggestionRequestTypeID = 0x77fa99f

HelpDismissSuggestionRequestTypeID is TL type id of HelpDismissSuggestionRequest.

View Source
const HelpEditUserInfoRequestTypeID = 0x66b91b70

HelpEditUserInfoRequestTypeID is TL type id of HelpEditUserInfoRequest.

View Source
const HelpGetAppChangelogRequestTypeID = 0x9010ef6f

HelpGetAppChangelogRequestTypeID is TL type id of HelpGetAppChangelogRequest.

View Source
const HelpGetAppConfigRequestTypeID = 0x98914110

HelpGetAppConfigRequestTypeID is TL type id of HelpGetAppConfigRequest.

View Source
const HelpGetAppUpdateRequestTypeID = 0x522d5a7d

HelpGetAppUpdateRequestTypeID is TL type id of HelpGetAppUpdateRequest.

View Source
const HelpGetCdnConfigRequestTypeID = 0x52029342

HelpGetCdnConfigRequestTypeID is TL type id of HelpGetCdnConfigRequest.

View Source
const HelpGetConfigRequestTypeID = 0xc4f9186b

HelpGetConfigRequestTypeID is TL type id of HelpGetConfigRequest.

View Source
const HelpGetCountriesListRequestTypeID = 0x735787a8

HelpGetCountriesListRequestTypeID is TL type id of HelpGetCountriesListRequest.

View Source
const HelpGetDeepLinkInfoRequestTypeID = 0x3fedc75f

HelpGetDeepLinkInfoRequestTypeID is TL type id of HelpGetDeepLinkInfoRequest.

View Source
const HelpGetInviteTextRequestTypeID = 0x4d392343

HelpGetInviteTextRequestTypeID is TL type id of HelpGetInviteTextRequest.

View Source
const HelpGetNearestDcRequestTypeID = 0x1fb33026

HelpGetNearestDcRequestTypeID is TL type id of HelpGetNearestDcRequest.

View Source
const HelpGetPassportConfigRequestTypeID = 0xc661ad08

HelpGetPassportConfigRequestTypeID is TL type id of HelpGetPassportConfigRequest.

View Source
const HelpGetPromoDataRequestTypeID = 0xc0977421

HelpGetPromoDataRequestTypeID is TL type id of HelpGetPromoDataRequest.

View Source
const HelpGetRecentMeUrlsRequestTypeID = 0x3dc0f114

HelpGetRecentMeUrlsRequestTypeID is TL type id of HelpGetRecentMeUrlsRequest.

View Source
const HelpGetSupportNameRequestTypeID = 0xd360e72c

HelpGetSupportNameRequestTypeID is TL type id of HelpGetSupportNameRequest.

View Source
const HelpGetSupportRequestTypeID = 0x9cdf08cd

HelpGetSupportRequestTypeID is TL type id of HelpGetSupportRequest.

View Source
const HelpGetTermsOfServiceUpdateRequestTypeID = 0x2ca51fd1

HelpGetTermsOfServiceUpdateRequestTypeID is TL type id of HelpGetTermsOfServiceUpdateRequest.

View Source
const HelpGetUserInfoRequestTypeID = 0x38a08d3

HelpGetUserInfoRequestTypeID is TL type id of HelpGetUserInfoRequest.

View Source
const HelpHidePromoDataRequestTypeID = 0x1e251c95

HelpHidePromoDataRequestTypeID is TL type id of HelpHidePromoDataRequest.

View Source
const HelpInviteTextTypeID = 0x18cb9f78

HelpInviteTextTypeID is TL type id of HelpInviteText.

View Source
const HelpNoAppUpdateTypeID = 0xc45a6536

HelpNoAppUpdateTypeID is TL type id of HelpNoAppUpdate.

View Source
const HelpPassportConfigNotModifiedTypeID = 0xbfb9f457

HelpPassportConfigNotModifiedTypeID is TL type id of HelpPassportConfigNotModified.

View Source
const HelpPassportConfigTypeID = 0xa098d6af

HelpPassportConfigTypeID is TL type id of HelpPassportConfig.

View Source
const HelpPromoDataEmptyTypeID = 0x98f6ac75

HelpPromoDataEmptyTypeID is TL type id of HelpPromoDataEmpty.

View Source
const HelpPromoDataTypeID = 0x8c39793f

HelpPromoDataTypeID is TL type id of HelpPromoData.

View Source
const HelpRecentMeUrlsTypeID = 0xe0310d7

HelpRecentMeUrlsTypeID is TL type id of HelpRecentMeUrls.

View Source
const HelpSaveAppLogRequestTypeID = 0x6f02f748

HelpSaveAppLogRequestTypeID is TL type id of HelpSaveAppLogRequest.

View Source
const HelpSetBotUpdatesStatusRequestTypeID = 0xec22cfcd

HelpSetBotUpdatesStatusRequestTypeID is TL type id of HelpSetBotUpdatesStatusRequest.

View Source
const HelpSupportNameTypeID = 0x8c05f1c9

HelpSupportNameTypeID is TL type id of HelpSupportName.

View Source
const HelpSupportTypeID = 0x17c6b5f6

HelpSupportTypeID is TL type id of HelpSupport.

View Source
const HelpTermsOfServiceTypeID = 0x780a0310

HelpTermsOfServiceTypeID is TL type id of HelpTermsOfService.

View Source
const HelpTermsOfServiceUpdateEmptyTypeID = 0xe3309f7f

HelpTermsOfServiceUpdateEmptyTypeID is TL type id of HelpTermsOfServiceUpdateEmpty.

View Source
const HelpTermsOfServiceUpdateTypeID = 0x28ecf961

HelpTermsOfServiceUpdateTypeID is TL type id of HelpTermsOfServiceUpdate.

View Source
const HelpUserInfoEmptyTypeID = 0xf3ae2eed

HelpUserInfoEmptyTypeID is TL type id of HelpUserInfoEmpty.

View Source
const HelpUserInfoTypeID = 0x1eb3758

HelpUserInfoTypeID is TL type id of HelpUserInfo.

View Source
const HighScoreTypeID = 0x58fffcd0

HighScoreTypeID is TL type id of HighScore.

View Source
const ImportedContactTypeID = 0xd0028438

ImportedContactTypeID is TL type id of ImportedContact.

View Source
const InlineBotSwitchPMTypeID = 0x3c20629f

InlineBotSwitchPMTypeID is TL type id of InlineBotSwitchPM.

View Source
const InputAppEventTypeID = 0x1d1b1245

InputAppEventTypeID is TL type id of InputAppEvent.

View Source
const InputBotInlineMessageGameTypeID = 0x4b425864

InputBotInlineMessageGameTypeID is TL type id of InputBotInlineMessageGame.

View Source
const InputBotInlineMessageIDTypeID = 0x890c3d89

InputBotInlineMessageIDTypeID is TL type id of InputBotInlineMessageID.

View Source
const InputBotInlineMessageMediaAutoTypeID = 0x3380c786

InputBotInlineMessageMediaAutoTypeID is TL type id of InputBotInlineMessageMediaAuto.

View Source
const InputBotInlineMessageMediaContactTypeID = 0xa6edbffd

InputBotInlineMessageMediaContactTypeID is TL type id of InputBotInlineMessageMediaContact.

View Source
const InputBotInlineMessageMediaGeoTypeID = 0x96929a85

InputBotInlineMessageMediaGeoTypeID is TL type id of InputBotInlineMessageMediaGeo.

View Source
const InputBotInlineMessageMediaVenueTypeID = 0x417bbf11

InputBotInlineMessageMediaVenueTypeID is TL type id of InputBotInlineMessageMediaVenue.

View Source
const InputBotInlineMessageTextTypeID = 0x3dcd7a87

InputBotInlineMessageTextTypeID is TL type id of InputBotInlineMessageText.

View Source
const InputBotInlineResultDocumentTypeID = 0xfff8fdc4

InputBotInlineResultDocumentTypeID is TL type id of InputBotInlineResultDocument.

View Source
const InputBotInlineResultGameTypeID = 0x4fa417f2

InputBotInlineResultGameTypeID is TL type id of InputBotInlineResultGame.

View Source
const InputBotInlineResultPhotoTypeID = 0xa8d864a7

InputBotInlineResultPhotoTypeID is TL type id of InputBotInlineResultPhoto.

View Source
const InputBotInlineResultTypeID = 0x88bf9319

InputBotInlineResultTypeID is TL type id of InputBotInlineResult.

View Source
const InputChannelEmptyTypeID = 0xee8c1e86

InputChannelEmptyTypeID is TL type id of InputChannelEmpty.

View Source
const InputChannelFromMessageTypeID = 0x2a286531

InputChannelFromMessageTypeID is TL type id of InputChannelFromMessage.

View Source
const InputChannelTypeID = 0xafeb712e

InputChannelTypeID is TL type id of InputChannel.

View Source
const InputChatPhotoEmptyTypeID = 0x1ca48f57

InputChatPhotoEmptyTypeID is TL type id of InputChatPhotoEmpty.

View Source
const InputChatPhotoTypeID = 0x8953ad37

InputChatPhotoTypeID is TL type id of InputChatPhoto.

View Source
const InputChatUploadedPhotoTypeID = 0xc642724e

InputChatUploadedPhotoTypeID is TL type id of InputChatUploadedPhoto.

View Source
const InputCheckPasswordEmptyTypeID = 0x9880f658

InputCheckPasswordEmptyTypeID is TL type id of InputCheckPasswordEmpty.

View Source
const InputCheckPasswordSRPTypeID = 0xd27ff082

InputCheckPasswordSRPTypeID is TL type id of InputCheckPasswordSRP.

View Source
const InputClientProxyTypeID = 0x75588b3f

InputClientProxyTypeID is TL type id of InputClientProxy.

View Source
const InputDialogPeerFolderTypeID = 0x64600527

InputDialogPeerFolderTypeID is TL type id of InputDialogPeerFolder.

View Source
const InputDialogPeerTypeID = 0xfcaafeb7

InputDialogPeerTypeID is TL type id of InputDialogPeer.

View Source
const InputDocumentEmptyTypeID = 0x72f0eaae

InputDocumentEmptyTypeID is TL type id of InputDocumentEmpty.

View Source
const InputDocumentFileLocationTypeID = 0xbad07584

InputDocumentFileLocationTypeID is TL type id of InputDocumentFileLocation.

View Source
const InputDocumentTypeID = 0x1abfb575

InputDocumentTypeID is TL type id of InputDocument.

View Source
const InputEncryptedChatTypeID = 0xf141b5e1

InputEncryptedChatTypeID is TL type id of InputEncryptedChat.

View Source
const InputEncryptedFileBigUploadedTypeID = 0x2dc173c8

InputEncryptedFileBigUploadedTypeID is TL type id of InputEncryptedFileBigUploaded.

View Source
const InputEncryptedFileEmptyTypeID = 0x1837c364

InputEncryptedFileEmptyTypeID is TL type id of InputEncryptedFileEmpty.

View Source
const InputEncryptedFileLocationTypeID = 0xf5235d55

InputEncryptedFileLocationTypeID is TL type id of InputEncryptedFileLocation.

View Source
const InputEncryptedFileTypeID = 0x5a17b5e5

InputEncryptedFileTypeID is TL type id of InputEncryptedFile.

View Source
const InputEncryptedFileUploadedTypeID = 0x64bd0306

InputEncryptedFileUploadedTypeID is TL type id of InputEncryptedFileUploaded.

View Source
const InputFileBigTypeID = 0xfa4f0bb5

InputFileBigTypeID is TL type id of InputFileBig.

View Source
const InputFileLocationTypeID = 0xdfdaabe1

InputFileLocationTypeID is TL type id of InputFileLocation.

View Source
const InputFileTypeID = 0xf52ff27f

InputFileTypeID is TL type id of InputFile.

View Source
const InputFolderPeerTypeID = 0xfbd2c296

InputFolderPeerTypeID is TL type id of InputFolderPeer.

View Source
const InputGameIDTypeID = 0x32c3e77

InputGameIDTypeID is TL type id of InputGameID.

View Source
const InputGameShortNameTypeID = 0xc331e80a

InputGameShortNameTypeID is TL type id of InputGameShortName.

View Source
const InputGeoPointEmptyTypeID = 0xe4c123d6

InputGeoPointEmptyTypeID is TL type id of InputGeoPointEmpty.

View Source
const InputGeoPointTypeID = 0x48222faf

InputGeoPointTypeID is TL type id of InputGeoPoint.

View Source
const InputKeyboardButtonUrlAuthTypeID = 0xd02e7fd4

InputKeyboardButtonUrlAuthTypeID is TL type id of InputKeyboardButtonUrlAuth.

View Source
const InputMediaContactTypeID = 0xf8ab7dfb

InputMediaContactTypeID is TL type id of InputMediaContact.

View Source
const InputMediaDiceTypeID = 0xe66fbf7b

InputMediaDiceTypeID is TL type id of InputMediaDice.

View Source
const InputMediaDocumentExternalTypeID = 0xfb52dc99

InputMediaDocumentExternalTypeID is TL type id of InputMediaDocumentExternal.

View Source
const InputMediaDocumentTypeID = 0x23ab23d2

InputMediaDocumentTypeID is TL type id of InputMediaDocument.

View Source
const InputMediaEmptyTypeID = 0x9664f57f

InputMediaEmptyTypeID is TL type id of InputMediaEmpty.

View Source
const InputMediaGameTypeID = 0xd33f43f3

InputMediaGameTypeID is TL type id of InputMediaGame.

View Source
const InputMediaGeoLiveTypeID = 0x971fa843

InputMediaGeoLiveTypeID is TL type id of InputMediaGeoLive.

View Source
const InputMediaGeoPointTypeID = 0xf9c44144

InputMediaGeoPointTypeID is TL type id of InputMediaGeoPoint.

View Source
const InputMediaInvoiceTypeID = 0xf4e096c3

InputMediaInvoiceTypeID is TL type id of InputMediaInvoice.

View Source
const InputMediaPhotoExternalTypeID = 0xe5bbfe1a

InputMediaPhotoExternalTypeID is TL type id of InputMediaPhotoExternal.

View Source
const InputMediaPhotoTypeID = 0xb3ba0635

InputMediaPhotoTypeID is TL type id of InputMediaPhoto.

View Source
const InputMediaPollTypeID = 0xf94e5f1

InputMediaPollTypeID is TL type id of InputMediaPoll.

View Source
const InputMediaUploadedDocumentTypeID = 0x5b38c6c1

InputMediaUploadedDocumentTypeID is TL type id of InputMediaUploadedDocument.

View Source
const InputMediaUploadedPhotoTypeID = 0x1e287d04

InputMediaUploadedPhotoTypeID is TL type id of InputMediaUploadedPhoto.

View Source
const InputMediaVenueTypeID = 0xc13d1c11

InputMediaVenueTypeID is TL type id of InputMediaVenue.

View Source
const InputMessageCallbackQueryTypeID = 0xacfa1a7e

InputMessageCallbackQueryTypeID is TL type id of InputMessageCallbackQuery.

View Source
const InputMessageEntityMentionNameTypeID = 0x208e68c9

InputMessageEntityMentionNameTypeID is TL type id of InputMessageEntityMentionName.

View Source
const InputMessageIDTypeID = 0xa676a322

InputMessageIDTypeID is TL type id of InputMessageID.

View Source
const InputMessagePinnedTypeID = 0x86872538

InputMessagePinnedTypeID is TL type id of InputMessagePinned.

View Source
const InputMessageReplyToTypeID = 0xbad88395

InputMessageReplyToTypeID is TL type id of InputMessageReplyTo.

View Source
const InputMessagesFilterChatPhotosTypeID = 0x3a20ecb8

InputMessagesFilterChatPhotosTypeID is TL type id of InputMessagesFilterChatPhotos.

View Source
const InputMessagesFilterContactsTypeID = 0xe062db83

InputMessagesFilterContactsTypeID is TL type id of InputMessagesFilterContacts.

View Source
const InputMessagesFilterDocumentTypeID = 0x9eddf188

InputMessagesFilterDocumentTypeID is TL type id of InputMessagesFilterDocument.

View Source
const InputMessagesFilterEmptyTypeID = 0x57e2f66c

InputMessagesFilterEmptyTypeID is TL type id of InputMessagesFilterEmpty.

View Source
const InputMessagesFilterGeoTypeID = 0xe7026d0d

InputMessagesFilterGeoTypeID is TL type id of InputMessagesFilterGeo.

View Source
const InputMessagesFilterGifTypeID = 0xffc86587

InputMessagesFilterGifTypeID is TL type id of InputMessagesFilterGif.

View Source
const InputMessagesFilterMusicTypeID = 0x3751b49e

InputMessagesFilterMusicTypeID is TL type id of InputMessagesFilterMusic.

View Source
const InputMessagesFilterMyMentionsTypeID = 0xc1f8e69a

InputMessagesFilterMyMentionsTypeID is TL type id of InputMessagesFilterMyMentions.

View Source
const InputMessagesFilterPhoneCallsTypeID = 0x80c99768

InputMessagesFilterPhoneCallsTypeID is TL type id of InputMessagesFilterPhoneCalls.

View Source
const InputMessagesFilterPhotoVideoTypeID = 0x56e9f0e4

InputMessagesFilterPhotoVideoTypeID is TL type id of InputMessagesFilterPhotoVideo.

View Source
const InputMessagesFilterPhotosTypeID = 0x9609a51c

InputMessagesFilterPhotosTypeID is TL type id of InputMessagesFilterPhotos.

View Source
const InputMessagesFilterPinnedTypeID = 0x1bb00451

InputMessagesFilterPinnedTypeID is TL type id of InputMessagesFilterPinned.

View Source
const InputMessagesFilterRoundVideoTypeID = 0xb549da53

InputMessagesFilterRoundVideoTypeID is TL type id of InputMessagesFilterRoundVideo.

View Source
const InputMessagesFilterRoundVoiceTypeID = 0x7a7c17a4

InputMessagesFilterRoundVoiceTypeID is TL type id of InputMessagesFilterRoundVoice.

View Source
const InputMessagesFilterUrlTypeID = 0x7ef0dd87

InputMessagesFilterUrlTypeID is TL type id of InputMessagesFilterUrl.

View Source
const InputMessagesFilterVideoTypeID = 0x9fc00e65

InputMessagesFilterVideoTypeID is TL type id of InputMessagesFilterVideo.

View Source
const InputMessagesFilterVoiceTypeID = 0x50f5c392

InputMessagesFilterVoiceTypeID is TL type id of InputMessagesFilterVoice.

View Source
const InputNotifyBroadcastsTypeID = 0xb1db7c7e

InputNotifyBroadcastsTypeID is TL type id of InputNotifyBroadcasts.

View Source
const InputNotifyChatsTypeID = 0x4a95e84e

InputNotifyChatsTypeID is TL type id of InputNotifyChats.

View Source
const InputNotifyPeerTypeID = 0xb8bc5b0c

InputNotifyPeerTypeID is TL type id of InputNotifyPeer.

View Source
const InputNotifyUsersTypeID = 0x193b4417

InputNotifyUsersTypeID is TL type id of InputNotifyUsers.

View Source
const InputPaymentCredentialsAndroidPayTypeID = 0xca05d50e

InputPaymentCredentialsAndroidPayTypeID is TL type id of InputPaymentCredentialsAndroidPay.

View Source
const InputPaymentCredentialsApplePayTypeID = 0xaa1c39f

InputPaymentCredentialsApplePayTypeID is TL type id of InputPaymentCredentialsApplePay.

View Source
const InputPaymentCredentialsSavedTypeID = 0xc10eb2cf

InputPaymentCredentialsSavedTypeID is TL type id of InputPaymentCredentialsSaved.

View Source
const InputPaymentCredentialsTypeID = 0x3417d728

InputPaymentCredentialsTypeID is TL type id of InputPaymentCredentials.

View Source
const InputPeerChannelFromMessageTypeID = 0x9c95f7bb

InputPeerChannelFromMessageTypeID is TL type id of InputPeerChannelFromMessage.

View Source
const InputPeerChannelTypeID = 0x20adaef8

InputPeerChannelTypeID is TL type id of InputPeerChannel.

View Source
const InputPeerChatTypeID = 0x179be863

InputPeerChatTypeID is TL type id of InputPeerChat.

View Source
const InputPeerEmptyTypeID = 0x7f3b18ea

InputPeerEmptyTypeID is TL type id of InputPeerEmpty.

View Source
const InputPeerNotifySettingsTypeID = 0x9c3d198e

InputPeerNotifySettingsTypeID is TL type id of InputPeerNotifySettings.

View Source
const InputPeerPhotoFileLocationTypeID = 0x27d69997

InputPeerPhotoFileLocationTypeID is TL type id of InputPeerPhotoFileLocation.

View Source
const InputPeerSelfTypeID = 0x7da07ec9

InputPeerSelfTypeID is TL type id of InputPeerSelf.

View Source
const InputPeerUserFromMessageTypeID = 0x17bae2e6

InputPeerUserFromMessageTypeID is TL type id of InputPeerUserFromMessage.

View Source
const InputPeerUserTypeID = 0x7b8e7de6

InputPeerUserTypeID is TL type id of InputPeerUser.

View Source
const InputPhoneCallTypeID = 0x1e36fded

InputPhoneCallTypeID is TL type id of InputPhoneCall.

View Source
const InputPhoneContactTypeID = 0xf392b7f4

InputPhoneContactTypeID is TL type id of InputPhoneContact.

View Source
const InputPhotoEmptyTypeID = 0x1cd7bf0d

InputPhotoEmptyTypeID is TL type id of InputPhotoEmpty.

View Source
const InputPhotoFileLocationTypeID = 0x40181ffe

InputPhotoFileLocationTypeID is TL type id of InputPhotoFileLocation.

View Source
const InputPhotoLegacyFileLocationTypeID = 0xd83466f3

InputPhotoLegacyFileLocationTypeID is TL type id of InputPhotoLegacyFileLocation.

View Source
const InputPhotoTypeID = 0x3bb3b94a

InputPhotoTypeID is TL type id of InputPhoto.

View Source
const InputPrivacyKeyAddedByPhoneTypeID = 0xd1219bdd

InputPrivacyKeyAddedByPhoneTypeID is TL type id of InputPrivacyKeyAddedByPhone.

View Source
const InputPrivacyKeyChatInviteTypeID = 0xbdfb0426

InputPrivacyKeyChatInviteTypeID is TL type id of InputPrivacyKeyChatInvite.

View Source
const InputPrivacyKeyForwardsTypeID = 0xa4dd4c08

InputPrivacyKeyForwardsTypeID is TL type id of InputPrivacyKeyForwards.

View Source
const InputPrivacyKeyPhoneCallTypeID = 0xfabadc5f

InputPrivacyKeyPhoneCallTypeID is TL type id of InputPrivacyKeyPhoneCall.

View Source
const InputPrivacyKeyPhoneNumberTypeID = 0x352dafa

InputPrivacyKeyPhoneNumberTypeID is TL type id of InputPrivacyKeyPhoneNumber.

View Source
const InputPrivacyKeyPhoneP2PTypeID = 0xdb9e70d2

InputPrivacyKeyPhoneP2PTypeID is TL type id of InputPrivacyKeyPhoneP2P.

View Source
const InputPrivacyKeyProfilePhotoTypeID = 0x5719bacc

InputPrivacyKeyProfilePhotoTypeID is TL type id of InputPrivacyKeyProfilePhoto.

View Source
const InputPrivacyKeyStatusTimestampTypeID = 0x4f96cb18

InputPrivacyKeyStatusTimestampTypeID is TL type id of InputPrivacyKeyStatusTimestamp.

View Source
const InputPrivacyValueAllowAllTypeID = 0x184b35ce

InputPrivacyValueAllowAllTypeID is TL type id of InputPrivacyValueAllowAll.

View Source
const InputPrivacyValueAllowChatParticipantsTypeID = 0x4c81c1ba

InputPrivacyValueAllowChatParticipantsTypeID is TL type id of InputPrivacyValueAllowChatParticipants.

View Source
const InputPrivacyValueAllowContactsTypeID = 0xd09e07b

InputPrivacyValueAllowContactsTypeID is TL type id of InputPrivacyValueAllowContacts.

View Source
const InputPrivacyValueAllowUsersTypeID = 0x131cc67f

InputPrivacyValueAllowUsersTypeID is TL type id of InputPrivacyValueAllowUsers.

View Source
const InputPrivacyValueDisallowAllTypeID = 0xd66b66c9

InputPrivacyValueDisallowAllTypeID is TL type id of InputPrivacyValueDisallowAll.

View Source
const InputPrivacyValueDisallowChatParticipantsTypeID = 0xd82363af

InputPrivacyValueDisallowChatParticipantsTypeID is TL type id of InputPrivacyValueDisallowChatParticipants.

View Source
const InputPrivacyValueDisallowContactsTypeID = 0xba52007

InputPrivacyValueDisallowContactsTypeID is TL type id of InputPrivacyValueDisallowContacts.

View Source
const InputPrivacyValueDisallowUsersTypeID = 0x90110467

InputPrivacyValueDisallowUsersTypeID is TL type id of InputPrivacyValueDisallowUsers.

View Source
const InputReportReasonChildAbuseTypeID = 0xadf44ee3

InputReportReasonChildAbuseTypeID is TL type id of InputReportReasonChildAbuse.

View Source
const InputReportReasonCopyrightTypeID = 0x9b89f93a

InputReportReasonCopyrightTypeID is TL type id of InputReportReasonCopyright.

View Source
const InputReportReasonGeoIrrelevantTypeID = 0xdbd4feed

InputReportReasonGeoIrrelevantTypeID is TL type id of InputReportReasonGeoIrrelevant.

View Source
const InputReportReasonOtherTypeID = 0xe1746d0a

InputReportReasonOtherTypeID is TL type id of InputReportReasonOther.

View Source
const InputReportReasonPornographyTypeID = 0x2e59d922

InputReportReasonPornographyTypeID is TL type id of InputReportReasonPornography.

View Source
const InputReportReasonSpamTypeID = 0x58dbcab8

InputReportReasonSpamTypeID is TL type id of InputReportReasonSpam.

View Source
const InputReportReasonViolenceTypeID = 0x1e22c78d

InputReportReasonViolenceTypeID is TL type id of InputReportReasonViolence.

View Source
const InputSecureFileLocationTypeID = 0xcbc7ee28

InputSecureFileLocationTypeID is TL type id of InputSecureFileLocation.

View Source
const InputSecureFileTypeID = 0x5367e5be

InputSecureFileTypeID is TL type id of InputSecureFile.

View Source
const InputSecureFileUploadedTypeID = 0x3334b0f0

InputSecureFileUploadedTypeID is TL type id of InputSecureFileUploaded.

View Source
const InputSecureValueTypeID = 0xdb21d0a7

InputSecureValueTypeID is TL type id of InputSecureValue.

View Source
const InputSingleMediaTypeID = 0x1cc6e91f

InputSingleMediaTypeID is TL type id of InputSingleMedia.

View Source
const InputStickerSetAnimatedEmojiTypeID = 0x28703c8

InputStickerSetAnimatedEmojiTypeID is TL type id of InputStickerSetAnimatedEmoji.

View Source
const InputStickerSetDiceTypeID = 0xe67f520e

InputStickerSetDiceTypeID is TL type id of InputStickerSetDice.

View Source
const InputStickerSetEmptyTypeID = 0xffb62b95

InputStickerSetEmptyTypeID is TL type id of InputStickerSetEmpty.

View Source
const InputStickerSetIDTypeID = 0x9de7a269

InputStickerSetIDTypeID is TL type id of InputStickerSetID.

View Source
const InputStickerSetItemTypeID = 0xffa0a496

InputStickerSetItemTypeID is TL type id of InputStickerSetItem.

View Source
const InputStickerSetShortNameTypeID = 0x861cc8a0

InputStickerSetShortNameTypeID is TL type id of InputStickerSetShortName.

View Source
const InputStickerSetThumbTypeID = 0xdbaeae9

InputStickerSetThumbTypeID is TL type id of InputStickerSetThumb.

View Source
const InputStickeredMediaDocumentTypeID = 0x438865b

InputStickeredMediaDocumentTypeID is TL type id of InputStickeredMediaDocument.

View Source
const InputStickeredMediaPhotoTypeID = 0x4a992157

InputStickeredMediaPhotoTypeID is TL type id of InputStickeredMediaPhoto.

View Source
const InputTakeoutFileLocationTypeID = 0x29be5899

InputTakeoutFileLocationTypeID is TL type id of InputTakeoutFileLocation.

View Source
const InputThemeSettingsTypeID = 0xbd507cd1

InputThemeSettingsTypeID is TL type id of InputThemeSettings.

View Source
const InputThemeSlugTypeID = 0xf5890df1

InputThemeSlugTypeID is TL type id of InputThemeSlug.

View Source
const InputThemeTypeID = 0x3c5693e9

InputThemeTypeID is TL type id of InputTheme.

View Source
const InputUserEmptyTypeID = 0xb98886cf

InputUserEmptyTypeID is TL type id of InputUserEmpty.

View Source
const InputUserFromMessageTypeID = 0x2d117597

InputUserFromMessageTypeID is TL type id of InputUserFromMessage.

View Source
const InputUserSelfTypeID = 0xf7c1b13f

InputUserSelfTypeID is TL type id of InputUserSelf.

View Source
const InputUserTypeID = 0xd8292816

InputUserTypeID is TL type id of InputUser.

View Source
const InputWallPaperNoFileTypeID = 0x8427bbac

InputWallPaperNoFileTypeID is TL type id of InputWallPaperNoFile.

View Source
const InputWallPaperSlugTypeID = 0x72091c80

InputWallPaperSlugTypeID is TL type id of InputWallPaperSlug.

View Source
const InputWallPaperTypeID = 0xe630b979

InputWallPaperTypeID is TL type id of InputWallPaper.

View Source
const InputWebDocumentTypeID = 0x9bed434d

InputWebDocumentTypeID is TL type id of InputWebDocument.

View Source
const InputWebFileGeoPointLocationTypeID = 0x9f2221c9

InputWebFileGeoPointLocationTypeID is TL type id of InputWebFileGeoPointLocation.

View Source
const InputWebFileLocationTypeID = 0xc239d686

InputWebFileLocationTypeID is TL type id of InputWebFileLocation.

View Source
const InvoiceTypeID = 0xc30aa358

InvoiceTypeID is TL type id of Invoice.

View Source
const JsonArrayTypeID = 0xf7444763

JsonArrayTypeID is TL type id of JsonArray.

View Source
const JsonBoolTypeID = 0xc7345e6a

JsonBoolTypeID is TL type id of JsonBool.

View Source
const JsonNullTypeID = 0x3f6d7b68

JsonNullTypeID is TL type id of JsonNull.

View Source
const JsonNumberTypeID = 0x2be0dfa4

JsonNumberTypeID is TL type id of JsonNumber.

View Source
const JsonObjectTypeID = 0x99c1d49d

JsonObjectTypeID is TL type id of JsonObject.

View Source
const JsonObjectValueTypeID = 0xc0de1bd9

JsonObjectValueTypeID is TL type id of JsonObjectValue.

View Source
const JsonStringTypeID = 0xb71e767a

JsonStringTypeID is TL type id of JsonString.

View Source
const KeyboardButtonBuyTypeID = 0xafd93fbb

KeyboardButtonBuyTypeID is TL type id of KeyboardButtonBuy.

View Source
const KeyboardButtonCallbackTypeID = 0x35bbdb6b

KeyboardButtonCallbackTypeID is TL type id of KeyboardButtonCallback.

View Source
const KeyboardButtonGameTypeID = 0x50f41ccf

KeyboardButtonGameTypeID is TL type id of KeyboardButtonGame.

View Source
const KeyboardButtonRequestGeoLocationTypeID = 0xfc796b3f

KeyboardButtonRequestGeoLocationTypeID is TL type id of KeyboardButtonRequestGeoLocation.

View Source
const KeyboardButtonRequestPhoneTypeID = 0xb16a6c29

KeyboardButtonRequestPhoneTypeID is TL type id of KeyboardButtonRequestPhone.

View Source
const KeyboardButtonRequestPollTypeID = 0xbbc7515d

KeyboardButtonRequestPollTypeID is TL type id of KeyboardButtonRequestPoll.

View Source
const KeyboardButtonRowTypeID = 0x77608b83

KeyboardButtonRowTypeID is TL type id of KeyboardButtonRow.

View Source
const KeyboardButtonSwitchInlineTypeID = 0x568a748

KeyboardButtonSwitchInlineTypeID is TL type id of KeyboardButtonSwitchInline.

View Source
const KeyboardButtonTypeID = 0xa2fa4880

KeyboardButtonTypeID is TL type id of KeyboardButton.

View Source
const KeyboardButtonUrlAuthTypeID = 0x10b78d29

KeyboardButtonUrlAuthTypeID is TL type id of KeyboardButtonUrlAuth.

View Source
const KeyboardButtonUrlTypeID = 0x258aff05

KeyboardButtonUrlTypeID is TL type id of KeyboardButtonUrl.

View Source
const LabeledPriceTypeID = 0xcb296bf8

LabeledPriceTypeID is TL type id of LabeledPrice.

View Source
const LangPackDifferenceTypeID = 0xf385c1f6

LangPackDifferenceTypeID is TL type id of LangPackDifference.

View Source
const LangPackLanguageTypeID = 0xeeca5ce3

LangPackLanguageTypeID is TL type id of LangPackLanguage.

View Source
const LangPackStringDeletedTypeID = 0x2979eeb2

LangPackStringDeletedTypeID is TL type id of LangPackStringDeleted.

View Source
const LangPackStringPluralizedTypeID = 0x6c47ac9f

LangPackStringPluralizedTypeID is TL type id of LangPackStringPluralized.

View Source
const LangPackStringTypeID = 0xcad181f6

LangPackStringTypeID is TL type id of LangPackString.

View Source
const LangpackGetDifferenceRequestTypeID = 0xcd984aa5

LangpackGetDifferenceRequestTypeID is TL type id of LangpackGetDifferenceRequest.

View Source
const LangpackGetLangPackRequestTypeID = 0xf2f2330a

LangpackGetLangPackRequestTypeID is TL type id of LangpackGetLangPackRequest.

View Source
const LangpackGetLanguageRequestTypeID = 0x6a596502

LangpackGetLanguageRequestTypeID is TL type id of LangpackGetLanguageRequest.

View Source
const LangpackGetLanguagesRequestTypeID = 0x42c6978f

LangpackGetLanguagesRequestTypeID is TL type id of LangpackGetLanguagesRequest.

View Source
const LangpackGetStringsRequestTypeID = 0xefea3803

LangpackGetStringsRequestTypeID is TL type id of LangpackGetStringsRequest.

View Source
const MaskCoordsTypeID = 0xaed6dbb2

MaskCoordsTypeID is TL type id of MaskCoords.

View Source
const MessageActionBotAllowedTypeID = 0xabe9affe

MessageActionBotAllowedTypeID is TL type id of MessageActionBotAllowed.

View Source
const MessageActionChannelCreateTypeID = 0x95d2ac92

MessageActionChannelCreateTypeID is TL type id of MessageActionChannelCreate.

View Source
const MessageActionChannelMigrateFromTypeID = 0xb055eaee

MessageActionChannelMigrateFromTypeID is TL type id of MessageActionChannelMigrateFrom.

View Source
const MessageActionChatAddUserTypeID = 0x488a7337

MessageActionChatAddUserTypeID is TL type id of MessageActionChatAddUser.

View Source
const MessageActionChatCreateTypeID = 0xa6638b9a

MessageActionChatCreateTypeID is TL type id of MessageActionChatCreate.

View Source
const MessageActionChatDeletePhotoTypeID = 0x95e3fbef

MessageActionChatDeletePhotoTypeID is TL type id of MessageActionChatDeletePhoto.

View Source
const MessageActionChatDeleteUserTypeID = 0xb2ae9b0c

MessageActionChatDeleteUserTypeID is TL type id of MessageActionChatDeleteUser.

View Source
const MessageActionChatEditPhotoTypeID = 0x7fcb13a8

MessageActionChatEditPhotoTypeID is TL type id of MessageActionChatEditPhoto.

View Source
const MessageActionChatEditTitleTypeID = 0xb5a1ce5a

MessageActionChatEditTitleTypeID is TL type id of MessageActionChatEditTitle.

View Source
const MessageActionChatJoinedByLinkTypeID = 0xf89cf5e8

MessageActionChatJoinedByLinkTypeID is TL type id of MessageActionChatJoinedByLink.

View Source
const MessageActionChatMigrateToTypeID = 0x51bdb021

MessageActionChatMigrateToTypeID is TL type id of MessageActionChatMigrateTo.

View Source
const MessageActionContactSignUpTypeID = 0xf3f25f76

MessageActionContactSignUpTypeID is TL type id of MessageActionContactSignUp.

View Source
const MessageActionCustomActionTypeID = 0xfae69f56

MessageActionCustomActionTypeID is TL type id of MessageActionCustomAction.

View Source
const MessageActionEmptyTypeID = 0xb6aef7b0

MessageActionEmptyTypeID is TL type id of MessageActionEmpty.

View Source
const MessageActionGameScoreTypeID = 0x92a72876

MessageActionGameScoreTypeID is TL type id of MessageActionGameScore.

View Source
const MessageActionGeoProximityReachedTypeID = 0x98e0d697

MessageActionGeoProximityReachedTypeID is TL type id of MessageActionGeoProximityReached.

View Source
const MessageActionHistoryClearTypeID = 0x9fbab604

MessageActionHistoryClearTypeID is TL type id of MessageActionHistoryClear.

View Source
const MessageActionPaymentSentMeTypeID = 0x8f31b327

MessageActionPaymentSentMeTypeID is TL type id of MessageActionPaymentSentMe.

View Source
const MessageActionPaymentSentTypeID = 0x40699cd0

MessageActionPaymentSentTypeID is TL type id of MessageActionPaymentSent.

View Source
const MessageActionPhoneCallTypeID = 0x80e11a7f

MessageActionPhoneCallTypeID is TL type id of MessageActionPhoneCall.

View Source
const MessageActionPinMessageTypeID = 0x94bd38ed

MessageActionPinMessageTypeID is TL type id of MessageActionPinMessage.

View Source
const MessageActionScreenshotTakenTypeID = 0x4792929b

MessageActionScreenshotTakenTypeID is TL type id of MessageActionScreenshotTaken.

View Source
const MessageActionSecureValuesSentMeTypeID = 0x1b287353

MessageActionSecureValuesSentMeTypeID is TL type id of MessageActionSecureValuesSentMe.

View Source
const MessageActionSecureValuesSentTypeID = 0xd95c6154

MessageActionSecureValuesSentTypeID is TL type id of MessageActionSecureValuesSent.

View Source
const MessageEmptyTypeID = 0x83e5de54

MessageEmptyTypeID is TL type id of MessageEmpty.

View Source
const MessageEntityBankCardTypeID = 0x761e6af4

MessageEntityBankCardTypeID is TL type id of MessageEntityBankCard.

View Source
const MessageEntityBlockquoteTypeID = 0x20df5d0

MessageEntityBlockquoteTypeID is TL type id of MessageEntityBlockquote.

View Source
const MessageEntityBoldTypeID = 0xbd610bc9

MessageEntityBoldTypeID is TL type id of MessageEntityBold.

View Source
const MessageEntityBotCommandTypeID = 0x6cef8ac7

MessageEntityBotCommandTypeID is TL type id of MessageEntityBotCommand.

View Source
const MessageEntityCashtagTypeID = 0x4c4e743f

MessageEntityCashtagTypeID is TL type id of MessageEntityCashtag.

View Source
const MessageEntityCodeTypeID = 0x28a20571

MessageEntityCodeTypeID is TL type id of MessageEntityCode.

View Source
const MessageEntityEmailTypeID = 0x64e475c2

MessageEntityEmailTypeID is TL type id of MessageEntityEmail.

View Source
const MessageEntityHashtagTypeID = 0x6f635b0d

MessageEntityHashtagTypeID is TL type id of MessageEntityHashtag.

View Source
const MessageEntityItalicTypeID = 0x826f8b60

MessageEntityItalicTypeID is TL type id of MessageEntityItalic.

View Source
const MessageEntityMentionNameTypeID = 0x352dca58

MessageEntityMentionNameTypeID is TL type id of MessageEntityMentionName.

View Source
const MessageEntityMentionTypeID = 0xfa04579d

MessageEntityMentionTypeID is TL type id of MessageEntityMention.

View Source
const MessageEntityPhoneTypeID = 0x9b69e34b

MessageEntityPhoneTypeID is TL type id of MessageEntityPhone.

View Source
const MessageEntityPreTypeID = 0x73924be0

MessageEntityPreTypeID is TL type id of MessageEntityPre.

View Source
const MessageEntityStrikeTypeID = 0xbf0693d4

MessageEntityStrikeTypeID is TL type id of MessageEntityStrike.

View Source
const MessageEntityTextUrlTypeID = 0x76a6d327

MessageEntityTextUrlTypeID is TL type id of MessageEntityTextUrl.

View Source
const MessageEntityUnderlineTypeID = 0x9c4e7e8b

MessageEntityUnderlineTypeID is TL type id of MessageEntityUnderline.

View Source
const MessageEntityUnknownTypeID = 0xbb92ba95

MessageEntityUnknownTypeID is TL type id of MessageEntityUnknown.

View Source
const MessageEntityUrlTypeID = 0x6ed02538

MessageEntityUrlTypeID is TL type id of MessageEntityUrl.

View Source
const MessageFwdHeaderTypeID = 0x5f777dce

MessageFwdHeaderTypeID is TL type id of MessageFwdHeader.

View Source
const MessageInteractionCountersTypeID = 0xad4fc9bd

MessageInteractionCountersTypeID is TL type id of MessageInteractionCounters.

View Source
const MessageMediaContactTypeID = 0xcbf24940

MessageMediaContactTypeID is TL type id of MessageMediaContact.

View Source
const MessageMediaDiceTypeID = 0x3f7ee58b

MessageMediaDiceTypeID is TL type id of MessageMediaDice.

View Source
const MessageMediaDocumentTypeID = 0x9cb070d7

MessageMediaDocumentTypeID is TL type id of MessageMediaDocument.

View Source
const MessageMediaEmptyTypeID = 0x3ded6320

MessageMediaEmptyTypeID is TL type id of MessageMediaEmpty.

View Source
const MessageMediaGameTypeID = 0xfdb19008

MessageMediaGameTypeID is TL type id of MessageMediaGame.

View Source
const MessageMediaGeoLiveTypeID = 0xb940c666

MessageMediaGeoLiveTypeID is TL type id of MessageMediaGeoLive.

View Source
const MessageMediaGeoTypeID = 0x56e0d474

MessageMediaGeoTypeID is TL type id of MessageMediaGeo.

View Source
const MessageMediaInvoiceTypeID = 0x84551347

MessageMediaInvoiceTypeID is TL type id of MessageMediaInvoice.

View Source
const MessageMediaPhotoTypeID = 0x695150d7

MessageMediaPhotoTypeID is TL type id of MessageMediaPhoto.

View Source
const MessageMediaPollTypeID = 0x4bd6e798

MessageMediaPollTypeID is TL type id of MessageMediaPoll.

View Source
const MessageMediaUnsupportedTypeID = 0x9f84f49e

MessageMediaUnsupportedTypeID is TL type id of MessageMediaUnsupported.

View Source
const MessageMediaVenueTypeID = 0x2ec0533f

MessageMediaVenueTypeID is TL type id of MessageMediaVenue.

View Source
const MessageMediaWebPageTypeID = 0xa32dd600

MessageMediaWebPageTypeID is TL type id of MessageMediaWebPage.

View Source
const MessageRangeTypeID = 0xae30253

MessageRangeTypeID is TL type id of MessageRange.

View Source
const MessageRepliesTypeID = 0x4128faac

MessageRepliesTypeID is TL type id of MessageReplies.

View Source
const MessageReplyHeaderTypeID = 0xa6d57763

MessageReplyHeaderTypeID is TL type id of MessageReplyHeader.

View Source
const MessageServiceTypeID = 0x286fa604

MessageServiceTypeID is TL type id of MessageService.

View Source
const MessageTypeID = 0x58ae39c9

MessageTypeID is TL type id of Message.

View Source
const MessageUserVoteInputOptionTypeID = 0x36377430

MessageUserVoteInputOptionTypeID is TL type id of MessageUserVoteInputOption.

View Source
const MessageUserVoteMultipleTypeID = 0xe8fe0de

MessageUserVoteMultipleTypeID is TL type id of MessageUserVoteMultiple.

View Source
const MessageUserVoteTypeID = 0xa28e5559

MessageUserVoteTypeID is TL type id of MessageUserVote.

View Source
const MessageViewsTypeID = 0x455b853d

MessageViewsTypeID is TL type id of MessageViews.

View Source
const MessagesAcceptEncryptionRequestTypeID = 0x3dbc0415

MessagesAcceptEncryptionRequestTypeID is TL type id of MessagesAcceptEncryptionRequest.

View Source
const MessagesAcceptUrlAuthRequestTypeID = 0xf729ea98

MessagesAcceptUrlAuthRequestTypeID is TL type id of MessagesAcceptUrlAuthRequest.

View Source
const MessagesAddChatUserRequestTypeID = 0xf9a0aa09

MessagesAddChatUserRequestTypeID is TL type id of MessagesAddChatUserRequest.

View Source
const MessagesAffectedHistoryTypeID = 0xb45c69d1

MessagesAffectedHistoryTypeID is TL type id of MessagesAffectedHistory.

View Source
const MessagesAffectedMessagesTypeID = 0x84d19185

MessagesAffectedMessagesTypeID is TL type id of MessagesAffectedMessages.

View Source
const MessagesAllStickersNotModifiedTypeID = 0xe86602c3

MessagesAllStickersNotModifiedTypeID is TL type id of MessagesAllStickersNotModified.

View Source
const MessagesAllStickersTypeID = 0xedfd405f

MessagesAllStickersTypeID is TL type id of MessagesAllStickers.

View Source
const MessagesArchivedStickersTypeID = 0x4fcba9c8

MessagesArchivedStickersTypeID is TL type id of MessagesArchivedStickers.

View Source
const MessagesBotCallbackAnswerTypeID = 0x36585ea4

MessagesBotCallbackAnswerTypeID is TL type id of MessagesBotCallbackAnswer.

View Source
const MessagesBotResultsTypeID = 0x947ca848

MessagesBotResultsTypeID is TL type id of MessagesBotResults.

View Source
const MessagesChannelMessagesTypeID = 0x64479808

MessagesChannelMessagesTypeID is TL type id of MessagesChannelMessages.

View Source
const MessagesChatFullTypeID = 0xe5d7d19c

MessagesChatFullTypeID is TL type id of MessagesChatFull.

View Source
const MessagesChatsSliceTypeID = 0x9cd81144

MessagesChatsSliceTypeID is TL type id of MessagesChatsSlice.

View Source
const MessagesChatsTypeID = 0x64ff9fd5

MessagesChatsTypeID is TL type id of MessagesChats.

View Source
const MessagesCheckChatInviteRequestTypeID = 0x3eadb1bb

MessagesCheckChatInviteRequestTypeID is TL type id of MessagesCheckChatInviteRequest.

View Source
const MessagesClearAllDraftsRequestTypeID = 0x7e58ee9c

MessagesClearAllDraftsRequestTypeID is TL type id of MessagesClearAllDraftsRequest.

View Source
const MessagesClearRecentStickersRequestTypeID = 0x8999602d

MessagesClearRecentStickersRequestTypeID is TL type id of MessagesClearRecentStickersRequest.

View Source
const MessagesCreateChatRequestTypeID = 0x9cb126e

MessagesCreateChatRequestTypeID is TL type id of MessagesCreateChatRequest.

View Source
const MessagesDeleteChatUserRequestTypeID = 0xe0611f16

MessagesDeleteChatUserRequestTypeID is TL type id of MessagesDeleteChatUserRequest.

View Source
const MessagesDeleteHistoryRequestTypeID = 0x1c015b09

MessagesDeleteHistoryRequestTypeID is TL type id of MessagesDeleteHistoryRequest.

View Source
const MessagesDeleteMessagesRequestTypeID = 0xe58e95d2

MessagesDeleteMessagesRequestTypeID is TL type id of MessagesDeleteMessagesRequest.

View Source
const MessagesDeleteScheduledMessagesRequestTypeID = 0x59ae2b16

MessagesDeleteScheduledMessagesRequestTypeID is TL type id of MessagesDeleteScheduledMessagesRequest.

View Source
const MessagesDhConfigNotModifiedTypeID = 0xc0e24635

MessagesDhConfigNotModifiedTypeID is TL type id of MessagesDhConfigNotModified.

View Source
const MessagesDhConfigTypeID = 0x2c221edd

MessagesDhConfigTypeID is TL type id of MessagesDhConfig.

View Source
const MessagesDialogsNotModifiedTypeID = 0xf0e3e596

MessagesDialogsNotModifiedTypeID is TL type id of MessagesDialogsNotModified.

View Source
const MessagesDialogsSliceTypeID = 0x71e094f3

MessagesDialogsSliceTypeID is TL type id of MessagesDialogsSlice.

View Source
const MessagesDialogsTypeID = 0x15ba6c40

MessagesDialogsTypeID is TL type id of MessagesDialogs.

View Source
const MessagesDiscardEncryptionRequestTypeID = 0xedd923c5

MessagesDiscardEncryptionRequestTypeID is TL type id of MessagesDiscardEncryptionRequest.

View Source
const MessagesDiscussionMessageTypeID = 0xf5dd8f9d

MessagesDiscussionMessageTypeID is TL type id of MessagesDiscussionMessage.

View Source
const MessagesEditChatAboutRequestTypeID = 0xdef60797

MessagesEditChatAboutRequestTypeID is TL type id of MessagesEditChatAboutRequest.

View Source
const MessagesEditChatAdminRequestTypeID = 0xa9e69f2e

MessagesEditChatAdminRequestTypeID is TL type id of MessagesEditChatAdminRequest.

View Source
const MessagesEditChatDefaultBannedRightsRequestTypeID = 0xa5866b41

MessagesEditChatDefaultBannedRightsRequestTypeID is TL type id of MessagesEditChatDefaultBannedRightsRequest.

View Source
const MessagesEditChatPhotoRequestTypeID = 0xca4c79d8

MessagesEditChatPhotoRequestTypeID is TL type id of MessagesEditChatPhotoRequest.

View Source
const MessagesEditChatTitleRequestTypeID = 0xdc452855

MessagesEditChatTitleRequestTypeID is TL type id of MessagesEditChatTitleRequest.

View Source
const MessagesEditInlineBotMessageRequestTypeID = 0x83557dba

MessagesEditInlineBotMessageRequestTypeID is TL type id of MessagesEditInlineBotMessageRequest.

View Source
const MessagesEditMessageRequestTypeID = 0x48f71778

MessagesEditMessageRequestTypeID is TL type id of MessagesEditMessageRequest.

View Source
const MessagesExportChatInviteRequestTypeID = 0xdf7534c

MessagesExportChatInviteRequestTypeID is TL type id of MessagesExportChatInviteRequest.

View Source
const MessagesFaveStickerRequestTypeID = 0xb9ffc55b

MessagesFaveStickerRequestTypeID is TL type id of MessagesFaveStickerRequest.

View Source
const MessagesFavedStickersNotModifiedTypeID = 0x9e8fa6d3

MessagesFavedStickersNotModifiedTypeID is TL type id of MessagesFavedStickersNotModified.

View Source
const MessagesFavedStickersTypeID = 0xf37f2f16

MessagesFavedStickersTypeID is TL type id of MessagesFavedStickers.

View Source
const MessagesFeaturedStickersNotModifiedTypeID = 0xc6dc0c66

MessagesFeaturedStickersNotModifiedTypeID is TL type id of MessagesFeaturedStickersNotModified.

View Source
const MessagesFeaturedStickersTypeID = 0xb6abc341

MessagesFeaturedStickersTypeID is TL type id of MessagesFeaturedStickers.

View Source
const MessagesForwardMessagesRequestTypeID = 0xd9fee60e

MessagesForwardMessagesRequestTypeID is TL type id of MessagesForwardMessagesRequest.

View Source
const MessagesFoundStickerSetsNotModifiedTypeID = 0xd54b65d

MessagesFoundStickerSetsNotModifiedTypeID is TL type id of MessagesFoundStickerSetsNotModified.

View Source
const MessagesFoundStickerSetsTypeID = 0x5108d648

MessagesFoundStickerSetsTypeID is TL type id of MessagesFoundStickerSets.

View Source
const MessagesGetAllChatsRequestTypeID = 0xeba80ff0

MessagesGetAllChatsRequestTypeID is TL type id of MessagesGetAllChatsRequest.

View Source
const MessagesGetAllDraftsRequestTypeID = 0x6a3f8d65

MessagesGetAllDraftsRequestTypeID is TL type id of MessagesGetAllDraftsRequest.

View Source
const MessagesGetAllStickersRequestTypeID = 0x1c9618b1

MessagesGetAllStickersRequestTypeID is TL type id of MessagesGetAllStickersRequest.

View Source
const MessagesGetArchivedStickersRequestTypeID = 0x57f17692

MessagesGetArchivedStickersRequestTypeID is TL type id of MessagesGetArchivedStickersRequest.

View Source
const MessagesGetAttachedStickersRequestTypeID = 0xcc5b67cc

MessagesGetAttachedStickersRequestTypeID is TL type id of MessagesGetAttachedStickersRequest.

View Source
const MessagesGetBotCallbackAnswerRequestTypeID = 0x9342ca07

MessagesGetBotCallbackAnswerRequestTypeID is TL type id of MessagesGetBotCallbackAnswerRequest.

View Source
const MessagesGetChatsRequestTypeID = 0x3c6aa187

MessagesGetChatsRequestTypeID is TL type id of MessagesGetChatsRequest.

View Source
const MessagesGetCommonChatsRequestTypeID = 0xd0a48c4

MessagesGetCommonChatsRequestTypeID is TL type id of MessagesGetCommonChatsRequest.

View Source
const MessagesGetDhConfigRequestTypeID = 0x26cf8950

MessagesGetDhConfigRequestTypeID is TL type id of MessagesGetDhConfigRequest.

View Source
const MessagesGetDialogFiltersRequestTypeID = 0xf19ed96d

MessagesGetDialogFiltersRequestTypeID is TL type id of MessagesGetDialogFiltersRequest.

View Source
const MessagesGetDialogUnreadMarksRequestTypeID = 0x22e24e22

MessagesGetDialogUnreadMarksRequestTypeID is TL type id of MessagesGetDialogUnreadMarksRequest.

View Source
const MessagesGetDialogsRequestTypeID = 0xa0ee3b73

MessagesGetDialogsRequestTypeID is TL type id of MessagesGetDialogsRequest.

View Source
const MessagesGetDiscussionMessageRequestTypeID = 0x446972fd

MessagesGetDiscussionMessageRequestTypeID is TL type id of MessagesGetDiscussionMessageRequest.

View Source
const MessagesGetDocumentByHashRequestTypeID = 0x338e2464

MessagesGetDocumentByHashRequestTypeID is TL type id of MessagesGetDocumentByHashRequest.

View Source
const MessagesGetEmojiKeywordsDifferenceRequestTypeID = 0x1508b6af

MessagesGetEmojiKeywordsDifferenceRequestTypeID is TL type id of MessagesGetEmojiKeywordsDifferenceRequest.

View Source
const MessagesGetEmojiKeywordsLanguagesRequestTypeID = 0x4e9963b2

MessagesGetEmojiKeywordsLanguagesRequestTypeID is TL type id of MessagesGetEmojiKeywordsLanguagesRequest.

View Source
const MessagesGetEmojiKeywordsRequestTypeID = 0x35a0e062

MessagesGetEmojiKeywordsRequestTypeID is TL type id of MessagesGetEmojiKeywordsRequest.

View Source
const MessagesGetEmojiURLRequestTypeID = 0xd5b10c26

MessagesGetEmojiURLRequestTypeID is TL type id of MessagesGetEmojiURLRequest.

View Source
const MessagesGetFavedStickersRequestTypeID = 0x21ce0b0e

MessagesGetFavedStickersRequestTypeID is TL type id of MessagesGetFavedStickersRequest.

View Source
const MessagesGetFeaturedStickersRequestTypeID = 0x2dacca4f

MessagesGetFeaturedStickersRequestTypeID is TL type id of MessagesGetFeaturedStickersRequest.

View Source
const MessagesGetFullChatRequestTypeID = 0x3b831c66

MessagesGetFullChatRequestTypeID is TL type id of MessagesGetFullChatRequest.

View Source
const MessagesGetGameHighScoresRequestTypeID = 0xe822649d

MessagesGetGameHighScoresRequestTypeID is TL type id of MessagesGetGameHighScoresRequest.

View Source
const MessagesGetHistoryRequestTypeID = 0xdcbb8260

MessagesGetHistoryRequestTypeID is TL type id of MessagesGetHistoryRequest.

View Source
const MessagesGetInlineBotResultsRequestTypeID = 0x514e999d

MessagesGetInlineBotResultsRequestTypeID is TL type id of MessagesGetInlineBotResultsRequest.

View Source
const MessagesGetInlineGameHighScoresRequestTypeID = 0xf635e1b

MessagesGetInlineGameHighScoresRequestTypeID is TL type id of MessagesGetInlineGameHighScoresRequest.

View Source
const MessagesGetMaskStickersRequestTypeID = 0x65b8c79f

MessagesGetMaskStickersRequestTypeID is TL type id of MessagesGetMaskStickersRequest.

View Source
const MessagesGetMessageEditDataRequestTypeID = 0xfda68d36

MessagesGetMessageEditDataRequestTypeID is TL type id of MessagesGetMessageEditDataRequest.

View Source
const MessagesGetMessagesRequestTypeID = 0x63c66506

MessagesGetMessagesRequestTypeID is TL type id of MessagesGetMessagesRequest.

View Source
const MessagesGetMessagesViewsRequestTypeID = 0x5784d3e1

MessagesGetMessagesViewsRequestTypeID is TL type id of MessagesGetMessagesViewsRequest.

View Source
const MessagesGetOldFeaturedStickersRequestTypeID = 0x5fe7025b

MessagesGetOldFeaturedStickersRequestTypeID is TL type id of MessagesGetOldFeaturedStickersRequest.

View Source
const MessagesGetOnlinesRequestTypeID = 0x6e2be050

MessagesGetOnlinesRequestTypeID is TL type id of MessagesGetOnlinesRequest.

View Source
const MessagesGetPeerDialogsRequestTypeID = 0xe470bcfd

MessagesGetPeerDialogsRequestTypeID is TL type id of MessagesGetPeerDialogsRequest.

View Source
const MessagesGetPeerSettingsRequestTypeID = 0x3672e09c

MessagesGetPeerSettingsRequestTypeID is TL type id of MessagesGetPeerSettingsRequest.

View Source
const MessagesGetPinnedDialogsRequestTypeID = 0xd6b94df2

MessagesGetPinnedDialogsRequestTypeID is TL type id of MessagesGetPinnedDialogsRequest.

View Source
const MessagesGetPollResultsRequestTypeID = 0x73bb643b

MessagesGetPollResultsRequestTypeID is TL type id of MessagesGetPollResultsRequest.

View Source
const MessagesGetPollVotesRequestTypeID = 0xb86e380e

MessagesGetPollVotesRequestTypeID is TL type id of MessagesGetPollVotesRequest.

View Source
const MessagesGetRecentLocationsRequestTypeID = 0xbbc45b09

MessagesGetRecentLocationsRequestTypeID is TL type id of MessagesGetRecentLocationsRequest.

View Source
const MessagesGetRecentStickersRequestTypeID = 0x5ea192c9

MessagesGetRecentStickersRequestTypeID is TL type id of MessagesGetRecentStickersRequest.

View Source
const MessagesGetRepliesRequestTypeID = 0x24b581ba

MessagesGetRepliesRequestTypeID is TL type id of MessagesGetRepliesRequest.

View Source
const MessagesGetSavedGifsRequestTypeID = 0x83bf3d52

MessagesGetSavedGifsRequestTypeID is TL type id of MessagesGetSavedGifsRequest.

View Source
const MessagesGetScheduledHistoryRequestTypeID = 0xe2c2685b

MessagesGetScheduledHistoryRequestTypeID is TL type id of MessagesGetScheduledHistoryRequest.

View Source
const MessagesGetScheduledMessagesRequestTypeID = 0xbdbb0464

MessagesGetScheduledMessagesRequestTypeID is TL type id of MessagesGetScheduledMessagesRequest.

View Source
const MessagesGetSearchCountersRequestTypeID = 0x732eef00

MessagesGetSearchCountersRequestTypeID is TL type id of MessagesGetSearchCountersRequest.

View Source
const MessagesGetSplitRangesRequestTypeID = 0x1cff7e08

MessagesGetSplitRangesRequestTypeID is TL type id of MessagesGetSplitRangesRequest.

View Source
const MessagesGetStatsURLRequestTypeID = 0x812c2ae6

MessagesGetStatsURLRequestTypeID is TL type id of MessagesGetStatsURLRequest.

View Source
const MessagesGetStickerSetRequestTypeID = 0x2619a90e

MessagesGetStickerSetRequestTypeID is TL type id of MessagesGetStickerSetRequest.

View Source
const MessagesGetStickersRequestTypeID = 0x43d4f2c

MessagesGetStickersRequestTypeID is TL type id of MessagesGetStickersRequest.

View Source
const MessagesGetSuggestedDialogFiltersRequestTypeID = 0xa29cd42c

MessagesGetSuggestedDialogFiltersRequestTypeID is TL type id of MessagesGetSuggestedDialogFiltersRequest.

View Source
const MessagesGetUnreadMentionsRequestTypeID = 0x46578472

MessagesGetUnreadMentionsRequestTypeID is TL type id of MessagesGetUnreadMentionsRequest.

View Source
const MessagesGetWebPagePreviewRequestTypeID = 0x8b68b0cc

MessagesGetWebPagePreviewRequestTypeID is TL type id of MessagesGetWebPagePreviewRequest.

View Source
const MessagesGetWebPageRequestTypeID = 0x32ca8f91

MessagesGetWebPageRequestTypeID is TL type id of MessagesGetWebPageRequest.

View Source
const MessagesHidePeerSettingsBarRequestTypeID = 0x4facb138

MessagesHidePeerSettingsBarRequestTypeID is TL type id of MessagesHidePeerSettingsBarRequest.

View Source
const MessagesHighScoresTypeID = 0x9a3bfd99

MessagesHighScoresTypeID is TL type id of MessagesHighScores.

View Source
const MessagesImportChatInviteRequestTypeID = 0x6c50051c

MessagesImportChatInviteRequestTypeID is TL type id of MessagesImportChatInviteRequest.

View Source
const MessagesInactiveChatsTypeID = 0xa927fec5

MessagesInactiveChatsTypeID is TL type id of MessagesInactiveChats.

View Source
const MessagesInstallStickerSetRequestTypeID = 0xc78fe460

MessagesInstallStickerSetRequestTypeID is TL type id of MessagesInstallStickerSetRequest.

View Source
const MessagesMarkDialogUnreadRequestTypeID = 0xc286d98f

MessagesMarkDialogUnreadRequestTypeID is TL type id of MessagesMarkDialogUnreadRequest.

View Source
const MessagesMessageEditDataTypeID = 0x26b5dde6

MessagesMessageEditDataTypeID is TL type id of MessagesMessageEditData.

View Source
const MessagesMessageViewsTypeID = 0xb6c4f543

MessagesMessageViewsTypeID is TL type id of MessagesMessageViews.

View Source
const MessagesMessagesNotModifiedTypeID = 0x74535f21

MessagesMessagesNotModifiedTypeID is TL type id of MessagesMessagesNotModified.

View Source
const MessagesMessagesSliceTypeID = 0x3a54685e

MessagesMessagesSliceTypeID is TL type id of MessagesMessagesSlice.

View Source
const MessagesMessagesTypeID = 0x8c718e87

MessagesMessagesTypeID is TL type id of MessagesMessages.

View Source
const MessagesMigrateChatRequestTypeID = 0x15a3b8e3

MessagesMigrateChatRequestTypeID is TL type id of MessagesMigrateChatRequest.

View Source
const MessagesPeerDialogsTypeID = 0x3371c354

MessagesPeerDialogsTypeID is TL type id of MessagesPeerDialogs.

View Source
const MessagesReadDiscussionRequestTypeID = 0xf731a9f4

MessagesReadDiscussionRequestTypeID is TL type id of MessagesReadDiscussionRequest.

View Source
const MessagesReadEncryptedHistoryRequestTypeID = 0x7f4b690a

MessagesReadEncryptedHistoryRequestTypeID is TL type id of MessagesReadEncryptedHistoryRequest.

View Source
const MessagesReadFeaturedStickersRequestTypeID = 0x5b118126

MessagesReadFeaturedStickersRequestTypeID is TL type id of MessagesReadFeaturedStickersRequest.

View Source
const MessagesReadHistoryRequestTypeID = 0xe306d3a

MessagesReadHistoryRequestTypeID is TL type id of MessagesReadHistoryRequest.

View Source
const MessagesReadMentionsRequestTypeID = 0xf0189d3

MessagesReadMentionsRequestTypeID is TL type id of MessagesReadMentionsRequest.

View Source
const MessagesReadMessageContentsRequestTypeID = 0x36a73f77

MessagesReadMessageContentsRequestTypeID is TL type id of MessagesReadMessageContentsRequest.

View Source
const MessagesReceivedMessagesRequestTypeID = 0x5a954c0

MessagesReceivedMessagesRequestTypeID is TL type id of MessagesReceivedMessagesRequest.

View Source
const MessagesReceivedQueueRequestTypeID = 0x55a5bb66

MessagesReceivedQueueRequestTypeID is TL type id of MessagesReceivedQueueRequest.

View Source
const MessagesRecentStickersNotModifiedTypeID = 0xb17f890

MessagesRecentStickersNotModifiedTypeID is TL type id of MessagesRecentStickersNotModified.

View Source
const MessagesRecentStickersTypeID = 0x22f3afb3

MessagesRecentStickersTypeID is TL type id of MessagesRecentStickers.

View Source
const MessagesReorderPinnedDialogsRequestTypeID = 0x3b1adf37

MessagesReorderPinnedDialogsRequestTypeID is TL type id of MessagesReorderPinnedDialogsRequest.

View Source
const MessagesReorderStickerSetsRequestTypeID = 0x78337739

MessagesReorderStickerSetsRequestTypeID is TL type id of MessagesReorderStickerSetsRequest.

View Source
const MessagesReportEncryptedSpamRequestTypeID = 0x4b0c8c0f

MessagesReportEncryptedSpamRequestTypeID is TL type id of MessagesReportEncryptedSpamRequest.

View Source
const MessagesReportRequestTypeID = 0xbd82b658

MessagesReportRequestTypeID is TL type id of MessagesReportRequest.

View Source
const MessagesReportSpamRequestTypeID = 0xcf1592db

MessagesReportSpamRequestTypeID is TL type id of MessagesReportSpamRequest.

View Source
const MessagesRequestEncryptionRequestTypeID = 0xf64daf43

MessagesRequestEncryptionRequestTypeID is TL type id of MessagesRequestEncryptionRequest.

View Source
const MessagesRequestUrlAuthRequestTypeID = 0xe33f5613

MessagesRequestUrlAuthRequestTypeID is TL type id of MessagesRequestUrlAuthRequest.

View Source
const MessagesSaveDraftRequestTypeID = 0xbc39e14b

MessagesSaveDraftRequestTypeID is TL type id of MessagesSaveDraftRequest.

View Source
const MessagesSaveGifRequestTypeID = 0x327a30cb

MessagesSaveGifRequestTypeID is TL type id of MessagesSaveGifRequest.

View Source
const MessagesSaveRecentStickerRequestTypeID = 0x392718f8

MessagesSaveRecentStickerRequestTypeID is TL type id of MessagesSaveRecentStickerRequest.

View Source
const MessagesSavedGifsNotModifiedTypeID = 0xe8025ca2

MessagesSavedGifsNotModifiedTypeID is TL type id of MessagesSavedGifsNotModified.

View Source
const MessagesSavedGifsTypeID = 0x2e0709a5

MessagesSavedGifsTypeID is TL type id of MessagesSavedGifs.

View Source
const MessagesSearchCounterTypeID = 0xe844ebff

MessagesSearchCounterTypeID is TL type id of MessagesSearchCounter.

View Source
const MessagesSearchGlobalRequestTypeID = 0x4bc6589a

MessagesSearchGlobalRequestTypeID is TL type id of MessagesSearchGlobalRequest.

View Source
const MessagesSearchRequestTypeID = 0xc352eec

MessagesSearchRequestTypeID is TL type id of MessagesSearchRequest.

View Source
const MessagesSearchStickerSetsRequestTypeID = 0xc2b7d08b

MessagesSearchStickerSetsRequestTypeID is TL type id of MessagesSearchStickerSetsRequest.

View Source
const MessagesSendEncryptedFileRequestTypeID = 0x5559481d

MessagesSendEncryptedFileRequestTypeID is TL type id of MessagesSendEncryptedFileRequest.

View Source
const MessagesSendEncryptedRequestTypeID = 0x44fa7a15

MessagesSendEncryptedRequestTypeID is TL type id of MessagesSendEncryptedRequest.

View Source
const MessagesSendEncryptedServiceRequestTypeID = 0x32d439a4

MessagesSendEncryptedServiceRequestTypeID is TL type id of MessagesSendEncryptedServiceRequest.

View Source
const MessagesSendInlineBotResultRequestTypeID = 0x220815b0

MessagesSendInlineBotResultRequestTypeID is TL type id of MessagesSendInlineBotResultRequest.

View Source
const MessagesSendMediaRequestTypeID = 0x3491eba9

MessagesSendMediaRequestTypeID is TL type id of MessagesSendMediaRequest.

View Source
const MessagesSendMessageRequestTypeID = 0x520c3870

MessagesSendMessageRequestTypeID is TL type id of MessagesSendMessageRequest.

View Source
const MessagesSendMultiMediaRequestTypeID = 0xcc0110cb

MessagesSendMultiMediaRequestTypeID is TL type id of MessagesSendMultiMediaRequest.

View Source
const MessagesSendScheduledMessagesRequestTypeID = 0xbd38850a

MessagesSendScheduledMessagesRequestTypeID is TL type id of MessagesSendScheduledMessagesRequest.

View Source
const MessagesSendScreenshotNotificationRequestTypeID = 0xc97df020

MessagesSendScreenshotNotificationRequestTypeID is TL type id of MessagesSendScreenshotNotificationRequest.

View Source
const MessagesSendVoteRequestTypeID = 0x10ea6184

MessagesSendVoteRequestTypeID is TL type id of MessagesSendVoteRequest.

View Source
const MessagesSentEncryptedFileTypeID = 0x9493ff32

MessagesSentEncryptedFileTypeID is TL type id of MessagesSentEncryptedFile.

View Source
const MessagesSentEncryptedMessageTypeID = 0x560f8935

MessagesSentEncryptedMessageTypeID is TL type id of MessagesSentEncryptedMessage.

View Source
const MessagesSetBotCallbackAnswerRequestTypeID = 0xd58f130a

MessagesSetBotCallbackAnswerRequestTypeID is TL type id of MessagesSetBotCallbackAnswerRequest.

View Source
const MessagesSetBotPrecheckoutResultsRequestTypeID = 0x9c2dd95

MessagesSetBotPrecheckoutResultsRequestTypeID is TL type id of MessagesSetBotPrecheckoutResultsRequest.

View Source
const MessagesSetBotShippingResultsRequestTypeID = 0xe5f672fa

MessagesSetBotShippingResultsRequestTypeID is TL type id of MessagesSetBotShippingResultsRequest.

View Source
const MessagesSetEncryptedTypingRequestTypeID = 0x791451ed

MessagesSetEncryptedTypingRequestTypeID is TL type id of MessagesSetEncryptedTypingRequest.

View Source
const MessagesSetGameScoreRequestTypeID = 0x8ef8ecc0

MessagesSetGameScoreRequestTypeID is TL type id of MessagesSetGameScoreRequest.

View Source
const MessagesSetInlineBotResultsRequestTypeID = 0xeb5ea206

MessagesSetInlineBotResultsRequestTypeID is TL type id of MessagesSetInlineBotResultsRequest.

View Source
const MessagesSetInlineGameScoreRequestTypeID = 0x15ad9f64

MessagesSetInlineGameScoreRequestTypeID is TL type id of MessagesSetInlineGameScoreRequest.

View Source
const MessagesSetTypingRequestTypeID = 0x58943ee2

MessagesSetTypingRequestTypeID is TL type id of MessagesSetTypingRequest.

View Source
const MessagesStartBotRequestTypeID = 0xe6df7378

MessagesStartBotRequestTypeID is TL type id of MessagesStartBotRequest.

View Source
const MessagesStickerSetInstallResultArchiveTypeID = 0x35e410a8

MessagesStickerSetInstallResultArchiveTypeID is TL type id of MessagesStickerSetInstallResultArchive.

View Source
const MessagesStickerSetInstallResultSuccessTypeID = 0x38641628

MessagesStickerSetInstallResultSuccessTypeID is TL type id of MessagesStickerSetInstallResultSuccess.

View Source
const MessagesStickerSetTypeID = 0xb60a24a6

MessagesStickerSetTypeID is TL type id of MessagesStickerSet.

View Source
const MessagesStickersNotModifiedTypeID = 0xf1749a22

MessagesStickersNotModifiedTypeID is TL type id of MessagesStickersNotModified.

View Source
const MessagesStickersTypeID = 0xe4599bbd

MessagesStickersTypeID is TL type id of MessagesStickers.

View Source
const MessagesToggleDialogPinRequestTypeID = 0xa731e257

MessagesToggleDialogPinRequestTypeID is TL type id of MessagesToggleDialogPinRequest.

View Source
const MessagesToggleStickerSetsRequestTypeID = 0xb5052fea

MessagesToggleStickerSetsRequestTypeID is TL type id of MessagesToggleStickerSetsRequest.

View Source
const MessagesUninstallStickerSetRequestTypeID = 0xf96e55de

MessagesUninstallStickerSetRequestTypeID is TL type id of MessagesUninstallStickerSetRequest.

View Source
const MessagesUnpinAllMessagesRequestTypeID = 0xf025bc8b

MessagesUnpinAllMessagesRequestTypeID is TL type id of MessagesUnpinAllMessagesRequest.

View Source
const MessagesUpdateDialogFilterRequestTypeID = 0x1ad4a04a

MessagesUpdateDialogFilterRequestTypeID is TL type id of MessagesUpdateDialogFilterRequest.

View Source
const MessagesUpdateDialogFiltersOrderRequestTypeID = 0xc563c1e4

MessagesUpdateDialogFiltersOrderRequestTypeID is TL type id of MessagesUpdateDialogFiltersOrderRequest.

View Source
const MessagesUpdatePinnedMessageRequestTypeID = 0xd2aaf7ec

MessagesUpdatePinnedMessageRequestTypeID is TL type id of MessagesUpdatePinnedMessageRequest.

View Source
const MessagesUploadEncryptedFileRequestTypeID = 0x5057c497

MessagesUploadEncryptedFileRequestTypeID is TL type id of MessagesUploadEncryptedFileRequest.

View Source
const MessagesUploadMediaRequestTypeID = 0x519bc2b1

MessagesUploadMediaRequestTypeID is TL type id of MessagesUploadMediaRequest.

View Source
const MessagesVotesListTypeID = 0x823f649

MessagesVotesListTypeID is TL type id of MessagesVotesList.

View Source
const NearestDcTypeID = 0x8e1a1775

NearestDcTypeID is TL type id of NearestDc.

View Source
const NotifyBroadcastsTypeID = 0xd612e8ef

NotifyBroadcastsTypeID is TL type id of NotifyBroadcasts.

View Source
const NotifyChatsTypeID = 0xc007cec3

NotifyChatsTypeID is TL type id of NotifyChats.

View Source
const NotifyPeerTypeID = 0x9fd40bd8

NotifyPeerTypeID is TL type id of NotifyPeer.

View Source
const NotifyUsersTypeID = 0xb4c83b4c

NotifyUsersTypeID is TL type id of NotifyUsers.

View Source
const NullTypeID = 0x56730bcc

NullTypeID is TL type id of Null.

View Source
const PageBlockAnchorTypeID = 0xce0d37b0

PageBlockAnchorTypeID is TL type id of PageBlockAnchor.

View Source
const PageBlockAudioTypeID = 0x804361ea

PageBlockAudioTypeID is TL type id of PageBlockAudio.

View Source
const PageBlockAuthorDateTypeID = 0xbaafe5e0

PageBlockAuthorDateTypeID is TL type id of PageBlockAuthorDate.

View Source
const PageBlockBlockquoteTypeID = 0x263d7c26

PageBlockBlockquoteTypeID is TL type id of PageBlockBlockquote.

View Source
const PageBlockChannelTypeID = 0xef1751b5

PageBlockChannelTypeID is TL type id of PageBlockChannel.

View Source
const PageBlockCollageTypeID = 0x65a0fa4d

PageBlockCollageTypeID is TL type id of PageBlockCollage.

View Source
const PageBlockCoverTypeID = 0x39f23300

PageBlockCoverTypeID is TL type id of PageBlockCover.

View Source
const PageBlockDetailsTypeID = 0x76768bed

PageBlockDetailsTypeID is TL type id of PageBlockDetails.

View Source
const PageBlockDividerTypeID = 0xdb20b188

PageBlockDividerTypeID is TL type id of PageBlockDivider.

View Source
const PageBlockEmbedPostTypeID = 0xf259a80b

PageBlockEmbedPostTypeID is TL type id of PageBlockEmbedPost.

View Source
const PageBlockEmbedTypeID = 0xa8718dc5

PageBlockEmbedTypeID is TL type id of PageBlockEmbed.

View Source
const PageBlockFooterTypeID = 0x48870999

PageBlockFooterTypeID is TL type id of PageBlockFooter.

View Source
const PageBlockHeaderTypeID = 0xbfd064ec

PageBlockHeaderTypeID is TL type id of PageBlockHeader.

View Source
const PageBlockKickerTypeID = 0x1e148390

PageBlockKickerTypeID is TL type id of PageBlockKicker.

View Source
const PageBlockListTypeID = 0xe4e88011

PageBlockListTypeID is TL type id of PageBlockList.

View Source
const PageBlockMapTypeID = 0xa44f3ef6

PageBlockMapTypeID is TL type id of PageBlockMap.

View Source
const PageBlockOrderedListTypeID = 0x9a8ae1e1

PageBlockOrderedListTypeID is TL type id of PageBlockOrderedList.

View Source
const PageBlockParagraphTypeID = 0x467a0766

PageBlockParagraphTypeID is TL type id of PageBlockParagraph.

View Source
const PageBlockPhotoTypeID = 0x1759c560

PageBlockPhotoTypeID is TL type id of PageBlockPhoto.

View Source
const PageBlockPreformattedTypeID = 0xc070d93e

PageBlockPreformattedTypeID is TL type id of PageBlockPreformatted.

View Source
const PageBlockPullquoteTypeID = 0x4f4456d3

PageBlockPullquoteTypeID is TL type id of PageBlockPullquote.

View Source
const PageBlockRelatedArticlesTypeID = 0x16115a96

PageBlockRelatedArticlesTypeID is TL type id of PageBlockRelatedArticles.

View Source
const PageBlockSlideshowTypeID = 0x31f9590

PageBlockSlideshowTypeID is TL type id of PageBlockSlideshow.

View Source
const PageBlockSubheaderTypeID = 0xf12bb6e1

PageBlockSubheaderTypeID is TL type id of PageBlockSubheader.

View Source
const PageBlockSubtitleTypeID = 0x8ffa9a1f

PageBlockSubtitleTypeID is TL type id of PageBlockSubtitle.

View Source
const PageBlockTableTypeID = 0xbf4dea82

PageBlockTableTypeID is TL type id of PageBlockTable.

View Source
const PageBlockTitleTypeID = 0x70abc3fd

PageBlockTitleTypeID is TL type id of PageBlockTitle.

View Source
const PageBlockUnsupportedTypeID = 0x13567e8a

PageBlockUnsupportedTypeID is TL type id of PageBlockUnsupported.

View Source
const PageBlockVideoTypeID = 0x7c8fe7b6

PageBlockVideoTypeID is TL type id of PageBlockVideo.

View Source
const PageCaptionTypeID = 0x6f747657

PageCaptionTypeID is TL type id of PageCaption.

View Source
const PageListItemBlocksTypeID = 0x25e073fc

PageListItemBlocksTypeID is TL type id of PageListItemBlocks.

View Source
const PageListItemTextTypeID = 0xb92fb6cd

PageListItemTextTypeID is TL type id of PageListItemText.

View Source
const PageListOrderedItemBlocksTypeID = 0x98dd8936

PageListOrderedItemBlocksTypeID is TL type id of PageListOrderedItemBlocks.

View Source
const PageListOrderedItemTextTypeID = 0x5e068047

PageListOrderedItemTextTypeID is TL type id of PageListOrderedItemText.

View Source
const PageRelatedArticleTypeID = 0xb390dc08

PageRelatedArticleTypeID is TL type id of PageRelatedArticle.

View Source
const PageTableCellTypeID = 0x34566b6a

PageTableCellTypeID is TL type id of PageTableCell.

View Source
const PageTableRowTypeID = 0xe0c0c5e5

PageTableRowTypeID is TL type id of PageTableRow.

View Source
const PageTypeID = 0x98657f0d

PageTypeID is TL type id of Page.

View Source
const PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowTypeID = 0x3a912d4a

PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowTypeID is TL type id of PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.

View Source
const PasswordKdfAlgoUnknownTypeID = 0xd45ab096

PasswordKdfAlgoUnknownTypeID is TL type id of PasswordKdfAlgoUnknown.

View Source
const PaymentChargeTypeID = 0xea02c27e

PaymentChargeTypeID is TL type id of PaymentCharge.

View Source
const PaymentRequestedInfoTypeID = 0x909c3f94

PaymentRequestedInfoTypeID is TL type id of PaymentRequestedInfo.

View Source
const PaymentSavedCredentialsCardTypeID = 0xcdc27a1f

PaymentSavedCredentialsCardTypeID is TL type id of PaymentSavedCredentialsCard.

View Source
const PaymentsBankCardDataTypeID = 0x3e24e573

PaymentsBankCardDataTypeID is TL type id of PaymentsBankCardData.

View Source
const PaymentsClearSavedInfoRequestTypeID = 0xd83d70c1

PaymentsClearSavedInfoRequestTypeID is TL type id of PaymentsClearSavedInfoRequest.

View Source
const PaymentsGetBankCardDataRequestTypeID = 0x2e79d779

PaymentsGetBankCardDataRequestTypeID is TL type id of PaymentsGetBankCardDataRequest.

View Source
const PaymentsGetPaymentFormRequestTypeID = 0x99f09745

PaymentsGetPaymentFormRequestTypeID is TL type id of PaymentsGetPaymentFormRequest.

View Source
const PaymentsGetPaymentReceiptRequestTypeID = 0xa092a980

PaymentsGetPaymentReceiptRequestTypeID is TL type id of PaymentsGetPaymentReceiptRequest.

View Source
const PaymentsGetSavedInfoRequestTypeID = 0x227d824b

PaymentsGetSavedInfoRequestTypeID is TL type id of PaymentsGetSavedInfoRequest.

View Source
const PaymentsPaymentFormTypeID = 0x3f56aea3

PaymentsPaymentFormTypeID is TL type id of PaymentsPaymentForm.

View Source
const PaymentsPaymentReceiptTypeID = 0x500911e1

PaymentsPaymentReceiptTypeID is TL type id of PaymentsPaymentReceipt.

View Source
const PaymentsPaymentResultTypeID = 0x4e5f810d

PaymentsPaymentResultTypeID is TL type id of PaymentsPaymentResult.

View Source
const PaymentsPaymentVerificationNeededTypeID = 0xd8411139

PaymentsPaymentVerificationNeededTypeID is TL type id of PaymentsPaymentVerificationNeeded.

View Source
const PaymentsSavedInfoTypeID = 0xfb8fe43c

PaymentsSavedInfoTypeID is TL type id of PaymentsSavedInfo.

View Source
const PaymentsSendPaymentFormRequestTypeID = 0x2b8879b3

PaymentsSendPaymentFormRequestTypeID is TL type id of PaymentsSendPaymentFormRequest.

View Source
const PaymentsValidateRequestedInfoRequestTypeID = 0x770a8e74

PaymentsValidateRequestedInfoRequestTypeID is TL type id of PaymentsValidateRequestedInfoRequest.

View Source
const PaymentsValidatedRequestedInfoTypeID = 0xd1451883

PaymentsValidatedRequestedInfoTypeID is TL type id of PaymentsValidatedRequestedInfo.

View Source
const PeerBlockedTypeID = 0xe8fd8014

PeerBlockedTypeID is TL type id of PeerBlocked.

View Source
const PeerChannelTypeID = 0xbddde532

PeerChannelTypeID is TL type id of PeerChannel.

View Source
const PeerChatTypeID = 0xbad0e5bb

PeerChatTypeID is TL type id of PeerChat.

View Source
const PeerLocatedTypeID = 0xca461b5d

PeerLocatedTypeID is TL type id of PeerLocated.

View Source
const PeerNotifySettingsTypeID = 0xaf509d20

PeerNotifySettingsTypeID is TL type id of PeerNotifySettings.

View Source
const PeerSelfLocatedTypeID = 0xf8ec284b

PeerSelfLocatedTypeID is TL type id of PeerSelfLocated.

View Source
const PeerSettingsTypeID = 0x733f2961

PeerSettingsTypeID is TL type id of PeerSettings.

View Source
const PeerUserTypeID = 0x9db1bc6d

PeerUserTypeID is TL type id of PeerUser.

View Source
const PhoneAcceptCallRequestTypeID = 0x3bd2b4a0

PhoneAcceptCallRequestTypeID is TL type id of PhoneAcceptCallRequest.

View Source
const PhoneCallAcceptedTypeID = 0x997c454a

PhoneCallAcceptedTypeID is TL type id of PhoneCallAccepted.

View Source
const PhoneCallDiscardReasonBusyTypeID = 0xfaf7e8c9

PhoneCallDiscardReasonBusyTypeID is TL type id of PhoneCallDiscardReasonBusy.

View Source
const PhoneCallDiscardReasonDisconnectTypeID = 0xe095c1a0

PhoneCallDiscardReasonDisconnectTypeID is TL type id of PhoneCallDiscardReasonDisconnect.

View Source
const PhoneCallDiscardReasonHangupTypeID = 0x57adc690

PhoneCallDiscardReasonHangupTypeID is TL type id of PhoneCallDiscardReasonHangup.

View Source
const PhoneCallDiscardReasonMissedTypeID = 0x85e42301

PhoneCallDiscardReasonMissedTypeID is TL type id of PhoneCallDiscardReasonMissed.

View Source
const PhoneCallDiscardedTypeID = 0x50ca4de1

PhoneCallDiscardedTypeID is TL type id of PhoneCallDiscarded.

View Source
const PhoneCallEmptyTypeID = 0x5366c915

PhoneCallEmptyTypeID is TL type id of PhoneCallEmpty.

View Source
const PhoneCallProtocolTypeID = 0xfc878fc8

PhoneCallProtocolTypeID is TL type id of PhoneCallProtocol.

View Source
const PhoneCallRequestedTypeID = 0x87eabb53

PhoneCallRequestedTypeID is TL type id of PhoneCallRequested.

View Source
const PhoneCallTypeID = 0x8742ae7f

PhoneCallTypeID is TL type id of PhoneCall.

View Source
const PhoneCallWaitingTypeID = 0x1b8f4ad1

PhoneCallWaitingTypeID is TL type id of PhoneCallWaiting.

View Source
const PhoneConfirmCallRequestTypeID = 0x2efe1722

PhoneConfirmCallRequestTypeID is TL type id of PhoneConfirmCallRequest.

View Source
const PhoneConnectionTypeID = 0x9d4c17c0

PhoneConnectionTypeID is TL type id of PhoneConnection.

View Source
const PhoneConnectionWebrtcTypeID = 0x635fe375

PhoneConnectionWebrtcTypeID is TL type id of PhoneConnectionWebrtc.

View Source
const PhoneDiscardCallRequestTypeID = 0xb2cbc1c0

PhoneDiscardCallRequestTypeID is TL type id of PhoneDiscardCallRequest.

View Source
const PhoneGetCallConfigRequestTypeID = 0x55451fa9

PhoneGetCallConfigRequestTypeID is TL type id of PhoneGetCallConfigRequest.

View Source
const PhonePhoneCallTypeID = 0xec82e140

PhonePhoneCallTypeID is TL type id of PhonePhoneCall.

View Source
const PhoneReceivedCallRequestTypeID = 0x17d54f61

PhoneReceivedCallRequestTypeID is TL type id of PhoneReceivedCallRequest.

View Source
const PhoneRequestCallRequestTypeID = 0x42ff96ed

PhoneRequestCallRequestTypeID is TL type id of PhoneRequestCallRequest.

View Source
const PhoneSaveCallDebugRequestTypeID = 0x277add7e

PhoneSaveCallDebugRequestTypeID is TL type id of PhoneSaveCallDebugRequest.

View Source
const PhoneSendSignalingDataRequestTypeID = 0xff7a9383

PhoneSendSignalingDataRequestTypeID is TL type id of PhoneSendSignalingDataRequest.

View Source
const PhoneSetCallRatingRequestTypeID = 0x59ead627

PhoneSetCallRatingRequestTypeID is TL type id of PhoneSetCallRatingRequest.

View Source
const PhotoCachedSizeTypeID = 0xe9a734fa

PhotoCachedSizeTypeID is TL type id of PhotoCachedSize.

View Source
const PhotoEmptyTypeID = 0x2331b22d

PhotoEmptyTypeID is TL type id of PhotoEmpty.

View Source
const PhotoPathSizeTypeID = 0xd8214d41

PhotoPathSizeTypeID is TL type id of PhotoPathSize.

View Source
const PhotoSizeEmptyTypeID = 0xe17e23c

PhotoSizeEmptyTypeID is TL type id of PhotoSizeEmpty.

View Source
const PhotoSizeProgressiveTypeID = 0x5aa86a51

PhotoSizeProgressiveTypeID is TL type id of PhotoSizeProgressive.

View Source
const PhotoSizeTypeID = 0x77bfb61b

PhotoSizeTypeID is TL type id of PhotoSize.

View Source
const PhotoStrippedSizeTypeID = 0xe0b0bc2e

PhotoStrippedSizeTypeID is TL type id of PhotoStrippedSize.

View Source
const PhotoTypeID = 0xfb197a65

PhotoTypeID is TL type id of Photo.

View Source
const PhotosDeletePhotosRequestTypeID = 0x87cf7f2f

PhotosDeletePhotosRequestTypeID is TL type id of PhotosDeletePhotosRequest.

View Source
const PhotosGetUserPhotosRequestTypeID = 0x91cd32a8

PhotosGetUserPhotosRequestTypeID is TL type id of PhotosGetUserPhotosRequest.

View Source
const PhotosPhotoTypeID = 0x20212ca8

PhotosPhotoTypeID is TL type id of PhotosPhoto.

View Source
const PhotosPhotosSliceTypeID = 0x15051f54

PhotosPhotosSliceTypeID is TL type id of PhotosPhotosSlice.

View Source
const PhotosPhotosTypeID = 0x8dca6aa5

PhotosPhotosTypeID is TL type id of PhotosPhotos.

View Source
const PhotosUpdateProfilePhotoRequestTypeID = 0x72d4742c

PhotosUpdateProfilePhotoRequestTypeID is TL type id of PhotosUpdateProfilePhotoRequest.

View Source
const PhotosUploadProfilePhotoRequestTypeID = 0x89f30f69

PhotosUploadProfilePhotoRequestTypeID is TL type id of PhotosUploadProfilePhotoRequest.

View Source
const PollAnswerTypeID = 0x6ca9c2e9

PollAnswerTypeID is TL type id of PollAnswer.

View Source
const PollAnswerVotersTypeID = 0x3b6ddad2

PollAnswerVotersTypeID is TL type id of PollAnswerVoters.

View Source
const PollResultsTypeID = 0xbadcc1a3

PollResultsTypeID is TL type id of PollResults.

View Source
const PollTypeID = 0x86e18161

PollTypeID is TL type id of Poll.

View Source
const PopularContactTypeID = 0x5ce14175

PopularContactTypeID is TL type id of PopularContact.

View Source
const PostAddressTypeID = 0x1e8caaeb

PostAddressTypeID is TL type id of PostAddress.

View Source
const PrivacyKeyAddedByPhoneTypeID = 0x42ffd42b

PrivacyKeyAddedByPhoneTypeID is TL type id of PrivacyKeyAddedByPhone.

View Source
const PrivacyKeyChatInviteTypeID = 0x500e6dfa

PrivacyKeyChatInviteTypeID is TL type id of PrivacyKeyChatInvite.

View Source
const PrivacyKeyForwardsTypeID = 0x69ec56a3

PrivacyKeyForwardsTypeID is TL type id of PrivacyKeyForwards.

View Source
const PrivacyKeyPhoneCallTypeID = 0x3d662b7b

PrivacyKeyPhoneCallTypeID is TL type id of PrivacyKeyPhoneCall.

View Source
const PrivacyKeyPhoneNumberTypeID = 0xd19ae46d

PrivacyKeyPhoneNumberTypeID is TL type id of PrivacyKeyPhoneNumber.

View Source
const PrivacyKeyPhoneP2PTypeID = 0x39491cc8

PrivacyKeyPhoneP2PTypeID is TL type id of PrivacyKeyPhoneP2P.

View Source
const PrivacyKeyProfilePhotoTypeID = 0x96151fed

PrivacyKeyProfilePhotoTypeID is TL type id of PrivacyKeyProfilePhoto.

View Source
const PrivacyKeyStatusTimestampTypeID = 0xbc2eab30

PrivacyKeyStatusTimestampTypeID is TL type id of PrivacyKeyStatusTimestamp.

View Source
const PrivacyValueAllowAllTypeID = 0x65427b82

PrivacyValueAllowAllTypeID is TL type id of PrivacyValueAllowAll.

View Source
const PrivacyValueAllowChatParticipantsTypeID = 0x18be796b

PrivacyValueAllowChatParticipantsTypeID is TL type id of PrivacyValueAllowChatParticipants.

View Source
const PrivacyValueAllowContactsTypeID = 0xfffe1bac

PrivacyValueAllowContactsTypeID is TL type id of PrivacyValueAllowContacts.

View Source
const PrivacyValueAllowUsersTypeID = 0x4d5bbe0c

PrivacyValueAllowUsersTypeID is TL type id of PrivacyValueAllowUsers.

View Source
const PrivacyValueDisallowAllTypeID = 0x8b73e763

PrivacyValueDisallowAllTypeID is TL type id of PrivacyValueDisallowAll.

View Source
const PrivacyValueDisallowChatParticipantsTypeID = 0xacae0690

PrivacyValueDisallowChatParticipantsTypeID is TL type id of PrivacyValueDisallowChatParticipants.

View Source
const PrivacyValueDisallowContactsTypeID = 0xf888fa1a

PrivacyValueDisallowContactsTypeID is TL type id of PrivacyValueDisallowContacts.

View Source
const PrivacyValueDisallowUsersTypeID = 0xc7f49b7

PrivacyValueDisallowUsersTypeID is TL type id of PrivacyValueDisallowUsers.

View Source
const ReceivedNotifyMessageTypeID = 0xa384b779

ReceivedNotifyMessageTypeID is TL type id of ReceivedNotifyMessage.

View Source
const RecentMeUrlChatInviteTypeID = 0xeb49081d

RecentMeUrlChatInviteTypeID is TL type id of RecentMeUrlChatInvite.

View Source
const RecentMeUrlChatTypeID = 0xa01b22f9

RecentMeUrlChatTypeID is TL type id of RecentMeUrlChat.

View Source
const RecentMeUrlStickerSetTypeID = 0xbc0a57dc

RecentMeUrlStickerSetTypeID is TL type id of RecentMeUrlStickerSet.

View Source
const RecentMeUrlUnknownTypeID = 0x46e1d13d

RecentMeUrlUnknownTypeID is TL type id of RecentMeUrlUnknown.

View Source
const RecentMeUrlUserTypeID = 0x8dbc3336

RecentMeUrlUserTypeID is TL type id of RecentMeUrlUser.

View Source
const ReplyInlineMarkupTypeID = 0x48a30254

ReplyInlineMarkupTypeID is TL type id of ReplyInlineMarkup.

View Source
const ReplyKeyboardForceReplyTypeID = 0xf4108aa0

ReplyKeyboardForceReplyTypeID is TL type id of ReplyKeyboardForceReply.

View Source
const ReplyKeyboardHideTypeID = 0xa03e5b85

ReplyKeyboardHideTypeID is TL type id of ReplyKeyboardHide.

View Source
const ReplyKeyboardMarkupTypeID = 0x3502758c

ReplyKeyboardMarkupTypeID is TL type id of ReplyKeyboardMarkup.

View Source
const RestrictionReasonTypeID = 0xd072acb4

RestrictionReasonTypeID is TL type id of RestrictionReason.

View Source
const SavedPhoneContactTypeID = 0x1142bd56

SavedPhoneContactTypeID is TL type id of SavedPhoneContact.

View Source
const SecureCredentialsEncryptedTypeID = 0x33f0ea47

SecureCredentialsEncryptedTypeID is TL type id of SecureCredentialsEncrypted.

View Source
const SecureDataTypeID = 0x8aeabec3

SecureDataTypeID is TL type id of SecureData.

View Source
const SecureFileEmptyTypeID = 0x64199744

SecureFileEmptyTypeID is TL type id of SecureFileEmpty.

View Source
const SecureFileTypeID = 0xe0277a62

SecureFileTypeID is TL type id of SecureFile.

View Source
const SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000TypeID = 0xbbf2dda0

SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000TypeID is TL type id of SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000.

View Source
const SecurePasswordKdfAlgoSHA512TypeID = 0x86471d92

SecurePasswordKdfAlgoSHA512TypeID is TL type id of SecurePasswordKdfAlgoSHA512.

View Source
const SecurePasswordKdfAlgoUnknownTypeID = 0x4a8537

SecurePasswordKdfAlgoUnknownTypeID is TL type id of SecurePasswordKdfAlgoUnknown.

View Source
const SecurePlainEmailTypeID = 0x21ec5a5f

SecurePlainEmailTypeID is TL type id of SecurePlainEmail.

View Source
const SecurePlainPhoneTypeID = 0x7d6099dd

SecurePlainPhoneTypeID is TL type id of SecurePlainPhone.

View Source
const SecureRequiredTypeOneOfTypeID = 0x27477b4

SecureRequiredTypeOneOfTypeID is TL type id of SecureRequiredTypeOneOf.

View Source
const SecureRequiredTypeTypeID = 0x829d99da

SecureRequiredTypeTypeID is TL type id of SecureRequiredType.

View Source
const SecureSecretSettingsTypeID = 0x1527bcac

SecureSecretSettingsTypeID is TL type id of SecureSecretSettings.

View Source
const SecureValueErrorDataTypeID = 0xe8a40bd9

SecureValueErrorDataTypeID is TL type id of SecureValueErrorData.

View Source
const SecureValueErrorFileTypeID = 0x7a700873

SecureValueErrorFileTypeID is TL type id of SecureValueErrorFile.

View Source
const SecureValueErrorFilesTypeID = 0x666220e9

SecureValueErrorFilesTypeID is TL type id of SecureValueErrorFiles.

View Source
const SecureValueErrorFrontSideTypeID = 0xbe3dfa

SecureValueErrorFrontSideTypeID is TL type id of SecureValueErrorFrontSide.

View Source
const SecureValueErrorReverseSideTypeID = 0x868a2aa5

SecureValueErrorReverseSideTypeID is TL type id of SecureValueErrorReverseSide.

View Source
const SecureValueErrorSelfieTypeID = 0xe537ced6

SecureValueErrorSelfieTypeID is TL type id of SecureValueErrorSelfie.

View Source
const SecureValueErrorTranslationFileTypeID = 0xa1144770

SecureValueErrorTranslationFileTypeID is TL type id of SecureValueErrorTranslationFile.

View Source
const SecureValueErrorTranslationFilesTypeID = 0x34636dd8

SecureValueErrorTranslationFilesTypeID is TL type id of SecureValueErrorTranslationFiles.

View Source
const SecureValueErrorTypeID = 0x869d758f

SecureValueErrorTypeID is TL type id of SecureValueError.

View Source
const SecureValueHashTypeID = 0xed1ecdb0

SecureValueHashTypeID is TL type id of SecureValueHash.

View Source
const SecureValueTypeAddressTypeID = 0xcbe31e26

SecureValueTypeAddressTypeID is TL type id of SecureValueTypeAddress.

View Source
const SecureValueTypeBankStatementTypeID = 0x89137c0d

SecureValueTypeBankStatementTypeID is TL type id of SecureValueTypeBankStatement.

View Source
const SecureValueTypeDriverLicenseTypeID = 0x6e425c4

SecureValueTypeDriverLicenseTypeID is TL type id of SecureValueTypeDriverLicense.

View Source
const SecureValueTypeEmailTypeID = 0x8e3ca7ee

SecureValueTypeEmailTypeID is TL type id of SecureValueTypeEmail.

View Source
const SecureValueTypeID = 0x187fa0ca

SecureValueTypeID is TL type id of SecureValue.

View Source
const SecureValueTypeIdentityCardTypeID = 0xa0d0744b

SecureValueTypeIdentityCardTypeID is TL type id of SecureValueTypeIdentityCard.

View Source
const SecureValueTypeInternalPassportTypeID = 0x99a48f23

SecureValueTypeInternalPassportTypeID is TL type id of SecureValueTypeInternalPassport.

View Source
const SecureValueTypePassportRegistrationTypeID = 0x99e3806a

SecureValueTypePassportRegistrationTypeID is TL type id of SecureValueTypePassportRegistration.

View Source
const SecureValueTypePassportTypeID = 0x3dac6a00

SecureValueTypePassportTypeID is TL type id of SecureValueTypePassport.

View Source
const SecureValueTypePersonalDetailsTypeID = 0x9d2a81e3

SecureValueTypePersonalDetailsTypeID is TL type id of SecureValueTypePersonalDetails.

View Source
const SecureValueTypePhoneTypeID = 0xb320aadb

SecureValueTypePhoneTypeID is TL type id of SecureValueTypePhone.

View Source
const SecureValueTypeRentalAgreementTypeID = 0x8b883488

SecureValueTypeRentalAgreementTypeID is TL type id of SecureValueTypeRentalAgreement.

View Source
const SecureValueTypeTemporaryRegistrationTypeID = 0xea02ec33

SecureValueTypeTemporaryRegistrationTypeID is TL type id of SecureValueTypeTemporaryRegistration.

View Source
const SecureValueTypeUtilityBillTypeID = 0xfc36954e

SecureValueTypeUtilityBillTypeID is TL type id of SecureValueTypeUtilityBill.

View Source
const SendMessageCancelActionTypeID = 0xfd5ec8f5

SendMessageCancelActionTypeID is TL type id of SendMessageCancelAction.

View Source
const SendMessageChooseContactActionTypeID = 0x628cbc6f

SendMessageChooseContactActionTypeID is TL type id of SendMessageChooseContactAction.

View Source
const SendMessageGamePlayActionTypeID = 0xdd6a8f48

SendMessageGamePlayActionTypeID is TL type id of SendMessageGamePlayAction.

View Source
const SendMessageGeoLocationActionTypeID = 0x176f8ba1

SendMessageGeoLocationActionTypeID is TL type id of SendMessageGeoLocationAction.

View Source
const SendMessageRecordAudioActionTypeID = 0xd52f73f7

SendMessageRecordAudioActionTypeID is TL type id of SendMessageRecordAudioAction.

View Source
const SendMessageRecordRoundActionTypeID = 0x88f27fbc

SendMessageRecordRoundActionTypeID is TL type id of SendMessageRecordRoundAction.

View Source
const SendMessageRecordVideoActionTypeID = 0xa187d66f

SendMessageRecordVideoActionTypeID is TL type id of SendMessageRecordVideoAction.

View Source
const SendMessageTypingActionTypeID = 0x16bf744e

SendMessageTypingActionTypeID is TL type id of SendMessageTypingAction.

View Source
const SendMessageUploadAudioActionTypeID = 0xf351d7ab

SendMessageUploadAudioActionTypeID is TL type id of SendMessageUploadAudioAction.

View Source
const SendMessageUploadDocumentActionTypeID = 0xaa0cd9e4

SendMessageUploadDocumentActionTypeID is TL type id of SendMessageUploadDocumentAction.

View Source
const SendMessageUploadPhotoActionTypeID = 0xd1d34a26

SendMessageUploadPhotoActionTypeID is TL type id of SendMessageUploadPhotoAction.

View Source
const SendMessageUploadRoundActionTypeID = 0x243e1c66

SendMessageUploadRoundActionTypeID is TL type id of SendMessageUploadRoundAction.

View Source
const SendMessageUploadVideoActionTypeID = 0xe9763aec

SendMessageUploadVideoActionTypeID is TL type id of SendMessageUploadVideoAction.

View Source
const ShippingOptionTypeID = 0xb6213cdf

ShippingOptionTypeID is TL type id of ShippingOption.

View Source
const StatsAbsValueAndPrevTypeID = 0xcb43acde

StatsAbsValueAndPrevTypeID is TL type id of StatsAbsValueAndPrev.

View Source
const StatsBroadcastStatsTypeID = 0xbdf78394

StatsBroadcastStatsTypeID is TL type id of StatsBroadcastStats.

View Source
const StatsDateRangeDaysTypeID = 0xb637edaf

StatsDateRangeDaysTypeID is TL type id of StatsDateRangeDays.

View Source
const StatsGetBroadcastStatsRequestTypeID = 0xab42441a

StatsGetBroadcastStatsRequestTypeID is TL type id of StatsGetBroadcastStatsRequest.

View Source
const StatsGetMegagroupStatsRequestTypeID = 0xdcdf8607

StatsGetMegagroupStatsRequestTypeID is TL type id of StatsGetMegagroupStatsRequest.

View Source
const StatsGetMessagePublicForwardsRequestTypeID = 0x5630281b

StatsGetMessagePublicForwardsRequestTypeID is TL type id of StatsGetMessagePublicForwardsRequest.

View Source
const StatsGetMessageStatsRequestTypeID = 0xb6e0a3f5

StatsGetMessageStatsRequestTypeID is TL type id of StatsGetMessageStatsRequest.

View Source
const StatsGraphAsyncTypeID = 0x4a27eb2d

StatsGraphAsyncTypeID is TL type id of StatsGraphAsync.

View Source
const StatsGraphErrorTypeID = 0xbedc9822

StatsGraphErrorTypeID is TL type id of StatsGraphError.

View Source
const StatsGraphTypeID = 0x8ea464b6

StatsGraphTypeID is TL type id of StatsGraph.

View Source
const StatsGroupTopAdminTypeID = 0x6014f412

StatsGroupTopAdminTypeID is TL type id of StatsGroupTopAdmin.

View Source
const StatsGroupTopInviterTypeID = 0x31962a4c

StatsGroupTopInviterTypeID is TL type id of StatsGroupTopInviter.

View Source
const StatsGroupTopPosterTypeID = 0x18f3d0f7

StatsGroupTopPosterTypeID is TL type id of StatsGroupTopPoster.

View Source
const StatsLoadAsyncGraphRequestTypeID = 0x621d5fa0

StatsLoadAsyncGraphRequestTypeID is TL type id of StatsLoadAsyncGraphRequest.

View Source
const StatsMegagroupStatsTypeID = 0xef7ff916

StatsMegagroupStatsTypeID is TL type id of StatsMegagroupStats.

View Source
const StatsMessageStatsTypeID = 0x8999f295

StatsMessageStatsTypeID is TL type id of StatsMessageStats.

View Source
const StatsPercentValueTypeID = 0xcbce2fe0

StatsPercentValueTypeID is TL type id of StatsPercentValue.

View Source
const StatsURLTypeID = 0x47a971e0

StatsURLTypeID is TL type id of StatsURL.

View Source
const StickerPackTypeID = 0x12b299d4

StickerPackTypeID is TL type id of StickerPack.

View Source
const StickerSetCoveredTypeID = 0x6410a5d2

StickerSetCoveredTypeID is TL type id of StickerSetCovered.

View Source
const StickerSetMultiCoveredTypeID = 0x3407e51b

StickerSetMultiCoveredTypeID is TL type id of StickerSetMultiCovered.

View Source
const StickerSetTypeID = 0xeeb46f27

StickerSetTypeID is TL type id of StickerSet.

View Source
const StickersAddStickerToSetRequestTypeID = 0x8653febe

StickersAddStickerToSetRequestTypeID is TL type id of StickersAddStickerToSetRequest.

View Source
const StickersChangeStickerPositionRequestTypeID = 0xffb6d4ca

StickersChangeStickerPositionRequestTypeID is TL type id of StickersChangeStickerPositionRequest.

View Source
const StickersCreateStickerSetRequestTypeID = 0xf1036780

StickersCreateStickerSetRequestTypeID is TL type id of StickersCreateStickerSetRequest.

View Source
const StickersRemoveStickerFromSetRequestTypeID = 0xf7760f51

StickersRemoveStickerFromSetRequestTypeID is TL type id of StickersRemoveStickerFromSetRequest.

View Source
const StickersSetStickerSetThumbRequestTypeID = 0x9a364e30

StickersSetStickerSetThumbRequestTypeID is TL type id of StickersSetStickerSetThumbRequest.

View Source
const StorageFileGifTypeID = 0xcae1aadf

StorageFileGifTypeID is TL type id of StorageFileGif.

View Source
const StorageFileJpegTypeID = 0x7efe0e

StorageFileJpegTypeID is TL type id of StorageFileJpeg.

View Source
const StorageFileMovTypeID = 0x4b09ebbc

StorageFileMovTypeID is TL type id of StorageFileMov.

View Source
const StorageFileMp3TypeID = 0x528a0677

StorageFileMp3TypeID is TL type id of StorageFileMp3.

View Source
const StorageFileMp4TypeID = 0xb3cea0e4

StorageFileMp4TypeID is TL type id of StorageFileMp4.

View Source
const StorageFilePartialTypeID = 0x40bc6f52

StorageFilePartialTypeID is TL type id of StorageFilePartial.

View Source
const StorageFilePdfTypeID = 0xae1e508d

StorageFilePdfTypeID is TL type id of StorageFilePdf.

View Source
const StorageFilePngTypeID = 0xa4f63c0

StorageFilePngTypeID is TL type id of StorageFilePng.

View Source
const StorageFileUnknownTypeID = 0xaa963b05

StorageFileUnknownTypeID is TL type id of StorageFileUnknown.

View Source
const StorageFileWebpTypeID = 0x1081464c

StorageFileWebpTypeID is TL type id of StorageFileWebp.

View Source
const TextAnchorTypeID = 0x35553762

TextAnchorTypeID is TL type id of TextAnchor.

View Source
const TextBoldTypeID = 0x6724abc4

TextBoldTypeID is TL type id of TextBold.

View Source
const TextConcatTypeID = 0x7e6260d7

TextConcatTypeID is TL type id of TextConcat.

View Source
const TextEmailTypeID = 0xde5a0dd6

TextEmailTypeID is TL type id of TextEmail.

View Source
const TextEmptyTypeID = 0xdc3d824f

TextEmptyTypeID is TL type id of TextEmpty.

View Source
const TextFixedTypeID = 0x6c3f19b9

TextFixedTypeID is TL type id of TextFixed.

View Source
const TextImageTypeID = 0x81ccf4f

TextImageTypeID is TL type id of TextImage.

View Source
const TextItalicTypeID = 0xd912a59c

TextItalicTypeID is TL type id of TextItalic.

View Source
const TextMarkedTypeID = 0x34b8621

TextMarkedTypeID is TL type id of TextMarked.

View Source
const TextPhoneTypeID = 0x1ccb966a

TextPhoneTypeID is TL type id of TextPhone.

View Source
const TextPlainTypeID = 0x744694e0

TextPlainTypeID is TL type id of TextPlain.

View Source
const TextStrikeTypeID = 0x9bf8bb95

TextStrikeTypeID is TL type id of TextStrike.

View Source
const TextSubscriptTypeID = 0xed6a8504

TextSubscriptTypeID is TL type id of TextSubscript.

View Source
const TextSuperscriptTypeID = 0xc7fb5e01

TextSuperscriptTypeID is TL type id of TextSuperscript.

View Source
const TextUnderlineTypeID = 0xc12622c4

TextUnderlineTypeID is TL type id of TextUnderline.

View Source
const TextUrlTypeID = 0x3c2884c1

TextUrlTypeID is TL type id of TextUrl.

View Source
const ThemeSettingsTypeID = 0x9c14984a

ThemeSettingsTypeID is TL type id of ThemeSettings.

View Source
const ThemeTypeID = 0x28f1114

ThemeTypeID is TL type id of Theme.

View Source
const TopPeerCategoryBotsInlineTypeID = 0x148677e2

TopPeerCategoryBotsInlineTypeID is TL type id of TopPeerCategoryBotsInline.

View Source
const TopPeerCategoryBotsPMTypeID = 0xab661b5b

TopPeerCategoryBotsPMTypeID is TL type id of TopPeerCategoryBotsPM.

View Source
const TopPeerCategoryChannelsTypeID = 0x161d9628

TopPeerCategoryChannelsTypeID is TL type id of TopPeerCategoryChannels.

View Source
const TopPeerCategoryCorrespondentsTypeID = 0x637b7ed

TopPeerCategoryCorrespondentsTypeID is TL type id of TopPeerCategoryCorrespondents.

View Source
const TopPeerCategoryForwardChatsTypeID = 0xfbeec0f0

TopPeerCategoryForwardChatsTypeID is TL type id of TopPeerCategoryForwardChats.

View Source
const TopPeerCategoryForwardUsersTypeID = 0xa8406ca9

TopPeerCategoryForwardUsersTypeID is TL type id of TopPeerCategoryForwardUsers.

View Source
const TopPeerCategoryGroupsTypeID = 0xbd17a14a

TopPeerCategoryGroupsTypeID is TL type id of TopPeerCategoryGroups.

View Source
const TopPeerCategoryPeersTypeID = 0xfb834291

TopPeerCategoryPeersTypeID is TL type id of TopPeerCategoryPeers.

View Source
const TopPeerCategoryPhoneCallsTypeID = 0x1e76a78c

TopPeerCategoryPhoneCallsTypeID is TL type id of TopPeerCategoryPhoneCalls.

View Source
const TopPeerTypeID = 0xedcdc05b

TopPeerTypeID is TL type id of TopPeer.

View Source
const TrueTypeID = 0x3fedd339

TrueTypeID is TL type id of True.

View Source
const UpdateBotCallbackQueryTypeID = 0xe73547e1

UpdateBotCallbackQueryTypeID is TL type id of UpdateBotCallbackQuery.

View Source
const UpdateBotInlineQueryTypeID = 0x54826690

UpdateBotInlineQueryTypeID is TL type id of UpdateBotInlineQuery.

View Source
const UpdateBotInlineSendTypeID = 0xe48f964

UpdateBotInlineSendTypeID is TL type id of UpdateBotInlineSend.

View Source
const UpdateBotPrecheckoutQueryTypeID = 0x5d2f3aa9

UpdateBotPrecheckoutQueryTypeID is TL type id of UpdateBotPrecheckoutQuery.

View Source
const UpdateBotShippingQueryTypeID = 0xe0cdc940

UpdateBotShippingQueryTypeID is TL type id of UpdateBotShippingQuery.

View Source
const UpdateBotWebhookJSONQueryTypeID = 0x9b9240a6

UpdateBotWebhookJSONQueryTypeID is TL type id of UpdateBotWebhookJSONQuery.

View Source
const UpdateBotWebhookJSONTypeID = 0x8317c0c3

UpdateBotWebhookJSONTypeID is TL type id of UpdateBotWebhookJSON.

View Source
const UpdateChannelAvailableMessagesTypeID = 0x70db6837

UpdateChannelAvailableMessagesTypeID is TL type id of UpdateChannelAvailableMessages.

View Source
const UpdateChannelMessageForwardsTypeID = 0x6e8a84df

UpdateChannelMessageForwardsTypeID is TL type id of UpdateChannelMessageForwards.

View Source
const UpdateChannelMessageViewsTypeID = 0x98a12b4b

UpdateChannelMessageViewsTypeID is TL type id of UpdateChannelMessageViews.

View Source
const UpdateChannelParticipantTypeID = 0x65d2b464

UpdateChannelParticipantTypeID is TL type id of UpdateChannelParticipant.

View Source
const UpdateChannelReadMessagesContentsTypeID = 0x89893b45

UpdateChannelReadMessagesContentsTypeID is TL type id of UpdateChannelReadMessagesContents.

View Source
const UpdateChannelTooLongTypeID = 0xeb0467fb

UpdateChannelTooLongTypeID is TL type id of UpdateChannelTooLong.

View Source
const UpdateChannelTypeID = 0xb6d45656

UpdateChannelTypeID is TL type id of UpdateChannel.

View Source
const UpdateChannelUserTypingTypeID = 0xff2abe9f

UpdateChannelUserTypingTypeID is TL type id of UpdateChannelUserTyping.

View Source
const UpdateChannelWebPageTypeID = 0x40771900

UpdateChannelWebPageTypeID is TL type id of UpdateChannelWebPage.

View Source
const UpdateChatDefaultBannedRightsTypeID = 0x54c01850

UpdateChatDefaultBannedRightsTypeID is TL type id of UpdateChatDefaultBannedRights.

View Source
const UpdateChatParticipantAddTypeID = 0xea4b0e5c

UpdateChatParticipantAddTypeID is TL type id of UpdateChatParticipantAdd.

View Source
const UpdateChatParticipantAdminTypeID = 0xb6901959

UpdateChatParticipantAdminTypeID is TL type id of UpdateChatParticipantAdmin.

View Source
const UpdateChatParticipantDeleteTypeID = 0x6e5f8c22

UpdateChatParticipantDeleteTypeID is TL type id of UpdateChatParticipantDelete.

View Source
const UpdateChatParticipantsTypeID = 0x7761198

UpdateChatParticipantsTypeID is TL type id of UpdateChatParticipants.

View Source
const UpdateChatUserTypingTypeID = 0x9a65ea1f

UpdateChatUserTypingTypeID is TL type id of UpdateChatUserTyping.

View Source
const UpdateConfigTypeID = 0xa229dd06

UpdateConfigTypeID is TL type id of UpdateConfig.

View Source
const UpdateContactsResetTypeID = 0x7084a7be

UpdateContactsResetTypeID is TL type id of UpdateContactsReset.

View Source
const UpdateDcOptionsTypeID = 0x8e5e9873

UpdateDcOptionsTypeID is TL type id of UpdateDcOptions.

View Source
const UpdateDeleteChannelMessagesTypeID = 0xc37521c9

UpdateDeleteChannelMessagesTypeID is TL type id of UpdateDeleteChannelMessages.

View Source
const UpdateDeleteMessagesTypeID = 0xa20db0e5

UpdateDeleteMessagesTypeID is TL type id of UpdateDeleteMessages.

View Source
const UpdateDeleteScheduledMessagesTypeID = 0x90866cee

UpdateDeleteScheduledMessagesTypeID is TL type id of UpdateDeleteScheduledMessages.

View Source
const UpdateDialogFilterOrderTypeID = 0xa5d72105

UpdateDialogFilterOrderTypeID is TL type id of UpdateDialogFilterOrder.

View Source
const UpdateDialogFilterTypeID = 0x26ffde7d

UpdateDialogFilterTypeID is TL type id of UpdateDialogFilter.

View Source
const UpdateDialogFiltersTypeID = 0x3504914f

UpdateDialogFiltersTypeID is TL type id of UpdateDialogFilters.

View Source
const UpdateDialogPinnedTypeID = 0x6e6fe51c

UpdateDialogPinnedTypeID is TL type id of UpdateDialogPinned.

View Source
const UpdateDialogUnreadMarkTypeID = 0xe16459c3

UpdateDialogUnreadMarkTypeID is TL type id of UpdateDialogUnreadMark.

View Source
const UpdateDraftMessageTypeID = 0xee2bb969

UpdateDraftMessageTypeID is TL type id of UpdateDraftMessage.

View Source
const UpdateEditChannelMessageTypeID = 0x1b3f4df7

UpdateEditChannelMessageTypeID is TL type id of UpdateEditChannelMessage.

View Source
const UpdateEditMessageTypeID = 0xe40370a3

UpdateEditMessageTypeID is TL type id of UpdateEditMessage.

View Source
const UpdateEncryptedChatTypingTypeID = 0x1710f156

UpdateEncryptedChatTypingTypeID is TL type id of UpdateEncryptedChatTyping.

View Source
const UpdateEncryptedMessagesReadTypeID = 0x38fe25b7

UpdateEncryptedMessagesReadTypeID is TL type id of UpdateEncryptedMessagesRead.

View Source
const UpdateEncryptionTypeID = 0xb4a2e88d

UpdateEncryptionTypeID is TL type id of UpdateEncryption.

View Source
const UpdateFavedStickersTypeID = 0xe511996d

UpdateFavedStickersTypeID is TL type id of UpdateFavedStickers.

View Source
const UpdateFolderPeersTypeID = 0x19360dc0

UpdateFolderPeersTypeID is TL type id of UpdateFolderPeers.

View Source
const UpdateGeoLiveViewedTypeID = 0x871fb939

UpdateGeoLiveViewedTypeID is TL type id of UpdateGeoLiveViewed.

View Source
const UpdateInlineBotCallbackQueryTypeID = 0xf9d27a5a

UpdateInlineBotCallbackQueryTypeID is TL type id of UpdateInlineBotCallbackQuery.

View Source
const UpdateLangPackTooLongTypeID = 0x46560264

UpdateLangPackTooLongTypeID is TL type id of UpdateLangPackTooLong.

View Source
const UpdateLangPackTypeID = 0x56022f4d

UpdateLangPackTypeID is TL type id of UpdateLangPack.

View Source
const UpdateLoginTokenTypeID = 0x564fe691

UpdateLoginTokenTypeID is TL type id of UpdateLoginToken.

View Source
const UpdateMessageIDTypeID = 0x4e90bfd6

UpdateMessageIDTypeID is TL type id of UpdateMessageID.

View Source
const UpdateMessagePollTypeID = 0xaca1657b

UpdateMessagePollTypeID is TL type id of UpdateMessagePoll.

View Source
const UpdateMessagePollVoteTypeID = 0x42f88f2c

UpdateMessagePollVoteTypeID is TL type id of UpdateMessagePollVote.

View Source
const UpdateNewChannelMessageTypeID = 0x62ba04d9

UpdateNewChannelMessageTypeID is TL type id of UpdateNewChannelMessage.

View Source
const UpdateNewEncryptedMessageTypeID = 0x12bcbd9a

UpdateNewEncryptedMessageTypeID is TL type id of UpdateNewEncryptedMessage.

View Source
const UpdateNewMessageTypeID = 0x1f2b0afd

UpdateNewMessageTypeID is TL type id of UpdateNewMessage.

View Source
const UpdateNewScheduledMessageTypeID = 0x39a51dfb

UpdateNewScheduledMessageTypeID is TL type id of UpdateNewScheduledMessage.

View Source
const UpdateNewStickerSetTypeID = 0x688a30aa

UpdateNewStickerSetTypeID is TL type id of UpdateNewStickerSet.

View Source
const UpdateNotifySettingsTypeID = 0xbec268ef

UpdateNotifySettingsTypeID is TL type id of UpdateNotifySettings.

View Source
const UpdatePeerBlockedTypeID = 0x246a4b22

UpdatePeerBlockedTypeID is TL type id of UpdatePeerBlocked.

View Source
const UpdatePeerLocatedTypeID = 0xb4afcfb0

UpdatePeerLocatedTypeID is TL type id of UpdatePeerLocated.

View Source
const UpdatePeerSettingsTypeID = 0x6a7e7366

UpdatePeerSettingsTypeID is TL type id of UpdatePeerSettings.

View Source
const UpdatePhoneCallSignalingDataTypeID = 0x2661bf09

UpdatePhoneCallSignalingDataTypeID is TL type id of UpdatePhoneCallSignalingData.

View Source
const UpdatePhoneCallTypeID = 0xab0f6b1e

UpdatePhoneCallTypeID is TL type id of UpdatePhoneCall.

View Source
const UpdatePinnedChannelMessagesTypeID = 0x8588878b

UpdatePinnedChannelMessagesTypeID is TL type id of UpdatePinnedChannelMessages.

View Source
const UpdatePinnedDialogsTypeID = 0xfa0f3ca2

UpdatePinnedDialogsTypeID is TL type id of UpdatePinnedDialogs.

View Source
const UpdatePinnedMessagesTypeID = 0xed85eab5

UpdatePinnedMessagesTypeID is TL type id of UpdatePinnedMessages.

View Source
const UpdatePrivacyTypeID = 0xee3b272a

UpdatePrivacyTypeID is TL type id of UpdatePrivacy.

View Source
const UpdatePtsChangedTypeID = 0x3354678f

UpdatePtsChangedTypeID is TL type id of UpdatePtsChanged.

View Source
const UpdateReadChannelDiscussionInboxTypeID = 0x1cc7de54

UpdateReadChannelDiscussionInboxTypeID is TL type id of UpdateReadChannelDiscussionInbox.

View Source
const UpdateReadChannelDiscussionOutboxTypeID = 0x4638a26c

UpdateReadChannelDiscussionOutboxTypeID is TL type id of UpdateReadChannelDiscussionOutbox.

View Source
const UpdateReadChannelInboxTypeID = 0x330b5424

UpdateReadChannelInboxTypeID is TL type id of UpdateReadChannelInbox.

View Source
const UpdateReadChannelOutboxTypeID = 0x25d6c9c7

UpdateReadChannelOutboxTypeID is TL type id of UpdateReadChannelOutbox.

View Source
const UpdateReadFeaturedStickersTypeID = 0x571d2742

UpdateReadFeaturedStickersTypeID is TL type id of UpdateReadFeaturedStickers.

View Source
const UpdateReadHistoryInboxTypeID = 0x9c974fdf

UpdateReadHistoryInboxTypeID is TL type id of UpdateReadHistoryInbox.

View Source
const UpdateReadHistoryOutboxTypeID = 0x2f2f21bf

UpdateReadHistoryOutboxTypeID is TL type id of UpdateReadHistoryOutbox.

View Source
const UpdateReadMessagesContentsTypeID = 0x68c13933

UpdateReadMessagesContentsTypeID is TL type id of UpdateReadMessagesContents.

View Source
const UpdateRecentStickersTypeID = 0x9a422c20

UpdateRecentStickersTypeID is TL type id of UpdateRecentStickers.

View Source
const UpdateSavedGifsTypeID = 0x9375341e

UpdateSavedGifsTypeID is TL type id of UpdateSavedGifs.

View Source
const UpdateServiceNotificationTypeID = 0xebe46819

UpdateServiceNotificationTypeID is TL type id of UpdateServiceNotification.

View Source
const UpdateShortChatMessageTypeID = 0x402d5dbb

UpdateShortChatMessageTypeID is TL type id of UpdateShortChatMessage.

View Source
const UpdateShortMessageTypeID = 0x2296d2c8

UpdateShortMessageTypeID is TL type id of UpdateShortMessage.

View Source
const UpdateShortSentMessageTypeID = 0x11f1331c

UpdateShortSentMessageTypeID is TL type id of UpdateShortSentMessage.

View Source
const UpdateShortTypeID = 0x78d4dec1

UpdateShortTypeID is TL type id of UpdateShort.

View Source
const UpdateStickerSetsOrderTypeID = 0xbb2d201

UpdateStickerSetsOrderTypeID is TL type id of UpdateStickerSetsOrder.

View Source
const UpdateStickerSetsTypeID = 0x43ae3dec

UpdateStickerSetsTypeID is TL type id of UpdateStickerSets.

View Source
const UpdateThemeTypeID = 0x8216fba3

UpdateThemeTypeID is TL type id of UpdateTheme.

View Source
const UpdateUserNameTypeID = 0xa7332b73

UpdateUserNameTypeID is TL type id of UpdateUserName.

View Source
const UpdateUserPhoneTypeID = 0x12b9417b

UpdateUserPhoneTypeID is TL type id of UpdateUserPhone.

View Source
const UpdateUserPhotoTypeID = 0x95313b0c

UpdateUserPhotoTypeID is TL type id of UpdateUserPhoto.

View Source
const UpdateUserStatusTypeID = 0x1bfbd823

UpdateUserStatusTypeID is TL type id of UpdateUserStatus.

View Source
const UpdateUserTypingTypeID = 0x5c486927

UpdateUserTypingTypeID is TL type id of UpdateUserTyping.

View Source
const UpdateWebPageTypeID = 0x7f891213

UpdateWebPageTypeID is TL type id of UpdateWebPage.

View Source
const UpdatesChannelDifferenceEmptyTypeID = 0x3e11affb

UpdatesChannelDifferenceEmptyTypeID is TL type id of UpdatesChannelDifferenceEmpty.

View Source
const UpdatesChannelDifferenceTooLongTypeID = 0xa4bcc6fe

UpdatesChannelDifferenceTooLongTypeID is TL type id of UpdatesChannelDifferenceTooLong.

View Source
const UpdatesChannelDifferenceTypeID = 0x2064674e

UpdatesChannelDifferenceTypeID is TL type id of UpdatesChannelDifference.

View Source
const UpdatesCombinedTypeID = 0x725b04c3

UpdatesCombinedTypeID is TL type id of UpdatesCombined.

View Source
const UpdatesDifferenceEmptyTypeID = 0x5d75a138

UpdatesDifferenceEmptyTypeID is TL type id of UpdatesDifferenceEmpty.

View Source
const UpdatesDifferenceSliceTypeID = 0xa8fb1981

UpdatesDifferenceSliceTypeID is TL type id of UpdatesDifferenceSlice.

View Source
const UpdatesDifferenceTooLongTypeID = 0x4afe8f6d

UpdatesDifferenceTooLongTypeID is TL type id of UpdatesDifferenceTooLong.

View Source
const UpdatesDifferenceTypeID = 0xf49ca0

UpdatesDifferenceTypeID is TL type id of UpdatesDifference.

View Source
const UpdatesGetChannelDifferenceRequestTypeID = 0x3173d78

UpdatesGetChannelDifferenceRequestTypeID is TL type id of UpdatesGetChannelDifferenceRequest.

View Source
const UpdatesGetDifferenceRequestTypeID = 0x25939651

UpdatesGetDifferenceRequestTypeID is TL type id of UpdatesGetDifferenceRequest.

View Source
const UpdatesGetStateRequestTypeID = 0xedd4882a

UpdatesGetStateRequestTypeID is TL type id of UpdatesGetStateRequest.

View Source
const UpdatesStateTypeID = 0xa56c2a3e

UpdatesStateTypeID is TL type id of UpdatesState.

View Source
const UpdatesTooLongTypeID = 0xe317af7e

UpdatesTooLongTypeID is TL type id of UpdatesTooLong.

View Source
const UpdatesTypeID = 0x74ae4240

UpdatesTypeID is TL type id of Updates.

View Source
const UploadCdnFileReuploadNeededTypeID = 0xeea8e46e

UploadCdnFileReuploadNeededTypeID is TL type id of UploadCdnFileReuploadNeeded.

View Source
const UploadCdnFileTypeID = 0xa99fca4f

UploadCdnFileTypeID is TL type id of UploadCdnFile.

View Source
const UploadFileCdnRedirectTypeID = 0xf18cda44

UploadFileCdnRedirectTypeID is TL type id of UploadFileCdnRedirect.

View Source
const UploadFileTypeID = 0x96a18d5

UploadFileTypeID is TL type id of UploadFile.

View Source
const UploadGetCdnFileHashesRequestTypeID = 0x4da54231

UploadGetCdnFileHashesRequestTypeID is TL type id of UploadGetCdnFileHashesRequest.

View Source
const UploadGetCdnFileRequestTypeID = 0x2000bcc3

UploadGetCdnFileRequestTypeID is TL type id of UploadGetCdnFileRequest.

View Source
const UploadGetFileHashesRequestTypeID = 0xc7025931

UploadGetFileHashesRequestTypeID is TL type id of UploadGetFileHashesRequest.

View Source
const UploadGetFileRequestTypeID = 0xb15a9afc

UploadGetFileRequestTypeID is TL type id of UploadGetFileRequest.

View Source
const UploadGetWebFileRequestTypeID = 0x24e6818d

UploadGetWebFileRequestTypeID is TL type id of UploadGetWebFileRequest.

View Source
const UploadReuploadCdnFileRequestTypeID = 0x9b2754a8

UploadReuploadCdnFileRequestTypeID is TL type id of UploadReuploadCdnFileRequest.

View Source
const UploadSaveBigFilePartRequestTypeID = 0xde7b673d

UploadSaveBigFilePartRequestTypeID is TL type id of UploadSaveBigFilePartRequest.

View Source
const UploadSaveFilePartRequestTypeID = 0xb304a621

UploadSaveFilePartRequestTypeID is TL type id of UploadSaveFilePartRequest.

View Source
const UploadWebFileTypeID = 0x21e753bc

UploadWebFileTypeID is TL type id of UploadWebFile.

View Source
const UrlAuthResultAcceptedTypeID = 0x8f8c0e4e

UrlAuthResultAcceptedTypeID is TL type id of UrlAuthResultAccepted.

View Source
const UrlAuthResultDefaultTypeID = 0xa9d6db1f

UrlAuthResultDefaultTypeID is TL type id of UrlAuthResultDefault.

View Source
const UrlAuthResultRequestTypeID = 0x92d33a0e

UrlAuthResultRequestTypeID is TL type id of UrlAuthResultRequest.

View Source
const UserEmptyTypeID = 0x200250ba

UserEmptyTypeID is TL type id of UserEmpty.

View Source
const UserFullTypeID = 0xedf17c12

UserFullTypeID is TL type id of UserFull.

View Source
const UserProfilePhotoEmptyTypeID = 0x4f11bae1

UserProfilePhotoEmptyTypeID is TL type id of UserProfilePhotoEmpty.

View Source
const UserProfilePhotoTypeID = 0x69d3ab26

UserProfilePhotoTypeID is TL type id of UserProfilePhoto.

View Source
const UserStatusEmptyTypeID = 0x9d05049

UserStatusEmptyTypeID is TL type id of UserStatusEmpty.

View Source
const UserStatusLastMonthTypeID = 0x77ebc742

UserStatusLastMonthTypeID is TL type id of UserStatusLastMonth.

View Source
const UserStatusLastWeekTypeID = 0x7bf09fc

UserStatusLastWeekTypeID is TL type id of UserStatusLastWeek.

View Source
const UserStatusOfflineTypeID = 0x8c703f

UserStatusOfflineTypeID is TL type id of UserStatusOffline.

View Source
const UserStatusOnlineTypeID = 0xedb93949

UserStatusOnlineTypeID is TL type id of UserStatusOnline.

View Source
const UserStatusRecentlyTypeID = 0xe26f42f1

UserStatusRecentlyTypeID is TL type id of UserStatusRecently.

View Source
const UserTypeID = 0x938458c1

UserTypeID is TL type id of User.

View Source
const UsersGetFullUserRequestTypeID = 0xca30a5b1

UsersGetFullUserRequestTypeID is TL type id of UsersGetFullUserRequest.

View Source
const UsersGetUsersRequestTypeID = 0xd91a548

UsersGetUsersRequestTypeID is TL type id of UsersGetUsersRequest.

View Source
const UsersSetSecureValueErrorsRequestTypeID = 0x90c894b5

UsersSetSecureValueErrorsRequestTypeID is TL type id of UsersSetSecureValueErrorsRequest.

View Source
const VideoSizeTypeID = 0xe831c556

VideoSizeTypeID is TL type id of VideoSize.

View Source
const WallPaperNoFileTypeID = 0x8af40b25

WallPaperNoFileTypeID is TL type id of WallPaperNoFile.

View Source
const WallPaperSettingsTypeID = 0x5086cf8

WallPaperSettingsTypeID is TL type id of WallPaperSettings.

View Source
const WallPaperTypeID = 0xa437c3ed

WallPaperTypeID is TL type id of WallPaper.

View Source
const WebAuthorizationTypeID = 0xcac943f2

WebAuthorizationTypeID is TL type id of WebAuthorization.

View Source
const WebDocumentNoProxyTypeID = 0xf9c8bcc6

WebDocumentNoProxyTypeID is TL type id of WebDocumentNoProxy.

View Source
const WebDocumentTypeID = 0x1c570ed1

WebDocumentTypeID is TL type id of WebDocument.

View Source
const WebPageAttributeThemeTypeID = 0x54b56617

WebPageAttributeThemeTypeID is TL type id of WebPageAttributeTheme.

View Source
const WebPageEmptyTypeID = 0xeb1477e8

WebPageEmptyTypeID is TL type id of WebPageEmpty.

View Source
const WebPageNotModifiedTypeID = 0x7311ca11

WebPageNotModifiedTypeID is TL type id of WebPageNotModified.

View Source
const WebPagePendingTypeID = 0xc586da1c

WebPagePendingTypeID is TL type id of WebPagePending.

View Source
const WebPageTypeID = 0xe89c45b2

WebPageTypeID is TL type id of WebPage.

Variables ¶

This section is empty.

Functions ¶

func TypesMap ¶

func TypesMap() map[uint32]string

Types returns mapping from type ids to TL type names.

Types ¶

type AccountAcceptAuthorizationRequest ¶

type AccountAcceptAuthorizationRequest struct {
	// BotID field of AccountAcceptAuthorizationRequest.
	BotID int
	// Scope field of AccountAcceptAuthorizationRequest.
	Scope string
	// PublicKey field of AccountAcceptAuthorizationRequest.
	PublicKey string
	// ValueHashes field of AccountAcceptAuthorizationRequest.
	ValueHashes []SecureValueHash
	// Credentials field of AccountAcceptAuthorizationRequest.
	Credentials SecureCredentialsEncrypted
}

AccountAcceptAuthorizationRequest represents TL type `account.acceptAuthorization#e7027c94`.

func (*AccountAcceptAuthorizationRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountAcceptAuthorizationRequest) Encode ¶

Encode implements bin.Encoder.

type AccountAuthorizationForm ¶

type AccountAuthorizationForm struct {
	// Flags field of AccountAuthorizationForm.
	Flags bin.Fields
	// RequiredTypes field of AccountAuthorizationForm.
	RequiredTypes []SecureRequiredTypeClass
	// Values field of AccountAuthorizationForm.
	Values []SecureValue
	// Errors field of AccountAuthorizationForm.
	Errors []SecureValueErrorClass
	// Users field of AccountAuthorizationForm.
	Users []UserClass
	// PrivacyPolicyURL field of AccountAuthorizationForm.
	//
	// Use SetPrivacyPolicyURL and GetPrivacyPolicyURL helpers.
	PrivacyPolicyURL string
}

AccountAuthorizationForm represents TL type `account.authorizationForm#ad2e1cd8`.

func (*AccountAuthorizationForm) Decode ¶

func (a *AccountAuthorizationForm) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountAuthorizationForm) Encode ¶

func (a *AccountAuthorizationForm) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*AccountAuthorizationForm) GetPrivacyPolicyURL ¶

func (a *AccountAuthorizationForm) GetPrivacyPolicyURL() (value string, ok bool)

GetPrivacyPolicyURL returns value of PrivacyPolicyURL conditional field and boolean which is true if field was set.

func (*AccountAuthorizationForm) SetPrivacyPolicyURL ¶

func (a *AccountAuthorizationForm) SetPrivacyPolicyURL(value string)

SetPrivacyPolicyURL sets value of PrivacyPolicyURL conditional field.

type AccountAuthorizations ¶

type AccountAuthorizations struct {
	// Authorizations field of AccountAuthorizations.
	Authorizations []Authorization
}

AccountAuthorizations represents TL type `account.authorizations#1250abde`.

func (*AccountAuthorizations) Decode ¶

func (a *AccountAuthorizations) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountAuthorizations) Encode ¶

func (a *AccountAuthorizations) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountAutoDownloadSettings ¶

type AccountAutoDownloadSettings struct {
	// Low field of AccountAutoDownloadSettings.
	Low AutoDownloadSettings
	// Medium field of AccountAutoDownloadSettings.
	Medium AutoDownloadSettings
	// High field of AccountAutoDownloadSettings.
	High AutoDownloadSettings
}

AccountAutoDownloadSettings represents TL type `account.autoDownloadSettings#63cacf26`.

func (*AccountAutoDownloadSettings) Decode ¶

Decode implements bin.Decoder.

func (*AccountAutoDownloadSettings) Encode ¶

Encode implements bin.Encoder.

type AccountCancelPasswordEmailRequest ¶

type AccountCancelPasswordEmailRequest struct {
}

AccountCancelPasswordEmailRequest represents TL type `account.cancelPasswordEmail#c1cbd5b6`.

func (*AccountCancelPasswordEmailRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountCancelPasswordEmailRequest) Encode ¶

Encode implements bin.Encoder.

type AccountChangePhoneRequest ¶

type AccountChangePhoneRequest struct {
	// PhoneNumber field of AccountChangePhoneRequest.
	PhoneNumber string
	// PhoneCodeHash field of AccountChangePhoneRequest.
	PhoneCodeHash string
	// PhoneCode field of AccountChangePhoneRequest.
	PhoneCode string
}

AccountChangePhoneRequest represents TL type `account.changePhone#70c32edb`.

func (*AccountChangePhoneRequest) Decode ¶

func (c *AccountChangePhoneRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountChangePhoneRequest) Encode ¶

func (c *AccountChangePhoneRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountCheckUsernameRequest ¶

type AccountCheckUsernameRequest struct {
	// Username field of AccountCheckUsernameRequest.
	Username string
}

AccountCheckUsernameRequest represents TL type `account.checkUsername#2714d86c`.

func (*AccountCheckUsernameRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountCheckUsernameRequest) Encode ¶

Encode implements bin.Encoder.

type AccountConfirmPasswordEmailRequest ¶

type AccountConfirmPasswordEmailRequest struct {
	// Code field of AccountConfirmPasswordEmailRequest.
	Code string
}

AccountConfirmPasswordEmailRequest represents TL type `account.confirmPasswordEmail#8fdf1920`.

func (*AccountConfirmPasswordEmailRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountConfirmPasswordEmailRequest) Encode ¶

Encode implements bin.Encoder.

type AccountConfirmPhoneRequest ¶

type AccountConfirmPhoneRequest struct {
	// PhoneCodeHash field of AccountConfirmPhoneRequest.
	PhoneCodeHash string
	// PhoneCode field of AccountConfirmPhoneRequest.
	PhoneCode string
}

AccountConfirmPhoneRequest represents TL type `account.confirmPhone#5f2178c3`.

func (*AccountConfirmPhoneRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountConfirmPhoneRequest) Encode ¶

Encode implements bin.Encoder.

type AccountContentSettings ¶

type AccountContentSettings struct {
	// Flags field of AccountContentSettings.
	Flags bin.Fields
	// SensitiveEnabled field of AccountContentSettings.
	SensitiveEnabled bool
	// SensitiveCanChange field of AccountContentSettings.
	SensitiveCanChange bool
}

AccountContentSettings represents TL type `account.contentSettings#57e28221`.

func (*AccountContentSettings) Decode ¶

func (c *AccountContentSettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountContentSettings) Encode ¶

func (c *AccountContentSettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*AccountContentSettings) SetSensitiveCanChange ¶

func (c *AccountContentSettings) SetSensitiveCanChange(value bool)

SetSensitiveCanChange sets value of SensitiveCanChange conditional field.

func (*AccountContentSettings) SetSensitiveEnabled ¶

func (c *AccountContentSettings) SetSensitiveEnabled(value bool)

SetSensitiveEnabled sets value of SensitiveEnabled conditional field.

type AccountCreateThemeRequest ¶

type AccountCreateThemeRequest struct {
	// Flags field of AccountCreateThemeRequest.
	Flags bin.Fields
	// Slug field of AccountCreateThemeRequest.
	Slug string
	// Title field of AccountCreateThemeRequest.
	Title string
	// Document field of AccountCreateThemeRequest.
	//
	// Use SetDocument and GetDocument helpers.
	Document InputDocumentClass
	// Settings field of AccountCreateThemeRequest.
	//
	// Use SetSettings and GetSettings helpers.
	Settings InputThemeSettings
}

AccountCreateThemeRequest represents TL type `account.createTheme#8432c21f`.

func (*AccountCreateThemeRequest) Decode ¶

func (c *AccountCreateThemeRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountCreateThemeRequest) Encode ¶

func (c *AccountCreateThemeRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*AccountCreateThemeRequest) GetDocument ¶

func (c *AccountCreateThemeRequest) GetDocument() (value InputDocumentClass, ok bool)

GetDocument returns value of Document conditional field and boolean which is true if field was set.

func (*AccountCreateThemeRequest) GetSettings ¶

func (c *AccountCreateThemeRequest) GetSettings() (value InputThemeSettings, ok bool)

GetSettings returns value of Settings conditional field and boolean which is true if field was set.

func (*AccountCreateThemeRequest) SetDocument ¶

func (c *AccountCreateThemeRequest) SetDocument(value InputDocumentClass)

SetDocument sets value of Document conditional field.

func (*AccountCreateThemeRequest) SetSettings ¶

func (c *AccountCreateThemeRequest) SetSettings(value InputThemeSettings)

SetSettings sets value of Settings conditional field.

type AccountDaysTTL ¶

type AccountDaysTTL struct {
	// Days field of AccountDaysTTL.
	Days int
}

AccountDaysTTL represents TL type `accountDaysTTL#b8d0afdf`.

func (*AccountDaysTTL) Decode ¶

func (a *AccountDaysTTL) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountDaysTTL) Encode ¶

func (a *AccountDaysTTL) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountDeleteAccountRequest ¶

type AccountDeleteAccountRequest struct {
	// Reason field of AccountDeleteAccountRequest.
	Reason string
}

AccountDeleteAccountRequest represents TL type `account.deleteAccount#418d4e0b`.

func (*AccountDeleteAccountRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountDeleteAccountRequest) Encode ¶

Encode implements bin.Encoder.

type AccountDeleteSecureValueRequest ¶

type AccountDeleteSecureValueRequest struct {
	// Types field of AccountDeleteSecureValueRequest.
	Types []SecureValueTypeClass
}

AccountDeleteSecureValueRequest represents TL type `account.deleteSecureValue#b880bc4b`.

func (*AccountDeleteSecureValueRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountDeleteSecureValueRequest) Encode ¶

Encode implements bin.Encoder.

type AccountFinishTakeoutSessionRequest ¶

type AccountFinishTakeoutSessionRequest struct {
	// Flags field of AccountFinishTakeoutSessionRequest.
	Flags bin.Fields
	// Success field of AccountFinishTakeoutSessionRequest.
	Success bool
}

AccountFinishTakeoutSessionRequest represents TL type `account.finishTakeoutSession#1d2652ee`.

func (*AccountFinishTakeoutSessionRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountFinishTakeoutSessionRequest) Encode ¶

Encode implements bin.Encoder.

func (*AccountFinishTakeoutSessionRequest) SetSuccess ¶

func (f *AccountFinishTakeoutSessionRequest) SetSuccess(value bool)

SetSuccess sets value of Success conditional field.

type AccountGetAccountTTLRequest ¶

type AccountGetAccountTTLRequest struct {
}

AccountGetAccountTTLRequest represents TL type `account.getAccountTTL#8fc711d`.

func (*AccountGetAccountTTLRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetAccountTTLRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetAllSecureValuesRequest ¶

type AccountGetAllSecureValuesRequest struct {
}

AccountGetAllSecureValuesRequest represents TL type `account.getAllSecureValues#b288bc7d`.

func (*AccountGetAllSecureValuesRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetAllSecureValuesRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetAuthorizationFormRequest ¶

type AccountGetAuthorizationFormRequest struct {
	// BotID field of AccountGetAuthorizationFormRequest.
	BotID int
	// Scope field of AccountGetAuthorizationFormRequest.
	Scope string
	// PublicKey field of AccountGetAuthorizationFormRequest.
	PublicKey string
}

AccountGetAuthorizationFormRequest represents TL type `account.getAuthorizationForm#b86ba8e1`.

func (*AccountGetAuthorizationFormRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetAuthorizationFormRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetAuthorizationsRequest ¶

type AccountGetAuthorizationsRequest struct {
}

AccountGetAuthorizationsRequest represents TL type `account.getAuthorizations#e320c158`.

func (*AccountGetAuthorizationsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetAuthorizationsRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetAutoDownloadSettingsRequest ¶

type AccountGetAutoDownloadSettingsRequest struct {
}

AccountGetAutoDownloadSettingsRequest represents TL type `account.getAutoDownloadSettings#56da0b3f`.

func (*AccountGetAutoDownloadSettingsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetAutoDownloadSettingsRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetContactSignUpNotificationRequest ¶

type AccountGetContactSignUpNotificationRequest struct {
}

AccountGetContactSignUpNotificationRequest represents TL type `account.getContactSignUpNotification#9f07c728`.

func (*AccountGetContactSignUpNotificationRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetContactSignUpNotificationRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetContentSettingsRequest ¶

type AccountGetContentSettingsRequest struct {
}

AccountGetContentSettingsRequest represents TL type `account.getContentSettings#8b9b4dae`.

func (*AccountGetContentSettingsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetContentSettingsRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetGlobalPrivacySettingsRequest ¶

type AccountGetGlobalPrivacySettingsRequest struct {
}

AccountGetGlobalPrivacySettingsRequest represents TL type `account.getGlobalPrivacySettings#eb2b4cf6`.

func (*AccountGetGlobalPrivacySettingsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetGlobalPrivacySettingsRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetMultiWallPapersRequest ¶

type AccountGetMultiWallPapersRequest struct {
	// Wallpapers field of AccountGetMultiWallPapersRequest.
	Wallpapers []InputWallPaperClass
}

AccountGetMultiWallPapersRequest represents TL type `account.getMultiWallPapers#65ad71dc`.

func (*AccountGetMultiWallPapersRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetMultiWallPapersRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetNotifyExceptionsRequest ¶

type AccountGetNotifyExceptionsRequest struct {
	// Flags field of AccountGetNotifyExceptionsRequest.
	Flags bin.Fields
	// CompareSound field of AccountGetNotifyExceptionsRequest.
	CompareSound bool
	// Peer field of AccountGetNotifyExceptionsRequest.
	//
	// Use SetPeer and GetPeer helpers.
	Peer InputNotifyPeerClass
}

AccountGetNotifyExceptionsRequest represents TL type `account.getNotifyExceptions#53577479`.

func (*AccountGetNotifyExceptionsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetNotifyExceptionsRequest) Encode ¶

Encode implements bin.Encoder.

func (*AccountGetNotifyExceptionsRequest) GetPeer ¶

GetPeer returns value of Peer conditional field and boolean which is true if field was set.

func (*AccountGetNotifyExceptionsRequest) SetCompareSound ¶

func (g *AccountGetNotifyExceptionsRequest) SetCompareSound(value bool)

SetCompareSound sets value of CompareSound conditional field.

func (*AccountGetNotifyExceptionsRequest) SetPeer ¶

SetPeer sets value of Peer conditional field.

type AccountGetNotifySettingsRequest ¶

type AccountGetNotifySettingsRequest struct {
	// Peer field of AccountGetNotifySettingsRequest.
	Peer InputNotifyPeerClass
}

AccountGetNotifySettingsRequest represents TL type `account.getNotifySettings#12b3ad31`.

func (*AccountGetNotifySettingsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetNotifySettingsRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetPasswordRequest ¶

type AccountGetPasswordRequest struct {
}

AccountGetPasswordRequest represents TL type `account.getPassword#548a30f5`.

func (*AccountGetPasswordRequest) Decode ¶

func (g *AccountGetPasswordRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountGetPasswordRequest) Encode ¶

func (g *AccountGetPasswordRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountGetPasswordSettingsRequest ¶

type AccountGetPasswordSettingsRequest struct {
	// Password field of AccountGetPasswordSettingsRequest.
	Password InputCheckPasswordSRPClass
}

AccountGetPasswordSettingsRequest represents TL type `account.getPasswordSettings#9cd4eaf9`.

func (*AccountGetPasswordSettingsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetPasswordSettingsRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetPrivacyRequest ¶

type AccountGetPrivacyRequest struct {
	// Key field of AccountGetPrivacyRequest.
	Key InputPrivacyKeyClass
}

AccountGetPrivacyRequest represents TL type `account.getPrivacy#dadbc950`.

func (*AccountGetPrivacyRequest) Decode ¶

func (g *AccountGetPrivacyRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountGetPrivacyRequest) Encode ¶

func (g *AccountGetPrivacyRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountGetSecureValueRequest ¶

type AccountGetSecureValueRequest struct {
	// Types field of AccountGetSecureValueRequest.
	Types []SecureValueTypeClass
}

AccountGetSecureValueRequest represents TL type `account.getSecureValue#73665bc2`.

func (*AccountGetSecureValueRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetSecureValueRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetThemeRequest ¶

type AccountGetThemeRequest struct {
	// Format field of AccountGetThemeRequest.
	Format string
	// Theme field of AccountGetThemeRequest.
	Theme InputThemeClass
	// DocumentID field of AccountGetThemeRequest.
	DocumentID int64
}

AccountGetThemeRequest represents TL type `account.getTheme#8d9d742b`.

func (*AccountGetThemeRequest) Decode ¶

func (g *AccountGetThemeRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountGetThemeRequest) Encode ¶

func (g *AccountGetThemeRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountGetThemesRequest ¶

type AccountGetThemesRequest struct {
	// Format field of AccountGetThemesRequest.
	Format string
	// Hash field of AccountGetThemesRequest.
	Hash int
}

AccountGetThemesRequest represents TL type `account.getThemes#285946f8`.

func (*AccountGetThemesRequest) Decode ¶

func (g *AccountGetThemesRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountGetThemesRequest) Encode ¶

func (g *AccountGetThemesRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountGetTmpPasswordRequest ¶

type AccountGetTmpPasswordRequest struct {
	// Password field of AccountGetTmpPasswordRequest.
	Password InputCheckPasswordSRPClass
	// Period field of AccountGetTmpPasswordRequest.
	Period int
}

AccountGetTmpPasswordRequest represents TL type `account.getTmpPassword#449e0b51`.

func (*AccountGetTmpPasswordRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetTmpPasswordRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetWallPaperRequest ¶

type AccountGetWallPaperRequest struct {
	// Wallpaper field of AccountGetWallPaperRequest.
	Wallpaper InputWallPaperClass
}

AccountGetWallPaperRequest represents TL type `account.getWallPaper#fc8ddbea`.

func (*AccountGetWallPaperRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetWallPaperRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetWallPapersRequest ¶

type AccountGetWallPapersRequest struct {
	// Hash field of AccountGetWallPapersRequest.
	Hash int
}

AccountGetWallPapersRequest represents TL type `account.getWallPapers#aabb1763`.

func (*AccountGetWallPapersRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetWallPapersRequest) Encode ¶

Encode implements bin.Encoder.

type AccountGetWebAuthorizationsRequest ¶

type AccountGetWebAuthorizationsRequest struct {
}

AccountGetWebAuthorizationsRequest represents TL type `account.getWebAuthorizations#182e6d6f`.

func (*AccountGetWebAuthorizationsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountGetWebAuthorizationsRequest) Encode ¶

Encode implements bin.Encoder.

type AccountInitTakeoutSessionRequest ¶

type AccountInitTakeoutSessionRequest struct {
	// Flags field of AccountInitTakeoutSessionRequest.
	Flags bin.Fields
	// Contacts field of AccountInitTakeoutSessionRequest.
	Contacts bool
	// MessageUsers field of AccountInitTakeoutSessionRequest.
	MessageUsers bool
	// MessageChats field of AccountInitTakeoutSessionRequest.
	MessageChats bool
	// MessageMegagroups field of AccountInitTakeoutSessionRequest.
	MessageMegagroups bool
	// MessageChannels field of AccountInitTakeoutSessionRequest.
	MessageChannels bool
	// Files field of AccountInitTakeoutSessionRequest.
	Files bool
	// FileMaxSize field of AccountInitTakeoutSessionRequest.
	//
	// Use SetFileMaxSize and GetFileMaxSize helpers.
	FileMaxSize int
}

AccountInitTakeoutSessionRequest represents TL type `account.initTakeoutSession#f05b4804`.

func (*AccountInitTakeoutSessionRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountInitTakeoutSessionRequest) Encode ¶

Encode implements bin.Encoder.

func (*AccountInitTakeoutSessionRequest) GetFileMaxSize ¶

func (i *AccountInitTakeoutSessionRequest) GetFileMaxSize() (value int, ok bool)

GetFileMaxSize returns value of FileMaxSize conditional field and boolean which is true if field was set.

func (*AccountInitTakeoutSessionRequest) SetContacts ¶

func (i *AccountInitTakeoutSessionRequest) SetContacts(value bool)

SetContacts sets value of Contacts conditional field.

func (*AccountInitTakeoutSessionRequest) SetFileMaxSize ¶

func (i *AccountInitTakeoutSessionRequest) SetFileMaxSize(value int)

SetFileMaxSize sets value of FileMaxSize conditional field.

func (*AccountInitTakeoutSessionRequest) SetFiles ¶

func (i *AccountInitTakeoutSessionRequest) SetFiles(value bool)

SetFiles sets value of Files conditional field.

func (*AccountInitTakeoutSessionRequest) SetMessageChannels ¶

func (i *AccountInitTakeoutSessionRequest) SetMessageChannels(value bool)

SetMessageChannels sets value of MessageChannels conditional field.

func (*AccountInitTakeoutSessionRequest) SetMessageChats ¶

func (i *AccountInitTakeoutSessionRequest) SetMessageChats(value bool)

SetMessageChats sets value of MessageChats conditional field.

func (*AccountInitTakeoutSessionRequest) SetMessageMegagroups ¶

func (i *AccountInitTakeoutSessionRequest) SetMessageMegagroups(value bool)

SetMessageMegagroups sets value of MessageMegagroups conditional field.

func (*AccountInitTakeoutSessionRequest) SetMessageUsers ¶

func (i *AccountInitTakeoutSessionRequest) SetMessageUsers(value bool)

SetMessageUsers sets value of MessageUsers conditional field.

type AccountInstallThemeRequest ¶

type AccountInstallThemeRequest struct {
	// Flags field of AccountInstallThemeRequest.
	Flags bin.Fields
	// Dark field of AccountInstallThemeRequest.
	Dark bool
	// Format field of AccountInstallThemeRequest.
	//
	// Use SetFormat and GetFormat helpers.
	Format string
	// Theme field of AccountInstallThemeRequest.
	//
	// Use SetTheme and GetTheme helpers.
	Theme InputThemeClass
}

AccountInstallThemeRequest represents TL type `account.installTheme#7ae43737`.

func (*AccountInstallThemeRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountInstallThemeRequest) Encode ¶

Encode implements bin.Encoder.

func (*AccountInstallThemeRequest) GetFormat ¶

func (i *AccountInstallThemeRequest) GetFormat() (value string, ok bool)

GetFormat returns value of Format conditional field and boolean which is true if field was set.

func (*AccountInstallThemeRequest) GetTheme ¶

func (i *AccountInstallThemeRequest) GetTheme() (value InputThemeClass, ok bool)

GetTheme returns value of Theme conditional field and boolean which is true if field was set.

func (*AccountInstallThemeRequest) SetDark ¶

func (i *AccountInstallThemeRequest) SetDark(value bool)

SetDark sets value of Dark conditional field.

func (*AccountInstallThemeRequest) SetFormat ¶

func (i *AccountInstallThemeRequest) SetFormat(value string)

SetFormat sets value of Format conditional field.

func (*AccountInstallThemeRequest) SetTheme ¶

func (i *AccountInstallThemeRequest) SetTheme(value InputThemeClass)

SetTheme sets value of Theme conditional field.

type AccountInstallWallPaperRequest ¶

type AccountInstallWallPaperRequest struct {
	// Wallpaper field of AccountInstallWallPaperRequest.
	Wallpaper InputWallPaperClass
	// Settings field of AccountInstallWallPaperRequest.
	Settings WallPaperSettings
}

AccountInstallWallPaperRequest represents TL type `account.installWallPaper#feed5769`.

func (*AccountInstallWallPaperRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountInstallWallPaperRequest) Encode ¶

Encode implements bin.Encoder.

type AccountPassword ¶

type AccountPassword struct {
	// Flags field of AccountPassword.
	Flags bin.Fields
	// HasRecovery field of AccountPassword.
	HasRecovery bool
	// HasSecureValues field of AccountPassword.
	HasSecureValues bool
	// HasPassword field of AccountPassword.
	HasPassword bool
	// CurrentAlgo field of AccountPassword.
	//
	// Use SetCurrentAlgo and GetCurrentAlgo helpers.
	CurrentAlgo PasswordKdfAlgoClass
	// SrpB field of AccountPassword.
	//
	// Use SetSrpB and GetSrpB helpers.
	SrpB []byte
	// SrpID field of AccountPassword.
	//
	// Use SetSrpID and GetSrpID helpers.
	SrpID int64
	// Hint field of AccountPassword.
	//
	// Use SetHint and GetHint helpers.
	Hint string
	// EmailUnconfirmedPattern field of AccountPassword.
	//
	// Use SetEmailUnconfirmedPattern and GetEmailUnconfirmedPattern helpers.
	EmailUnconfirmedPattern string
	// NewAlgo field of AccountPassword.
	NewAlgo PasswordKdfAlgoClass
	// NewSecureAlgo field of AccountPassword.
	NewSecureAlgo SecurePasswordKdfAlgoClass
	// SecureRandom field of AccountPassword.
	SecureRandom []byte
}

AccountPassword represents TL type `account.password#ad2641f8`.

func (*AccountPassword) Decode ¶

func (p *AccountPassword) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountPassword) Encode ¶

func (p *AccountPassword) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*AccountPassword) GetCurrentAlgo ¶

func (p *AccountPassword) GetCurrentAlgo() (value PasswordKdfAlgoClass, ok bool)

GetCurrentAlgo returns value of CurrentAlgo conditional field and boolean which is true if field was set.

func (*AccountPassword) GetEmailUnconfirmedPattern ¶

func (p *AccountPassword) GetEmailUnconfirmedPattern() (value string, ok bool)

GetEmailUnconfirmedPattern returns value of EmailUnconfirmedPattern conditional field and boolean which is true if field was set.

func (*AccountPassword) GetHint ¶

func (p *AccountPassword) GetHint() (value string, ok bool)

GetHint returns value of Hint conditional field and boolean which is true if field was set.

func (*AccountPassword) GetSrpB ¶

func (p *AccountPassword) GetSrpB() (value []byte, ok bool)

GetSrpB returns value of SrpB conditional field and boolean which is true if field was set.

func (*AccountPassword) GetSrpID ¶

func (p *AccountPassword) GetSrpID() (value int64, ok bool)

GetSrpID returns value of SrpID conditional field and boolean which is true if field was set.

func (*AccountPassword) SetCurrentAlgo ¶

func (p *AccountPassword) SetCurrentAlgo(value PasswordKdfAlgoClass)

SetCurrentAlgo sets value of CurrentAlgo conditional field.

func (*AccountPassword) SetEmailUnconfirmedPattern ¶

func (p *AccountPassword) SetEmailUnconfirmedPattern(value string)

SetEmailUnconfirmedPattern sets value of EmailUnconfirmedPattern conditional field.

func (*AccountPassword) SetHasPassword ¶

func (p *AccountPassword) SetHasPassword(value bool)

SetHasPassword sets value of HasPassword conditional field.

func (*AccountPassword) SetHasRecovery ¶

func (p *AccountPassword) SetHasRecovery(value bool)

SetHasRecovery sets value of HasRecovery conditional field.

func (*AccountPassword) SetHasSecureValues ¶

func (p *AccountPassword) SetHasSecureValues(value bool)

SetHasSecureValues sets value of HasSecureValues conditional field.

func (*AccountPassword) SetHint ¶

func (p *AccountPassword) SetHint(value string)

SetHint sets value of Hint conditional field.

func (*AccountPassword) SetSrpB ¶

func (p *AccountPassword) SetSrpB(value []byte)

SetSrpB sets value of SrpB conditional field.

func (*AccountPassword) SetSrpID ¶

func (p *AccountPassword) SetSrpID(value int64)

SetSrpID sets value of SrpID conditional field.

type AccountPasswordInputSettings ¶

type AccountPasswordInputSettings struct {
	// Flags field of AccountPasswordInputSettings.
	Flags bin.Fields
	// NewAlgo field of AccountPasswordInputSettings.
	//
	// Use SetNewAlgo and GetNewAlgo helpers.
	NewAlgo PasswordKdfAlgoClass
	// NewPasswordHash field of AccountPasswordInputSettings.
	//
	// Use SetNewPasswordHash and GetNewPasswordHash helpers.
	NewPasswordHash []byte
	// Hint field of AccountPasswordInputSettings.
	//
	// Use SetHint and GetHint helpers.
	Hint string
	// Email field of AccountPasswordInputSettings.
	//
	// Use SetEmail and GetEmail helpers.
	Email string
	// NewSecureSettings field of AccountPasswordInputSettings.
	//
	// Use SetNewSecureSettings and GetNewSecureSettings helpers.
	NewSecureSettings SecureSecretSettings
}

AccountPasswordInputSettings represents TL type `account.passwordInputSettings#c23727c9`.

func (*AccountPasswordInputSettings) Decode ¶

Decode implements bin.Decoder.

func (*AccountPasswordInputSettings) Encode ¶

Encode implements bin.Encoder.

func (*AccountPasswordInputSettings) GetEmail ¶

func (p *AccountPasswordInputSettings) GetEmail() (value string, ok bool)

GetEmail returns value of Email conditional field and boolean which is true if field was set.

func (*AccountPasswordInputSettings) GetHint ¶

func (p *AccountPasswordInputSettings) GetHint() (value string, ok bool)

GetHint returns value of Hint conditional field and boolean which is true if field was set.

func (*AccountPasswordInputSettings) GetNewAlgo ¶

func (p *AccountPasswordInputSettings) GetNewAlgo() (value PasswordKdfAlgoClass, ok bool)

GetNewAlgo returns value of NewAlgo conditional field and boolean which is true if field was set.

func (*AccountPasswordInputSettings) GetNewPasswordHash ¶

func (p *AccountPasswordInputSettings) GetNewPasswordHash() (value []byte, ok bool)

GetNewPasswordHash returns value of NewPasswordHash conditional field and boolean which is true if field was set.

func (*AccountPasswordInputSettings) GetNewSecureSettings ¶

func (p *AccountPasswordInputSettings) GetNewSecureSettings() (value SecureSecretSettings, ok bool)

GetNewSecureSettings returns value of NewSecureSettings conditional field and boolean which is true if field was set.

func (*AccountPasswordInputSettings) SetEmail ¶

func (p *AccountPasswordInputSettings) SetEmail(value string)

SetEmail sets value of Email conditional field.

func (*AccountPasswordInputSettings) SetHint ¶

func (p *AccountPasswordInputSettings) SetHint(value string)

SetHint sets value of Hint conditional field.

func (*AccountPasswordInputSettings) SetNewAlgo ¶

SetNewAlgo sets value of NewAlgo conditional field.

func (*AccountPasswordInputSettings) SetNewPasswordHash ¶

func (p *AccountPasswordInputSettings) SetNewPasswordHash(value []byte)

SetNewPasswordHash sets value of NewPasswordHash conditional field.

func (*AccountPasswordInputSettings) SetNewSecureSettings ¶

func (p *AccountPasswordInputSettings) SetNewSecureSettings(value SecureSecretSettings)

SetNewSecureSettings sets value of NewSecureSettings conditional field.

type AccountPasswordSettings ¶

type AccountPasswordSettings struct {
	// Flags field of AccountPasswordSettings.
	Flags bin.Fields
	// Email field of AccountPasswordSettings.
	//
	// Use SetEmail and GetEmail helpers.
	Email string
	// SecureSettings field of AccountPasswordSettings.
	//
	// Use SetSecureSettings and GetSecureSettings helpers.
	SecureSettings SecureSecretSettings
}

AccountPasswordSettings represents TL type `account.passwordSettings#9a5c33e5`.

func (*AccountPasswordSettings) Decode ¶

func (p *AccountPasswordSettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountPasswordSettings) Encode ¶

func (p *AccountPasswordSettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*AccountPasswordSettings) GetEmail ¶

func (p *AccountPasswordSettings) GetEmail() (value string, ok bool)

GetEmail returns value of Email conditional field and boolean which is true if field was set.

func (*AccountPasswordSettings) GetSecureSettings ¶

func (p *AccountPasswordSettings) GetSecureSettings() (value SecureSecretSettings, ok bool)

GetSecureSettings returns value of SecureSettings conditional field and boolean which is true if field was set.

func (*AccountPasswordSettings) SetEmail ¶

func (p *AccountPasswordSettings) SetEmail(value string)

SetEmail sets value of Email conditional field.

func (*AccountPasswordSettings) SetSecureSettings ¶

func (p *AccountPasswordSettings) SetSecureSettings(value SecureSecretSettings)

SetSecureSettings sets value of SecureSettings conditional field.

type AccountPrivacyRules ¶

type AccountPrivacyRules struct {
	// Rules field of AccountPrivacyRules.
	Rules []PrivacyRuleClass
	// Chats field of AccountPrivacyRules.
	Chats []ChatClass
	// Users field of AccountPrivacyRules.
	Users []UserClass
}

AccountPrivacyRules represents TL type `account.privacyRules#50a04e45`.

func (*AccountPrivacyRules) Decode ¶

func (p *AccountPrivacyRules) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountPrivacyRules) Encode ¶

func (p *AccountPrivacyRules) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountRegisterDeviceRequest ¶

type AccountRegisterDeviceRequest struct {
	// Flags field of AccountRegisterDeviceRequest.
	Flags bin.Fields
	// NoMuted field of AccountRegisterDeviceRequest.
	NoMuted bool
	// TokenType field of AccountRegisterDeviceRequest.
	TokenType int
	// Token field of AccountRegisterDeviceRequest.
	Token string
	// AppSandbox field of AccountRegisterDeviceRequest.
	AppSandbox bool
	// Secret field of AccountRegisterDeviceRequest.
	Secret []byte
	// OtherUids field of AccountRegisterDeviceRequest.
	OtherUids []int
}

AccountRegisterDeviceRequest represents TL type `account.registerDevice#68976c6f`.

func (*AccountRegisterDeviceRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountRegisterDeviceRequest) Encode ¶

Encode implements bin.Encoder.

func (*AccountRegisterDeviceRequest) SetNoMuted ¶

func (r *AccountRegisterDeviceRequest) SetNoMuted(value bool)

SetNoMuted sets value of NoMuted conditional field.

type AccountReportPeerRequest ¶

type AccountReportPeerRequest struct {
	// Peer field of AccountReportPeerRequest.
	Peer InputPeerClass
	// Reason field of AccountReportPeerRequest.
	Reason ReportReasonClass
}

AccountReportPeerRequest represents TL type `account.reportPeer#ae189d5f`.

func (*AccountReportPeerRequest) Decode ¶

func (r *AccountReportPeerRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountReportPeerRequest) Encode ¶

func (r *AccountReportPeerRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountResendPasswordEmailRequest ¶

type AccountResendPasswordEmailRequest struct {
}

AccountResendPasswordEmailRequest represents TL type `account.resendPasswordEmail#7a7f2a15`.

func (*AccountResendPasswordEmailRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountResendPasswordEmailRequest) Encode ¶

Encode implements bin.Encoder.

type AccountResetAuthorizationRequest ¶

type AccountResetAuthorizationRequest struct {
	// Hash field of AccountResetAuthorizationRequest.
	Hash int64
}

AccountResetAuthorizationRequest represents TL type `account.resetAuthorization#df77f3bc`.

func (*AccountResetAuthorizationRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountResetAuthorizationRequest) Encode ¶

Encode implements bin.Encoder.

type AccountResetNotifySettingsRequest ¶

type AccountResetNotifySettingsRequest struct {
}

AccountResetNotifySettingsRequest represents TL type `account.resetNotifySettings#db7e1747`.

func (*AccountResetNotifySettingsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountResetNotifySettingsRequest) Encode ¶

Encode implements bin.Encoder.

type AccountResetWallPapersRequest ¶

type AccountResetWallPapersRequest struct {
}

AccountResetWallPapersRequest represents TL type `account.resetWallPapers#bb3b9804`.

func (*AccountResetWallPapersRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountResetWallPapersRequest) Encode ¶

Encode implements bin.Encoder.

type AccountResetWebAuthorizationRequest ¶

type AccountResetWebAuthorizationRequest struct {
	// Hash field of AccountResetWebAuthorizationRequest.
	Hash int64
}

AccountResetWebAuthorizationRequest represents TL type `account.resetWebAuthorization#2d01b9ef`.

func (*AccountResetWebAuthorizationRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountResetWebAuthorizationRequest) Encode ¶

Encode implements bin.Encoder.

type AccountResetWebAuthorizationsRequest ¶

type AccountResetWebAuthorizationsRequest struct {
}

AccountResetWebAuthorizationsRequest represents TL type `account.resetWebAuthorizations#682d2594`.

func (*AccountResetWebAuthorizationsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountResetWebAuthorizationsRequest) Encode ¶

Encode implements bin.Encoder.

type AccountSaveAutoDownloadSettingsRequest ¶

type AccountSaveAutoDownloadSettingsRequest struct {
	// Flags field of AccountSaveAutoDownloadSettingsRequest.
	Flags bin.Fields
	// Low field of AccountSaveAutoDownloadSettingsRequest.
	Low bool
	// High field of AccountSaveAutoDownloadSettingsRequest.
	High bool
	// Settings field of AccountSaveAutoDownloadSettingsRequest.
	Settings AutoDownloadSettings
}

AccountSaveAutoDownloadSettingsRequest represents TL type `account.saveAutoDownloadSettings#76f36233`.

func (*AccountSaveAutoDownloadSettingsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountSaveAutoDownloadSettingsRequest) Encode ¶

Encode implements bin.Encoder.

func (*AccountSaveAutoDownloadSettingsRequest) SetHigh ¶

func (s *AccountSaveAutoDownloadSettingsRequest) SetHigh(value bool)

SetHigh sets value of High conditional field.

func (*AccountSaveAutoDownloadSettingsRequest) SetLow ¶

SetLow sets value of Low conditional field.

type AccountSaveSecureValueRequest ¶

type AccountSaveSecureValueRequest struct {
	// Value field of AccountSaveSecureValueRequest.
	Value InputSecureValue
	// SecureSecretID field of AccountSaveSecureValueRequest.
	SecureSecretID int64
}

AccountSaveSecureValueRequest represents TL type `account.saveSecureValue#899fe31d`.

func (*AccountSaveSecureValueRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountSaveSecureValueRequest) Encode ¶

Encode implements bin.Encoder.

type AccountSaveThemeRequest ¶

type AccountSaveThemeRequest struct {
	// Theme field of AccountSaveThemeRequest.
	Theme InputThemeClass
	// Unsave field of AccountSaveThemeRequest.
	Unsave bool
}

AccountSaveThemeRequest represents TL type `account.saveTheme#f257106c`.

func (*AccountSaveThemeRequest) Decode ¶

func (s *AccountSaveThemeRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountSaveThemeRequest) Encode ¶

func (s *AccountSaveThemeRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountSaveWallPaperRequest ¶

type AccountSaveWallPaperRequest struct {
	// Wallpaper field of AccountSaveWallPaperRequest.
	Wallpaper InputWallPaperClass
	// Unsave field of AccountSaveWallPaperRequest.
	Unsave bool
	// Settings field of AccountSaveWallPaperRequest.
	Settings WallPaperSettings
}

AccountSaveWallPaperRequest represents TL type `account.saveWallPaper#6c5a5b37`.

func (*AccountSaveWallPaperRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountSaveWallPaperRequest) Encode ¶

Encode implements bin.Encoder.

type AccountSendChangePhoneCodeRequest ¶

type AccountSendChangePhoneCodeRequest struct {
	// PhoneNumber field of AccountSendChangePhoneCodeRequest.
	PhoneNumber string
	// Settings field of AccountSendChangePhoneCodeRequest.
	Settings CodeSettings
}

AccountSendChangePhoneCodeRequest represents TL type `account.sendChangePhoneCode#82574ae5`.

func (*AccountSendChangePhoneCodeRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountSendChangePhoneCodeRequest) Encode ¶

Encode implements bin.Encoder.

type AccountSendConfirmPhoneCodeRequest ¶

type AccountSendConfirmPhoneCodeRequest struct {
	// Hash field of AccountSendConfirmPhoneCodeRequest.
	Hash string
	// Settings field of AccountSendConfirmPhoneCodeRequest.
	Settings CodeSettings
}

AccountSendConfirmPhoneCodeRequest represents TL type `account.sendConfirmPhoneCode#1b3faa88`.

func (*AccountSendConfirmPhoneCodeRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountSendConfirmPhoneCodeRequest) Encode ¶

Encode implements bin.Encoder.

type AccountSendVerifyEmailCodeRequest ¶

type AccountSendVerifyEmailCodeRequest struct {
	// Email field of AccountSendVerifyEmailCodeRequest.
	Email string
}

AccountSendVerifyEmailCodeRequest represents TL type `account.sendVerifyEmailCode#7011509f`.

func (*AccountSendVerifyEmailCodeRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountSendVerifyEmailCodeRequest) Encode ¶

Encode implements bin.Encoder.

type AccountSendVerifyPhoneCodeRequest ¶

type AccountSendVerifyPhoneCodeRequest struct {
	// PhoneNumber field of AccountSendVerifyPhoneCodeRequest.
	PhoneNumber string
	// Settings field of AccountSendVerifyPhoneCodeRequest.
	Settings CodeSettings
}

AccountSendVerifyPhoneCodeRequest represents TL type `account.sendVerifyPhoneCode#a5a356f9`.

func (*AccountSendVerifyPhoneCodeRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountSendVerifyPhoneCodeRequest) Encode ¶

Encode implements bin.Encoder.

type AccountSentEmailCode ¶

type AccountSentEmailCode struct {
	// EmailPattern field of AccountSentEmailCode.
	EmailPattern string
	// Length field of AccountSentEmailCode.
	Length int
}

AccountSentEmailCode represents TL type `account.sentEmailCode#811f854f`.

func (*AccountSentEmailCode) Decode ¶

func (s *AccountSentEmailCode) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountSentEmailCode) Encode ¶

func (s *AccountSentEmailCode) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountSetAccountTTLRequest ¶

type AccountSetAccountTTLRequest struct {
	// TTL field of AccountSetAccountTTLRequest.
	TTL AccountDaysTTL
}

AccountSetAccountTTLRequest represents TL type `account.setAccountTTL#2442485e`.

func (*AccountSetAccountTTLRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountSetAccountTTLRequest) Encode ¶

Encode implements bin.Encoder.

type AccountSetContactSignUpNotificationRequest ¶

type AccountSetContactSignUpNotificationRequest struct {
	// Silent field of AccountSetContactSignUpNotificationRequest.
	Silent bool
}

AccountSetContactSignUpNotificationRequest represents TL type `account.setContactSignUpNotification#cff43f61`.

func (*AccountSetContactSignUpNotificationRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountSetContactSignUpNotificationRequest) Encode ¶

Encode implements bin.Encoder.

type AccountSetContentSettingsRequest ¶

type AccountSetContentSettingsRequest struct {
	// Flags field of AccountSetContentSettingsRequest.
	Flags bin.Fields
	// SensitiveEnabled field of AccountSetContentSettingsRequest.
	SensitiveEnabled bool
}

AccountSetContentSettingsRequest represents TL type `account.setContentSettings#b574b16b`.

func (*AccountSetContentSettingsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountSetContentSettingsRequest) Encode ¶

Encode implements bin.Encoder.

func (*AccountSetContentSettingsRequest) SetSensitiveEnabled ¶

func (s *AccountSetContentSettingsRequest) SetSensitiveEnabled(value bool)

SetSensitiveEnabled sets value of SensitiveEnabled conditional field.

type AccountSetGlobalPrivacySettingsRequest ¶

type AccountSetGlobalPrivacySettingsRequest struct {
	// Settings field of AccountSetGlobalPrivacySettingsRequest.
	Settings GlobalPrivacySettings
}

AccountSetGlobalPrivacySettingsRequest represents TL type `account.setGlobalPrivacySettings#1edaaac2`.

func (*AccountSetGlobalPrivacySettingsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountSetGlobalPrivacySettingsRequest) Encode ¶

Encode implements bin.Encoder.

type AccountSetPrivacyRequest ¶

type AccountSetPrivacyRequest struct {
	// Key field of AccountSetPrivacyRequest.
	Key InputPrivacyKeyClass
	// Rules field of AccountSetPrivacyRequest.
	Rules []InputPrivacyRuleClass
}

AccountSetPrivacyRequest represents TL type `account.setPrivacy#c9f81ce8`.

func (*AccountSetPrivacyRequest) Decode ¶

func (s *AccountSetPrivacyRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountSetPrivacyRequest) Encode ¶

func (s *AccountSetPrivacyRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountTakeout ¶

type AccountTakeout struct {
	// ID field of AccountTakeout.
	ID int64
}

AccountTakeout represents TL type `account.takeout#4dba4501`.

func (*AccountTakeout) Decode ¶

func (t *AccountTakeout) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountTakeout) Encode ¶

func (t *AccountTakeout) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountThemes ¶

type AccountThemes struct {
	// Hash field of AccountThemes.
	Hash int
	// Themes field of AccountThemes.
	Themes []Theme
}

AccountThemes represents TL type `account.themes#7f676421`.

func (*AccountThemes) Decode ¶

func (t *AccountThemes) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountThemes) Encode ¶

func (t *AccountThemes) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountThemesBox ¶

type AccountThemesBox struct {
	Themes AccountThemesClass
}

AccountThemes boxes the AccountThemesClass providing a helper.

func (*AccountThemesBox) Decode ¶

func (b *AccountThemesBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for AccountThemesBox.

func (*AccountThemesBox) Encode ¶

func (b *AccountThemesBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for AccountThemesBox.

type AccountThemesClass ¶

type AccountThemesClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

AccountThemesClass represents account.Themes generic type.

Example:

g, err := DecodeAccountThemes(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *AccountThemesNotModified: // account.themesNotModified#f41eb622
case *AccountThemes: // account.themes#7f676421
default: panic(v)
}

func DecodeAccountThemes ¶

func DecodeAccountThemes(buf *bin.Buffer) (AccountThemesClass, error)

DecodeAccountThemes implements binary de-serialization for AccountThemesClass.

type AccountThemesNotModified ¶

type AccountThemesNotModified struct {
}

AccountThemesNotModified represents TL type `account.themesNotModified#f41eb622`.

func (*AccountThemesNotModified) Decode ¶

func (t *AccountThemesNotModified) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountThemesNotModified) Encode ¶

func (t *AccountThemesNotModified) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountTmpPassword ¶

type AccountTmpPassword struct {
	// TmpPassword field of AccountTmpPassword.
	TmpPassword []byte
	// ValidUntil field of AccountTmpPassword.
	ValidUntil int
}

AccountTmpPassword represents TL type `account.tmpPassword#db64fd34`.

func (*AccountTmpPassword) Decode ¶

func (t *AccountTmpPassword) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountTmpPassword) Encode ¶

func (t *AccountTmpPassword) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountUnregisterDeviceRequest ¶

type AccountUnregisterDeviceRequest struct {
	// TokenType field of AccountUnregisterDeviceRequest.
	TokenType int
	// Token field of AccountUnregisterDeviceRequest.
	Token string
	// OtherUids field of AccountUnregisterDeviceRequest.
	OtherUids []int
}

AccountUnregisterDeviceRequest represents TL type `account.unregisterDevice#3076c4bf`.

func (*AccountUnregisterDeviceRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountUnregisterDeviceRequest) Encode ¶

Encode implements bin.Encoder.

type AccountUpdateDeviceLockedRequest ¶

type AccountUpdateDeviceLockedRequest struct {
	// Period field of AccountUpdateDeviceLockedRequest.
	Period int
}

AccountUpdateDeviceLockedRequest represents TL type `account.updateDeviceLocked#38df3532`.

func (*AccountUpdateDeviceLockedRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountUpdateDeviceLockedRequest) Encode ¶

Encode implements bin.Encoder.

type AccountUpdateNotifySettingsRequest ¶

type AccountUpdateNotifySettingsRequest struct {
	// Peer field of AccountUpdateNotifySettingsRequest.
	Peer InputNotifyPeerClass
	// Settings field of AccountUpdateNotifySettingsRequest.
	Settings InputPeerNotifySettings
}

AccountUpdateNotifySettingsRequest represents TL type `account.updateNotifySettings#84be5b93`.

func (*AccountUpdateNotifySettingsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountUpdateNotifySettingsRequest) Encode ¶

Encode implements bin.Encoder.

type AccountUpdatePasswordSettingsRequest ¶

type AccountUpdatePasswordSettingsRequest struct {
	// Password field of AccountUpdatePasswordSettingsRequest.
	Password InputCheckPasswordSRPClass
	// NewSettings field of AccountUpdatePasswordSettingsRequest.
	NewSettings AccountPasswordInputSettings
}

AccountUpdatePasswordSettingsRequest represents TL type `account.updatePasswordSettings#a59b102f`.

func (*AccountUpdatePasswordSettingsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountUpdatePasswordSettingsRequest) Encode ¶

Encode implements bin.Encoder.

type AccountUpdateProfileRequest ¶

type AccountUpdateProfileRequest struct {
	// Flags field of AccountUpdateProfileRequest.
	Flags bin.Fields
	// FirstName field of AccountUpdateProfileRequest.
	//
	// Use SetFirstName and GetFirstName helpers.
	FirstName string
	// LastName field of AccountUpdateProfileRequest.
	//
	// Use SetLastName and GetLastName helpers.
	LastName string
	// About field of AccountUpdateProfileRequest.
	//
	// Use SetAbout and GetAbout helpers.
	About string
}

AccountUpdateProfileRequest represents TL type `account.updateProfile#78515775`.

func (*AccountUpdateProfileRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountUpdateProfileRequest) Encode ¶

Encode implements bin.Encoder.

func (*AccountUpdateProfileRequest) GetAbout ¶

func (u *AccountUpdateProfileRequest) GetAbout() (value string, ok bool)

GetAbout returns value of About conditional field and boolean which is true if field was set.

func (*AccountUpdateProfileRequest) GetFirstName ¶

func (u *AccountUpdateProfileRequest) GetFirstName() (value string, ok bool)

GetFirstName returns value of FirstName conditional field and boolean which is true if field was set.

func (*AccountUpdateProfileRequest) GetLastName ¶

func (u *AccountUpdateProfileRequest) GetLastName() (value string, ok bool)

GetLastName returns value of LastName conditional field and boolean which is true if field was set.

func (*AccountUpdateProfileRequest) SetAbout ¶

func (u *AccountUpdateProfileRequest) SetAbout(value string)

SetAbout sets value of About conditional field.

func (*AccountUpdateProfileRequest) SetFirstName ¶

func (u *AccountUpdateProfileRequest) SetFirstName(value string)

SetFirstName sets value of FirstName conditional field.

func (*AccountUpdateProfileRequest) SetLastName ¶

func (u *AccountUpdateProfileRequest) SetLastName(value string)

SetLastName sets value of LastName conditional field.

type AccountUpdateStatusRequest ¶

type AccountUpdateStatusRequest struct {
	// Offline field of AccountUpdateStatusRequest.
	Offline bool
}

AccountUpdateStatusRequest represents TL type `account.updateStatus#6628562c`.

func (*AccountUpdateStatusRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountUpdateStatusRequest) Encode ¶

Encode implements bin.Encoder.

type AccountUpdateThemeRequest ¶

type AccountUpdateThemeRequest struct {
	// Flags field of AccountUpdateThemeRequest.
	Flags bin.Fields
	// Format field of AccountUpdateThemeRequest.
	Format string
	// Theme field of AccountUpdateThemeRequest.
	Theme InputThemeClass
	// Slug field of AccountUpdateThemeRequest.
	//
	// Use SetSlug and GetSlug helpers.
	Slug string
	// Title field of AccountUpdateThemeRequest.
	//
	// Use SetTitle and GetTitle helpers.
	Title string
	// Document field of AccountUpdateThemeRequest.
	//
	// Use SetDocument and GetDocument helpers.
	Document InputDocumentClass
	// Settings field of AccountUpdateThemeRequest.
	//
	// Use SetSettings and GetSettings helpers.
	Settings InputThemeSettings
}

AccountUpdateThemeRequest represents TL type `account.updateTheme#5cb367d5`.

func (*AccountUpdateThemeRequest) Decode ¶

func (u *AccountUpdateThemeRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountUpdateThemeRequest) Encode ¶

func (u *AccountUpdateThemeRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*AccountUpdateThemeRequest) GetDocument ¶

func (u *AccountUpdateThemeRequest) GetDocument() (value InputDocumentClass, ok bool)

GetDocument returns value of Document conditional field and boolean which is true if field was set.

func (*AccountUpdateThemeRequest) GetSettings ¶

func (u *AccountUpdateThemeRequest) GetSettings() (value InputThemeSettings, ok bool)

GetSettings returns value of Settings conditional field and boolean which is true if field was set.

func (*AccountUpdateThemeRequest) GetSlug ¶

func (u *AccountUpdateThemeRequest) GetSlug() (value string, ok bool)

GetSlug returns value of Slug conditional field and boolean which is true if field was set.

func (*AccountUpdateThemeRequest) GetTitle ¶

func (u *AccountUpdateThemeRequest) GetTitle() (value string, ok bool)

GetTitle returns value of Title conditional field and boolean which is true if field was set.

func (*AccountUpdateThemeRequest) SetDocument ¶

func (u *AccountUpdateThemeRequest) SetDocument(value InputDocumentClass)

SetDocument sets value of Document conditional field.

func (*AccountUpdateThemeRequest) SetSettings ¶

func (u *AccountUpdateThemeRequest) SetSettings(value InputThemeSettings)

SetSettings sets value of Settings conditional field.

func (*AccountUpdateThemeRequest) SetSlug ¶

func (u *AccountUpdateThemeRequest) SetSlug(value string)

SetSlug sets value of Slug conditional field.

func (*AccountUpdateThemeRequest) SetTitle ¶

func (u *AccountUpdateThemeRequest) SetTitle(value string)

SetTitle sets value of Title conditional field.

type AccountUpdateUsernameRequest ¶

type AccountUpdateUsernameRequest struct {
	// Username field of AccountUpdateUsernameRequest.
	Username string
}

AccountUpdateUsernameRequest represents TL type `account.updateUsername#3e0bdd7c`.

func (*AccountUpdateUsernameRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountUpdateUsernameRequest) Encode ¶

Encode implements bin.Encoder.

type AccountUploadThemeRequest ¶

type AccountUploadThemeRequest struct {
	// Flags field of AccountUploadThemeRequest.
	Flags bin.Fields
	// File field of AccountUploadThemeRequest.
	File InputFileClass
	// Thumb field of AccountUploadThemeRequest.
	//
	// Use SetThumb and GetThumb helpers.
	Thumb InputFileClass
	// FileName field of AccountUploadThemeRequest.
	FileName string
	// MimeType field of AccountUploadThemeRequest.
	MimeType string
}

AccountUploadThemeRequest represents TL type `account.uploadTheme#1c3db333`.

func (*AccountUploadThemeRequest) Decode ¶

func (u *AccountUploadThemeRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountUploadThemeRequest) Encode ¶

func (u *AccountUploadThemeRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*AccountUploadThemeRequest) GetThumb ¶

func (u *AccountUploadThemeRequest) GetThumb() (value InputFileClass, ok bool)

GetThumb returns value of Thumb conditional field and boolean which is true if field was set.

func (*AccountUploadThemeRequest) SetThumb ¶

func (u *AccountUploadThemeRequest) SetThumb(value InputFileClass)

SetThumb sets value of Thumb conditional field.

type AccountUploadWallPaperRequest ¶

type AccountUploadWallPaperRequest struct {
	// File field of AccountUploadWallPaperRequest.
	File InputFileClass
	// MimeType field of AccountUploadWallPaperRequest.
	MimeType string
	// Settings field of AccountUploadWallPaperRequest.
	Settings WallPaperSettings
}

AccountUploadWallPaperRequest represents TL type `account.uploadWallPaper#dd853661`.

func (*AccountUploadWallPaperRequest) Decode ¶

Decode implements bin.Decoder.

func (*AccountUploadWallPaperRequest) Encode ¶

Encode implements bin.Encoder.

type AccountVerifyEmailRequest ¶

type AccountVerifyEmailRequest struct {
	// Email field of AccountVerifyEmailRequest.
	Email string
	// Code field of AccountVerifyEmailRequest.
	Code string
}

AccountVerifyEmailRequest represents TL type `account.verifyEmail#ecba39db`.

func (*AccountVerifyEmailRequest) Decode ¶

func (v *AccountVerifyEmailRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountVerifyEmailRequest) Encode ¶

func (v *AccountVerifyEmailRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountVerifyPhoneRequest ¶

type AccountVerifyPhoneRequest struct {
	// PhoneNumber field of AccountVerifyPhoneRequest.
	PhoneNumber string
	// PhoneCodeHash field of AccountVerifyPhoneRequest.
	PhoneCodeHash string
	// PhoneCode field of AccountVerifyPhoneRequest.
	PhoneCode string
}

AccountVerifyPhoneRequest represents TL type `account.verifyPhone#4dd3a7f6`.

func (*AccountVerifyPhoneRequest) Decode ¶

func (v *AccountVerifyPhoneRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountVerifyPhoneRequest) Encode ¶

func (v *AccountVerifyPhoneRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountWallPapers ¶

type AccountWallPapers struct {
	// Hash field of AccountWallPapers.
	Hash int
	// Wallpapers field of AccountWallPapers.
	Wallpapers []WallPaperClass
}

AccountWallPapers represents TL type `account.wallPapers#702b65a9`.

func (*AccountWallPapers) Decode ¶

func (w *AccountWallPapers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountWallPapers) Encode ¶

func (w *AccountWallPapers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AccountWallPapersBox ¶

type AccountWallPapersBox struct {
	WallPapers AccountWallPapersClass
}

AccountWallPapers boxes the AccountWallPapersClass providing a helper.

func (*AccountWallPapersBox) Decode ¶

func (b *AccountWallPapersBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for AccountWallPapersBox.

func (*AccountWallPapersBox) Encode ¶

func (b *AccountWallPapersBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for AccountWallPapersBox.

type AccountWallPapersClass ¶

type AccountWallPapersClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

AccountWallPapersClass represents account.WallPapers generic type.

Example:

g, err := DecodeAccountWallPapers(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *AccountWallPapersNotModified: // account.wallPapersNotModified#1c199183
case *AccountWallPapers: // account.wallPapers#702b65a9
default: panic(v)
}

func DecodeAccountWallPapers ¶

func DecodeAccountWallPapers(buf *bin.Buffer) (AccountWallPapersClass, error)

DecodeAccountWallPapers implements binary de-serialization for AccountWallPapersClass.

type AccountWallPapersNotModified ¶

type AccountWallPapersNotModified struct {
}

AccountWallPapersNotModified represents TL type `account.wallPapersNotModified#1c199183`.

func (*AccountWallPapersNotModified) Decode ¶

Decode implements bin.Decoder.

func (*AccountWallPapersNotModified) Encode ¶

Encode implements bin.Encoder.

type AccountWebAuthorizations ¶

type AccountWebAuthorizations struct {
	// Authorizations field of AccountWebAuthorizations.
	Authorizations []WebAuthorization
	// Users field of AccountWebAuthorizations.
	Users []UserClass
}

AccountWebAuthorizations represents TL type `account.webAuthorizations#ed56c9fc`.

func (*AccountWebAuthorizations) Decode ¶

func (w *AccountWebAuthorizations) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AccountWebAuthorizations) Encode ¶

func (w *AccountWebAuthorizations) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthAcceptLoginTokenRequest ¶

type AuthAcceptLoginTokenRequest struct {
	// Token field of AuthAcceptLoginTokenRequest.
	Token []byte
}

AuthAcceptLoginTokenRequest represents TL type `auth.acceptLoginToken#e894ad4d`.

func (*AuthAcceptLoginTokenRequest) Decode ¶

Decode implements bin.Decoder.

func (*AuthAcceptLoginTokenRequest) Encode ¶

Encode implements bin.Encoder.

type AuthAuthorization ¶

type AuthAuthorization struct {
	// Flags field of AuthAuthorization.
	Flags bin.Fields
	// TmpSessions field of AuthAuthorization.
	//
	// Use SetTmpSessions and GetTmpSessions helpers.
	TmpSessions int
	// User field of AuthAuthorization.
	User UserClass
}

AuthAuthorization represents TL type `auth.authorization#cd050916`.

func (*AuthAuthorization) Decode ¶

func (a *AuthAuthorization) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthAuthorization) Encode ¶

func (a *AuthAuthorization) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*AuthAuthorization) GetTmpSessions ¶

func (a *AuthAuthorization) GetTmpSessions() (value int, ok bool)

GetTmpSessions returns value of TmpSessions conditional field and boolean which is true if field was set.

func (*AuthAuthorization) SetTmpSessions ¶

func (a *AuthAuthorization) SetTmpSessions(value int)

SetTmpSessions sets value of TmpSessions conditional field.

type AuthAuthorizationBox ¶

type AuthAuthorizationBox struct {
	Authorization AuthAuthorizationClass
}

AuthAuthorization boxes the AuthAuthorizationClass providing a helper.

func (*AuthAuthorizationBox) Decode ¶

func (b *AuthAuthorizationBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for AuthAuthorizationBox.

func (*AuthAuthorizationBox) Encode ¶

func (b *AuthAuthorizationBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for AuthAuthorizationBox.

type AuthAuthorizationClass ¶

type AuthAuthorizationClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

AuthAuthorizationClass represents auth.Authorization generic type.

Example:

g, err := DecodeAuthAuthorization(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *AuthAuthorization: // auth.authorization#cd050916
case *AuthAuthorizationSignUpRequired: // auth.authorizationSignUpRequired#44747e9a
default: panic(v)
}

func DecodeAuthAuthorization ¶

func DecodeAuthAuthorization(buf *bin.Buffer) (AuthAuthorizationClass, error)

DecodeAuthAuthorization implements binary de-serialization for AuthAuthorizationClass.

type AuthAuthorizationSignUpRequired ¶

type AuthAuthorizationSignUpRequired struct {
	// Flags field of AuthAuthorizationSignUpRequired.
	Flags bin.Fields
	// TermsOfService field of AuthAuthorizationSignUpRequired.
	//
	// Use SetTermsOfService and GetTermsOfService helpers.
	TermsOfService HelpTermsOfService
}

AuthAuthorizationSignUpRequired represents TL type `auth.authorizationSignUpRequired#44747e9a`.

func (*AuthAuthorizationSignUpRequired) Decode ¶

Decode implements bin.Decoder.

func (*AuthAuthorizationSignUpRequired) Encode ¶

Encode implements bin.Encoder.

func (*AuthAuthorizationSignUpRequired) GetTermsOfService ¶

func (a *AuthAuthorizationSignUpRequired) GetTermsOfService() (value HelpTermsOfService, ok bool)

GetTermsOfService returns value of TermsOfService conditional field and boolean which is true if field was set.

func (*AuthAuthorizationSignUpRequired) SetTermsOfService ¶

func (a *AuthAuthorizationSignUpRequired) SetTermsOfService(value HelpTermsOfService)

SetTermsOfService sets value of TermsOfService conditional field.

type AuthBindTempAuthKeyRequest ¶

type AuthBindTempAuthKeyRequest struct {
	// PermAuthKeyID field of AuthBindTempAuthKeyRequest.
	PermAuthKeyID int64
	// Nonce field of AuthBindTempAuthKeyRequest.
	Nonce int64
	// ExpiresAt field of AuthBindTempAuthKeyRequest.
	ExpiresAt int
	// EncryptedMessage field of AuthBindTempAuthKeyRequest.
	EncryptedMessage []byte
}

AuthBindTempAuthKeyRequest represents TL type `auth.bindTempAuthKey#cdd42a05`.

func (*AuthBindTempAuthKeyRequest) Decode ¶

func (b *AuthBindTempAuthKeyRequest) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthBindTempAuthKeyRequest) Encode ¶

func (b *AuthBindTempAuthKeyRequest) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type AuthCancelCodeRequest ¶

type AuthCancelCodeRequest struct {
	// PhoneNumber field of AuthCancelCodeRequest.
	PhoneNumber string
	// PhoneCodeHash field of AuthCancelCodeRequest.
	PhoneCodeHash string
}

AuthCancelCodeRequest represents TL type `auth.cancelCode#1f040578`.

func (*AuthCancelCodeRequest) Decode ¶

func (c *AuthCancelCodeRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthCancelCodeRequest) Encode ¶

func (c *AuthCancelCodeRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthCheckPasswordRequest ¶

type AuthCheckPasswordRequest struct {
	// Password field of AuthCheckPasswordRequest.
	Password InputCheckPasswordSRPClass
}

AuthCheckPasswordRequest represents TL type `auth.checkPassword#d18b4d16`.

func (*AuthCheckPasswordRequest) Decode ¶

func (c *AuthCheckPasswordRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthCheckPasswordRequest) Encode ¶

func (c *AuthCheckPasswordRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthCodeTypeBox ¶

type AuthCodeTypeBox struct {
	CodeType AuthCodeTypeClass
}

AuthCodeType boxes the AuthCodeTypeClass providing a helper.

func (*AuthCodeTypeBox) Decode ¶

func (b *AuthCodeTypeBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for AuthCodeTypeBox.

func (*AuthCodeTypeBox) Encode ¶

func (b *AuthCodeTypeBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for AuthCodeTypeBox.

type AuthCodeTypeCall ¶

type AuthCodeTypeCall struct {
}

AuthCodeTypeCall represents TL type `auth.codeTypeCall#741cd3e3`.

func (*AuthCodeTypeCall) Decode ¶

func (c *AuthCodeTypeCall) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthCodeTypeCall) Encode ¶

func (c *AuthCodeTypeCall) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthCodeTypeClass ¶

type AuthCodeTypeClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

AuthCodeTypeClass represents auth.CodeType generic type.

Example:

g, err := DecodeAuthCodeType(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *AuthCodeTypeSms: // auth.codeTypeSms#72a3158c
case *AuthCodeTypeCall: // auth.codeTypeCall#741cd3e3
case *AuthCodeTypeFlashCall: // auth.codeTypeFlashCall#226ccefb
default: panic(v)
}

func DecodeAuthCodeType ¶

func DecodeAuthCodeType(buf *bin.Buffer) (AuthCodeTypeClass, error)

DecodeAuthCodeType implements binary de-serialization for AuthCodeTypeClass.

type AuthCodeTypeFlashCall ¶

type AuthCodeTypeFlashCall struct {
}

AuthCodeTypeFlashCall represents TL type `auth.codeTypeFlashCall#226ccefb`.

func (*AuthCodeTypeFlashCall) Decode ¶

func (c *AuthCodeTypeFlashCall) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthCodeTypeFlashCall) Encode ¶

func (c *AuthCodeTypeFlashCall) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthCodeTypeSms ¶

type AuthCodeTypeSms struct {
}

AuthCodeTypeSms represents TL type `auth.codeTypeSms#72a3158c`.

func (*AuthCodeTypeSms) Decode ¶

func (c *AuthCodeTypeSms) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthCodeTypeSms) Encode ¶

func (c *AuthCodeTypeSms) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthDropTempAuthKeysRequest ¶

type AuthDropTempAuthKeysRequest struct {
	// ExceptAuthKeys field of AuthDropTempAuthKeysRequest.
	ExceptAuthKeys []int64
}

AuthDropTempAuthKeysRequest represents TL type `auth.dropTempAuthKeys#8e48a188`.

func (*AuthDropTempAuthKeysRequest) Decode ¶

Decode implements bin.Decoder.

func (*AuthDropTempAuthKeysRequest) Encode ¶

Encode implements bin.Encoder.

type AuthExportAuthorizationRequest ¶

type AuthExportAuthorizationRequest struct {
	// DCID field of AuthExportAuthorizationRequest.
	DCID int
}

AuthExportAuthorizationRequest represents TL type `auth.exportAuthorization#e5bfffcd`.

func (*AuthExportAuthorizationRequest) Decode ¶

Decode implements bin.Decoder.

func (*AuthExportAuthorizationRequest) Encode ¶

Encode implements bin.Encoder.

type AuthExportLoginTokenRequest ¶

type AuthExportLoginTokenRequest struct {
	// APIID field of AuthExportLoginTokenRequest.
	APIID int
	// APIHash field of AuthExportLoginTokenRequest.
	APIHash string
	// ExceptIds field of AuthExportLoginTokenRequest.
	ExceptIds []int
}

AuthExportLoginTokenRequest represents TL type `auth.exportLoginToken#b1b41517`.

func (*AuthExportLoginTokenRequest) Decode ¶

Decode implements bin.Decoder.

func (*AuthExportLoginTokenRequest) Encode ¶

Encode implements bin.Encoder.

type AuthExportedAuthorization ¶

type AuthExportedAuthorization struct {
	// ID field of AuthExportedAuthorization.
	ID int
	// Bytes field of AuthExportedAuthorization.
	Bytes []byte
}

AuthExportedAuthorization represents TL type `auth.exportedAuthorization#df969c2d`.

func (*AuthExportedAuthorization) Decode ¶

func (e *AuthExportedAuthorization) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthExportedAuthorization) Encode ¶

func (e *AuthExportedAuthorization) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthImportAuthorizationRequest ¶

type AuthImportAuthorizationRequest struct {
	// ID field of AuthImportAuthorizationRequest.
	ID int
	// Bytes field of AuthImportAuthorizationRequest.
	Bytes []byte
}

AuthImportAuthorizationRequest represents TL type `auth.importAuthorization#e3ef9613`.

func (*AuthImportAuthorizationRequest) Decode ¶

Decode implements bin.Decoder.

func (*AuthImportAuthorizationRequest) Encode ¶

Encode implements bin.Encoder.

type AuthImportBotAuthorizationRequest ¶

type AuthImportBotAuthorizationRequest struct {
	// Flags field of AuthImportBotAuthorizationRequest.
	Flags int
	// APIID field of AuthImportBotAuthorizationRequest.
	APIID int
	// APIHash field of AuthImportBotAuthorizationRequest.
	APIHash string
	// BotAuthToken field of AuthImportBotAuthorizationRequest.
	BotAuthToken string
}

AuthImportBotAuthorizationRequest represents TL type `auth.importBotAuthorization#67a3ff2c`.

func (*AuthImportBotAuthorizationRequest) Decode ¶

Decode implements bin.Decoder.

func (*AuthImportBotAuthorizationRequest) Encode ¶

Encode implements bin.Encoder.

type AuthImportLoginTokenRequest ¶

type AuthImportLoginTokenRequest struct {
	// Token field of AuthImportLoginTokenRequest.
	Token []byte
}

AuthImportLoginTokenRequest represents TL type `auth.importLoginToken#95ac5ce4`.

func (*AuthImportLoginTokenRequest) Decode ¶

Decode implements bin.Decoder.

func (*AuthImportLoginTokenRequest) Encode ¶

Encode implements bin.Encoder.

type AuthLogOutRequest ¶

type AuthLogOutRequest struct {
}

AuthLogOutRequest represents TL type `auth.logOut#5717da40`.

func (*AuthLogOutRequest) Decode ¶

func (l *AuthLogOutRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthLogOutRequest) Encode ¶

func (l *AuthLogOutRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthLoginToken ¶

type AuthLoginToken struct {
	// Expires field of AuthLoginToken.
	Expires int
	// Token field of AuthLoginToken.
	Token []byte
}

AuthLoginToken represents TL type `auth.loginToken#629f1980`.

func (*AuthLoginToken) Decode ¶

func (l *AuthLoginToken) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthLoginToken) Encode ¶

func (l *AuthLoginToken) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthLoginTokenBox ¶

type AuthLoginTokenBox struct {
	LoginToken AuthLoginTokenClass
}

AuthLoginToken boxes the AuthLoginTokenClass providing a helper.

func (*AuthLoginTokenBox) Decode ¶

func (b *AuthLoginTokenBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for AuthLoginTokenBox.

func (*AuthLoginTokenBox) Encode ¶

func (b *AuthLoginTokenBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for AuthLoginTokenBox.

type AuthLoginTokenClass ¶

type AuthLoginTokenClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

AuthLoginTokenClass represents auth.LoginToken generic type.

Example:

g, err := DecodeAuthLoginToken(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *AuthLoginToken: // auth.loginToken#629f1980
case *AuthLoginTokenMigrateTo: // auth.loginTokenMigrateTo#68e9916
case *AuthLoginTokenSuccess: // auth.loginTokenSuccess#390d5c5e
default: panic(v)
}

func DecodeAuthLoginToken ¶

func DecodeAuthLoginToken(buf *bin.Buffer) (AuthLoginTokenClass, error)

DecodeAuthLoginToken implements binary de-serialization for AuthLoginTokenClass.

type AuthLoginTokenMigrateTo ¶

type AuthLoginTokenMigrateTo struct {
	// DCID field of AuthLoginTokenMigrateTo.
	DCID int
	// Token field of AuthLoginTokenMigrateTo.
	Token []byte
}

AuthLoginTokenMigrateTo represents TL type `auth.loginTokenMigrateTo#68e9916`.

func (*AuthLoginTokenMigrateTo) Decode ¶

func (l *AuthLoginTokenMigrateTo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthLoginTokenMigrateTo) Encode ¶

func (l *AuthLoginTokenMigrateTo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthLoginTokenSuccess ¶

type AuthLoginTokenSuccess struct {
	// Authorization field of AuthLoginTokenSuccess.
	Authorization AuthAuthorizationClass
}

AuthLoginTokenSuccess represents TL type `auth.loginTokenSuccess#390d5c5e`.

func (*AuthLoginTokenSuccess) Decode ¶

func (l *AuthLoginTokenSuccess) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthLoginTokenSuccess) Encode ¶

func (l *AuthLoginTokenSuccess) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthPasswordRecovery ¶

type AuthPasswordRecovery struct {
	// EmailPattern field of AuthPasswordRecovery.
	EmailPattern string
}

AuthPasswordRecovery represents TL type `auth.passwordRecovery#137948a5`.

func (*AuthPasswordRecovery) Decode ¶

func (p *AuthPasswordRecovery) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthPasswordRecovery) Encode ¶

func (p *AuthPasswordRecovery) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthRecoverPasswordRequest ¶

type AuthRecoverPasswordRequest struct {
	// Code field of AuthRecoverPasswordRequest.
	Code string
}

AuthRecoverPasswordRequest represents TL type `auth.recoverPassword#4ea56e92`.

func (*AuthRecoverPasswordRequest) Decode ¶

Decode implements bin.Decoder.

func (*AuthRecoverPasswordRequest) Encode ¶

Encode implements bin.Encoder.

type AuthRequestPasswordRecoveryRequest ¶

type AuthRequestPasswordRecoveryRequest struct {
}

AuthRequestPasswordRecoveryRequest represents TL type `auth.requestPasswordRecovery#d897bc66`.

func (*AuthRequestPasswordRecoveryRequest) Decode ¶

Decode implements bin.Decoder.

func (*AuthRequestPasswordRecoveryRequest) Encode ¶

Encode implements bin.Encoder.

type AuthResendCodeRequest ¶

type AuthResendCodeRequest struct {
	// PhoneNumber field of AuthResendCodeRequest.
	PhoneNumber string
	// PhoneCodeHash field of AuthResendCodeRequest.
	PhoneCodeHash string
}

AuthResendCodeRequest represents TL type `auth.resendCode#3ef1a9bf`.

func (*AuthResendCodeRequest) Decode ¶

func (r *AuthResendCodeRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthResendCodeRequest) Encode ¶

func (r *AuthResendCodeRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthResetAuthorizationsRequest ¶

type AuthResetAuthorizationsRequest struct {
}

AuthResetAuthorizationsRequest represents TL type `auth.resetAuthorizations#9fab0d1a`.

func (*AuthResetAuthorizationsRequest) Decode ¶

Decode implements bin.Decoder.

func (*AuthResetAuthorizationsRequest) Encode ¶

Encode implements bin.Encoder.

type AuthSendCodeRequest ¶

type AuthSendCodeRequest struct {
	// PhoneNumber field of AuthSendCodeRequest.
	PhoneNumber string
	// APIID field of AuthSendCodeRequest.
	APIID int
	// APIHash field of AuthSendCodeRequest.
	APIHash string
	// Settings field of AuthSendCodeRequest.
	Settings CodeSettings
}

AuthSendCodeRequest represents TL type `auth.sendCode#a677244f`.

func (*AuthSendCodeRequest) Decode ¶

func (s *AuthSendCodeRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthSendCodeRequest) Encode ¶

func (s *AuthSendCodeRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthSentCode ¶

type AuthSentCode struct {
	// Flags field of AuthSentCode.
	Flags bin.Fields
	// Type field of AuthSentCode.
	Type AuthSentCodeTypeClass
	// PhoneCodeHash field of AuthSentCode.
	PhoneCodeHash string
	// NextType field of AuthSentCode.
	//
	// Use SetNextType and GetNextType helpers.
	NextType AuthCodeTypeClass
	// Timeout field of AuthSentCode.
	//
	// Use SetTimeout and GetTimeout helpers.
	Timeout int
}

AuthSentCode represents TL type `auth.sentCode#5e002502`.

func (*AuthSentCode) Decode ¶

func (s *AuthSentCode) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthSentCode) Encode ¶

func (s *AuthSentCode) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*AuthSentCode) GetNextType ¶

func (s *AuthSentCode) GetNextType() (value AuthCodeTypeClass, ok bool)

GetNextType returns value of NextType conditional field and boolean which is true if field was set.

func (*AuthSentCode) GetTimeout ¶

func (s *AuthSentCode) GetTimeout() (value int, ok bool)

GetTimeout returns value of Timeout conditional field and boolean which is true if field was set.

func (*AuthSentCode) SetNextType ¶

func (s *AuthSentCode) SetNextType(value AuthCodeTypeClass)

SetNextType sets value of NextType conditional field.

func (*AuthSentCode) SetTimeout ¶

func (s *AuthSentCode) SetTimeout(value int)

SetTimeout sets value of Timeout conditional field.

type AuthSentCodeTypeApp ¶

type AuthSentCodeTypeApp struct {
	// Length field of AuthSentCodeTypeApp.
	Length int
}

AuthSentCodeTypeApp represents TL type `auth.sentCodeTypeApp#3dbb5986`.

func (*AuthSentCodeTypeApp) Decode ¶

func (s *AuthSentCodeTypeApp) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthSentCodeTypeApp) Encode ¶

func (s *AuthSentCodeTypeApp) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthSentCodeTypeBox ¶

type AuthSentCodeTypeBox struct {
	SentCodeType AuthSentCodeTypeClass
}

AuthSentCodeType boxes the AuthSentCodeTypeClass providing a helper.

func (*AuthSentCodeTypeBox) Decode ¶

func (b *AuthSentCodeTypeBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for AuthSentCodeTypeBox.

func (*AuthSentCodeTypeBox) Encode ¶

func (b *AuthSentCodeTypeBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for AuthSentCodeTypeBox.

type AuthSentCodeTypeCall ¶

type AuthSentCodeTypeCall struct {
	// Length field of AuthSentCodeTypeCall.
	Length int
}

AuthSentCodeTypeCall represents TL type `auth.sentCodeTypeCall#5353e5a7`.

func (*AuthSentCodeTypeCall) Decode ¶

func (s *AuthSentCodeTypeCall) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthSentCodeTypeCall) Encode ¶

func (s *AuthSentCodeTypeCall) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthSentCodeTypeClass ¶

type AuthSentCodeTypeClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

AuthSentCodeTypeClass represents auth.SentCodeType generic type.

Example:

g, err := DecodeAuthSentCodeType(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *AuthSentCodeTypeApp: // auth.sentCodeTypeApp#3dbb5986
case *AuthSentCodeTypeSms: // auth.sentCodeTypeSms#c000bba2
case *AuthSentCodeTypeCall: // auth.sentCodeTypeCall#5353e5a7
case *AuthSentCodeTypeFlashCall: // auth.sentCodeTypeFlashCall#ab03c6d9
default: panic(v)
}

func DecodeAuthSentCodeType ¶

func DecodeAuthSentCodeType(buf *bin.Buffer) (AuthSentCodeTypeClass, error)

DecodeAuthSentCodeType implements binary de-serialization for AuthSentCodeTypeClass.

type AuthSentCodeTypeFlashCall ¶

type AuthSentCodeTypeFlashCall struct {
	// Pattern field of AuthSentCodeTypeFlashCall.
	Pattern string
}

AuthSentCodeTypeFlashCall represents TL type `auth.sentCodeTypeFlashCall#ab03c6d9`.

func (*AuthSentCodeTypeFlashCall) Decode ¶

func (s *AuthSentCodeTypeFlashCall) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthSentCodeTypeFlashCall) Encode ¶

func (s *AuthSentCodeTypeFlashCall) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthSentCodeTypeSms ¶

type AuthSentCodeTypeSms struct {
	// Length field of AuthSentCodeTypeSms.
	Length int
}

AuthSentCodeTypeSms represents TL type `auth.sentCodeTypeSms#c000bba2`.

func (*AuthSentCodeTypeSms) Decode ¶

func (s *AuthSentCodeTypeSms) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthSentCodeTypeSms) Encode ¶

func (s *AuthSentCodeTypeSms) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthSignInRequest ¶

type AuthSignInRequest struct {
	// PhoneNumber field of AuthSignInRequest.
	PhoneNumber string
	// PhoneCodeHash field of AuthSignInRequest.
	PhoneCodeHash string
	// PhoneCode field of AuthSignInRequest.
	PhoneCode string
}

AuthSignInRequest represents TL type `auth.signIn#bcd51581`.

func (*AuthSignInRequest) Decode ¶

func (s *AuthSignInRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthSignInRequest) Encode ¶

func (s *AuthSignInRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type AuthSignUpRequest ¶

type AuthSignUpRequest struct {
	// PhoneNumber field of AuthSignUpRequest.
	PhoneNumber string
	// PhoneCodeHash field of AuthSignUpRequest.
	PhoneCodeHash string
	// FirstName field of AuthSignUpRequest.
	FirstName string
	// LastName field of AuthSignUpRequest.
	LastName string
}

AuthSignUpRequest represents TL type `auth.signUp#80eee427`.

func (*AuthSignUpRequest) Decode ¶

func (s *AuthSignUpRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AuthSignUpRequest) Encode ¶

func (s *AuthSignUpRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type Authorization ¶

type Authorization struct {
	// Flags field of Authorization.
	Flags bin.Fields
	// Current field of Authorization.
	Current bool
	// OfficialApp field of Authorization.
	OfficialApp bool
	// PasswordPending field of Authorization.
	PasswordPending bool
	// Hash field of Authorization.
	Hash int64
	// DeviceModel field of Authorization.
	DeviceModel string
	// Platform field of Authorization.
	Platform string
	// SystemVersion field of Authorization.
	SystemVersion string
	// APIID field of Authorization.
	APIID int
	// AppName field of Authorization.
	AppName string
	// AppVersion field of Authorization.
	AppVersion string
	// DateCreated field of Authorization.
	DateCreated int
	// DateActive field of Authorization.
	DateActive int
	// IP field of Authorization.
	IP string
	// Country field of Authorization.
	Country string
	// Region field of Authorization.
	Region string
}

Authorization represents TL type `authorization#ad01d61d`.

func (*Authorization) Decode ¶

func (a *Authorization) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Authorization) Encode ¶

func (a *Authorization) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Authorization) SetCurrent ¶

func (a *Authorization) SetCurrent(value bool)

SetCurrent sets value of Current conditional field.

func (*Authorization) SetOfficialApp ¶

func (a *Authorization) SetOfficialApp(value bool)

SetOfficialApp sets value of OfficialApp conditional field.

func (*Authorization) SetPasswordPending ¶

func (a *Authorization) SetPasswordPending(value bool)

SetPasswordPending sets value of PasswordPending conditional field.

type AutoDownloadSettings ¶

type AutoDownloadSettings struct {
	// Flags field of AutoDownloadSettings.
	Flags bin.Fields
	// Disabled field of AutoDownloadSettings.
	Disabled bool
	// VideoPreloadLarge field of AutoDownloadSettings.
	VideoPreloadLarge bool
	// AudioPreloadNext field of AutoDownloadSettings.
	AudioPreloadNext bool
	// PhonecallsLessData field of AutoDownloadSettings.
	PhonecallsLessData bool
	// PhotoSizeMax field of AutoDownloadSettings.
	PhotoSizeMax int
	// VideoSizeMax field of AutoDownloadSettings.
	VideoSizeMax int
	// FileSizeMax field of AutoDownloadSettings.
	FileSizeMax int
	// VideoUploadMaxbitrate field of AutoDownloadSettings.
	VideoUploadMaxbitrate int
}

AutoDownloadSettings represents TL type `autoDownloadSettings#e04232f3`.

func (*AutoDownloadSettings) Decode ¶

func (a *AutoDownloadSettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*AutoDownloadSettings) Encode ¶

func (a *AutoDownloadSettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*AutoDownloadSettings) SetAudioPreloadNext ¶

func (a *AutoDownloadSettings) SetAudioPreloadNext(value bool)

SetAudioPreloadNext sets value of AudioPreloadNext conditional field.

func (*AutoDownloadSettings) SetDisabled ¶

func (a *AutoDownloadSettings) SetDisabled(value bool)

SetDisabled sets value of Disabled conditional field.

func (*AutoDownloadSettings) SetPhonecallsLessData ¶

func (a *AutoDownloadSettings) SetPhonecallsLessData(value bool)

SetPhonecallsLessData sets value of PhonecallsLessData conditional field.

func (*AutoDownloadSettings) SetVideoPreloadLarge ¶

func (a *AutoDownloadSettings) SetVideoPreloadLarge(value bool)

SetVideoPreloadLarge sets value of VideoPreloadLarge conditional field.

type BankCardOpenUrl ¶

type BankCardOpenUrl struct {
	// URL field of BankCardOpenUrl.
	URL string
	// Name field of BankCardOpenUrl.
	Name string
}

BankCardOpenUrl represents TL type `bankCardOpenUrl#f568028a`.

func (*BankCardOpenUrl) Decode ¶

func (b *BankCardOpenUrl) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BankCardOpenUrl) Encode ¶

func (b *BankCardOpenUrl) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type BaseThemeArctic ¶

type BaseThemeArctic struct {
}

BaseThemeArctic represents TL type `baseThemeArctic#5b11125a`.

func (*BaseThemeArctic) Decode ¶

func (b *BaseThemeArctic) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BaseThemeArctic) Encode ¶

func (b *BaseThemeArctic) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type BaseThemeBox ¶

type BaseThemeBox struct {
	BaseTheme BaseThemeClass
}

BaseTheme boxes the BaseThemeClass providing a helper.

func (*BaseThemeBox) Decode ¶

func (b *BaseThemeBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for BaseThemeBox.

func (*BaseThemeBox) Encode ¶

func (b *BaseThemeBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for BaseThemeBox.

type BaseThemeClass ¶

type BaseThemeClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

BaseThemeClass represents BaseTheme generic type.

Example:

g, err := DecodeBaseTheme(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *BaseThemeClassic: // baseThemeClassic#c3a12462
case *BaseThemeDay: // baseThemeDay#fbd81688
case *BaseThemeNight: // baseThemeNight#b7b31ea8
case *BaseThemeTinted: // baseThemeTinted#6d5f77ee
case *BaseThemeArctic: // baseThemeArctic#5b11125a
default: panic(v)
}

func DecodeBaseTheme ¶

func DecodeBaseTheme(buf *bin.Buffer) (BaseThemeClass, error)

DecodeBaseTheme implements binary de-serialization for BaseThemeClass.

type BaseThemeClassic ¶

type BaseThemeClassic struct {
}

BaseThemeClassic represents TL type `baseThemeClassic#c3a12462`.

func (*BaseThemeClassic) Decode ¶

func (b *BaseThemeClassic) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BaseThemeClassic) Encode ¶

func (b *BaseThemeClassic) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type BaseThemeDay ¶

type BaseThemeDay struct {
}

BaseThemeDay represents TL type `baseThemeDay#fbd81688`.

func (*BaseThemeDay) Decode ¶

func (b *BaseThemeDay) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BaseThemeDay) Encode ¶

func (b *BaseThemeDay) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type BaseThemeNight ¶

type BaseThemeNight struct {
}

BaseThemeNight represents TL type `baseThemeNight#b7b31ea8`.

func (*BaseThemeNight) Decode ¶

func (b *BaseThemeNight) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BaseThemeNight) Encode ¶

func (b *BaseThemeNight) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type BaseThemeTinted ¶

type BaseThemeTinted struct {
}

BaseThemeTinted represents TL type `baseThemeTinted#6d5f77ee`.

func (*BaseThemeTinted) Decode ¶

func (b *BaseThemeTinted) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BaseThemeTinted) Encode ¶

func (b *BaseThemeTinted) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type BoolBox ¶

type BoolBox struct {
	Bool BoolClass
}

Bool boxes the BoolClass providing a helper.

func (*BoolBox) Decode ¶

func (b *BoolBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for BoolBox.

func (*BoolBox) Encode ¶

func (b *BoolBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for BoolBox.

type BoolClass ¶

type BoolClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

BoolClass represents Bool generic type.

Example:

g, err := DecodeBool(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *BoolFalse: // boolFalse#bc799737
case *BoolTrue: // boolTrue#997275b5
default: panic(v)
}

func DecodeBool ¶

func DecodeBool(buf *bin.Buffer) (BoolClass, error)

DecodeBool implements binary de-serialization for BoolClass.

type BoolFalse ¶

type BoolFalse struct {
}

BoolFalse represents TL type `boolFalse#bc799737`.

func (*BoolFalse) Decode ¶

func (b *BoolFalse) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BoolFalse) Encode ¶

func (b *BoolFalse) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type BoolTrue ¶

type BoolTrue struct {
}

BoolTrue represents TL type `boolTrue#997275b5`.

func (*BoolTrue) Decode ¶

func (b *BoolTrue) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BoolTrue) Encode ¶

func (b *BoolTrue) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type BotCommand ¶

type BotCommand struct {
	// Command field of BotCommand.
	Command string
	// Description field of BotCommand.
	Description string
}

BotCommand represents TL type `botCommand#c27ac8c7`.

func (*BotCommand) Decode ¶

func (b *BotCommand) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BotCommand) Encode ¶

func (b *BotCommand) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type BotInfo ¶

type BotInfo struct {
	// UserID field of BotInfo.
	UserID int
	// Description field of BotInfo.
	Description string
	// Commands field of BotInfo.
	Commands []BotCommand
}

BotInfo represents TL type `botInfo#98e81d3a`.

func (*BotInfo) Decode ¶

func (b *BotInfo) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BotInfo) Encode ¶

func (b *BotInfo) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type BotInlineMediaResult ¶

type BotInlineMediaResult struct {
	// Flags field of BotInlineMediaResult.
	Flags bin.Fields
	// ID field of BotInlineMediaResult.
	ID string
	// Type field of BotInlineMediaResult.
	Type string
	// Photo field of BotInlineMediaResult.
	//
	// Use SetPhoto and GetPhoto helpers.
	Photo PhotoClass
	// Document field of BotInlineMediaResult.
	//
	// Use SetDocument and GetDocument helpers.
	Document DocumentClass
	// Title field of BotInlineMediaResult.
	//
	// Use SetTitle and GetTitle helpers.
	Title string
	// Description field of BotInlineMediaResult.
	//
	// Use SetDescription and GetDescription helpers.
	Description string
	// SendMessage field of BotInlineMediaResult.
	SendMessage BotInlineMessageClass
}

BotInlineMediaResult represents TL type `botInlineMediaResult#17db940b`.

func (*BotInlineMediaResult) Decode ¶

func (b *BotInlineMediaResult) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BotInlineMediaResult) Encode ¶

func (b *BotInlineMediaResult) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

func (*BotInlineMediaResult) GetDescription ¶

func (b *BotInlineMediaResult) GetDescription() (value string, ok bool)

GetDescription returns value of Description conditional field and boolean which is true if field was set.

func (*BotInlineMediaResult) GetDocument ¶

func (b *BotInlineMediaResult) GetDocument() (value DocumentClass, ok bool)

GetDocument returns value of Document conditional field and boolean which is true if field was set.

func (*BotInlineMediaResult) GetPhoto ¶

func (b *BotInlineMediaResult) GetPhoto() (value PhotoClass, ok bool)

GetPhoto returns value of Photo conditional field and boolean which is true if field was set.

func (*BotInlineMediaResult) GetTitle ¶

func (b *BotInlineMediaResult) GetTitle() (value string, ok bool)

GetTitle returns value of Title conditional field and boolean which is true if field was set.

func (*BotInlineMediaResult) SetDescription ¶

func (b *BotInlineMediaResult) SetDescription(value string)

SetDescription sets value of Description conditional field.

func (*BotInlineMediaResult) SetDocument ¶

func (b *BotInlineMediaResult) SetDocument(value DocumentClass)

SetDocument sets value of Document conditional field.

func (*BotInlineMediaResult) SetPhoto ¶

func (b *BotInlineMediaResult) SetPhoto(value PhotoClass)

SetPhoto sets value of Photo conditional field.

func (*BotInlineMediaResult) SetTitle ¶

func (b *BotInlineMediaResult) SetTitle(value string)

SetTitle sets value of Title conditional field.

type BotInlineMessageBox ¶

type BotInlineMessageBox struct {
	BotInlineMessage BotInlineMessageClass
}

BotInlineMessage boxes the BotInlineMessageClass providing a helper.

func (*BotInlineMessageBox) Decode ¶

func (b *BotInlineMessageBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for BotInlineMessageBox.

func (*BotInlineMessageBox) Encode ¶

func (b *BotInlineMessageBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for BotInlineMessageBox.

type BotInlineMessageClass ¶

type BotInlineMessageClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

BotInlineMessageClass represents BotInlineMessage generic type.

Example:

g, err := DecodeBotInlineMessage(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *BotInlineMessageMediaAuto: // botInlineMessageMediaAuto#764cf810
case *BotInlineMessageText: // botInlineMessageText#8c7f65e2
case *BotInlineMessageMediaGeo: // botInlineMessageMediaGeo#51846fd
case *BotInlineMessageMediaVenue: // botInlineMessageMediaVenue#8a86659c
case *BotInlineMessageMediaContact: // botInlineMessageMediaContact#18d1cdc2
default: panic(v)
}

func DecodeBotInlineMessage ¶

func DecodeBotInlineMessage(buf *bin.Buffer) (BotInlineMessageClass, error)

DecodeBotInlineMessage implements binary de-serialization for BotInlineMessageClass.

type BotInlineMessageMediaAuto ¶

type BotInlineMessageMediaAuto struct {
	// Flags field of BotInlineMessageMediaAuto.
	Flags bin.Fields
	// Message field of BotInlineMessageMediaAuto.
	Message string
	// Entities field of BotInlineMessageMediaAuto.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
	// ReplyMarkup field of BotInlineMessageMediaAuto.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
}

BotInlineMessageMediaAuto represents TL type `botInlineMessageMediaAuto#764cf810`.

func (*BotInlineMessageMediaAuto) Decode ¶

func (b *BotInlineMessageMediaAuto) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BotInlineMessageMediaAuto) Encode ¶

func (b *BotInlineMessageMediaAuto) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

func (*BotInlineMessageMediaAuto) GetEntities ¶

func (b *BotInlineMessageMediaAuto) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*BotInlineMessageMediaAuto) GetReplyMarkup ¶

func (b *BotInlineMessageMediaAuto) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*BotInlineMessageMediaAuto) SetEntities ¶

func (b *BotInlineMessageMediaAuto) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*BotInlineMessageMediaAuto) SetReplyMarkup ¶

func (b *BotInlineMessageMediaAuto) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

type BotInlineMessageMediaContact ¶

type BotInlineMessageMediaContact struct {
	// Flags field of BotInlineMessageMediaContact.
	Flags bin.Fields
	// PhoneNumber field of BotInlineMessageMediaContact.
	PhoneNumber string
	// FirstName field of BotInlineMessageMediaContact.
	FirstName string
	// LastName field of BotInlineMessageMediaContact.
	LastName string
	// Vcard field of BotInlineMessageMediaContact.
	Vcard string
	// ReplyMarkup field of BotInlineMessageMediaContact.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
}

BotInlineMessageMediaContact represents TL type `botInlineMessageMediaContact#18d1cdc2`.

func (*BotInlineMessageMediaContact) Decode ¶

func (b *BotInlineMessageMediaContact) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BotInlineMessageMediaContact) Encode ¶

func (b *BotInlineMessageMediaContact) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

func (*BotInlineMessageMediaContact) GetReplyMarkup ¶

func (b *BotInlineMessageMediaContact) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*BotInlineMessageMediaContact) SetReplyMarkup ¶

func (b *BotInlineMessageMediaContact) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

type BotInlineMessageMediaGeo ¶

type BotInlineMessageMediaGeo struct {
	// Flags field of BotInlineMessageMediaGeo.
	Flags bin.Fields
	// Geo field of BotInlineMessageMediaGeo.
	Geo GeoPointClass
	// Heading field of BotInlineMessageMediaGeo.
	//
	// Use SetHeading and GetHeading helpers.
	Heading int
	// Period field of BotInlineMessageMediaGeo.
	//
	// Use SetPeriod and GetPeriod helpers.
	Period int
	// ProximityNotificationRadius field of BotInlineMessageMediaGeo.
	//
	// Use SetProximityNotificationRadius and GetProximityNotificationRadius helpers.
	ProximityNotificationRadius int
	// ReplyMarkup field of BotInlineMessageMediaGeo.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
}

BotInlineMessageMediaGeo represents TL type `botInlineMessageMediaGeo#51846fd`.

func (*BotInlineMessageMediaGeo) Decode ¶

func (b *BotInlineMessageMediaGeo) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BotInlineMessageMediaGeo) Encode ¶

func (b *BotInlineMessageMediaGeo) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

func (*BotInlineMessageMediaGeo) GetHeading ¶

func (b *BotInlineMessageMediaGeo) GetHeading() (value int, ok bool)

GetHeading returns value of Heading conditional field and boolean which is true if field was set.

func (*BotInlineMessageMediaGeo) GetPeriod ¶

func (b *BotInlineMessageMediaGeo) GetPeriod() (value int, ok bool)

GetPeriod returns value of Period conditional field and boolean which is true if field was set.

func (*BotInlineMessageMediaGeo) GetProximityNotificationRadius ¶

func (b *BotInlineMessageMediaGeo) GetProximityNotificationRadius() (value int, ok bool)

GetProximityNotificationRadius returns value of ProximityNotificationRadius conditional field and boolean which is true if field was set.

func (*BotInlineMessageMediaGeo) GetReplyMarkup ¶

func (b *BotInlineMessageMediaGeo) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*BotInlineMessageMediaGeo) SetHeading ¶

func (b *BotInlineMessageMediaGeo) SetHeading(value int)

SetHeading sets value of Heading conditional field.

func (*BotInlineMessageMediaGeo) SetPeriod ¶

func (b *BotInlineMessageMediaGeo) SetPeriod(value int)

SetPeriod sets value of Period conditional field.

func (*BotInlineMessageMediaGeo) SetProximityNotificationRadius ¶

func (b *BotInlineMessageMediaGeo) SetProximityNotificationRadius(value int)

SetProximityNotificationRadius sets value of ProximityNotificationRadius conditional field.

func (*BotInlineMessageMediaGeo) SetReplyMarkup ¶

func (b *BotInlineMessageMediaGeo) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

type BotInlineMessageMediaVenue ¶

type BotInlineMessageMediaVenue struct {
	// Flags field of BotInlineMessageMediaVenue.
	Flags bin.Fields
	// Geo field of BotInlineMessageMediaVenue.
	Geo GeoPointClass
	// Title field of BotInlineMessageMediaVenue.
	Title string
	// Address field of BotInlineMessageMediaVenue.
	Address string
	// Provider field of BotInlineMessageMediaVenue.
	Provider string
	// VenueID field of BotInlineMessageMediaVenue.
	VenueID string
	// VenueType field of BotInlineMessageMediaVenue.
	VenueType string
	// ReplyMarkup field of BotInlineMessageMediaVenue.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
}

BotInlineMessageMediaVenue represents TL type `botInlineMessageMediaVenue#8a86659c`.

func (*BotInlineMessageMediaVenue) Decode ¶

func (b *BotInlineMessageMediaVenue) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BotInlineMessageMediaVenue) Encode ¶

func (b *BotInlineMessageMediaVenue) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

func (*BotInlineMessageMediaVenue) GetReplyMarkup ¶

func (b *BotInlineMessageMediaVenue) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*BotInlineMessageMediaVenue) SetReplyMarkup ¶

func (b *BotInlineMessageMediaVenue) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

type BotInlineMessageText ¶

type BotInlineMessageText struct {
	// Flags field of BotInlineMessageText.
	Flags bin.Fields
	// NoWebpage field of BotInlineMessageText.
	NoWebpage bool
	// Message field of BotInlineMessageText.
	Message string
	// Entities field of BotInlineMessageText.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
	// ReplyMarkup field of BotInlineMessageText.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
}

BotInlineMessageText represents TL type `botInlineMessageText#8c7f65e2`.

func (*BotInlineMessageText) Decode ¶

func (b *BotInlineMessageText) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BotInlineMessageText) Encode ¶

func (b *BotInlineMessageText) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

func (*BotInlineMessageText) GetEntities ¶

func (b *BotInlineMessageText) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*BotInlineMessageText) GetReplyMarkup ¶

func (b *BotInlineMessageText) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*BotInlineMessageText) SetEntities ¶

func (b *BotInlineMessageText) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*BotInlineMessageText) SetNoWebpage ¶

func (b *BotInlineMessageText) SetNoWebpage(value bool)

SetNoWebpage sets value of NoWebpage conditional field.

func (*BotInlineMessageText) SetReplyMarkup ¶

func (b *BotInlineMessageText) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

type BotInlineResult ¶

type BotInlineResult struct {
	// Flags field of BotInlineResult.
	Flags bin.Fields
	// ID field of BotInlineResult.
	ID string
	// Type field of BotInlineResult.
	Type string
	// Title field of BotInlineResult.
	//
	// Use SetTitle and GetTitle helpers.
	Title string
	// Description field of BotInlineResult.
	//
	// Use SetDescription and GetDescription helpers.
	Description string
	// URL field of BotInlineResult.
	//
	// Use SetURL and GetURL helpers.
	URL string
	// Thumb field of BotInlineResult.
	//
	// Use SetThumb and GetThumb helpers.
	Thumb WebDocumentClass
	// Content field of BotInlineResult.
	//
	// Use SetContent and GetContent helpers.
	Content WebDocumentClass
	// SendMessage field of BotInlineResult.
	SendMessage BotInlineMessageClass
}

BotInlineResult represents TL type `botInlineResult#11965f3a`.

func (*BotInlineResult) Decode ¶

func (b *BotInlineResult) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BotInlineResult) Encode ¶

func (b *BotInlineResult) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

func (*BotInlineResult) GetContent ¶

func (b *BotInlineResult) GetContent() (value WebDocumentClass, ok bool)

GetContent returns value of Content conditional field and boolean which is true if field was set.

func (*BotInlineResult) GetDescription ¶

func (b *BotInlineResult) GetDescription() (value string, ok bool)

GetDescription returns value of Description conditional field and boolean which is true if field was set.

func (*BotInlineResult) GetThumb ¶

func (b *BotInlineResult) GetThumb() (value WebDocumentClass, ok bool)

GetThumb returns value of Thumb conditional field and boolean which is true if field was set.

func (*BotInlineResult) GetTitle ¶

func (b *BotInlineResult) GetTitle() (value string, ok bool)

GetTitle returns value of Title conditional field and boolean which is true if field was set.

func (*BotInlineResult) GetURL ¶

func (b *BotInlineResult) GetURL() (value string, ok bool)

GetURL returns value of URL conditional field and boolean which is true if field was set.

func (*BotInlineResult) SetContent ¶

func (b *BotInlineResult) SetContent(value WebDocumentClass)

SetContent sets value of Content conditional field.

func (*BotInlineResult) SetDescription ¶

func (b *BotInlineResult) SetDescription(value string)

SetDescription sets value of Description conditional field.

func (*BotInlineResult) SetThumb ¶

func (b *BotInlineResult) SetThumb(value WebDocumentClass)

SetThumb sets value of Thumb conditional field.

func (*BotInlineResult) SetTitle ¶

func (b *BotInlineResult) SetTitle(value string)

SetTitle sets value of Title conditional field.

func (*BotInlineResult) SetURL ¶

func (b *BotInlineResult) SetURL(value string)

SetURL sets value of URL conditional field.

type BotInlineResultBox ¶

type BotInlineResultBox struct {
	BotInlineResult BotInlineResultClass
}

BotInlineResult boxes the BotInlineResultClass providing a helper.

func (*BotInlineResultBox) Decode ¶

func (b *BotInlineResultBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for BotInlineResultBox.

func (*BotInlineResultBox) Encode ¶

func (b *BotInlineResultBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for BotInlineResultBox.

type BotInlineResultClass ¶

type BotInlineResultClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

BotInlineResultClass represents BotInlineResult generic type.

Example:

g, err := DecodeBotInlineResult(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *BotInlineResult: // botInlineResult#11965f3a
case *BotInlineMediaResult: // botInlineMediaResult#17db940b
default: panic(v)
}

func DecodeBotInlineResult ¶

func DecodeBotInlineResult(buf *bin.Buffer) (BotInlineResultClass, error)

DecodeBotInlineResult implements binary de-serialization for BotInlineResultClass.

type BotsAnswerWebhookJSONQueryRequest ¶

type BotsAnswerWebhookJSONQueryRequest struct {
	// QueryID field of BotsAnswerWebhookJSONQueryRequest.
	QueryID int64
	// Data field of BotsAnswerWebhookJSONQueryRequest.
	Data DataJSON
}

BotsAnswerWebhookJSONQueryRequest represents TL type `bots.answerWebhookJSONQuery#e6213f4d`.

func (*BotsAnswerWebhookJSONQueryRequest) Decode ¶

Decode implements bin.Decoder.

func (*BotsAnswerWebhookJSONQueryRequest) Encode ¶

Encode implements bin.Encoder.

type BotsSendCustomRequestRequest ¶

type BotsSendCustomRequestRequest struct {
	// CustomMethod field of BotsSendCustomRequestRequest.
	CustomMethod string
	// Params field of BotsSendCustomRequestRequest.
	Params DataJSON
}

BotsSendCustomRequestRequest represents TL type `bots.sendCustomRequest#aa2769ed`.

func (*BotsSendCustomRequestRequest) Decode ¶

Decode implements bin.Decoder.

func (*BotsSendCustomRequestRequest) Encode ¶

Encode implements bin.Encoder.

type BotsSetBotCommandsRequest ¶

type BotsSetBotCommandsRequest struct {
	// Commands field of BotsSetBotCommandsRequest.
	Commands []BotCommand
}

BotsSetBotCommandsRequest represents TL type `bots.setBotCommands#805d46f6`.

func (*BotsSetBotCommandsRequest) Decode ¶

func (s *BotsSetBotCommandsRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*BotsSetBotCommandsRequest) Encode ¶

func (s *BotsSetBotCommandsRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type CdnConfig ¶

type CdnConfig struct {
	// PublicKeys field of CdnConfig.
	PublicKeys []CdnPublicKey
}

CdnConfig represents TL type `cdnConfig#5725e40a`.

func (*CdnConfig) Decode ¶

func (c *CdnConfig) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*CdnConfig) Encode ¶

func (c *CdnConfig) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type CdnPublicKey ¶

type CdnPublicKey struct {
	// DCID field of CdnPublicKey.
	DCID int
	// PublicKey field of CdnPublicKey.
	PublicKey string
}

CdnPublicKey represents TL type `cdnPublicKey#c982eaba`.

func (*CdnPublicKey) Decode ¶

func (c *CdnPublicKey) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*CdnPublicKey) Encode ¶

func (c *CdnPublicKey) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type Channel ¶

type Channel struct {
	// Flags field of Channel.
	Flags bin.Fields
	// Creator field of Channel.
	Creator bool
	// Left field of Channel.
	Left bool
	// Broadcast field of Channel.
	Broadcast bool
	// Verified field of Channel.
	Verified bool
	// Megagroup field of Channel.
	Megagroup bool
	// Restricted field of Channel.
	Restricted bool
	// Signatures field of Channel.
	Signatures bool
	// Min field of Channel.
	Min bool
	// Scam field of Channel.
	Scam bool
	// HasLink field of Channel.
	HasLink bool
	// HasGeo field of Channel.
	HasGeo bool
	// SlowmodeEnabled field of Channel.
	SlowmodeEnabled bool
	// CallActive field of Channel.
	CallActive bool
	// ID field of Channel.
	ID int
	// AccessHash field of Channel.
	//
	// Use SetAccessHash and GetAccessHash helpers.
	AccessHash int64
	// Title field of Channel.
	Title string
	// Username field of Channel.
	//
	// Use SetUsername and GetUsername helpers.
	Username string
	// Photo field of Channel.
	Photo ChatPhotoClass
	// Date field of Channel.
	Date int
	// Version field of Channel.
	Version int
	// RestrictionReason field of Channel.
	//
	// Use SetRestrictionReason and GetRestrictionReason helpers.
	RestrictionReason []RestrictionReason
	// AdminRights field of Channel.
	//
	// Use SetAdminRights and GetAdminRights helpers.
	AdminRights ChatAdminRights
	// BannedRights field of Channel.
	//
	// Use SetBannedRights and GetBannedRights helpers.
	BannedRights ChatBannedRights
	// DefaultBannedRights field of Channel.
	//
	// Use SetDefaultBannedRights and GetDefaultBannedRights helpers.
	DefaultBannedRights ChatBannedRights
	// ParticipantsCount field of Channel.
	//
	// Use SetParticipantsCount and GetParticipantsCount helpers.
	ParticipantsCount int
}

Channel represents TL type `channel#d31a961e`.

func (*Channel) Decode ¶

func (c *Channel) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Channel) Encode ¶

func (c *Channel) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Channel) GetAccessHash ¶

func (c *Channel) GetAccessHash() (value int64, ok bool)

GetAccessHash returns value of AccessHash conditional field and boolean which is true if field was set.

func (*Channel) GetAdminRights ¶

func (c *Channel) GetAdminRights() (value ChatAdminRights, ok bool)

GetAdminRights returns value of AdminRights conditional field and boolean which is true if field was set.

func (*Channel) GetBannedRights ¶

func (c *Channel) GetBannedRights() (value ChatBannedRights, ok bool)

GetBannedRights returns value of BannedRights conditional field and boolean which is true if field was set.

func (*Channel) GetDefaultBannedRights ¶

func (c *Channel) GetDefaultBannedRights() (value ChatBannedRights, ok bool)

GetDefaultBannedRights returns value of DefaultBannedRights conditional field and boolean which is true if field was set.

func (*Channel) GetParticipantsCount ¶

func (c *Channel) GetParticipantsCount() (value int, ok bool)

GetParticipantsCount returns value of ParticipantsCount conditional field and boolean which is true if field was set.

func (*Channel) GetRestrictionReason ¶

func (c *Channel) GetRestrictionReason() (value []RestrictionReason, ok bool)

GetRestrictionReason returns value of RestrictionReason conditional field and boolean which is true if field was set.

func (*Channel) GetUsername ¶

func (c *Channel) GetUsername() (value string, ok bool)

GetUsername returns value of Username conditional field and boolean which is true if field was set.

func (*Channel) SetAccessHash ¶

func (c *Channel) SetAccessHash(value int64)

SetAccessHash sets value of AccessHash conditional field.

func (*Channel) SetAdminRights ¶

func (c *Channel) SetAdminRights(value ChatAdminRights)

SetAdminRights sets value of AdminRights conditional field.

func (*Channel) SetBannedRights ¶

func (c *Channel) SetBannedRights(value ChatBannedRights)

SetBannedRights sets value of BannedRights conditional field.

func (*Channel) SetBroadcast ¶

func (c *Channel) SetBroadcast(value bool)

SetBroadcast sets value of Broadcast conditional field.

func (*Channel) SetCallActive ¶

func (c *Channel) SetCallActive(value bool)

SetCallActive sets value of CallActive conditional field.

func (*Channel) SetCreator ¶

func (c *Channel) SetCreator(value bool)

SetCreator sets value of Creator conditional field.

func (*Channel) SetDefaultBannedRights ¶

func (c *Channel) SetDefaultBannedRights(value ChatBannedRights)

SetDefaultBannedRights sets value of DefaultBannedRights conditional field.

func (*Channel) SetHasGeo ¶

func (c *Channel) SetHasGeo(value bool)

SetHasGeo sets value of HasGeo conditional field.

func (c *Channel) SetHasLink(value bool)

SetHasLink sets value of HasLink conditional field.

func (*Channel) SetLeft ¶

func (c *Channel) SetLeft(value bool)

SetLeft sets value of Left conditional field.

func (*Channel) SetMegagroup ¶

func (c *Channel) SetMegagroup(value bool)

SetMegagroup sets value of Megagroup conditional field.

func (*Channel) SetMin ¶

func (c *Channel) SetMin(value bool)

SetMin sets value of Min conditional field.

func (*Channel) SetParticipantsCount ¶

func (c *Channel) SetParticipantsCount(value int)

SetParticipantsCount sets value of ParticipantsCount conditional field.

func (*Channel) SetRestricted ¶

func (c *Channel) SetRestricted(value bool)

SetRestricted sets value of Restricted conditional field.

func (*Channel) SetRestrictionReason ¶

func (c *Channel) SetRestrictionReason(value []RestrictionReason)

SetRestrictionReason sets value of RestrictionReason conditional field.

func (*Channel) SetScam ¶

func (c *Channel) SetScam(value bool)

SetScam sets value of Scam conditional field.

func (*Channel) SetSignatures ¶

func (c *Channel) SetSignatures(value bool)

SetSignatures sets value of Signatures conditional field.

func (*Channel) SetSlowmodeEnabled ¶

func (c *Channel) SetSlowmodeEnabled(value bool)

SetSlowmodeEnabled sets value of SlowmodeEnabled conditional field.

func (*Channel) SetUsername ¶

func (c *Channel) SetUsername(value string)

SetUsername sets value of Username conditional field.

func (*Channel) SetVerified ¶

func (c *Channel) SetVerified(value bool)

SetVerified sets value of Verified conditional field.

type ChannelAdminLogEvent ¶

type ChannelAdminLogEvent struct {
	// ID field of ChannelAdminLogEvent.
	ID int64
	// Date field of ChannelAdminLogEvent.
	Date int
	// UserID field of ChannelAdminLogEvent.
	UserID int
	// Action field of ChannelAdminLogEvent.
	Action ChannelAdminLogEventActionClass
}

ChannelAdminLogEvent represents TL type `channelAdminLogEvent#3b5a3e40`.

func (*ChannelAdminLogEvent) Decode ¶

func (c *ChannelAdminLogEvent) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelAdminLogEvent) Encode ¶

func (c *ChannelAdminLogEvent) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelAdminLogEventActionBox ¶

type ChannelAdminLogEventActionBox struct {
	ChannelAdminLogEventAction ChannelAdminLogEventActionClass
}

ChannelAdminLogEventAction boxes the ChannelAdminLogEventActionClass providing a helper.

func (*ChannelAdminLogEventActionBox) Decode ¶

Decode implements bin.Decoder for ChannelAdminLogEventActionBox.

func (*ChannelAdminLogEventActionBox) Encode ¶

Encode implements bin.Encode for ChannelAdminLogEventActionBox.

type ChannelAdminLogEventActionChangeAbout ¶

type ChannelAdminLogEventActionChangeAbout struct {
	// PrevValue field of ChannelAdminLogEventActionChangeAbout.
	PrevValue string
	// NewValue field of ChannelAdminLogEventActionChangeAbout.
	NewValue string
}

ChannelAdminLogEventActionChangeAbout represents TL type `channelAdminLogEventActionChangeAbout#55188a2e`.

func (*ChannelAdminLogEventActionChangeAbout) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionChangeAbout) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionChangeLinkedChat ¶

type ChannelAdminLogEventActionChangeLinkedChat struct {
	// PrevValue field of ChannelAdminLogEventActionChangeLinkedChat.
	PrevValue int
	// NewValue field of ChannelAdminLogEventActionChangeLinkedChat.
	NewValue int
}

ChannelAdminLogEventActionChangeLinkedChat represents TL type `channelAdminLogEventActionChangeLinkedChat#a26f881b`.

func (*ChannelAdminLogEventActionChangeLinkedChat) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionChangeLinkedChat) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionChangeLocation ¶

type ChannelAdminLogEventActionChangeLocation struct {
	// PrevValue field of ChannelAdminLogEventActionChangeLocation.
	PrevValue ChannelLocationClass
	// NewValue field of ChannelAdminLogEventActionChangeLocation.
	NewValue ChannelLocationClass
}

ChannelAdminLogEventActionChangeLocation represents TL type `channelAdminLogEventActionChangeLocation#e6b76ae`.

func (*ChannelAdminLogEventActionChangeLocation) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionChangeLocation) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionChangePhoto ¶

type ChannelAdminLogEventActionChangePhoto struct {
	// PrevPhoto field of ChannelAdminLogEventActionChangePhoto.
	PrevPhoto PhotoClass
	// NewPhoto field of ChannelAdminLogEventActionChangePhoto.
	NewPhoto PhotoClass
}

ChannelAdminLogEventActionChangePhoto represents TL type `channelAdminLogEventActionChangePhoto#434bd2af`.

func (*ChannelAdminLogEventActionChangePhoto) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionChangePhoto) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionChangeStickerSet ¶

type ChannelAdminLogEventActionChangeStickerSet struct {
	// PrevStickerset field of ChannelAdminLogEventActionChangeStickerSet.
	PrevStickerset InputStickerSetClass
	// NewStickerset field of ChannelAdminLogEventActionChangeStickerSet.
	NewStickerset InputStickerSetClass
}

ChannelAdminLogEventActionChangeStickerSet represents TL type `channelAdminLogEventActionChangeStickerSet#b1c3caa7`.

func (*ChannelAdminLogEventActionChangeStickerSet) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionChangeStickerSet) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionChangeTitle ¶

type ChannelAdminLogEventActionChangeTitle struct {
	// PrevValue field of ChannelAdminLogEventActionChangeTitle.
	PrevValue string
	// NewValue field of ChannelAdminLogEventActionChangeTitle.
	NewValue string
}

ChannelAdminLogEventActionChangeTitle represents TL type `channelAdminLogEventActionChangeTitle#e6dfb825`.

func (*ChannelAdminLogEventActionChangeTitle) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionChangeTitle) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionChangeUsername ¶

type ChannelAdminLogEventActionChangeUsername struct {
	// PrevValue field of ChannelAdminLogEventActionChangeUsername.
	PrevValue string
	// NewValue field of ChannelAdminLogEventActionChangeUsername.
	NewValue string
}

ChannelAdminLogEventActionChangeUsername represents TL type `channelAdminLogEventActionChangeUsername#6a4afc38`.

func (*ChannelAdminLogEventActionChangeUsername) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionChangeUsername) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionClass ¶

type ChannelAdminLogEventActionClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ChannelAdminLogEventActionClass represents ChannelAdminLogEventAction generic type.

Example:

g, err := DecodeChannelAdminLogEventAction(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChannelAdminLogEventActionChangeTitle: // channelAdminLogEventActionChangeTitle#e6dfb825
case *ChannelAdminLogEventActionChangeAbout: // channelAdminLogEventActionChangeAbout#55188a2e
case *ChannelAdminLogEventActionChangeUsername: // channelAdminLogEventActionChangeUsername#6a4afc38
case *ChannelAdminLogEventActionChangePhoto: // channelAdminLogEventActionChangePhoto#434bd2af
case *ChannelAdminLogEventActionToggleInvites: // channelAdminLogEventActionToggleInvites#1b7907ae
case *ChannelAdminLogEventActionToggleSignatures: // channelAdminLogEventActionToggleSignatures#26ae0971
case *ChannelAdminLogEventActionUpdatePinned: // channelAdminLogEventActionUpdatePinned#e9e82c18
case *ChannelAdminLogEventActionEditMessage: // channelAdminLogEventActionEditMessage#709b2405
case *ChannelAdminLogEventActionDeleteMessage: // channelAdminLogEventActionDeleteMessage#42e047bb
case *ChannelAdminLogEventActionParticipantJoin: // channelAdminLogEventActionParticipantJoin#183040d3
case *ChannelAdminLogEventActionParticipantLeave: // channelAdminLogEventActionParticipantLeave#f89777f2
case *ChannelAdminLogEventActionParticipantInvite: // channelAdminLogEventActionParticipantInvite#e31c34d8
case *ChannelAdminLogEventActionParticipantToggleBan: // channelAdminLogEventActionParticipantToggleBan#e6d83d7e
case *ChannelAdminLogEventActionParticipantToggleAdmin: // channelAdminLogEventActionParticipantToggleAdmin#d5676710
case *ChannelAdminLogEventActionChangeStickerSet: // channelAdminLogEventActionChangeStickerSet#b1c3caa7
case *ChannelAdminLogEventActionTogglePreHistoryHidden: // channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1
case *ChannelAdminLogEventActionDefaultBannedRights: // channelAdminLogEventActionDefaultBannedRights#2df5fc0a
case *ChannelAdminLogEventActionStopPoll: // channelAdminLogEventActionStopPoll#8f079643
case *ChannelAdminLogEventActionChangeLinkedChat: // channelAdminLogEventActionChangeLinkedChat#a26f881b
case *ChannelAdminLogEventActionChangeLocation: // channelAdminLogEventActionChangeLocation#e6b76ae
case *ChannelAdminLogEventActionToggleSlowMode: // channelAdminLogEventActionToggleSlowMode#53909779
default: panic(v)
}

func DecodeChannelAdminLogEventAction ¶

func DecodeChannelAdminLogEventAction(buf *bin.Buffer) (ChannelAdminLogEventActionClass, error)

DecodeChannelAdminLogEventAction implements binary de-serialization for ChannelAdminLogEventActionClass.

type ChannelAdminLogEventActionDefaultBannedRights ¶

type ChannelAdminLogEventActionDefaultBannedRights struct {
	// PrevBannedRights field of ChannelAdminLogEventActionDefaultBannedRights.
	PrevBannedRights ChatBannedRights
	// NewBannedRights field of ChannelAdminLogEventActionDefaultBannedRights.
	NewBannedRights ChatBannedRights
}

ChannelAdminLogEventActionDefaultBannedRights represents TL type `channelAdminLogEventActionDefaultBannedRights#2df5fc0a`.

func (*ChannelAdminLogEventActionDefaultBannedRights) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionDefaultBannedRights) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionDeleteMessage ¶

type ChannelAdminLogEventActionDeleteMessage struct {
	// Message field of ChannelAdminLogEventActionDeleteMessage.
	Message MessageClass
}

ChannelAdminLogEventActionDeleteMessage represents TL type `channelAdminLogEventActionDeleteMessage#42e047bb`.

func (*ChannelAdminLogEventActionDeleteMessage) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionDeleteMessage) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionEditMessage ¶

type ChannelAdminLogEventActionEditMessage struct {
	// PrevMessage field of ChannelAdminLogEventActionEditMessage.
	PrevMessage MessageClass
	// NewMessage field of ChannelAdminLogEventActionEditMessage.
	NewMessage MessageClass
}

ChannelAdminLogEventActionEditMessage represents TL type `channelAdminLogEventActionEditMessage#709b2405`.

func (*ChannelAdminLogEventActionEditMessage) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionEditMessage) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionParticipantInvite ¶

type ChannelAdminLogEventActionParticipantInvite struct {
	// Participant field of ChannelAdminLogEventActionParticipantInvite.
	Participant ChannelParticipantClass
}

ChannelAdminLogEventActionParticipantInvite represents TL type `channelAdminLogEventActionParticipantInvite#e31c34d8`.

func (*ChannelAdminLogEventActionParticipantInvite) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionParticipantInvite) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionParticipantJoin ¶

type ChannelAdminLogEventActionParticipantJoin struct {
}

ChannelAdminLogEventActionParticipantJoin represents TL type `channelAdminLogEventActionParticipantJoin#183040d3`.

func (*ChannelAdminLogEventActionParticipantJoin) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionParticipantJoin) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionParticipantLeave ¶

type ChannelAdminLogEventActionParticipantLeave struct {
}

ChannelAdminLogEventActionParticipantLeave represents TL type `channelAdminLogEventActionParticipantLeave#f89777f2`.

func (*ChannelAdminLogEventActionParticipantLeave) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionParticipantLeave) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionParticipantToggleAdmin ¶

type ChannelAdminLogEventActionParticipantToggleAdmin struct {
	// PrevParticipant field of ChannelAdminLogEventActionParticipantToggleAdmin.
	PrevParticipant ChannelParticipantClass
	// NewParticipant field of ChannelAdminLogEventActionParticipantToggleAdmin.
	NewParticipant ChannelParticipantClass
}

ChannelAdminLogEventActionParticipantToggleAdmin represents TL type `channelAdminLogEventActionParticipantToggleAdmin#d5676710`.

func (*ChannelAdminLogEventActionParticipantToggleAdmin) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionParticipantToggleAdmin) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionParticipantToggleBan ¶

type ChannelAdminLogEventActionParticipantToggleBan struct {
	// PrevParticipant field of ChannelAdminLogEventActionParticipantToggleBan.
	PrevParticipant ChannelParticipantClass
	// NewParticipant field of ChannelAdminLogEventActionParticipantToggleBan.
	NewParticipant ChannelParticipantClass
}

ChannelAdminLogEventActionParticipantToggleBan represents TL type `channelAdminLogEventActionParticipantToggleBan#e6d83d7e`.

func (*ChannelAdminLogEventActionParticipantToggleBan) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionParticipantToggleBan) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionStopPoll ¶

type ChannelAdminLogEventActionStopPoll struct {
	// Message field of ChannelAdminLogEventActionStopPoll.
	Message MessageClass
}

ChannelAdminLogEventActionStopPoll represents TL type `channelAdminLogEventActionStopPoll#8f079643`.

func (*ChannelAdminLogEventActionStopPoll) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionStopPoll) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionToggleInvites ¶

type ChannelAdminLogEventActionToggleInvites struct {
	// NewValue field of ChannelAdminLogEventActionToggleInvites.
	NewValue bool
}

ChannelAdminLogEventActionToggleInvites represents TL type `channelAdminLogEventActionToggleInvites#1b7907ae`.

func (*ChannelAdminLogEventActionToggleInvites) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionToggleInvites) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionTogglePreHistoryHidden ¶

type ChannelAdminLogEventActionTogglePreHistoryHidden struct {
	// NewValue field of ChannelAdminLogEventActionTogglePreHistoryHidden.
	NewValue bool
}

ChannelAdminLogEventActionTogglePreHistoryHidden represents TL type `channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1`.

func (*ChannelAdminLogEventActionTogglePreHistoryHidden) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionTogglePreHistoryHidden) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionToggleSignatures ¶

type ChannelAdminLogEventActionToggleSignatures struct {
	// NewValue field of ChannelAdminLogEventActionToggleSignatures.
	NewValue bool
}

ChannelAdminLogEventActionToggleSignatures represents TL type `channelAdminLogEventActionToggleSignatures#26ae0971`.

func (*ChannelAdminLogEventActionToggleSignatures) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionToggleSignatures) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionToggleSlowMode ¶

type ChannelAdminLogEventActionToggleSlowMode struct {
	// PrevValue field of ChannelAdminLogEventActionToggleSlowMode.
	PrevValue int
	// NewValue field of ChannelAdminLogEventActionToggleSlowMode.
	NewValue int
}

ChannelAdminLogEventActionToggleSlowMode represents TL type `channelAdminLogEventActionToggleSlowMode#53909779`.

func (*ChannelAdminLogEventActionToggleSlowMode) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionToggleSlowMode) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventActionUpdatePinned ¶

type ChannelAdminLogEventActionUpdatePinned struct {
	// Message field of ChannelAdminLogEventActionUpdatePinned.
	Message MessageClass
}

ChannelAdminLogEventActionUpdatePinned represents TL type `channelAdminLogEventActionUpdatePinned#e9e82c18`.

func (*ChannelAdminLogEventActionUpdatePinned) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventActionUpdatePinned) Encode ¶

Encode implements bin.Encoder.

type ChannelAdminLogEventsFilter ¶

type ChannelAdminLogEventsFilter struct {
	// Flags field of ChannelAdminLogEventsFilter.
	Flags bin.Fields
	// Join field of ChannelAdminLogEventsFilter.
	Join bool
	// Leave field of ChannelAdminLogEventsFilter.
	Leave bool
	// Invite field of ChannelAdminLogEventsFilter.
	Invite bool
	// Ban field of ChannelAdminLogEventsFilter.
	Ban bool
	// Unban field of ChannelAdminLogEventsFilter.
	Unban bool
	// Kick field of ChannelAdminLogEventsFilter.
	Kick bool
	// Unkick field of ChannelAdminLogEventsFilter.
	Unkick bool
	// Promote field of ChannelAdminLogEventsFilter.
	Promote bool
	// Demote field of ChannelAdminLogEventsFilter.
	Demote bool
	// Info field of ChannelAdminLogEventsFilter.
	Info bool
	// Settings field of ChannelAdminLogEventsFilter.
	Settings bool
	// Pinned field of ChannelAdminLogEventsFilter.
	Pinned bool
	// Edit field of ChannelAdminLogEventsFilter.
	Edit bool
	// Delete field of ChannelAdminLogEventsFilter.
	Delete bool
}

ChannelAdminLogEventsFilter represents TL type `channelAdminLogEventsFilter#ea107ae4`.

func (*ChannelAdminLogEventsFilter) Decode ¶

Decode implements bin.Decoder.

func (*ChannelAdminLogEventsFilter) Encode ¶

Encode implements bin.Encoder.

func (*ChannelAdminLogEventsFilter) SetBan ¶

func (c *ChannelAdminLogEventsFilter) SetBan(value bool)

SetBan sets value of Ban conditional field.

func (*ChannelAdminLogEventsFilter) SetDelete ¶

func (c *ChannelAdminLogEventsFilter) SetDelete(value bool)

SetDelete sets value of Delete conditional field.

func (*ChannelAdminLogEventsFilter) SetDemote ¶

func (c *ChannelAdminLogEventsFilter) SetDemote(value bool)

SetDemote sets value of Demote conditional field.

func (*ChannelAdminLogEventsFilter) SetEdit ¶

func (c *ChannelAdminLogEventsFilter) SetEdit(value bool)

SetEdit sets value of Edit conditional field.

func (*ChannelAdminLogEventsFilter) SetInfo ¶

func (c *ChannelAdminLogEventsFilter) SetInfo(value bool)

SetInfo sets value of Info conditional field.

func (*ChannelAdminLogEventsFilter) SetInvite ¶

func (c *ChannelAdminLogEventsFilter) SetInvite(value bool)

SetInvite sets value of Invite conditional field.

func (*ChannelAdminLogEventsFilter) SetJoin ¶

func (c *ChannelAdminLogEventsFilter) SetJoin(value bool)

SetJoin sets value of Join conditional field.

func (*ChannelAdminLogEventsFilter) SetKick ¶

func (c *ChannelAdminLogEventsFilter) SetKick(value bool)

SetKick sets value of Kick conditional field.

func (*ChannelAdminLogEventsFilter) SetLeave ¶

func (c *ChannelAdminLogEventsFilter) SetLeave(value bool)

SetLeave sets value of Leave conditional field.

func (*ChannelAdminLogEventsFilter) SetPinned ¶

func (c *ChannelAdminLogEventsFilter) SetPinned(value bool)

SetPinned sets value of Pinned conditional field.

func (*ChannelAdminLogEventsFilter) SetPromote ¶

func (c *ChannelAdminLogEventsFilter) SetPromote(value bool)

SetPromote sets value of Promote conditional field.

func (*ChannelAdminLogEventsFilter) SetSettings ¶

func (c *ChannelAdminLogEventsFilter) SetSettings(value bool)

SetSettings sets value of Settings conditional field.

func (*ChannelAdminLogEventsFilter) SetUnban ¶

func (c *ChannelAdminLogEventsFilter) SetUnban(value bool)

SetUnban sets value of Unban conditional field.

func (*ChannelAdminLogEventsFilter) SetUnkick ¶

func (c *ChannelAdminLogEventsFilter) SetUnkick(value bool)

SetUnkick sets value of Unkick conditional field.

type ChannelForbidden ¶

type ChannelForbidden struct {
	// Flags field of ChannelForbidden.
	Flags bin.Fields
	// Broadcast field of ChannelForbidden.
	Broadcast bool
	// Megagroup field of ChannelForbidden.
	Megagroup bool
	// ID field of ChannelForbidden.
	ID int
	// AccessHash field of ChannelForbidden.
	AccessHash int64
	// Title field of ChannelForbidden.
	Title string
	// UntilDate field of ChannelForbidden.
	//
	// Use SetUntilDate and GetUntilDate helpers.
	UntilDate int
}

ChannelForbidden represents TL type `channelForbidden#289da732`.

func (*ChannelForbidden) Decode ¶

func (c *ChannelForbidden) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelForbidden) Encode ¶

func (c *ChannelForbidden) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ChannelForbidden) GetUntilDate ¶

func (c *ChannelForbidden) GetUntilDate() (value int, ok bool)

GetUntilDate returns value of UntilDate conditional field and boolean which is true if field was set.

func (*ChannelForbidden) SetBroadcast ¶

func (c *ChannelForbidden) SetBroadcast(value bool)

SetBroadcast sets value of Broadcast conditional field.

func (*ChannelForbidden) SetMegagroup ¶

func (c *ChannelForbidden) SetMegagroup(value bool)

SetMegagroup sets value of Megagroup conditional field.

func (*ChannelForbidden) SetUntilDate ¶

func (c *ChannelForbidden) SetUntilDate(value int)

SetUntilDate sets value of UntilDate conditional field.

type ChannelFull ¶

type ChannelFull struct {
	// Flags field of ChannelFull.
	Flags bin.Fields
	// CanViewParticipants field of ChannelFull.
	CanViewParticipants bool
	// CanSetUsername field of ChannelFull.
	CanSetUsername bool
	// CanSetStickers field of ChannelFull.
	CanSetStickers bool
	// HiddenPrehistory field of ChannelFull.
	HiddenPrehistory bool
	// CanSetLocation field of ChannelFull.
	CanSetLocation bool
	// HasScheduled field of ChannelFull.
	HasScheduled bool
	// CanViewStats field of ChannelFull.
	CanViewStats bool
	// Blocked field of ChannelFull.
	Blocked bool
	// ID field of ChannelFull.
	ID int
	// About field of ChannelFull.
	About string
	// ParticipantsCount field of ChannelFull.
	//
	// Use SetParticipantsCount and GetParticipantsCount helpers.
	ParticipantsCount int
	// AdminsCount field of ChannelFull.
	//
	// Use SetAdminsCount and GetAdminsCount helpers.
	AdminsCount int
	// KickedCount field of ChannelFull.
	//
	// Use SetKickedCount and GetKickedCount helpers.
	KickedCount int
	// BannedCount field of ChannelFull.
	//
	// Use SetBannedCount and GetBannedCount helpers.
	BannedCount int
	// OnlineCount field of ChannelFull.
	//
	// Use SetOnlineCount and GetOnlineCount helpers.
	OnlineCount int
	// ReadInboxMaxID field of ChannelFull.
	ReadInboxMaxID int
	// ReadOutboxMaxID field of ChannelFull.
	ReadOutboxMaxID int
	// UnreadCount field of ChannelFull.
	UnreadCount int
	// ChatPhoto field of ChannelFull.
	ChatPhoto PhotoClass
	// NotifySettings field of ChannelFull.
	NotifySettings PeerNotifySettings
	// ExportedInvite field of ChannelFull.
	ExportedInvite ExportedChatInviteClass
	// BotInfo field of ChannelFull.
	BotInfo []BotInfo
	// MigratedFromChatID field of ChannelFull.
	//
	// Use SetMigratedFromChatID and GetMigratedFromChatID helpers.
	MigratedFromChatID int
	// MigratedFromMaxID field of ChannelFull.
	//
	// Use SetMigratedFromMaxID and GetMigratedFromMaxID helpers.
	MigratedFromMaxID int
	// PinnedMsgID field of ChannelFull.
	//
	// Use SetPinnedMsgID and GetPinnedMsgID helpers.
	PinnedMsgID int
	// Stickerset field of ChannelFull.
	//
	// Use SetStickerset and GetStickerset helpers.
	Stickerset StickerSet
	// AvailableMinID field of ChannelFull.
	//
	// Use SetAvailableMinID and GetAvailableMinID helpers.
	AvailableMinID int
	// FolderID field of ChannelFull.
	//
	// Use SetFolderID and GetFolderID helpers.
	FolderID int
	// LinkedChatID field of ChannelFull.
	//
	// Use SetLinkedChatID and GetLinkedChatID helpers.
	LinkedChatID int
	// Location field of ChannelFull.
	//
	// Use SetLocation and GetLocation helpers.
	Location ChannelLocationClass
	// SlowmodeSeconds field of ChannelFull.
	//
	// Use SetSlowmodeSeconds and GetSlowmodeSeconds helpers.
	SlowmodeSeconds int
	// SlowmodeNextSendDate field of ChannelFull.
	//
	// Use SetSlowmodeNextSendDate and GetSlowmodeNextSendDate helpers.
	SlowmodeNextSendDate int
	// StatsDC field of ChannelFull.
	//
	// Use SetStatsDC and GetStatsDC helpers.
	StatsDC int
	// Pts field of ChannelFull.
	Pts int
}

ChannelFull represents TL type `channelFull#f0e6672a`.

func (*ChannelFull) Decode ¶

func (c *ChannelFull) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelFull) Encode ¶

func (c *ChannelFull) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ChannelFull) GetAdminsCount ¶

func (c *ChannelFull) GetAdminsCount() (value int, ok bool)

GetAdminsCount returns value of AdminsCount conditional field and boolean which is true if field was set.

func (*ChannelFull) GetAvailableMinID ¶

func (c *ChannelFull) GetAvailableMinID() (value int, ok bool)

GetAvailableMinID returns value of AvailableMinID conditional field and boolean which is true if field was set.

func (*ChannelFull) GetBannedCount ¶

func (c *ChannelFull) GetBannedCount() (value int, ok bool)

GetBannedCount returns value of BannedCount conditional field and boolean which is true if field was set.

func (*ChannelFull) GetFolderID ¶

func (c *ChannelFull) GetFolderID() (value int, ok bool)

GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.

func (*ChannelFull) GetKickedCount ¶

func (c *ChannelFull) GetKickedCount() (value int, ok bool)

GetKickedCount returns value of KickedCount conditional field and boolean which is true if field was set.

func (*ChannelFull) GetLinkedChatID ¶

func (c *ChannelFull) GetLinkedChatID() (value int, ok bool)

GetLinkedChatID returns value of LinkedChatID conditional field and boolean which is true if field was set.

func (*ChannelFull) GetLocation ¶

func (c *ChannelFull) GetLocation() (value ChannelLocationClass, ok bool)

GetLocation returns value of Location conditional field and boolean which is true if field was set.

func (*ChannelFull) GetMigratedFromChatID ¶

func (c *ChannelFull) GetMigratedFromChatID() (value int, ok bool)

GetMigratedFromChatID returns value of MigratedFromChatID conditional field and boolean which is true if field was set.

func (*ChannelFull) GetMigratedFromMaxID ¶

func (c *ChannelFull) GetMigratedFromMaxID() (value int, ok bool)

GetMigratedFromMaxID returns value of MigratedFromMaxID conditional field and boolean which is true if field was set.

func (*ChannelFull) GetOnlineCount ¶

func (c *ChannelFull) GetOnlineCount() (value int, ok bool)

GetOnlineCount returns value of OnlineCount conditional field and boolean which is true if field was set.

func (*ChannelFull) GetParticipantsCount ¶

func (c *ChannelFull) GetParticipantsCount() (value int, ok bool)

GetParticipantsCount returns value of ParticipantsCount conditional field and boolean which is true if field was set.

func (*ChannelFull) GetPinnedMsgID ¶

func (c *ChannelFull) GetPinnedMsgID() (value int, ok bool)

GetPinnedMsgID returns value of PinnedMsgID conditional field and boolean which is true if field was set.

func (*ChannelFull) GetSlowmodeNextSendDate ¶

func (c *ChannelFull) GetSlowmodeNextSendDate() (value int, ok bool)

GetSlowmodeNextSendDate returns value of SlowmodeNextSendDate conditional field and boolean which is true if field was set.

func (*ChannelFull) GetSlowmodeSeconds ¶

func (c *ChannelFull) GetSlowmodeSeconds() (value int, ok bool)

GetSlowmodeSeconds returns value of SlowmodeSeconds conditional field and boolean which is true if field was set.

func (*ChannelFull) GetStatsDC ¶

func (c *ChannelFull) GetStatsDC() (value int, ok bool)

GetStatsDC returns value of StatsDC conditional field and boolean which is true if field was set.

func (*ChannelFull) GetStickerset ¶

func (c *ChannelFull) GetStickerset() (value StickerSet, ok bool)

GetStickerset returns value of Stickerset conditional field and boolean which is true if field was set.

func (*ChannelFull) SetAdminsCount ¶

func (c *ChannelFull) SetAdminsCount(value int)

SetAdminsCount sets value of AdminsCount conditional field.

func (*ChannelFull) SetAvailableMinID ¶

func (c *ChannelFull) SetAvailableMinID(value int)

SetAvailableMinID sets value of AvailableMinID conditional field.

func (*ChannelFull) SetBannedCount ¶

func (c *ChannelFull) SetBannedCount(value int)

SetBannedCount sets value of BannedCount conditional field.

func (*ChannelFull) SetBlocked ¶

func (c *ChannelFull) SetBlocked(value bool)

SetBlocked sets value of Blocked conditional field.

func (*ChannelFull) SetCanSetLocation ¶

func (c *ChannelFull) SetCanSetLocation(value bool)

SetCanSetLocation sets value of CanSetLocation conditional field.

func (*ChannelFull) SetCanSetStickers ¶

func (c *ChannelFull) SetCanSetStickers(value bool)

SetCanSetStickers sets value of CanSetStickers conditional field.

func (*ChannelFull) SetCanSetUsername ¶

func (c *ChannelFull) SetCanSetUsername(value bool)

SetCanSetUsername sets value of CanSetUsername conditional field.

func (*ChannelFull) SetCanViewParticipants ¶

func (c *ChannelFull) SetCanViewParticipants(value bool)

SetCanViewParticipants sets value of CanViewParticipants conditional field.

func (*ChannelFull) SetCanViewStats ¶

func (c *ChannelFull) SetCanViewStats(value bool)

SetCanViewStats sets value of CanViewStats conditional field.

func (*ChannelFull) SetFolderID ¶

func (c *ChannelFull) SetFolderID(value int)

SetFolderID sets value of FolderID conditional field.

func (*ChannelFull) SetHasScheduled ¶

func (c *ChannelFull) SetHasScheduled(value bool)

SetHasScheduled sets value of HasScheduled conditional field.

func (*ChannelFull) SetHiddenPrehistory ¶

func (c *ChannelFull) SetHiddenPrehistory(value bool)

SetHiddenPrehistory sets value of HiddenPrehistory conditional field.

func (*ChannelFull) SetKickedCount ¶

func (c *ChannelFull) SetKickedCount(value int)

SetKickedCount sets value of KickedCount conditional field.

func (*ChannelFull) SetLinkedChatID ¶

func (c *ChannelFull) SetLinkedChatID(value int)

SetLinkedChatID sets value of LinkedChatID conditional field.

func (*ChannelFull) SetLocation ¶

func (c *ChannelFull) SetLocation(value ChannelLocationClass)

SetLocation sets value of Location conditional field.

func (*ChannelFull) SetMigratedFromChatID ¶

func (c *ChannelFull) SetMigratedFromChatID(value int)

SetMigratedFromChatID sets value of MigratedFromChatID conditional field.

func (*ChannelFull) SetMigratedFromMaxID ¶

func (c *ChannelFull) SetMigratedFromMaxID(value int)

SetMigratedFromMaxID sets value of MigratedFromMaxID conditional field.

func (*ChannelFull) SetOnlineCount ¶

func (c *ChannelFull) SetOnlineCount(value int)

SetOnlineCount sets value of OnlineCount conditional field.

func (*ChannelFull) SetParticipantsCount ¶

func (c *ChannelFull) SetParticipantsCount(value int)

SetParticipantsCount sets value of ParticipantsCount conditional field.

func (*ChannelFull) SetPinnedMsgID ¶

func (c *ChannelFull) SetPinnedMsgID(value int)

SetPinnedMsgID sets value of PinnedMsgID conditional field.

func (*ChannelFull) SetSlowmodeNextSendDate ¶

func (c *ChannelFull) SetSlowmodeNextSendDate(value int)

SetSlowmodeNextSendDate sets value of SlowmodeNextSendDate conditional field.

func (*ChannelFull) SetSlowmodeSeconds ¶

func (c *ChannelFull) SetSlowmodeSeconds(value int)

SetSlowmodeSeconds sets value of SlowmodeSeconds conditional field.

func (*ChannelFull) SetStatsDC ¶

func (c *ChannelFull) SetStatsDC(value int)

SetStatsDC sets value of StatsDC conditional field.

func (*ChannelFull) SetStickerset ¶

func (c *ChannelFull) SetStickerset(value StickerSet)

SetStickerset sets value of Stickerset conditional field.

type ChannelLocation ¶

type ChannelLocation struct {
	// GeoPoint field of ChannelLocation.
	GeoPoint GeoPointClass
	// Address field of ChannelLocation.
	Address string
}

ChannelLocation represents TL type `channelLocation#209b82db`.

func (*ChannelLocation) Decode ¶

func (c *ChannelLocation) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelLocation) Encode ¶

func (c *ChannelLocation) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelLocationBox ¶

type ChannelLocationBox struct {
	ChannelLocation ChannelLocationClass
}

ChannelLocation boxes the ChannelLocationClass providing a helper.

func (*ChannelLocationBox) Decode ¶

func (b *ChannelLocationBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ChannelLocationBox.

func (*ChannelLocationBox) Encode ¶

func (b *ChannelLocationBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ChannelLocationBox.

type ChannelLocationClass ¶

type ChannelLocationClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ChannelLocationClass represents ChannelLocation generic type.

Example:

g, err := DecodeChannelLocation(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChannelLocationEmpty: // channelLocationEmpty#bfb5ad8b
case *ChannelLocation: // channelLocation#209b82db
default: panic(v)
}

func DecodeChannelLocation ¶

func DecodeChannelLocation(buf *bin.Buffer) (ChannelLocationClass, error)

DecodeChannelLocation implements binary de-serialization for ChannelLocationClass.

type ChannelLocationEmpty ¶

type ChannelLocationEmpty struct {
}

ChannelLocationEmpty represents TL type `channelLocationEmpty#bfb5ad8b`.

func (*ChannelLocationEmpty) Decode ¶

func (c *ChannelLocationEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelLocationEmpty) Encode ¶

func (c *ChannelLocationEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelMessagesFilter ¶

type ChannelMessagesFilter struct {
	// Flags field of ChannelMessagesFilter.
	Flags bin.Fields
	// ExcludeNewMessages field of ChannelMessagesFilter.
	ExcludeNewMessages bool
	// Ranges field of ChannelMessagesFilter.
	Ranges []MessageRange
}

ChannelMessagesFilter represents TL type `channelMessagesFilter#cd77d957`.

func (*ChannelMessagesFilter) Decode ¶

func (c *ChannelMessagesFilter) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelMessagesFilter) Encode ¶

func (c *ChannelMessagesFilter) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ChannelMessagesFilter) SetExcludeNewMessages ¶

func (c *ChannelMessagesFilter) SetExcludeNewMessages(value bool)

SetExcludeNewMessages sets value of ExcludeNewMessages conditional field.

type ChannelMessagesFilterBox ¶

type ChannelMessagesFilterBox struct {
	ChannelMessagesFilter ChannelMessagesFilterClass
}

ChannelMessagesFilter boxes the ChannelMessagesFilterClass providing a helper.

func (*ChannelMessagesFilterBox) Decode ¶

func (b *ChannelMessagesFilterBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ChannelMessagesFilterBox.

func (*ChannelMessagesFilterBox) Encode ¶

func (b *ChannelMessagesFilterBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ChannelMessagesFilterBox.

type ChannelMessagesFilterClass ¶

type ChannelMessagesFilterClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ChannelMessagesFilterClass represents ChannelMessagesFilter generic type.

Example:

g, err := DecodeChannelMessagesFilter(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChannelMessagesFilterEmpty: // channelMessagesFilterEmpty#94d42ee7
case *ChannelMessagesFilter: // channelMessagesFilter#cd77d957
default: panic(v)
}

func DecodeChannelMessagesFilter ¶

func DecodeChannelMessagesFilter(buf *bin.Buffer) (ChannelMessagesFilterClass, error)

DecodeChannelMessagesFilter implements binary de-serialization for ChannelMessagesFilterClass.

type ChannelMessagesFilterEmpty ¶

type ChannelMessagesFilterEmpty struct {
}

ChannelMessagesFilterEmpty represents TL type `channelMessagesFilterEmpty#94d42ee7`.

func (*ChannelMessagesFilterEmpty) Decode ¶

Decode implements bin.Decoder.

func (*ChannelMessagesFilterEmpty) Encode ¶

Encode implements bin.Encoder.

type ChannelParticipant ¶

type ChannelParticipant struct {
	// UserID field of ChannelParticipant.
	UserID int
	// Date field of ChannelParticipant.
	Date int
}

ChannelParticipant represents TL type `channelParticipant#15ebac1d`.

func (*ChannelParticipant) Decode ¶

func (c *ChannelParticipant) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelParticipant) Encode ¶

func (c *ChannelParticipant) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelParticipantAdmin ¶

type ChannelParticipantAdmin struct {
	// Flags field of ChannelParticipantAdmin.
	Flags bin.Fields
	// CanEdit field of ChannelParticipantAdmin.
	CanEdit bool
	// Self field of ChannelParticipantAdmin.
	Self bool
	// UserID field of ChannelParticipantAdmin.
	UserID int
	// InviterID field of ChannelParticipantAdmin.
	//
	// Use SetInviterID and GetInviterID helpers.
	InviterID int
	// PromotedBy field of ChannelParticipantAdmin.
	PromotedBy int
	// Date field of ChannelParticipantAdmin.
	Date int
	// AdminRights field of ChannelParticipantAdmin.
	AdminRights ChatAdminRights
	// Rank field of ChannelParticipantAdmin.
	//
	// Use SetRank and GetRank helpers.
	Rank string
}

ChannelParticipantAdmin represents TL type `channelParticipantAdmin#ccbebbaf`.

func (*ChannelParticipantAdmin) Decode ¶

func (c *ChannelParticipantAdmin) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelParticipantAdmin) Encode ¶

func (c *ChannelParticipantAdmin) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ChannelParticipantAdmin) GetInviterID ¶

func (c *ChannelParticipantAdmin) GetInviterID() (value int, ok bool)

GetInviterID returns value of InviterID conditional field and boolean which is true if field was set.

func (*ChannelParticipantAdmin) GetRank ¶

func (c *ChannelParticipantAdmin) GetRank() (value string, ok bool)

GetRank returns value of Rank conditional field and boolean which is true if field was set.

func (*ChannelParticipantAdmin) SetCanEdit ¶

func (c *ChannelParticipantAdmin) SetCanEdit(value bool)

SetCanEdit sets value of CanEdit conditional field.

func (*ChannelParticipantAdmin) SetInviterID ¶

func (c *ChannelParticipantAdmin) SetInviterID(value int)

SetInviterID sets value of InviterID conditional field.

func (*ChannelParticipantAdmin) SetRank ¶

func (c *ChannelParticipantAdmin) SetRank(value string)

SetRank sets value of Rank conditional field.

func (*ChannelParticipantAdmin) SetSelf ¶

func (c *ChannelParticipantAdmin) SetSelf(value bool)

SetSelf sets value of Self conditional field.

type ChannelParticipantBanned ¶

type ChannelParticipantBanned struct {
	// Flags field of ChannelParticipantBanned.
	Flags bin.Fields
	// Left field of ChannelParticipantBanned.
	Left bool
	// UserID field of ChannelParticipantBanned.
	UserID int
	// KickedBy field of ChannelParticipantBanned.
	KickedBy int
	// Date field of ChannelParticipantBanned.
	Date int
	// BannedRights field of ChannelParticipantBanned.
	BannedRights ChatBannedRights
}

ChannelParticipantBanned represents TL type `channelParticipantBanned#1c0facaf`.

func (*ChannelParticipantBanned) Decode ¶

func (c *ChannelParticipantBanned) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelParticipantBanned) Encode ¶

func (c *ChannelParticipantBanned) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ChannelParticipantBanned) SetLeft ¶

func (c *ChannelParticipantBanned) SetLeft(value bool)

SetLeft sets value of Left conditional field.

type ChannelParticipantBox ¶

type ChannelParticipantBox struct {
	ChannelParticipant ChannelParticipantClass
}

ChannelParticipant boxes the ChannelParticipantClass providing a helper.

func (*ChannelParticipantBox) Decode ¶

func (b *ChannelParticipantBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ChannelParticipantBox.

func (*ChannelParticipantBox) Encode ¶

func (b *ChannelParticipantBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ChannelParticipantBox.

type ChannelParticipantClass ¶

type ChannelParticipantClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ChannelParticipantClass represents ChannelParticipant generic type.

Example:

g, err := DecodeChannelParticipant(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChannelParticipant: // channelParticipant#15ebac1d
case *ChannelParticipantSelf: // channelParticipantSelf#a3289a6d
case *ChannelParticipantCreator: // channelParticipantCreator#447dca4b
case *ChannelParticipantAdmin: // channelParticipantAdmin#ccbebbaf
case *ChannelParticipantBanned: // channelParticipantBanned#1c0facaf
case *ChannelParticipantLeft: // channelParticipantLeft#c3c6796b
default: panic(v)
}

func DecodeChannelParticipant ¶

func DecodeChannelParticipant(buf *bin.Buffer) (ChannelParticipantClass, error)

DecodeChannelParticipant implements binary de-serialization for ChannelParticipantClass.

type ChannelParticipantCreator ¶

type ChannelParticipantCreator struct {
	// Flags field of ChannelParticipantCreator.
	Flags bin.Fields
	// UserID field of ChannelParticipantCreator.
	UserID int
	// AdminRights field of ChannelParticipantCreator.
	AdminRights ChatAdminRights
	// Rank field of ChannelParticipantCreator.
	//
	// Use SetRank and GetRank helpers.
	Rank string
}

ChannelParticipantCreator represents TL type `channelParticipantCreator#447dca4b`.

func (*ChannelParticipantCreator) Decode ¶

func (c *ChannelParticipantCreator) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelParticipantCreator) Encode ¶

func (c *ChannelParticipantCreator) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ChannelParticipantCreator) GetRank ¶

func (c *ChannelParticipantCreator) GetRank() (value string, ok bool)

GetRank returns value of Rank conditional field and boolean which is true if field was set.

func (*ChannelParticipantCreator) SetRank ¶

func (c *ChannelParticipantCreator) SetRank(value string)

SetRank sets value of Rank conditional field.

type ChannelParticipantLeft ¶

type ChannelParticipantLeft struct {
	// UserID field of ChannelParticipantLeft.
	UserID int
}

ChannelParticipantLeft represents TL type `channelParticipantLeft#c3c6796b`.

func (*ChannelParticipantLeft) Decode ¶

func (c *ChannelParticipantLeft) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelParticipantLeft) Encode ¶

func (c *ChannelParticipantLeft) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelParticipantSelf ¶

type ChannelParticipantSelf struct {
	// UserID field of ChannelParticipantSelf.
	UserID int
	// InviterID field of ChannelParticipantSelf.
	InviterID int
	// Date field of ChannelParticipantSelf.
	Date int
}

ChannelParticipantSelf represents TL type `channelParticipantSelf#a3289a6d`.

func (*ChannelParticipantSelf) Decode ¶

func (c *ChannelParticipantSelf) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelParticipantSelf) Encode ¶

func (c *ChannelParticipantSelf) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelParticipantsAdmins ¶

type ChannelParticipantsAdmins struct {
}

ChannelParticipantsAdmins represents TL type `channelParticipantsAdmins#b4608969`.

func (*ChannelParticipantsAdmins) Decode ¶

func (c *ChannelParticipantsAdmins) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelParticipantsAdmins) Encode ¶

func (c *ChannelParticipantsAdmins) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelParticipantsBanned ¶

type ChannelParticipantsBanned struct {
	// Q field of ChannelParticipantsBanned.
	Q string
}

ChannelParticipantsBanned represents TL type `channelParticipantsBanned#1427a5e1`.

func (*ChannelParticipantsBanned) Decode ¶

func (c *ChannelParticipantsBanned) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelParticipantsBanned) Encode ¶

func (c *ChannelParticipantsBanned) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelParticipantsBots ¶

type ChannelParticipantsBots struct {
}

ChannelParticipantsBots represents TL type `channelParticipantsBots#b0d1865b`.

func (*ChannelParticipantsBots) Decode ¶

func (c *ChannelParticipantsBots) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelParticipantsBots) Encode ¶

func (c *ChannelParticipantsBots) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelParticipantsContacts ¶

type ChannelParticipantsContacts struct {
	// Q field of ChannelParticipantsContacts.
	Q string
}

ChannelParticipantsContacts represents TL type `channelParticipantsContacts#bb6ae88d`.

func (*ChannelParticipantsContacts) Decode ¶

Decode implements bin.Decoder.

func (*ChannelParticipantsContacts) Encode ¶

Encode implements bin.Encoder.

type ChannelParticipantsFilterBox ¶

type ChannelParticipantsFilterBox struct {
	ChannelParticipantsFilter ChannelParticipantsFilterClass
}

ChannelParticipantsFilter boxes the ChannelParticipantsFilterClass providing a helper.

func (*ChannelParticipantsFilterBox) Decode ¶

func (b *ChannelParticipantsFilterBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ChannelParticipantsFilterBox.

func (*ChannelParticipantsFilterBox) Encode ¶

func (b *ChannelParticipantsFilterBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ChannelParticipantsFilterBox.

type ChannelParticipantsFilterClass ¶

type ChannelParticipantsFilterClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ChannelParticipantsFilterClass represents ChannelParticipantsFilter generic type.

Example:

g, err := DecodeChannelParticipantsFilter(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChannelParticipantsRecent: // channelParticipantsRecent#de3f3c79
case *ChannelParticipantsAdmins: // channelParticipantsAdmins#b4608969
case *ChannelParticipantsKicked: // channelParticipantsKicked#a3b54985
case *ChannelParticipantsBots: // channelParticipantsBots#b0d1865b
case *ChannelParticipantsBanned: // channelParticipantsBanned#1427a5e1
case *ChannelParticipantsSearch: // channelParticipantsSearch#656ac4b
case *ChannelParticipantsContacts: // channelParticipantsContacts#bb6ae88d
case *ChannelParticipantsMentions: // channelParticipantsMentions#e04b5ceb
default: panic(v)
}

func DecodeChannelParticipantsFilter ¶

func DecodeChannelParticipantsFilter(buf *bin.Buffer) (ChannelParticipantsFilterClass, error)

DecodeChannelParticipantsFilter implements binary de-serialization for ChannelParticipantsFilterClass.

type ChannelParticipantsKicked ¶

type ChannelParticipantsKicked struct {
	// Q field of ChannelParticipantsKicked.
	Q string
}

ChannelParticipantsKicked represents TL type `channelParticipantsKicked#a3b54985`.

func (*ChannelParticipantsKicked) Decode ¶

func (c *ChannelParticipantsKicked) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelParticipantsKicked) Encode ¶

func (c *ChannelParticipantsKicked) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelParticipantsMentions ¶

type ChannelParticipantsMentions struct {
	// Flags field of ChannelParticipantsMentions.
	Flags bin.Fields
	// Q field of ChannelParticipantsMentions.
	//
	// Use SetQ and GetQ helpers.
	Q string
	// TopMsgID field of ChannelParticipantsMentions.
	//
	// Use SetTopMsgID and GetTopMsgID helpers.
	TopMsgID int
}

ChannelParticipantsMentions represents TL type `channelParticipantsMentions#e04b5ceb`.

func (*ChannelParticipantsMentions) Decode ¶

Decode implements bin.Decoder.

func (*ChannelParticipantsMentions) Encode ¶

Encode implements bin.Encoder.

func (*ChannelParticipantsMentions) GetQ ¶

func (c *ChannelParticipantsMentions) GetQ() (value string, ok bool)

GetQ returns value of Q conditional field and boolean which is true if field was set.

func (*ChannelParticipantsMentions) GetTopMsgID ¶

func (c *ChannelParticipantsMentions) GetTopMsgID() (value int, ok bool)

GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set.

func (*ChannelParticipantsMentions) SetQ ¶

func (c *ChannelParticipantsMentions) SetQ(value string)

SetQ sets value of Q conditional field.

func (*ChannelParticipantsMentions) SetTopMsgID ¶

func (c *ChannelParticipantsMentions) SetTopMsgID(value int)

SetTopMsgID sets value of TopMsgID conditional field.

type ChannelParticipantsRecent ¶

type ChannelParticipantsRecent struct {
}

ChannelParticipantsRecent represents TL type `channelParticipantsRecent#de3f3c79`.

func (*ChannelParticipantsRecent) Decode ¶

func (c *ChannelParticipantsRecent) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelParticipantsRecent) Encode ¶

func (c *ChannelParticipantsRecent) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelParticipantsSearch ¶

type ChannelParticipantsSearch struct {
	// Q field of ChannelParticipantsSearch.
	Q string
}

ChannelParticipantsSearch represents TL type `channelParticipantsSearch#656ac4b`.

func (*ChannelParticipantsSearch) Decode ¶

func (c *ChannelParticipantsSearch) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelParticipantsSearch) Encode ¶

func (c *ChannelParticipantsSearch) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelsAdminLogResults ¶

type ChannelsAdminLogResults struct {
	// Events field of ChannelsAdminLogResults.
	Events []ChannelAdminLogEvent
	// Chats field of ChannelsAdminLogResults.
	Chats []ChatClass
	// Users field of ChannelsAdminLogResults.
	Users []UserClass
}

ChannelsAdminLogResults represents TL type `channels.adminLogResults#ed8af74d`.

func (*ChannelsAdminLogResults) Decode ¶

func (a *ChannelsAdminLogResults) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelsAdminLogResults) Encode ¶

func (a *ChannelsAdminLogResults) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelsChannelParticipant ¶

type ChannelsChannelParticipant struct {
	// Participant field of ChannelsChannelParticipant.
	Participant ChannelParticipantClass
	// Users field of ChannelsChannelParticipant.
	Users []UserClass
}

ChannelsChannelParticipant represents TL type `channels.channelParticipant#d0d9b163`.

func (*ChannelsChannelParticipant) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsChannelParticipant) Encode ¶

Encode implements bin.Encoder.

type ChannelsChannelParticipants ¶

type ChannelsChannelParticipants struct {
	// Count field of ChannelsChannelParticipants.
	Count int
	// Participants field of ChannelsChannelParticipants.
	Participants []ChannelParticipantClass
	// Users field of ChannelsChannelParticipants.
	Users []UserClass
}

ChannelsChannelParticipants represents TL type `channels.channelParticipants#f56ee2a8`.

func (*ChannelsChannelParticipants) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsChannelParticipants) Encode ¶

Encode implements bin.Encoder.

type ChannelsChannelParticipantsBox ¶

type ChannelsChannelParticipantsBox struct {
	ChannelParticipants ChannelsChannelParticipantsClass
}

ChannelsChannelParticipants boxes the ChannelsChannelParticipantsClass providing a helper.

func (*ChannelsChannelParticipantsBox) Decode ¶

Decode implements bin.Decoder for ChannelsChannelParticipantsBox.

func (*ChannelsChannelParticipantsBox) Encode ¶

Encode implements bin.Encode for ChannelsChannelParticipantsBox.

type ChannelsChannelParticipantsClass ¶

type ChannelsChannelParticipantsClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ChannelsChannelParticipantsClass represents channels.ChannelParticipants generic type.

Example:

g, err := DecodeChannelsChannelParticipants(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChannelsChannelParticipants: // channels.channelParticipants#f56ee2a8
case *ChannelsChannelParticipantsNotModified: // channels.channelParticipantsNotModified#f0173fe9
default: panic(v)
}

func DecodeChannelsChannelParticipants ¶

func DecodeChannelsChannelParticipants(buf *bin.Buffer) (ChannelsChannelParticipantsClass, error)

DecodeChannelsChannelParticipants implements binary de-serialization for ChannelsChannelParticipantsClass.

type ChannelsChannelParticipantsNotModified ¶

type ChannelsChannelParticipantsNotModified struct {
}

ChannelsChannelParticipantsNotModified represents TL type `channels.channelParticipantsNotModified#f0173fe9`.

func (*ChannelsChannelParticipantsNotModified) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsChannelParticipantsNotModified) Encode ¶

Encode implements bin.Encoder.

type ChannelsCheckUsernameRequest ¶

type ChannelsCheckUsernameRequest struct {
	// Channel field of ChannelsCheckUsernameRequest.
	Channel InputChannelClass
	// Username field of ChannelsCheckUsernameRequest.
	Username string
}

ChannelsCheckUsernameRequest represents TL type `channels.checkUsername#10e6bd2c`.

func (*ChannelsCheckUsernameRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsCheckUsernameRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsCreateChannelRequest ¶

type ChannelsCreateChannelRequest struct {
	// Flags field of ChannelsCreateChannelRequest.
	Flags bin.Fields
	// Broadcast field of ChannelsCreateChannelRequest.
	Broadcast bool
	// Megagroup field of ChannelsCreateChannelRequest.
	Megagroup bool
	// Title field of ChannelsCreateChannelRequest.
	Title string
	// About field of ChannelsCreateChannelRequest.
	About string
	// GeoPoint field of ChannelsCreateChannelRequest.
	//
	// Use SetGeoPoint and GetGeoPoint helpers.
	GeoPoint InputGeoPointClass
	// Address field of ChannelsCreateChannelRequest.
	//
	// Use SetAddress and GetAddress helpers.
	Address string
}

ChannelsCreateChannelRequest represents TL type `channels.createChannel#3d5fb10f`.

func (*ChannelsCreateChannelRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsCreateChannelRequest) Encode ¶

Encode implements bin.Encoder.

func (*ChannelsCreateChannelRequest) GetAddress ¶

func (c *ChannelsCreateChannelRequest) GetAddress() (value string, ok bool)

GetAddress returns value of Address conditional field and boolean which is true if field was set.

func (*ChannelsCreateChannelRequest) GetGeoPoint ¶

func (c *ChannelsCreateChannelRequest) GetGeoPoint() (value InputGeoPointClass, ok bool)

GetGeoPoint returns value of GeoPoint conditional field and boolean which is true if field was set.

func (*ChannelsCreateChannelRequest) SetAddress ¶

func (c *ChannelsCreateChannelRequest) SetAddress(value string)

SetAddress sets value of Address conditional field.

func (*ChannelsCreateChannelRequest) SetBroadcast ¶

func (c *ChannelsCreateChannelRequest) SetBroadcast(value bool)

SetBroadcast sets value of Broadcast conditional field.

func (*ChannelsCreateChannelRequest) SetGeoPoint ¶

func (c *ChannelsCreateChannelRequest) SetGeoPoint(value InputGeoPointClass)

SetGeoPoint sets value of GeoPoint conditional field.

func (*ChannelsCreateChannelRequest) SetMegagroup ¶

func (c *ChannelsCreateChannelRequest) SetMegagroup(value bool)

SetMegagroup sets value of Megagroup conditional field.

type ChannelsDeleteChannelRequest ¶

type ChannelsDeleteChannelRequest struct {
	// Channel field of ChannelsDeleteChannelRequest.
	Channel InputChannelClass
}

ChannelsDeleteChannelRequest represents TL type `channels.deleteChannel#c0111fe3`.

func (*ChannelsDeleteChannelRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsDeleteChannelRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsDeleteHistoryRequest ¶

type ChannelsDeleteHistoryRequest struct {
	// Channel field of ChannelsDeleteHistoryRequest.
	Channel InputChannelClass
	// MaxID field of ChannelsDeleteHistoryRequest.
	MaxID int
}

ChannelsDeleteHistoryRequest represents TL type `channels.deleteHistory#af369d42`.

func (*ChannelsDeleteHistoryRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsDeleteHistoryRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsDeleteMessagesRequest ¶

type ChannelsDeleteMessagesRequest struct {
	// Channel field of ChannelsDeleteMessagesRequest.
	Channel InputChannelClass
	// ID field of ChannelsDeleteMessagesRequest.
	ID []int
}

ChannelsDeleteMessagesRequest represents TL type `channels.deleteMessages#84c1fd4e`.

func (*ChannelsDeleteMessagesRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsDeleteMessagesRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsDeleteUserHistoryRequest ¶

type ChannelsDeleteUserHistoryRequest struct {
	// Channel field of ChannelsDeleteUserHistoryRequest.
	Channel InputChannelClass
	// UserID field of ChannelsDeleteUserHistoryRequest.
	UserID InputUserClass
}

ChannelsDeleteUserHistoryRequest represents TL type `channels.deleteUserHistory#d10dd71b`.

func (*ChannelsDeleteUserHistoryRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsDeleteUserHistoryRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsEditAdminRequest ¶

type ChannelsEditAdminRequest struct {
	// Channel field of ChannelsEditAdminRequest.
	Channel InputChannelClass
	// UserID field of ChannelsEditAdminRequest.
	UserID InputUserClass
	// AdminRights field of ChannelsEditAdminRequest.
	AdminRights ChatAdminRights
	// Rank field of ChannelsEditAdminRequest.
	Rank string
}

ChannelsEditAdminRequest represents TL type `channels.editAdmin#d33c8902`.

func (*ChannelsEditAdminRequest) Decode ¶

func (e *ChannelsEditAdminRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelsEditAdminRequest) Encode ¶

func (e *ChannelsEditAdminRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelsEditBannedRequest ¶

type ChannelsEditBannedRequest struct {
	// Channel field of ChannelsEditBannedRequest.
	Channel InputChannelClass
	// UserID field of ChannelsEditBannedRequest.
	UserID InputUserClass
	// BannedRights field of ChannelsEditBannedRequest.
	BannedRights ChatBannedRights
}

ChannelsEditBannedRequest represents TL type `channels.editBanned#72796912`.

func (*ChannelsEditBannedRequest) Decode ¶

func (e *ChannelsEditBannedRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelsEditBannedRequest) Encode ¶

func (e *ChannelsEditBannedRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelsEditCreatorRequest ¶

type ChannelsEditCreatorRequest struct {
	// Channel field of ChannelsEditCreatorRequest.
	Channel InputChannelClass
	// UserID field of ChannelsEditCreatorRequest.
	UserID InputUserClass
	// Password field of ChannelsEditCreatorRequest.
	Password InputCheckPasswordSRPClass
}

ChannelsEditCreatorRequest represents TL type `channels.editCreator#8f38cd1f`.

func (*ChannelsEditCreatorRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsEditCreatorRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsEditLocationRequest ¶

type ChannelsEditLocationRequest struct {
	// Channel field of ChannelsEditLocationRequest.
	Channel InputChannelClass
	// GeoPoint field of ChannelsEditLocationRequest.
	GeoPoint InputGeoPointClass
	// Address field of ChannelsEditLocationRequest.
	Address string
}

ChannelsEditLocationRequest represents TL type `channels.editLocation#58e63f6d`.

func (*ChannelsEditLocationRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsEditLocationRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsEditPhotoRequest ¶

type ChannelsEditPhotoRequest struct {
	// Channel field of ChannelsEditPhotoRequest.
	Channel InputChannelClass
	// Photo field of ChannelsEditPhotoRequest.
	Photo InputChatPhotoClass
}

ChannelsEditPhotoRequest represents TL type `channels.editPhoto#f12e57c9`.

func (*ChannelsEditPhotoRequest) Decode ¶

func (e *ChannelsEditPhotoRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelsEditPhotoRequest) Encode ¶

func (e *ChannelsEditPhotoRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelsEditTitleRequest ¶

type ChannelsEditTitleRequest struct {
	// Channel field of ChannelsEditTitleRequest.
	Channel InputChannelClass
	// Title field of ChannelsEditTitleRequest.
	Title string
}

ChannelsEditTitleRequest represents TL type `channels.editTitle#566decd0`.

func (*ChannelsEditTitleRequest) Decode ¶

func (e *ChannelsEditTitleRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelsEditTitleRequest) Encode ¶

func (e *ChannelsEditTitleRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelsExportMessageLinkRequest ¶

type ChannelsExportMessageLinkRequest struct {
	// Flags field of ChannelsExportMessageLinkRequest.
	Flags bin.Fields
	// Grouped field of ChannelsExportMessageLinkRequest.
	Grouped bool
	// Thread field of ChannelsExportMessageLinkRequest.
	Thread bool
	// Channel field of ChannelsExportMessageLinkRequest.
	Channel InputChannelClass
	// ID field of ChannelsExportMessageLinkRequest.
	ID int
}

ChannelsExportMessageLinkRequest represents TL type `channels.exportMessageLink#e63fadeb`.

func (*ChannelsExportMessageLinkRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsExportMessageLinkRequest) Encode ¶

Encode implements bin.Encoder.

func (*ChannelsExportMessageLinkRequest) SetGrouped ¶

func (e *ChannelsExportMessageLinkRequest) SetGrouped(value bool)

SetGrouped sets value of Grouped conditional field.

func (*ChannelsExportMessageLinkRequest) SetThread ¶

func (e *ChannelsExportMessageLinkRequest) SetThread(value bool)

SetThread sets value of Thread conditional field.

type ChannelsGetAdminLogRequest ¶

type ChannelsGetAdminLogRequest struct {
	// Flags field of ChannelsGetAdminLogRequest.
	Flags bin.Fields
	// Channel field of ChannelsGetAdminLogRequest.
	Channel InputChannelClass
	// Q field of ChannelsGetAdminLogRequest.
	Q string
	// EventsFilter field of ChannelsGetAdminLogRequest.
	//
	// Use SetEventsFilter and GetEventsFilter helpers.
	EventsFilter ChannelAdminLogEventsFilter
	// Admins field of ChannelsGetAdminLogRequest.
	//
	// Use SetAdmins and GetAdmins helpers.
	Admins []InputUserClass
	// MaxID field of ChannelsGetAdminLogRequest.
	MaxID int64
	// MinID field of ChannelsGetAdminLogRequest.
	MinID int64
	// Limit field of ChannelsGetAdminLogRequest.
	Limit int
}

ChannelsGetAdminLogRequest represents TL type `channels.getAdminLog#33ddf480`.

func (*ChannelsGetAdminLogRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsGetAdminLogRequest) Encode ¶

Encode implements bin.Encoder.

func (*ChannelsGetAdminLogRequest) GetAdmins ¶

func (g *ChannelsGetAdminLogRequest) GetAdmins() (value []InputUserClass, ok bool)

GetAdmins returns value of Admins conditional field and boolean which is true if field was set.

func (*ChannelsGetAdminLogRequest) GetEventsFilter ¶

func (g *ChannelsGetAdminLogRequest) GetEventsFilter() (value ChannelAdminLogEventsFilter, ok bool)

GetEventsFilter returns value of EventsFilter conditional field and boolean which is true if field was set.

func (*ChannelsGetAdminLogRequest) SetAdmins ¶

func (g *ChannelsGetAdminLogRequest) SetAdmins(value []InputUserClass)

SetAdmins sets value of Admins conditional field.

func (*ChannelsGetAdminLogRequest) SetEventsFilter ¶

func (g *ChannelsGetAdminLogRequest) SetEventsFilter(value ChannelAdminLogEventsFilter)

SetEventsFilter sets value of EventsFilter conditional field.

type ChannelsGetAdminedPublicChannelsRequest ¶

type ChannelsGetAdminedPublicChannelsRequest struct {
	// Flags field of ChannelsGetAdminedPublicChannelsRequest.
	Flags bin.Fields
	// ByLocation field of ChannelsGetAdminedPublicChannelsRequest.
	ByLocation bool
	// CheckLimit field of ChannelsGetAdminedPublicChannelsRequest.
	CheckLimit bool
}

ChannelsGetAdminedPublicChannelsRequest represents TL type `channels.getAdminedPublicChannels#f8b036af`.

func (*ChannelsGetAdminedPublicChannelsRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsGetAdminedPublicChannelsRequest) Encode ¶

Encode implements bin.Encoder.

func (*ChannelsGetAdminedPublicChannelsRequest) SetByLocation ¶

func (g *ChannelsGetAdminedPublicChannelsRequest) SetByLocation(value bool)

SetByLocation sets value of ByLocation conditional field.

func (*ChannelsGetAdminedPublicChannelsRequest) SetCheckLimit ¶

func (g *ChannelsGetAdminedPublicChannelsRequest) SetCheckLimit(value bool)

SetCheckLimit sets value of CheckLimit conditional field.

type ChannelsGetChannelsRequest ¶

type ChannelsGetChannelsRequest struct {
	// ID field of ChannelsGetChannelsRequest.
	ID []InputChannelClass
}

ChannelsGetChannelsRequest represents TL type `channels.getChannels#a7f6bbb`.

func (*ChannelsGetChannelsRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsGetChannelsRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsGetFullChannelRequest ¶

type ChannelsGetFullChannelRequest struct {
	// Channel field of ChannelsGetFullChannelRequest.
	Channel InputChannelClass
}

ChannelsGetFullChannelRequest represents TL type `channels.getFullChannel#8736a09`.

func (*ChannelsGetFullChannelRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsGetFullChannelRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsGetGroupsForDiscussionRequest ¶

type ChannelsGetGroupsForDiscussionRequest struct {
}

ChannelsGetGroupsForDiscussionRequest represents TL type `channels.getGroupsForDiscussion#f5dad378`.

func (*ChannelsGetGroupsForDiscussionRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsGetGroupsForDiscussionRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsGetInactiveChannelsRequest ¶

type ChannelsGetInactiveChannelsRequest struct {
}

ChannelsGetInactiveChannelsRequest represents TL type `channels.getInactiveChannels#11e831ee`.

func (*ChannelsGetInactiveChannelsRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsGetInactiveChannelsRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsGetLeftChannelsRequest ¶

type ChannelsGetLeftChannelsRequest struct {
	// Offset field of ChannelsGetLeftChannelsRequest.
	Offset int
}

ChannelsGetLeftChannelsRequest represents TL type `channels.getLeftChannels#8341ecc0`.

func (*ChannelsGetLeftChannelsRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsGetLeftChannelsRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsGetMessagesRequest ¶

type ChannelsGetMessagesRequest struct {
	// Channel field of ChannelsGetMessagesRequest.
	Channel InputChannelClass
	// ID field of ChannelsGetMessagesRequest.
	ID []InputMessageClass
}

ChannelsGetMessagesRequest represents TL type `channels.getMessages#ad8c9a23`.

func (*ChannelsGetMessagesRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsGetMessagesRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsGetParticipantRequest ¶

type ChannelsGetParticipantRequest struct {
	// Channel field of ChannelsGetParticipantRequest.
	Channel InputChannelClass
	// UserID field of ChannelsGetParticipantRequest.
	UserID InputUserClass
}

ChannelsGetParticipantRequest represents TL type `channels.getParticipant#546dd7a6`.

func (*ChannelsGetParticipantRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsGetParticipantRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsGetParticipantsRequest ¶

type ChannelsGetParticipantsRequest struct {
	// Channel field of ChannelsGetParticipantsRequest.
	Channel InputChannelClass
	// Filter field of ChannelsGetParticipantsRequest.
	Filter ChannelParticipantsFilterClass
	// Offset field of ChannelsGetParticipantsRequest.
	Offset int
	// Limit field of ChannelsGetParticipantsRequest.
	Limit int
	// Hash field of ChannelsGetParticipantsRequest.
	Hash int
}

ChannelsGetParticipantsRequest represents TL type `channels.getParticipants#123e05e9`.

func (*ChannelsGetParticipantsRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsGetParticipantsRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsInviteToChannelRequest ¶

type ChannelsInviteToChannelRequest struct {
	// Channel field of ChannelsInviteToChannelRequest.
	Channel InputChannelClass
	// Users field of ChannelsInviteToChannelRequest.
	Users []InputUserClass
}

ChannelsInviteToChannelRequest represents TL type `channels.inviteToChannel#199f3a6c`.

func (*ChannelsInviteToChannelRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsInviteToChannelRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsJoinChannelRequest ¶

type ChannelsJoinChannelRequest struct {
	// Channel field of ChannelsJoinChannelRequest.
	Channel InputChannelClass
}

ChannelsJoinChannelRequest represents TL type `channels.joinChannel#24b524c5`.

func (*ChannelsJoinChannelRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsJoinChannelRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsLeaveChannelRequest ¶

type ChannelsLeaveChannelRequest struct {
	// Channel field of ChannelsLeaveChannelRequest.
	Channel InputChannelClass
}

ChannelsLeaveChannelRequest represents TL type `channels.leaveChannel#f836aa95`.

func (*ChannelsLeaveChannelRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsLeaveChannelRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsReadHistoryRequest ¶

type ChannelsReadHistoryRequest struct {
	// Channel field of ChannelsReadHistoryRequest.
	Channel InputChannelClass
	// MaxID field of ChannelsReadHistoryRequest.
	MaxID int
}

ChannelsReadHistoryRequest represents TL type `channels.readHistory#cc104937`.

func (*ChannelsReadHistoryRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsReadHistoryRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsReadMessageContentsRequest ¶

type ChannelsReadMessageContentsRequest struct {
	// Channel field of ChannelsReadMessageContentsRequest.
	Channel InputChannelClass
	// ID field of ChannelsReadMessageContentsRequest.
	ID []int
}

ChannelsReadMessageContentsRequest represents TL type `channels.readMessageContents#eab5dc38`.

func (*ChannelsReadMessageContentsRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsReadMessageContentsRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsReportSpamRequest ¶

type ChannelsReportSpamRequest struct {
	// Channel field of ChannelsReportSpamRequest.
	Channel InputChannelClass
	// UserID field of ChannelsReportSpamRequest.
	UserID InputUserClass
	// ID field of ChannelsReportSpamRequest.
	ID []int
}

ChannelsReportSpamRequest represents TL type `channels.reportSpam#fe087810`.

func (*ChannelsReportSpamRequest) Decode ¶

func (r *ChannelsReportSpamRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChannelsReportSpamRequest) Encode ¶

func (r *ChannelsReportSpamRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChannelsSetDiscussionGroupRequest ¶

type ChannelsSetDiscussionGroupRequest struct {
	// Broadcast field of ChannelsSetDiscussionGroupRequest.
	Broadcast InputChannelClass
	// Group field of ChannelsSetDiscussionGroupRequest.
	Group InputChannelClass
}

ChannelsSetDiscussionGroupRequest represents TL type `channels.setDiscussionGroup#40582bb2`.

func (*ChannelsSetDiscussionGroupRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsSetDiscussionGroupRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsSetStickersRequest ¶

type ChannelsSetStickersRequest struct {
	// Channel field of ChannelsSetStickersRequest.
	Channel InputChannelClass
	// Stickerset field of ChannelsSetStickersRequest.
	Stickerset InputStickerSetClass
}

ChannelsSetStickersRequest represents TL type `channels.setStickers#ea8ca4f9`.

func (*ChannelsSetStickersRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsSetStickersRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsTogglePreHistoryHiddenRequest ¶

type ChannelsTogglePreHistoryHiddenRequest struct {
	// Channel field of ChannelsTogglePreHistoryHiddenRequest.
	Channel InputChannelClass
	// Enabled field of ChannelsTogglePreHistoryHiddenRequest.
	Enabled bool
}

ChannelsTogglePreHistoryHiddenRequest represents TL type `channels.togglePreHistoryHidden#eabbb94c`.

func (*ChannelsTogglePreHistoryHiddenRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsTogglePreHistoryHiddenRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsToggleSignaturesRequest ¶

type ChannelsToggleSignaturesRequest struct {
	// Channel field of ChannelsToggleSignaturesRequest.
	Channel InputChannelClass
	// Enabled field of ChannelsToggleSignaturesRequest.
	Enabled bool
}

ChannelsToggleSignaturesRequest represents TL type `channels.toggleSignatures#1f69b606`.

func (*ChannelsToggleSignaturesRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsToggleSignaturesRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsToggleSlowModeRequest ¶

type ChannelsToggleSlowModeRequest struct {
	// Channel field of ChannelsToggleSlowModeRequest.
	Channel InputChannelClass
	// Seconds field of ChannelsToggleSlowModeRequest.
	Seconds int
}

ChannelsToggleSlowModeRequest represents TL type `channels.toggleSlowMode#edd49ef0`.

func (*ChannelsToggleSlowModeRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsToggleSlowModeRequest) Encode ¶

Encode implements bin.Encoder.

type ChannelsUpdateUsernameRequest ¶

type ChannelsUpdateUsernameRequest struct {
	// Channel field of ChannelsUpdateUsernameRequest.
	Channel InputChannelClass
	// Username field of ChannelsUpdateUsernameRequest.
	Username string
}

ChannelsUpdateUsernameRequest represents TL type `channels.updateUsername#3514b3de`.

func (*ChannelsUpdateUsernameRequest) Decode ¶

Decode implements bin.Decoder.

func (*ChannelsUpdateUsernameRequest) Encode ¶

Encode implements bin.Encoder.

type Chat ¶

type Chat struct {
	// Flags field of Chat.
	Flags bin.Fields
	// Creator field of Chat.
	Creator bool
	// Kicked field of Chat.
	Kicked bool
	// Left field of Chat.
	Left bool
	// Deactivated field of Chat.
	Deactivated bool
	// ID field of Chat.
	ID int
	// Title field of Chat.
	Title string
	// Photo field of Chat.
	Photo ChatPhotoClass
	// ParticipantsCount field of Chat.
	ParticipantsCount int
	// Date field of Chat.
	Date int
	// Version field of Chat.
	Version int
	// MigratedTo field of Chat.
	//
	// Use SetMigratedTo and GetMigratedTo helpers.
	MigratedTo InputChannelClass
	// AdminRights field of Chat.
	//
	// Use SetAdminRights and GetAdminRights helpers.
	AdminRights ChatAdminRights
	// DefaultBannedRights field of Chat.
	//
	// Use SetDefaultBannedRights and GetDefaultBannedRights helpers.
	DefaultBannedRights ChatBannedRights
}

Chat represents TL type `chat#3bda1bde`.

func (*Chat) Decode ¶

func (c *Chat) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Chat) Encode ¶

func (c *Chat) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Chat) GetAdminRights ¶

func (c *Chat) GetAdminRights() (value ChatAdminRights, ok bool)

GetAdminRights returns value of AdminRights conditional field and boolean which is true if field was set.

func (*Chat) GetDefaultBannedRights ¶

func (c *Chat) GetDefaultBannedRights() (value ChatBannedRights, ok bool)

GetDefaultBannedRights returns value of DefaultBannedRights conditional field and boolean which is true if field was set.

func (*Chat) GetMigratedTo ¶

func (c *Chat) GetMigratedTo() (value InputChannelClass, ok bool)

GetMigratedTo returns value of MigratedTo conditional field and boolean which is true if field was set.

func (*Chat) SetAdminRights ¶

func (c *Chat) SetAdminRights(value ChatAdminRights)

SetAdminRights sets value of AdminRights conditional field.

func (*Chat) SetCreator ¶

func (c *Chat) SetCreator(value bool)

SetCreator sets value of Creator conditional field.

func (*Chat) SetDeactivated ¶

func (c *Chat) SetDeactivated(value bool)

SetDeactivated sets value of Deactivated conditional field.

func (*Chat) SetDefaultBannedRights ¶

func (c *Chat) SetDefaultBannedRights(value ChatBannedRights)

SetDefaultBannedRights sets value of DefaultBannedRights conditional field.

func (*Chat) SetKicked ¶

func (c *Chat) SetKicked(value bool)

SetKicked sets value of Kicked conditional field.

func (*Chat) SetLeft ¶

func (c *Chat) SetLeft(value bool)

SetLeft sets value of Left conditional field.

func (*Chat) SetMigratedTo ¶

func (c *Chat) SetMigratedTo(value InputChannelClass)

SetMigratedTo sets value of MigratedTo conditional field.

type ChatAdminRights ¶

type ChatAdminRights struct {
	// Flags field of ChatAdminRights.
	Flags bin.Fields
	// ChangeInfo field of ChatAdminRights.
	ChangeInfo bool
	// PostMessages field of ChatAdminRights.
	PostMessages bool
	// EditMessages field of ChatAdminRights.
	EditMessages bool
	// DeleteMessages field of ChatAdminRights.
	DeleteMessages bool
	// BanUsers field of ChatAdminRights.
	BanUsers bool
	// InviteUsers field of ChatAdminRights.
	InviteUsers bool
	// PinMessages field of ChatAdminRights.
	PinMessages bool
	// AddAdmins field of ChatAdminRights.
	AddAdmins bool
	// Anonymous field of ChatAdminRights.
	Anonymous bool
	// ManageCall field of ChatAdminRights.
	ManageCall bool
}

ChatAdminRights represents TL type `chatAdminRights#5fb224d5`.

func (*ChatAdminRights) Decode ¶

func (c *ChatAdminRights) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatAdminRights) Encode ¶

func (c *ChatAdminRights) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ChatAdminRights) SetAddAdmins ¶

func (c *ChatAdminRights) SetAddAdmins(value bool)

SetAddAdmins sets value of AddAdmins conditional field.

func (*ChatAdminRights) SetAnonymous ¶

func (c *ChatAdminRights) SetAnonymous(value bool)

SetAnonymous sets value of Anonymous conditional field.

func (*ChatAdminRights) SetBanUsers ¶

func (c *ChatAdminRights) SetBanUsers(value bool)

SetBanUsers sets value of BanUsers conditional field.

func (*ChatAdminRights) SetChangeInfo ¶

func (c *ChatAdminRights) SetChangeInfo(value bool)

SetChangeInfo sets value of ChangeInfo conditional field.

func (*ChatAdminRights) SetDeleteMessages ¶

func (c *ChatAdminRights) SetDeleteMessages(value bool)

SetDeleteMessages sets value of DeleteMessages conditional field.

func (*ChatAdminRights) SetEditMessages ¶

func (c *ChatAdminRights) SetEditMessages(value bool)

SetEditMessages sets value of EditMessages conditional field.

func (*ChatAdminRights) SetInviteUsers ¶

func (c *ChatAdminRights) SetInviteUsers(value bool)

SetInviteUsers sets value of InviteUsers conditional field.

func (*ChatAdminRights) SetManageCall ¶

func (c *ChatAdminRights) SetManageCall(value bool)

SetManageCall sets value of ManageCall conditional field.

func (*ChatAdminRights) SetPinMessages ¶

func (c *ChatAdminRights) SetPinMessages(value bool)

SetPinMessages sets value of PinMessages conditional field.

func (*ChatAdminRights) SetPostMessages ¶

func (c *ChatAdminRights) SetPostMessages(value bool)

SetPostMessages sets value of PostMessages conditional field.

type ChatBannedRights ¶

type ChatBannedRights struct {
	// Flags field of ChatBannedRights.
	Flags bin.Fields
	// ViewMessages field of ChatBannedRights.
	ViewMessages bool
	// SendMessages field of ChatBannedRights.
	SendMessages bool
	// SendMedia field of ChatBannedRights.
	SendMedia bool
	// SendStickers field of ChatBannedRights.
	SendStickers bool
	// SendGifs field of ChatBannedRights.
	SendGifs bool
	// SendGames field of ChatBannedRights.
	SendGames bool
	// SendInline field of ChatBannedRights.
	SendInline bool
	// EmbedLinks field of ChatBannedRights.
	EmbedLinks bool
	// SendPolls field of ChatBannedRights.
	SendPolls bool
	// ChangeInfo field of ChatBannedRights.
	ChangeInfo bool
	// InviteUsers field of ChatBannedRights.
	InviteUsers bool
	// PinMessages field of ChatBannedRights.
	PinMessages bool
	// UntilDate field of ChatBannedRights.
	UntilDate int
}

ChatBannedRights represents TL type `chatBannedRights#9f120418`.

func (*ChatBannedRights) Decode ¶

func (c *ChatBannedRights) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatBannedRights) Encode ¶

func (c *ChatBannedRights) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ChatBannedRights) SetChangeInfo ¶

func (c *ChatBannedRights) SetChangeInfo(value bool)

SetChangeInfo sets value of ChangeInfo conditional field.

func (c *ChatBannedRights) SetEmbedLinks(value bool)

SetEmbedLinks sets value of EmbedLinks conditional field.

func (*ChatBannedRights) SetInviteUsers ¶

func (c *ChatBannedRights) SetInviteUsers(value bool)

SetInviteUsers sets value of InviteUsers conditional field.

func (*ChatBannedRights) SetPinMessages ¶

func (c *ChatBannedRights) SetPinMessages(value bool)

SetPinMessages sets value of PinMessages conditional field.

func (*ChatBannedRights) SetSendGames ¶

func (c *ChatBannedRights) SetSendGames(value bool)

SetSendGames sets value of SendGames conditional field.

func (*ChatBannedRights) SetSendGifs ¶

func (c *ChatBannedRights) SetSendGifs(value bool)

SetSendGifs sets value of SendGifs conditional field.

func (*ChatBannedRights) SetSendInline ¶

func (c *ChatBannedRights) SetSendInline(value bool)

SetSendInline sets value of SendInline conditional field.

func (*ChatBannedRights) SetSendMedia ¶

func (c *ChatBannedRights) SetSendMedia(value bool)

SetSendMedia sets value of SendMedia conditional field.

func (*ChatBannedRights) SetSendMessages ¶

func (c *ChatBannedRights) SetSendMessages(value bool)

SetSendMessages sets value of SendMessages conditional field.

func (*ChatBannedRights) SetSendPolls ¶

func (c *ChatBannedRights) SetSendPolls(value bool)

SetSendPolls sets value of SendPolls conditional field.

func (*ChatBannedRights) SetSendStickers ¶

func (c *ChatBannedRights) SetSendStickers(value bool)

SetSendStickers sets value of SendStickers conditional field.

func (*ChatBannedRights) SetViewMessages ¶

func (c *ChatBannedRights) SetViewMessages(value bool)

SetViewMessages sets value of ViewMessages conditional field.

type ChatBox ¶

type ChatBox struct {
	Chat ChatClass
}

Chat boxes the ChatClass providing a helper.

func (*ChatBox) Decode ¶

func (b *ChatBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ChatBox.

func (*ChatBox) Encode ¶

func (b *ChatBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ChatBox.

type ChatClass ¶

type ChatClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ChatClass represents Chat generic type.

Example:

g, err := DecodeChat(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChatEmpty: // chatEmpty#9ba2d800
case *Chat: // chat#3bda1bde
case *ChatForbidden: // chatForbidden#7328bdb
case *Channel: // channel#d31a961e
case *ChannelForbidden: // channelForbidden#289da732
default: panic(v)
}

func DecodeChat ¶

func DecodeChat(buf *bin.Buffer) (ChatClass, error)

DecodeChat implements binary de-serialization for ChatClass.

type ChatEmpty ¶

type ChatEmpty struct {
	// ID field of ChatEmpty.
	ID int
}

ChatEmpty represents TL type `chatEmpty#9ba2d800`.

func (*ChatEmpty) Decode ¶

func (c *ChatEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatEmpty) Encode ¶

func (c *ChatEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChatForbidden ¶

type ChatForbidden struct {
	// ID field of ChatForbidden.
	ID int
	// Title field of ChatForbidden.
	Title string
}

ChatForbidden represents TL type `chatForbidden#7328bdb`.

func (*ChatForbidden) Decode ¶

func (c *ChatForbidden) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatForbidden) Encode ¶

func (c *ChatForbidden) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChatFull ¶

type ChatFull struct {
	// Flags field of ChatFull.
	Flags bin.Fields
	// CanSetUsername field of ChatFull.
	CanSetUsername bool
	// HasScheduled field of ChatFull.
	HasScheduled bool
	// ID field of ChatFull.
	ID int
	// About field of ChatFull.
	About string
	// Participants field of ChatFull.
	Participants ChatParticipantsClass
	// ChatPhoto field of ChatFull.
	//
	// Use SetChatPhoto and GetChatPhoto helpers.
	ChatPhoto PhotoClass
	// NotifySettings field of ChatFull.
	NotifySettings PeerNotifySettings
	// ExportedInvite field of ChatFull.
	ExportedInvite ExportedChatInviteClass
	// BotInfo field of ChatFull.
	//
	// Use SetBotInfo and GetBotInfo helpers.
	BotInfo []BotInfo
	// PinnedMsgID field of ChatFull.
	//
	// Use SetPinnedMsgID and GetPinnedMsgID helpers.
	PinnedMsgID int
	// FolderID field of ChatFull.
	//
	// Use SetFolderID and GetFolderID helpers.
	FolderID int
}

ChatFull represents TL type `chatFull#1b7c9db3`.

func (*ChatFull) Decode ¶

func (c *ChatFull) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatFull) Encode ¶

func (c *ChatFull) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ChatFull) GetBotInfo ¶

func (c *ChatFull) GetBotInfo() (value []BotInfo, ok bool)

GetBotInfo returns value of BotInfo conditional field and boolean which is true if field was set.

func (*ChatFull) GetChatPhoto ¶

func (c *ChatFull) GetChatPhoto() (value PhotoClass, ok bool)

GetChatPhoto returns value of ChatPhoto conditional field and boolean which is true if field was set.

func (*ChatFull) GetFolderID ¶

func (c *ChatFull) GetFolderID() (value int, ok bool)

GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.

func (*ChatFull) GetPinnedMsgID ¶

func (c *ChatFull) GetPinnedMsgID() (value int, ok bool)

GetPinnedMsgID returns value of PinnedMsgID conditional field and boolean which is true if field was set.

func (*ChatFull) SetBotInfo ¶

func (c *ChatFull) SetBotInfo(value []BotInfo)

SetBotInfo sets value of BotInfo conditional field.

func (*ChatFull) SetCanSetUsername ¶

func (c *ChatFull) SetCanSetUsername(value bool)

SetCanSetUsername sets value of CanSetUsername conditional field.

func (*ChatFull) SetChatPhoto ¶

func (c *ChatFull) SetChatPhoto(value PhotoClass)

SetChatPhoto sets value of ChatPhoto conditional field.

func (*ChatFull) SetFolderID ¶

func (c *ChatFull) SetFolderID(value int)

SetFolderID sets value of FolderID conditional field.

func (*ChatFull) SetHasScheduled ¶

func (c *ChatFull) SetHasScheduled(value bool)

SetHasScheduled sets value of HasScheduled conditional field.

func (*ChatFull) SetPinnedMsgID ¶

func (c *ChatFull) SetPinnedMsgID(value int)

SetPinnedMsgID sets value of PinnedMsgID conditional field.

type ChatFullBox ¶

type ChatFullBox struct {
	ChatFull ChatFullClass
}

ChatFull boxes the ChatFullClass providing a helper.

func (*ChatFullBox) Decode ¶

func (b *ChatFullBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ChatFullBox.

func (*ChatFullBox) Encode ¶

func (b *ChatFullBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ChatFullBox.

type ChatFullClass ¶

type ChatFullClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ChatFullClass represents ChatFull generic type.

Example:

g, err := DecodeChatFull(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChatFull: // chatFull#1b7c9db3
case *ChannelFull: // channelFull#f0e6672a
default: panic(v)
}

func DecodeChatFull ¶

func DecodeChatFull(buf *bin.Buffer) (ChatFullClass, error)

DecodeChatFull implements binary de-serialization for ChatFullClass.

type ChatInvite ¶

type ChatInvite struct {
	// Flags field of ChatInvite.
	Flags bin.Fields
	// Channel field of ChatInvite.
	Channel bool
	// Broadcast field of ChatInvite.
	Broadcast bool
	// Public field of ChatInvite.
	Public bool
	// Megagroup field of ChatInvite.
	Megagroup bool
	// Title field of ChatInvite.
	Title string
	// Photo field of ChatInvite.
	Photo PhotoClass
	// ParticipantsCount field of ChatInvite.
	ParticipantsCount int
	// Participants field of ChatInvite.
	//
	// Use SetParticipants and GetParticipants helpers.
	Participants []UserClass
}

ChatInvite represents TL type `chatInvite#dfc2f58e`.

func (*ChatInvite) Decode ¶

func (c *ChatInvite) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatInvite) Encode ¶

func (c *ChatInvite) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ChatInvite) GetParticipants ¶

func (c *ChatInvite) GetParticipants() (value []UserClass, ok bool)

GetParticipants returns value of Participants conditional field and boolean which is true if field was set.

func (*ChatInvite) SetBroadcast ¶

func (c *ChatInvite) SetBroadcast(value bool)

SetBroadcast sets value of Broadcast conditional field.

func (*ChatInvite) SetChannel ¶

func (c *ChatInvite) SetChannel(value bool)

SetChannel sets value of Channel conditional field.

func (*ChatInvite) SetMegagroup ¶

func (c *ChatInvite) SetMegagroup(value bool)

SetMegagroup sets value of Megagroup conditional field.

func (*ChatInvite) SetParticipants ¶

func (c *ChatInvite) SetParticipants(value []UserClass)

SetParticipants sets value of Participants conditional field.

func (*ChatInvite) SetPublic ¶

func (c *ChatInvite) SetPublic(value bool)

SetPublic sets value of Public conditional field.

type ChatInviteAlready ¶

type ChatInviteAlready struct {
	// Chat field of ChatInviteAlready.
	Chat ChatClass
}

ChatInviteAlready represents TL type `chatInviteAlready#5a686d7c`.

func (*ChatInviteAlready) Decode ¶

func (c *ChatInviteAlready) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatInviteAlready) Encode ¶

func (c *ChatInviteAlready) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChatInviteBox ¶

type ChatInviteBox struct {
	ChatInvite ChatInviteClass
}

ChatInvite boxes the ChatInviteClass providing a helper.

func (*ChatInviteBox) Decode ¶

func (b *ChatInviteBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ChatInviteBox.

func (*ChatInviteBox) Encode ¶

func (b *ChatInviteBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ChatInviteBox.

type ChatInviteClass ¶

type ChatInviteClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ChatInviteClass represents ChatInvite generic type.

Example:

g, err := DecodeChatInvite(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChatInviteAlready: // chatInviteAlready#5a686d7c
case *ChatInvite: // chatInvite#dfc2f58e
case *ChatInvitePeek: // chatInvitePeek#61695cb0
default: panic(v)
}

func DecodeChatInvite ¶

func DecodeChatInvite(buf *bin.Buffer) (ChatInviteClass, error)

DecodeChatInvite implements binary de-serialization for ChatInviteClass.

type ChatInviteEmpty ¶

type ChatInviteEmpty struct {
}

ChatInviteEmpty represents TL type `chatInviteEmpty#69df3769`.

func (*ChatInviteEmpty) Decode ¶

func (c *ChatInviteEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatInviteEmpty) Encode ¶

func (c *ChatInviteEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChatInviteExported ¶

type ChatInviteExported struct {
	// Link field of ChatInviteExported.
	Link string
}

ChatInviteExported represents TL type `chatInviteExported#fc2e05bc`.

func (*ChatInviteExported) Decode ¶

func (c *ChatInviteExported) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatInviteExported) Encode ¶

func (c *ChatInviteExported) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChatInvitePeek ¶

type ChatInvitePeek struct {
	// Chat field of ChatInvitePeek.
	Chat ChatClass
	// Expires field of ChatInvitePeek.
	Expires int
}

ChatInvitePeek represents TL type `chatInvitePeek#61695cb0`.

func (*ChatInvitePeek) Decode ¶

func (c *ChatInvitePeek) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatInvitePeek) Encode ¶

func (c *ChatInvitePeek) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChatOnlines ¶

type ChatOnlines struct {
	// Onlines field of ChatOnlines.
	Onlines int
}

ChatOnlines represents TL type `chatOnlines#f041e250`.

func (*ChatOnlines) Decode ¶

func (c *ChatOnlines) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatOnlines) Encode ¶

func (c *ChatOnlines) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChatParticipant ¶

type ChatParticipant struct {
	// UserID field of ChatParticipant.
	UserID int
	// InviterID field of ChatParticipant.
	InviterID int
	// Date field of ChatParticipant.
	Date int
}

ChatParticipant represents TL type `chatParticipant#c8d7493e`.

func (*ChatParticipant) Decode ¶

func (c *ChatParticipant) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatParticipant) Encode ¶

func (c *ChatParticipant) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChatParticipantAdmin ¶

type ChatParticipantAdmin struct {
	// UserID field of ChatParticipantAdmin.
	UserID int
	// InviterID field of ChatParticipantAdmin.
	InviterID int
	// Date field of ChatParticipantAdmin.
	Date int
}

ChatParticipantAdmin represents TL type `chatParticipantAdmin#e2d6e436`.

func (*ChatParticipantAdmin) Decode ¶

func (c *ChatParticipantAdmin) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatParticipantAdmin) Encode ¶

func (c *ChatParticipantAdmin) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChatParticipantBox ¶

type ChatParticipantBox struct {
	ChatParticipant ChatParticipantClass
}

ChatParticipant boxes the ChatParticipantClass providing a helper.

func (*ChatParticipantBox) Decode ¶

func (b *ChatParticipantBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ChatParticipantBox.

func (*ChatParticipantBox) Encode ¶

func (b *ChatParticipantBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ChatParticipantBox.

type ChatParticipantClass ¶

type ChatParticipantClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ChatParticipantClass represents ChatParticipant generic type.

Example:

g, err := DecodeChatParticipant(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChatParticipant: // chatParticipant#c8d7493e
case *ChatParticipantCreator: // chatParticipantCreator#da13538a
case *ChatParticipantAdmin: // chatParticipantAdmin#e2d6e436
default: panic(v)
}

func DecodeChatParticipant ¶

func DecodeChatParticipant(buf *bin.Buffer) (ChatParticipantClass, error)

DecodeChatParticipant implements binary de-serialization for ChatParticipantClass.

type ChatParticipantCreator ¶

type ChatParticipantCreator struct {
	// UserID field of ChatParticipantCreator.
	UserID int
}

ChatParticipantCreator represents TL type `chatParticipantCreator#da13538a`.

func (*ChatParticipantCreator) Decode ¶

func (c *ChatParticipantCreator) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatParticipantCreator) Encode ¶

func (c *ChatParticipantCreator) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChatParticipants ¶

type ChatParticipants struct {
	// ChatID field of ChatParticipants.
	ChatID int
	// Participants field of ChatParticipants.
	Participants []ChatParticipantClass
	// Version field of ChatParticipants.
	Version int
}

ChatParticipants represents TL type `chatParticipants#3f460fed`.

func (*ChatParticipants) Decode ¶

func (c *ChatParticipants) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatParticipants) Encode ¶

func (c *ChatParticipants) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ChatParticipantsBox ¶

type ChatParticipantsBox struct {
	ChatParticipants ChatParticipantsClass
}

ChatParticipants boxes the ChatParticipantsClass providing a helper.

func (*ChatParticipantsBox) Decode ¶

func (b *ChatParticipantsBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ChatParticipantsBox.

func (*ChatParticipantsBox) Encode ¶

func (b *ChatParticipantsBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ChatParticipantsBox.

type ChatParticipantsClass ¶

type ChatParticipantsClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ChatParticipantsClass represents ChatParticipants generic type.

Example:

g, err := DecodeChatParticipants(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChatParticipantsForbidden: // chatParticipantsForbidden#fc900c2b
case *ChatParticipants: // chatParticipants#3f460fed
default: panic(v)
}

func DecodeChatParticipants ¶

func DecodeChatParticipants(buf *bin.Buffer) (ChatParticipantsClass, error)

DecodeChatParticipants implements binary de-serialization for ChatParticipantsClass.

type ChatParticipantsForbidden ¶

type ChatParticipantsForbidden struct {
	// Flags field of ChatParticipantsForbidden.
	Flags bin.Fields
	// ChatID field of ChatParticipantsForbidden.
	ChatID int
	// SelfParticipant field of ChatParticipantsForbidden.
	//
	// Use SetSelfParticipant and GetSelfParticipant helpers.
	SelfParticipant ChatParticipantClass
}

ChatParticipantsForbidden represents TL type `chatParticipantsForbidden#fc900c2b`.

func (*ChatParticipantsForbidden) Decode ¶

func (c *ChatParticipantsForbidden) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatParticipantsForbidden) Encode ¶

func (c *ChatParticipantsForbidden) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ChatParticipantsForbidden) GetSelfParticipant ¶

func (c *ChatParticipantsForbidden) GetSelfParticipant() (value ChatParticipantClass, ok bool)

GetSelfParticipant returns value of SelfParticipant conditional field and boolean which is true if field was set.

func (*ChatParticipantsForbidden) SetSelfParticipant ¶

func (c *ChatParticipantsForbidden) SetSelfParticipant(value ChatParticipantClass)

SetSelfParticipant sets value of SelfParticipant conditional field.

type ChatPhoto ¶

type ChatPhoto struct {
	// Flags field of ChatPhoto.
	Flags bin.Fields
	// HasVideo field of ChatPhoto.
	HasVideo bool
	// PhotoSmall field of ChatPhoto.
	PhotoSmall FileLocationToBeDeprecated
	// PhotoBig field of ChatPhoto.
	PhotoBig FileLocationToBeDeprecated
	// DCID field of ChatPhoto.
	DCID int
}

ChatPhoto represents TL type `chatPhoto#d20b9f3c`.

func (*ChatPhoto) Decode ¶

func (c *ChatPhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatPhoto) Encode ¶

func (c *ChatPhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ChatPhoto) SetHasVideo ¶

func (c *ChatPhoto) SetHasVideo(value bool)

SetHasVideo sets value of HasVideo conditional field.

type ChatPhotoBox ¶

type ChatPhotoBox struct {
	ChatPhoto ChatPhotoClass
}

ChatPhoto boxes the ChatPhotoClass providing a helper.

func (*ChatPhotoBox) Decode ¶

func (b *ChatPhotoBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ChatPhotoBox.

func (*ChatPhotoBox) Encode ¶

func (b *ChatPhotoBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ChatPhotoBox.

type ChatPhotoClass ¶

type ChatPhotoClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ChatPhotoClass represents ChatPhoto generic type.

Example:

g, err := DecodeChatPhoto(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChatPhotoEmpty: // chatPhotoEmpty#37c1011c
case *ChatPhoto: // chatPhoto#d20b9f3c
default: panic(v)
}

func DecodeChatPhoto ¶

func DecodeChatPhoto(buf *bin.Buffer) (ChatPhotoClass, error)

DecodeChatPhoto implements binary de-serialization for ChatPhotoClass.

type ChatPhotoEmpty ¶

type ChatPhotoEmpty struct {
}

ChatPhotoEmpty represents TL type `chatPhotoEmpty#37c1011c`.

func (*ChatPhotoEmpty) Decode ¶

func (c *ChatPhotoEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ChatPhotoEmpty) Encode ¶

func (c *ChatPhotoEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type Client ¶

type Client struct {
	// contains filtered or unexported fields
}

Client implement methods for calling functions from TL schema via Invoker.

func NewClient ¶

func NewClient(invoker Invoker) *Client

func (*Client) AccountAcceptAuthorization ¶

func (c *Client) AccountAcceptAuthorization(ctx context.Context, request *AccountAcceptAuthorizationRequest) (BoolClass, error)

AccountAcceptAuthorization invokes method account.acceptAuthorization#e7027c94 returning error if any.

func (*Client) AccountCancelPasswordEmail ¶

func (c *Client) AccountCancelPasswordEmail(ctx context.Context, request *AccountCancelPasswordEmailRequest) (BoolClass, error)

AccountCancelPasswordEmail invokes method account.cancelPasswordEmail#c1cbd5b6 returning error if any.

func (*Client) AccountChangePhone ¶

func (c *Client) AccountChangePhone(ctx context.Context, request *AccountChangePhoneRequest) (UserClass, error)

AccountChangePhone invokes method account.changePhone#70c32edb returning error if any.

func (*Client) AccountCheckUsername ¶

func (c *Client) AccountCheckUsername(ctx context.Context, request *AccountCheckUsernameRequest) (BoolClass, error)

AccountCheckUsername invokes method account.checkUsername#2714d86c returning error if any.

func (*Client) AccountConfirmPasswordEmail ¶

func (c *Client) AccountConfirmPasswordEmail(ctx context.Context, request *AccountConfirmPasswordEmailRequest) (BoolClass, error)

AccountConfirmPasswordEmail invokes method account.confirmPasswordEmail#8fdf1920 returning error if any.

func (*Client) AccountConfirmPhone ¶

func (c *Client) AccountConfirmPhone(ctx context.Context, request *AccountConfirmPhoneRequest) (BoolClass, error)

AccountConfirmPhone invokes method account.confirmPhone#5f2178c3 returning error if any.

func (*Client) AccountCreateTheme ¶

func (c *Client) AccountCreateTheme(ctx context.Context, request *AccountCreateThemeRequest) (*Theme, error)

AccountCreateTheme invokes method account.createTheme#8432c21f returning error if any.

func (*Client) AccountDeleteAccount ¶

func (c *Client) AccountDeleteAccount(ctx context.Context, request *AccountDeleteAccountRequest) (BoolClass, error)

AccountDeleteAccount invokes method account.deleteAccount#418d4e0b returning error if any.

func (*Client) AccountDeleteSecureValue ¶

func (c *Client) AccountDeleteSecureValue(ctx context.Context, request *AccountDeleteSecureValueRequest) (BoolClass, error)

AccountDeleteSecureValue invokes method account.deleteSecureValue#b880bc4b returning error if any.

func (*Client) AccountFinishTakeoutSession ¶

func (c *Client) AccountFinishTakeoutSession(ctx context.Context, request *AccountFinishTakeoutSessionRequest) (BoolClass, error)

AccountFinishTakeoutSession invokes method account.finishTakeoutSession#1d2652ee returning error if any.

func (*Client) AccountGetAccountTTL ¶

func (c *Client) AccountGetAccountTTL(ctx context.Context, request *AccountGetAccountTTLRequest) (*AccountDaysTTL, error)

AccountGetAccountTTL invokes method account.getAccountTTL#8fc711d returning error if any.

func (*Client) AccountGetAuthorizationForm ¶

func (c *Client) AccountGetAuthorizationForm(ctx context.Context, request *AccountGetAuthorizationFormRequest) (*AccountAuthorizationForm, error)

AccountGetAuthorizationForm invokes method account.getAuthorizationForm#b86ba8e1 returning error if any.

func (*Client) AccountGetAuthorizations ¶

func (c *Client) AccountGetAuthorizations(ctx context.Context, request *AccountGetAuthorizationsRequest) (*AccountAuthorizations, error)

AccountGetAuthorizations invokes method account.getAuthorizations#e320c158 returning error if any.

func (*Client) AccountGetAutoDownloadSettings ¶

func (c *Client) AccountGetAutoDownloadSettings(ctx context.Context, request *AccountGetAutoDownloadSettingsRequest) (*AccountAutoDownloadSettings, error)

AccountGetAutoDownloadSettings invokes method account.getAutoDownloadSettings#56da0b3f returning error if any.

func (*Client) AccountGetContactSignUpNotification ¶

func (c *Client) AccountGetContactSignUpNotification(ctx context.Context, request *AccountGetContactSignUpNotificationRequest) (BoolClass, error)

AccountGetContactSignUpNotification invokes method account.getContactSignUpNotification#9f07c728 returning error if any.

func (*Client) AccountGetContentSettings ¶

func (c *Client) AccountGetContentSettings(ctx context.Context, request *AccountGetContentSettingsRequest) (*AccountContentSettings, error)

AccountGetContentSettings invokes method account.getContentSettings#8b9b4dae returning error if any.

func (*Client) AccountGetGlobalPrivacySettings ¶

func (c *Client) AccountGetGlobalPrivacySettings(ctx context.Context, request *AccountGetGlobalPrivacySettingsRequest) (*GlobalPrivacySettings, error)

AccountGetGlobalPrivacySettings invokes method account.getGlobalPrivacySettings#eb2b4cf6 returning error if any.

func (*Client) AccountGetNotifyExceptions ¶

func (c *Client) AccountGetNotifyExceptions(ctx context.Context, request *AccountGetNotifyExceptionsRequest) (UpdatesClass, error)

AccountGetNotifyExceptions invokes method account.getNotifyExceptions#53577479 returning error if any.

func (*Client) AccountGetNotifySettings ¶

func (c *Client) AccountGetNotifySettings(ctx context.Context, request *AccountGetNotifySettingsRequest) (*PeerNotifySettings, error)

AccountGetNotifySettings invokes method account.getNotifySettings#12b3ad31 returning error if any.

func (*Client) AccountGetPassword ¶

func (c *Client) AccountGetPassword(ctx context.Context, request *AccountGetPasswordRequest) (*AccountPassword, error)

AccountGetPassword invokes method account.getPassword#548a30f5 returning error if any.

func (*Client) AccountGetPasswordSettings ¶

func (c *Client) AccountGetPasswordSettings(ctx context.Context, request *AccountGetPasswordSettingsRequest) (*AccountPasswordSettings, error)

AccountGetPasswordSettings invokes method account.getPasswordSettings#9cd4eaf9 returning error if any.

func (*Client) AccountGetPrivacy ¶

func (c *Client) AccountGetPrivacy(ctx context.Context, request *AccountGetPrivacyRequest) (*AccountPrivacyRules, error)

AccountGetPrivacy invokes method account.getPrivacy#dadbc950 returning error if any.

func (*Client) AccountGetTheme ¶

func (c *Client) AccountGetTheme(ctx context.Context, request *AccountGetThemeRequest) (*Theme, error)

AccountGetTheme invokes method account.getTheme#8d9d742b returning error if any.

func (*Client) AccountGetThemes ¶

func (c *Client) AccountGetThemes(ctx context.Context, request *AccountGetThemesRequest) (AccountThemesClass, error)

AccountGetThemes invokes method account.getThemes#285946f8 returning error if any.

func (*Client) AccountGetTmpPassword ¶

func (c *Client) AccountGetTmpPassword(ctx context.Context, request *AccountGetTmpPasswordRequest) (*AccountTmpPassword, error)

AccountGetTmpPassword invokes method account.getTmpPassword#449e0b51 returning error if any.

func (*Client) AccountGetWallPaper ¶

func (c *Client) AccountGetWallPaper(ctx context.Context, request *AccountGetWallPaperRequest) (WallPaperClass, error)

AccountGetWallPaper invokes method account.getWallPaper#fc8ddbea returning error if any.

func (*Client) AccountGetWallPapers ¶

func (c *Client) AccountGetWallPapers(ctx context.Context, request *AccountGetWallPapersRequest) (AccountWallPapersClass, error)

AccountGetWallPapers invokes method account.getWallPapers#aabb1763 returning error if any.

func (*Client) AccountGetWebAuthorizations ¶

func (c *Client) AccountGetWebAuthorizations(ctx context.Context, request *AccountGetWebAuthorizationsRequest) (*AccountWebAuthorizations, error)

AccountGetWebAuthorizations invokes method account.getWebAuthorizations#182e6d6f returning error if any.

func (*Client) AccountInitTakeoutSession ¶

func (c *Client) AccountInitTakeoutSession(ctx context.Context, request *AccountInitTakeoutSessionRequest) (*AccountTakeout, error)

AccountInitTakeoutSession invokes method account.initTakeoutSession#f05b4804 returning error if any.

func (*Client) AccountInstallTheme ¶

func (c *Client) AccountInstallTheme(ctx context.Context, request *AccountInstallThemeRequest) (BoolClass, error)

AccountInstallTheme invokes method account.installTheme#7ae43737 returning error if any.

func (*Client) AccountInstallWallPaper ¶

func (c *Client) AccountInstallWallPaper(ctx context.Context, request *AccountInstallWallPaperRequest) (BoolClass, error)

AccountInstallWallPaper invokes method account.installWallPaper#feed5769 returning error if any.

func (*Client) AccountRegisterDevice ¶

func (c *Client) AccountRegisterDevice(ctx context.Context, request *AccountRegisterDeviceRequest) (BoolClass, error)

AccountRegisterDevice invokes method account.registerDevice#68976c6f returning error if any.

func (*Client) AccountReportPeer ¶

func (c *Client) AccountReportPeer(ctx context.Context, request *AccountReportPeerRequest) (BoolClass, error)

AccountReportPeer invokes method account.reportPeer#ae189d5f returning error if any.

func (*Client) AccountResendPasswordEmail ¶

func (c *Client) AccountResendPasswordEmail(ctx context.Context, request *AccountResendPasswordEmailRequest) (BoolClass, error)

AccountResendPasswordEmail invokes method account.resendPasswordEmail#7a7f2a15 returning error if any.

func (*Client) AccountResetAuthorization ¶

func (c *Client) AccountResetAuthorization(ctx context.Context, request *AccountResetAuthorizationRequest) (BoolClass, error)

AccountResetAuthorization invokes method account.resetAuthorization#df77f3bc returning error if any.

func (*Client) AccountResetNotifySettings ¶

func (c *Client) AccountResetNotifySettings(ctx context.Context, request *AccountResetNotifySettingsRequest) (BoolClass, error)

AccountResetNotifySettings invokes method account.resetNotifySettings#db7e1747 returning error if any.

func (*Client) AccountResetWallPapers ¶

func (c *Client) AccountResetWallPapers(ctx context.Context, request *AccountResetWallPapersRequest) (BoolClass, error)

AccountResetWallPapers invokes method account.resetWallPapers#bb3b9804 returning error if any.

func (*Client) AccountResetWebAuthorization ¶

func (c *Client) AccountResetWebAuthorization(ctx context.Context, request *AccountResetWebAuthorizationRequest) (BoolClass, error)

AccountResetWebAuthorization invokes method account.resetWebAuthorization#2d01b9ef returning error if any.

func (*Client) AccountResetWebAuthorizations ¶

func (c *Client) AccountResetWebAuthorizations(ctx context.Context, request *AccountResetWebAuthorizationsRequest) (BoolClass, error)

AccountResetWebAuthorizations invokes method account.resetWebAuthorizations#682d2594 returning error if any.

func (*Client) AccountSaveAutoDownloadSettings ¶

func (c *Client) AccountSaveAutoDownloadSettings(ctx context.Context, request *AccountSaveAutoDownloadSettingsRequest) (BoolClass, error)

AccountSaveAutoDownloadSettings invokes method account.saveAutoDownloadSettings#76f36233 returning error if any.

func (*Client) AccountSaveSecureValue ¶

func (c *Client) AccountSaveSecureValue(ctx context.Context, request *AccountSaveSecureValueRequest) (*SecureValue, error)

AccountSaveSecureValue invokes method account.saveSecureValue#899fe31d returning error if any.

func (*Client) AccountSaveTheme ¶

func (c *Client) AccountSaveTheme(ctx context.Context, request *AccountSaveThemeRequest) (BoolClass, error)

AccountSaveTheme invokes method account.saveTheme#f257106c returning error if any.

func (*Client) AccountSaveWallPaper ¶

func (c *Client) AccountSaveWallPaper(ctx context.Context, request *AccountSaveWallPaperRequest) (BoolClass, error)

AccountSaveWallPaper invokes method account.saveWallPaper#6c5a5b37 returning error if any.

func (*Client) AccountSendChangePhoneCode ¶

func (c *Client) AccountSendChangePhoneCode(ctx context.Context, request *AccountSendChangePhoneCodeRequest) (*AuthSentCode, error)

AccountSendChangePhoneCode invokes method account.sendChangePhoneCode#82574ae5 returning error if any.

func (*Client) AccountSendConfirmPhoneCode ¶

func (c *Client) AccountSendConfirmPhoneCode(ctx context.Context, request *AccountSendConfirmPhoneCodeRequest) (*AuthSentCode, error)

AccountSendConfirmPhoneCode invokes method account.sendConfirmPhoneCode#1b3faa88 returning error if any.

func (*Client) AccountSendVerifyEmailCode ¶

func (c *Client) AccountSendVerifyEmailCode(ctx context.Context, request *AccountSendVerifyEmailCodeRequest) (*AccountSentEmailCode, error)

AccountSendVerifyEmailCode invokes method account.sendVerifyEmailCode#7011509f returning error if any.

func (*Client) AccountSendVerifyPhoneCode ¶

func (c *Client) AccountSendVerifyPhoneCode(ctx context.Context, request *AccountSendVerifyPhoneCodeRequest) (*AuthSentCode, error)

AccountSendVerifyPhoneCode invokes method account.sendVerifyPhoneCode#a5a356f9 returning error if any.

func (*Client) AccountSetAccountTTL ¶

func (c *Client) AccountSetAccountTTL(ctx context.Context, request *AccountSetAccountTTLRequest) (BoolClass, error)

AccountSetAccountTTL invokes method account.setAccountTTL#2442485e returning error if any.

func (*Client) AccountSetContactSignUpNotification ¶

func (c *Client) AccountSetContactSignUpNotification(ctx context.Context, request *AccountSetContactSignUpNotificationRequest) (BoolClass, error)

AccountSetContactSignUpNotification invokes method account.setContactSignUpNotification#cff43f61 returning error if any.

func (*Client) AccountSetContentSettings ¶

func (c *Client) AccountSetContentSettings(ctx context.Context, request *AccountSetContentSettingsRequest) (BoolClass, error)

AccountSetContentSettings invokes method account.setContentSettings#b574b16b returning error if any.

func (*Client) AccountSetGlobalPrivacySettings ¶

func (c *Client) AccountSetGlobalPrivacySettings(ctx context.Context, request *AccountSetGlobalPrivacySettingsRequest) (*GlobalPrivacySettings, error)

AccountSetGlobalPrivacySettings invokes method account.setGlobalPrivacySettings#1edaaac2 returning error if any.

func (*Client) AccountSetPrivacy ¶

func (c *Client) AccountSetPrivacy(ctx context.Context, request *AccountSetPrivacyRequest) (*AccountPrivacyRules, error)

AccountSetPrivacy invokes method account.setPrivacy#c9f81ce8 returning error if any.

func (*Client) AccountUnregisterDevice ¶

func (c *Client) AccountUnregisterDevice(ctx context.Context, request *AccountUnregisterDeviceRequest) (BoolClass, error)

AccountUnregisterDevice invokes method account.unregisterDevice#3076c4bf returning error if any.

func (*Client) AccountUpdateDeviceLocked ¶

func (c *Client) AccountUpdateDeviceLocked(ctx context.Context, request *AccountUpdateDeviceLockedRequest) (BoolClass, error)

AccountUpdateDeviceLocked invokes method account.updateDeviceLocked#38df3532 returning error if any.

func (*Client) AccountUpdateNotifySettings ¶

func (c *Client) AccountUpdateNotifySettings(ctx context.Context, request *AccountUpdateNotifySettingsRequest) (BoolClass, error)

AccountUpdateNotifySettings invokes method account.updateNotifySettings#84be5b93 returning error if any.

func (*Client) AccountUpdatePasswordSettings ¶

func (c *Client) AccountUpdatePasswordSettings(ctx context.Context, request *AccountUpdatePasswordSettingsRequest) (BoolClass, error)

AccountUpdatePasswordSettings invokes method account.updatePasswordSettings#a59b102f returning error if any.

func (*Client) AccountUpdateProfile ¶

func (c *Client) AccountUpdateProfile(ctx context.Context, request *AccountUpdateProfileRequest) (UserClass, error)

AccountUpdateProfile invokes method account.updateProfile#78515775 returning error if any.

func (*Client) AccountUpdateStatus ¶

func (c *Client) AccountUpdateStatus(ctx context.Context, request *AccountUpdateStatusRequest) (BoolClass, error)

AccountUpdateStatus invokes method account.updateStatus#6628562c returning error if any.

func (*Client) AccountUpdateTheme ¶

func (c *Client) AccountUpdateTheme(ctx context.Context, request *AccountUpdateThemeRequest) (*Theme, error)

AccountUpdateTheme invokes method account.updateTheme#5cb367d5 returning error if any.

func (*Client) AccountUpdateUsername ¶

func (c *Client) AccountUpdateUsername(ctx context.Context, request *AccountUpdateUsernameRequest) (UserClass, error)

AccountUpdateUsername invokes method account.updateUsername#3e0bdd7c returning error if any.

func (*Client) AccountUploadTheme ¶

func (c *Client) AccountUploadTheme(ctx context.Context, request *AccountUploadThemeRequest) (DocumentClass, error)

AccountUploadTheme invokes method account.uploadTheme#1c3db333 returning error if any.

func (*Client) AccountUploadWallPaper ¶

func (c *Client) AccountUploadWallPaper(ctx context.Context, request *AccountUploadWallPaperRequest) (WallPaperClass, error)

AccountUploadWallPaper invokes method account.uploadWallPaper#dd853661 returning error if any.

func (*Client) AccountVerifyEmail ¶

func (c *Client) AccountVerifyEmail(ctx context.Context, request *AccountVerifyEmailRequest) (BoolClass, error)

AccountVerifyEmail invokes method account.verifyEmail#ecba39db returning error if any.

func (*Client) AccountVerifyPhone ¶

func (c *Client) AccountVerifyPhone(ctx context.Context, request *AccountVerifyPhoneRequest) (BoolClass, error)

AccountVerifyPhone invokes method account.verifyPhone#4dd3a7f6 returning error if any.

func (*Client) AuthAcceptLoginToken ¶

func (c *Client) AuthAcceptLoginToken(ctx context.Context, request *AuthAcceptLoginTokenRequest) (*Authorization, error)

AuthAcceptLoginToken invokes method auth.acceptLoginToken#e894ad4d returning error if any.

func (*Client) AuthBindTempAuthKey ¶

func (c *Client) AuthBindTempAuthKey(ctx context.Context, request *AuthBindTempAuthKeyRequest) (BoolClass, error)

AuthBindTempAuthKey invokes method auth.bindTempAuthKey#cdd42a05 returning error if any.

func (*Client) AuthCancelCode ¶

func (c *Client) AuthCancelCode(ctx context.Context, request *AuthCancelCodeRequest) (BoolClass, error)

AuthCancelCode invokes method auth.cancelCode#1f040578 returning error if any.

func (*Client) AuthCheckPassword ¶

func (c *Client) AuthCheckPassword(ctx context.Context, request *AuthCheckPasswordRequest) (AuthAuthorizationClass, error)

AuthCheckPassword invokes method auth.checkPassword#d18b4d16 returning error if any.

func (*Client) AuthDropTempAuthKeys ¶

func (c *Client) AuthDropTempAuthKeys(ctx context.Context, request *AuthDropTempAuthKeysRequest) (BoolClass, error)

AuthDropTempAuthKeys invokes method auth.dropTempAuthKeys#8e48a188 returning error if any.

func (*Client) AuthExportAuthorization ¶

func (c *Client) AuthExportAuthorization(ctx context.Context, request *AuthExportAuthorizationRequest) (*AuthExportedAuthorization, error)

AuthExportAuthorization invokes method auth.exportAuthorization#e5bfffcd returning error if any.

func (*Client) AuthExportLoginToken ¶

func (c *Client) AuthExportLoginToken(ctx context.Context, request *AuthExportLoginTokenRequest) (AuthLoginTokenClass, error)

AuthExportLoginToken invokes method auth.exportLoginToken#b1b41517 returning error if any.

func (*Client) AuthImportAuthorization ¶

func (c *Client) AuthImportAuthorization(ctx context.Context, request *AuthImportAuthorizationRequest) (AuthAuthorizationClass, error)

AuthImportAuthorization invokes method auth.importAuthorization#e3ef9613 returning error if any.

func (*Client) AuthImportBotAuthorization ¶

func (c *Client) AuthImportBotAuthorization(ctx context.Context, request *AuthImportBotAuthorizationRequest) (AuthAuthorizationClass, error)

AuthImportBotAuthorization invokes method auth.importBotAuthorization#67a3ff2c returning error if any.

func (*Client) AuthImportLoginToken ¶

func (c *Client) AuthImportLoginToken(ctx context.Context, request *AuthImportLoginTokenRequest) (AuthLoginTokenClass, error)

AuthImportLoginToken invokes method auth.importLoginToken#95ac5ce4 returning error if any.

func (*Client) AuthLogOut ¶

func (c *Client) AuthLogOut(ctx context.Context, request *AuthLogOutRequest) (BoolClass, error)

AuthLogOut invokes method auth.logOut#5717da40 returning error if any.

func (*Client) AuthRecoverPassword ¶

func (c *Client) AuthRecoverPassword(ctx context.Context, request *AuthRecoverPasswordRequest) (AuthAuthorizationClass, error)

AuthRecoverPassword invokes method auth.recoverPassword#4ea56e92 returning error if any.

func (*Client) AuthRequestPasswordRecovery ¶

func (c *Client) AuthRequestPasswordRecovery(ctx context.Context, request *AuthRequestPasswordRecoveryRequest) (*AuthPasswordRecovery, error)

AuthRequestPasswordRecovery invokes method auth.requestPasswordRecovery#d897bc66 returning error if any.

func (*Client) AuthResendCode ¶

func (c *Client) AuthResendCode(ctx context.Context, request *AuthResendCodeRequest) (*AuthSentCode, error)

AuthResendCode invokes method auth.resendCode#3ef1a9bf returning error if any.

func (*Client) AuthResetAuthorizations ¶

func (c *Client) AuthResetAuthorizations(ctx context.Context, request *AuthResetAuthorizationsRequest) (BoolClass, error)

AuthResetAuthorizations invokes method auth.resetAuthorizations#9fab0d1a returning error if any.

func (*Client) AuthSendCode ¶

func (c *Client) AuthSendCode(ctx context.Context, request *AuthSendCodeRequest) (*AuthSentCode, error)

AuthSendCode invokes method auth.sendCode#a677244f returning error if any.

func (*Client) AuthSignIn ¶

func (c *Client) AuthSignIn(ctx context.Context, request *AuthSignInRequest) (AuthAuthorizationClass, error)

AuthSignIn invokes method auth.signIn#bcd51581 returning error if any.

func (*Client) AuthSignUp ¶

func (c *Client) AuthSignUp(ctx context.Context, request *AuthSignUpRequest) (AuthAuthorizationClass, error)

AuthSignUp invokes method auth.signUp#80eee427 returning error if any.

func (*Client) BotsAnswerWebhookJSONQuery ¶

func (c *Client) BotsAnswerWebhookJSONQuery(ctx context.Context, request *BotsAnswerWebhookJSONQueryRequest) (BoolClass, error)

BotsAnswerWebhookJSONQuery invokes method bots.answerWebhookJSONQuery#e6213f4d returning error if any.

func (*Client) BotsSendCustomRequest ¶

func (c *Client) BotsSendCustomRequest(ctx context.Context, request *BotsSendCustomRequestRequest) (*DataJSON, error)

BotsSendCustomRequest invokes method bots.sendCustomRequest#aa2769ed returning error if any.

func (*Client) BotsSetBotCommands ¶

func (c *Client) BotsSetBotCommands(ctx context.Context, request *BotsSetBotCommandsRequest) (BoolClass, error)

BotsSetBotCommands invokes method bots.setBotCommands#805d46f6 returning error if any.

func (*Client) ChannelsCheckUsername ¶

func (c *Client) ChannelsCheckUsername(ctx context.Context, request *ChannelsCheckUsernameRequest) (BoolClass, error)

ChannelsCheckUsername invokes method channels.checkUsername#10e6bd2c returning error if any.

func (*Client) ChannelsCreateChannel ¶

func (c *Client) ChannelsCreateChannel(ctx context.Context, request *ChannelsCreateChannelRequest) (UpdatesClass, error)

ChannelsCreateChannel invokes method channels.createChannel#3d5fb10f returning error if any.

func (*Client) ChannelsDeleteChannel ¶

func (c *Client) ChannelsDeleteChannel(ctx context.Context, request *ChannelsDeleteChannelRequest) (UpdatesClass, error)

ChannelsDeleteChannel invokes method channels.deleteChannel#c0111fe3 returning error if any.

func (*Client) ChannelsDeleteHistory ¶

func (c *Client) ChannelsDeleteHistory(ctx context.Context, request *ChannelsDeleteHistoryRequest) (BoolClass, error)

ChannelsDeleteHistory invokes method channels.deleteHistory#af369d42 returning error if any.

func (*Client) ChannelsDeleteMessages ¶

func (c *Client) ChannelsDeleteMessages(ctx context.Context, request *ChannelsDeleteMessagesRequest) (*MessagesAffectedMessages, error)

ChannelsDeleteMessages invokes method channels.deleteMessages#84c1fd4e returning error if any.

func (*Client) ChannelsDeleteUserHistory ¶

func (c *Client) ChannelsDeleteUserHistory(ctx context.Context, request *ChannelsDeleteUserHistoryRequest) (*MessagesAffectedHistory, error)

ChannelsDeleteUserHistory invokes method channels.deleteUserHistory#d10dd71b returning error if any.

func (*Client) ChannelsEditAdmin ¶

func (c *Client) ChannelsEditAdmin(ctx context.Context, request *ChannelsEditAdminRequest) (UpdatesClass, error)

ChannelsEditAdmin invokes method channels.editAdmin#d33c8902 returning error if any.

func (*Client) ChannelsEditBanned ¶

func (c *Client) ChannelsEditBanned(ctx context.Context, request *ChannelsEditBannedRequest) (UpdatesClass, error)

ChannelsEditBanned invokes method channels.editBanned#72796912 returning error if any.

func (*Client) ChannelsEditCreator ¶

func (c *Client) ChannelsEditCreator(ctx context.Context, request *ChannelsEditCreatorRequest) (UpdatesClass, error)

ChannelsEditCreator invokes method channels.editCreator#8f38cd1f returning error if any.

func (*Client) ChannelsEditLocation ¶

func (c *Client) ChannelsEditLocation(ctx context.Context, request *ChannelsEditLocationRequest) (BoolClass, error)

ChannelsEditLocation invokes method channels.editLocation#58e63f6d returning error if any.

func (*Client) ChannelsEditPhoto ¶

func (c *Client) ChannelsEditPhoto(ctx context.Context, request *ChannelsEditPhotoRequest) (UpdatesClass, error)

ChannelsEditPhoto invokes method channels.editPhoto#f12e57c9 returning error if any.

func (*Client) ChannelsEditTitle ¶

func (c *Client) ChannelsEditTitle(ctx context.Context, request *ChannelsEditTitleRequest) (UpdatesClass, error)

ChannelsEditTitle invokes method channels.editTitle#566decd0 returning error if any.

func (c *Client) ChannelsExportMessageLink(ctx context.Context, request *ChannelsExportMessageLinkRequest) (*ExportedMessageLink, error)

ChannelsExportMessageLink invokes method channels.exportMessageLink#e63fadeb returning error if any.

func (*Client) ChannelsGetAdminLog ¶

func (c *Client) ChannelsGetAdminLog(ctx context.Context, request *ChannelsGetAdminLogRequest) (*ChannelsAdminLogResults, error)

ChannelsGetAdminLog invokes method channels.getAdminLog#33ddf480 returning error if any.

func (*Client) ChannelsGetAdminedPublicChannels ¶

func (c *Client) ChannelsGetAdminedPublicChannels(ctx context.Context, request *ChannelsGetAdminedPublicChannelsRequest) (MessagesChatsClass, error)

ChannelsGetAdminedPublicChannels invokes method channels.getAdminedPublicChannels#f8b036af returning error if any.

func (*Client) ChannelsGetChannels ¶

func (c *Client) ChannelsGetChannels(ctx context.Context, request *ChannelsGetChannelsRequest) (MessagesChatsClass, error)

ChannelsGetChannels invokes method channels.getChannels#a7f6bbb returning error if any.

func (*Client) ChannelsGetFullChannel ¶

func (c *Client) ChannelsGetFullChannel(ctx context.Context, request *ChannelsGetFullChannelRequest) (*MessagesChatFull, error)

ChannelsGetFullChannel invokes method channels.getFullChannel#8736a09 returning error if any.

func (*Client) ChannelsGetGroupsForDiscussion ¶

func (c *Client) ChannelsGetGroupsForDiscussion(ctx context.Context, request *ChannelsGetGroupsForDiscussionRequest) (MessagesChatsClass, error)

ChannelsGetGroupsForDiscussion invokes method channels.getGroupsForDiscussion#f5dad378 returning error if any.

func (*Client) ChannelsGetInactiveChannels ¶

func (c *Client) ChannelsGetInactiveChannels(ctx context.Context, request *ChannelsGetInactiveChannelsRequest) (*MessagesInactiveChats, error)

ChannelsGetInactiveChannels invokes method channels.getInactiveChannels#11e831ee returning error if any.

func (*Client) ChannelsGetLeftChannels ¶

func (c *Client) ChannelsGetLeftChannels(ctx context.Context, request *ChannelsGetLeftChannelsRequest) (MessagesChatsClass, error)

ChannelsGetLeftChannels invokes method channels.getLeftChannels#8341ecc0 returning error if any.

func (*Client) ChannelsGetMessages ¶

func (c *Client) ChannelsGetMessages(ctx context.Context, request *ChannelsGetMessagesRequest) (MessagesMessagesClass, error)

ChannelsGetMessages invokes method channels.getMessages#ad8c9a23 returning error if any.

func (*Client) ChannelsGetParticipant ¶

func (c *Client) ChannelsGetParticipant(ctx context.Context, request *ChannelsGetParticipantRequest) (*ChannelsChannelParticipant, error)

ChannelsGetParticipant invokes method channels.getParticipant#546dd7a6 returning error if any.

func (*Client) ChannelsGetParticipants ¶

func (c *Client) ChannelsGetParticipants(ctx context.Context, request *ChannelsGetParticipantsRequest) (ChannelsChannelParticipantsClass, error)

ChannelsGetParticipants invokes method channels.getParticipants#123e05e9 returning error if any.

func (*Client) ChannelsInviteToChannel ¶

func (c *Client) ChannelsInviteToChannel(ctx context.Context, request *ChannelsInviteToChannelRequest) (UpdatesClass, error)

ChannelsInviteToChannel invokes method channels.inviteToChannel#199f3a6c returning error if any.

func (*Client) ChannelsJoinChannel ¶

func (c *Client) ChannelsJoinChannel(ctx context.Context, request *ChannelsJoinChannelRequest) (UpdatesClass, error)

ChannelsJoinChannel invokes method channels.joinChannel#24b524c5 returning error if any.

func (*Client) ChannelsLeaveChannel ¶

func (c *Client) ChannelsLeaveChannel(ctx context.Context, request *ChannelsLeaveChannelRequest) (UpdatesClass, error)

ChannelsLeaveChannel invokes method channels.leaveChannel#f836aa95 returning error if any.

func (*Client) ChannelsReadHistory ¶

func (c *Client) ChannelsReadHistory(ctx context.Context, request *ChannelsReadHistoryRequest) (BoolClass, error)

ChannelsReadHistory invokes method channels.readHistory#cc104937 returning error if any.

func (*Client) ChannelsReadMessageContents ¶

func (c *Client) ChannelsReadMessageContents(ctx context.Context, request *ChannelsReadMessageContentsRequest) (BoolClass, error)

ChannelsReadMessageContents invokes method channels.readMessageContents#eab5dc38 returning error if any.

func (*Client) ChannelsReportSpam ¶

func (c *Client) ChannelsReportSpam(ctx context.Context, request *ChannelsReportSpamRequest) (BoolClass, error)

ChannelsReportSpam invokes method channels.reportSpam#fe087810 returning error if any.

func (*Client) ChannelsSetDiscussionGroup ¶

func (c *Client) ChannelsSetDiscussionGroup(ctx context.Context, request *ChannelsSetDiscussionGroupRequest) (BoolClass, error)

ChannelsSetDiscussionGroup invokes method channels.setDiscussionGroup#40582bb2 returning error if any.

func (*Client) ChannelsSetStickers ¶

func (c *Client) ChannelsSetStickers(ctx context.Context, request *ChannelsSetStickersRequest) (BoolClass, error)

ChannelsSetStickers invokes method channels.setStickers#ea8ca4f9 returning error if any.

func (*Client) ChannelsTogglePreHistoryHidden ¶

func (c *Client) ChannelsTogglePreHistoryHidden(ctx context.Context, request *ChannelsTogglePreHistoryHiddenRequest) (UpdatesClass, error)

ChannelsTogglePreHistoryHidden invokes method channels.togglePreHistoryHidden#eabbb94c returning error if any.

func (*Client) ChannelsToggleSignatures ¶

func (c *Client) ChannelsToggleSignatures(ctx context.Context, request *ChannelsToggleSignaturesRequest) (UpdatesClass, error)

ChannelsToggleSignatures invokes method channels.toggleSignatures#1f69b606 returning error if any.

func (*Client) ChannelsToggleSlowMode ¶

func (c *Client) ChannelsToggleSlowMode(ctx context.Context, request *ChannelsToggleSlowModeRequest) (UpdatesClass, error)

ChannelsToggleSlowMode invokes method channels.toggleSlowMode#edd49ef0 returning error if any.

func (*Client) ChannelsUpdateUsername ¶

func (c *Client) ChannelsUpdateUsername(ctx context.Context, request *ChannelsUpdateUsernameRequest) (BoolClass, error)

ChannelsUpdateUsername invokes method channels.updateUsername#3514b3de returning error if any.

func (*Client) ContactsAcceptContact ¶

func (c *Client) ContactsAcceptContact(ctx context.Context, request *ContactsAcceptContactRequest) (UpdatesClass, error)

ContactsAcceptContact invokes method contacts.acceptContact#f831a20f returning error if any.

func (*Client) ContactsAddContact ¶

func (c *Client) ContactsAddContact(ctx context.Context, request *ContactsAddContactRequest) (UpdatesClass, error)

ContactsAddContact invokes method contacts.addContact#e8f463d0 returning error if any.

func (*Client) ContactsBlock ¶

func (c *Client) ContactsBlock(ctx context.Context, request *ContactsBlockRequest) (BoolClass, error)

ContactsBlock invokes method contacts.block#68cc1411 returning error if any.

func (*Client) ContactsBlockFromReplies ¶

func (c *Client) ContactsBlockFromReplies(ctx context.Context, request *ContactsBlockFromRepliesRequest) (UpdatesClass, error)

ContactsBlockFromReplies invokes method contacts.blockFromReplies#29a8962c returning error if any.

func (*Client) ContactsDeleteByPhones ¶

func (c *Client) ContactsDeleteByPhones(ctx context.Context, request *ContactsDeleteByPhonesRequest) (BoolClass, error)

ContactsDeleteByPhones invokes method contacts.deleteByPhones#1013fd9e returning error if any.

func (*Client) ContactsDeleteContacts ¶

func (c *Client) ContactsDeleteContacts(ctx context.Context, request *ContactsDeleteContactsRequest) (UpdatesClass, error)

ContactsDeleteContacts invokes method contacts.deleteContacts#96a0e00 returning error if any.

func (*Client) ContactsGetBlocked ¶

func (c *Client) ContactsGetBlocked(ctx context.Context, request *ContactsGetBlockedRequest) (ContactsBlockedClass, error)

ContactsGetBlocked invokes method contacts.getBlocked#f57c350f returning error if any.

func (*Client) ContactsGetContacts ¶

func (c *Client) ContactsGetContacts(ctx context.Context, request *ContactsGetContactsRequest) (ContactsContactsClass, error)

ContactsGetContacts invokes method contacts.getContacts#c023849f returning error if any.

func (*Client) ContactsGetLocated ¶

func (c *Client) ContactsGetLocated(ctx context.Context, request *ContactsGetLocatedRequest) (UpdatesClass, error)

ContactsGetLocated invokes method contacts.getLocated#d348bc44 returning error if any.

func (*Client) ContactsGetTopPeers ¶

func (c *Client) ContactsGetTopPeers(ctx context.Context, request *ContactsGetTopPeersRequest) (ContactsTopPeersClass, error)

ContactsGetTopPeers invokes method contacts.getTopPeers#d4982db5 returning error if any.

func (*Client) ContactsImportContacts ¶

func (c *Client) ContactsImportContacts(ctx context.Context, request *ContactsImportContactsRequest) (*ContactsImportedContacts, error)

ContactsImportContacts invokes method contacts.importContacts#2c800be5 returning error if any.

func (*Client) ContactsResetSaved ¶

func (c *Client) ContactsResetSaved(ctx context.Context, request *ContactsResetSavedRequest) (BoolClass, error)

ContactsResetSaved invokes method contacts.resetSaved#879537f1 returning error if any.

func (*Client) ContactsResetTopPeerRating ¶

func (c *Client) ContactsResetTopPeerRating(ctx context.Context, request *ContactsResetTopPeerRatingRequest) (BoolClass, error)

ContactsResetTopPeerRating invokes method contacts.resetTopPeerRating#1ae373ac returning error if any.

func (*Client) ContactsResolveUsername ¶

func (c *Client) ContactsResolveUsername(ctx context.Context, request *ContactsResolveUsernameRequest) (*ContactsResolvedPeer, error)

ContactsResolveUsername invokes method contacts.resolveUsername#f93ccba3 returning error if any.

func (*Client) ContactsSearch ¶

func (c *Client) ContactsSearch(ctx context.Context, request *ContactsSearchRequest) (*ContactsFound, error)

ContactsSearch invokes method contacts.search#11f812d8 returning error if any.

func (*Client) ContactsToggleTopPeers ¶

func (c *Client) ContactsToggleTopPeers(ctx context.Context, request *ContactsToggleTopPeersRequest) (BoolClass, error)

ContactsToggleTopPeers invokes method contacts.toggleTopPeers#8514bdda returning error if any.

func (*Client) ContactsUnblock ¶

func (c *Client) ContactsUnblock(ctx context.Context, request *ContactsUnblockRequest) (BoolClass, error)

ContactsUnblock invokes method contacts.unblock#bea65d50 returning error if any.

func (*Client) FoldersDeleteFolder ¶

func (c *Client) FoldersDeleteFolder(ctx context.Context, request *FoldersDeleteFolderRequest) (UpdatesClass, error)

FoldersDeleteFolder invokes method folders.deleteFolder#1c295881 returning error if any.

func (*Client) FoldersEditPeerFolders ¶

func (c *Client) FoldersEditPeerFolders(ctx context.Context, request *FoldersEditPeerFoldersRequest) (UpdatesClass, error)

FoldersEditPeerFolders invokes method folders.editPeerFolders#6847d0ab returning error if any.

func (*Client) HelpAcceptTermsOfService ¶

func (c *Client) HelpAcceptTermsOfService(ctx context.Context, request *HelpAcceptTermsOfServiceRequest) (BoolClass, error)

HelpAcceptTermsOfService invokes method help.acceptTermsOfService#ee72f79a returning error if any.

func (*Client) HelpDismissSuggestion ¶

func (c *Client) HelpDismissSuggestion(ctx context.Context, request *HelpDismissSuggestionRequest) (BoolClass, error)

HelpDismissSuggestion invokes method help.dismissSuggestion#77fa99f returning error if any.

func (*Client) HelpEditUserInfo ¶

func (c *Client) HelpEditUserInfo(ctx context.Context, request *HelpEditUserInfoRequest) (HelpUserInfoClass, error)

HelpEditUserInfo invokes method help.editUserInfo#66b91b70 returning error if any.

func (*Client) HelpGetAppChangelog ¶

func (c *Client) HelpGetAppChangelog(ctx context.Context, request *HelpGetAppChangelogRequest) (UpdatesClass, error)

HelpGetAppChangelog invokes method help.getAppChangelog#9010ef6f returning error if any.

func (*Client) HelpGetAppConfig ¶

func (c *Client) HelpGetAppConfig(ctx context.Context, request *HelpGetAppConfigRequest) (JSONValueClass, error)

HelpGetAppConfig invokes method help.getAppConfig#98914110 returning error if any.

func (*Client) HelpGetAppUpdate ¶

func (c *Client) HelpGetAppUpdate(ctx context.Context, request *HelpGetAppUpdateRequest) (HelpAppUpdateClass, error)

HelpGetAppUpdate invokes method help.getAppUpdate#522d5a7d returning error if any.

func (*Client) HelpGetCdnConfig ¶

func (c *Client) HelpGetCdnConfig(ctx context.Context, request *HelpGetCdnConfigRequest) (*CdnConfig, error)

HelpGetCdnConfig invokes method help.getCdnConfig#52029342 returning error if any.

func (*Client) HelpGetConfig ¶

func (c *Client) HelpGetConfig(ctx context.Context, request *HelpGetConfigRequest) (*Config, error)

HelpGetConfig invokes method help.getConfig#c4f9186b returning error if any.

func (*Client) HelpGetCountriesList ¶

func (c *Client) HelpGetCountriesList(ctx context.Context, request *HelpGetCountriesListRequest) (HelpCountriesListClass, error)

HelpGetCountriesList invokes method help.getCountriesList#735787a8 returning error if any.

func (*Client) HelpGetDeepLinkInfo ¶

func (c *Client) HelpGetDeepLinkInfo(ctx context.Context, request *HelpGetDeepLinkInfoRequest) (HelpDeepLinkInfoClass, error)

HelpGetDeepLinkInfo invokes method help.getDeepLinkInfo#3fedc75f returning error if any.

func (*Client) HelpGetInviteText ¶

func (c *Client) HelpGetInviteText(ctx context.Context, request *HelpGetInviteTextRequest) (*HelpInviteText, error)

HelpGetInviteText invokes method help.getInviteText#4d392343 returning error if any.

func (*Client) HelpGetNearestDc ¶

func (c *Client) HelpGetNearestDc(ctx context.Context, request *HelpGetNearestDcRequest) (*NearestDc, error)

HelpGetNearestDc invokes method help.getNearestDc#1fb33026 returning error if any.

func (*Client) HelpGetPassportConfig ¶

func (c *Client) HelpGetPassportConfig(ctx context.Context, request *HelpGetPassportConfigRequest) (HelpPassportConfigClass, error)

HelpGetPassportConfig invokes method help.getPassportConfig#c661ad08 returning error if any.

func (*Client) HelpGetPromoData ¶

func (c *Client) HelpGetPromoData(ctx context.Context, request *HelpGetPromoDataRequest) (HelpPromoDataClass, error)

HelpGetPromoData invokes method help.getPromoData#c0977421 returning error if any.

func (*Client) HelpGetRecentMeUrls ¶

func (c *Client) HelpGetRecentMeUrls(ctx context.Context, request *HelpGetRecentMeUrlsRequest) (*HelpRecentMeUrls, error)

HelpGetRecentMeUrls invokes method help.getRecentMeUrls#3dc0f114 returning error if any.

func (*Client) HelpGetSupport ¶

func (c *Client) HelpGetSupport(ctx context.Context, request *HelpGetSupportRequest) (*HelpSupport, error)

HelpGetSupport invokes method help.getSupport#9cdf08cd returning error if any.

func (*Client) HelpGetSupportName ¶

func (c *Client) HelpGetSupportName(ctx context.Context, request *HelpGetSupportNameRequest) (*HelpSupportName, error)

HelpGetSupportName invokes method help.getSupportName#d360e72c returning error if any.

func (*Client) HelpGetTermsOfServiceUpdate ¶

func (c *Client) HelpGetTermsOfServiceUpdate(ctx context.Context, request *HelpGetTermsOfServiceUpdateRequest) (HelpTermsOfServiceUpdateClass, error)

HelpGetTermsOfServiceUpdate invokes method help.getTermsOfServiceUpdate#2ca51fd1 returning error if any.

func (*Client) HelpGetUserInfo ¶

func (c *Client) HelpGetUserInfo(ctx context.Context, request *HelpGetUserInfoRequest) (HelpUserInfoClass, error)

HelpGetUserInfo invokes method help.getUserInfo#38a08d3 returning error if any.

func (*Client) HelpHidePromoData ¶

func (c *Client) HelpHidePromoData(ctx context.Context, request *HelpHidePromoDataRequest) (BoolClass, error)

HelpHidePromoData invokes method help.hidePromoData#1e251c95 returning error if any.

func (*Client) HelpSaveAppLog ¶

func (c *Client) HelpSaveAppLog(ctx context.Context, request *HelpSaveAppLogRequest) (BoolClass, error)

HelpSaveAppLog invokes method help.saveAppLog#6f02f748 returning error if any.

func (*Client) HelpSetBotUpdatesStatus ¶

func (c *Client) HelpSetBotUpdatesStatus(ctx context.Context, request *HelpSetBotUpdatesStatusRequest) (BoolClass, error)

HelpSetBotUpdatesStatus invokes method help.setBotUpdatesStatus#ec22cfcd returning error if any.

func (*Client) LangpackGetDifference ¶

func (c *Client) LangpackGetDifference(ctx context.Context, request *LangpackGetDifferenceRequest) (*LangPackDifference, error)

LangpackGetDifference invokes method langpack.getDifference#cd984aa5 returning error if any.

func (*Client) LangpackGetLangPack ¶

func (c *Client) LangpackGetLangPack(ctx context.Context, request *LangpackGetLangPackRequest) (*LangPackDifference, error)

LangpackGetLangPack invokes method langpack.getLangPack#f2f2330a returning error if any.

func (*Client) LangpackGetLanguage ¶

func (c *Client) LangpackGetLanguage(ctx context.Context, request *LangpackGetLanguageRequest) (*LangPackLanguage, error)

LangpackGetLanguage invokes method langpack.getLanguage#6a596502 returning error if any.

func (*Client) MessagesAcceptEncryption ¶

func (c *Client) MessagesAcceptEncryption(ctx context.Context, request *MessagesAcceptEncryptionRequest) (EncryptedChatClass, error)

MessagesAcceptEncryption invokes method messages.acceptEncryption#3dbc0415 returning error if any.

func (*Client) MessagesAcceptUrlAuth ¶

func (c *Client) MessagesAcceptUrlAuth(ctx context.Context, request *MessagesAcceptUrlAuthRequest) (UrlAuthResultClass, error)

MessagesAcceptUrlAuth invokes method messages.acceptUrlAuth#f729ea98 returning error if any.

func (*Client) MessagesAddChatUser ¶

func (c *Client) MessagesAddChatUser(ctx context.Context, request *MessagesAddChatUserRequest) (UpdatesClass, error)

MessagesAddChatUser invokes method messages.addChatUser#f9a0aa09 returning error if any.

func (*Client) MessagesCheckChatInvite ¶

func (c *Client) MessagesCheckChatInvite(ctx context.Context, request *MessagesCheckChatInviteRequest) (ChatInviteClass, error)

MessagesCheckChatInvite invokes method messages.checkChatInvite#3eadb1bb returning error if any.

func (*Client) MessagesClearAllDrafts ¶

func (c *Client) MessagesClearAllDrafts(ctx context.Context, request *MessagesClearAllDraftsRequest) (BoolClass, error)

MessagesClearAllDrafts invokes method messages.clearAllDrafts#7e58ee9c returning error if any.

func (*Client) MessagesClearRecentStickers ¶

func (c *Client) MessagesClearRecentStickers(ctx context.Context, request *MessagesClearRecentStickersRequest) (BoolClass, error)

MessagesClearRecentStickers invokes method messages.clearRecentStickers#8999602d returning error if any.

func (*Client) MessagesCreateChat ¶

func (c *Client) MessagesCreateChat(ctx context.Context, request *MessagesCreateChatRequest) (UpdatesClass, error)

MessagesCreateChat invokes method messages.createChat#9cb126e returning error if any.

func (*Client) MessagesDeleteChatUser ¶

func (c *Client) MessagesDeleteChatUser(ctx context.Context, request *MessagesDeleteChatUserRequest) (UpdatesClass, error)

MessagesDeleteChatUser invokes method messages.deleteChatUser#e0611f16 returning error if any.

func (*Client) MessagesDeleteHistory ¶

func (c *Client) MessagesDeleteHistory(ctx context.Context, request *MessagesDeleteHistoryRequest) (*MessagesAffectedHistory, error)

MessagesDeleteHistory invokes method messages.deleteHistory#1c015b09 returning error if any.

func (*Client) MessagesDeleteMessages ¶

func (c *Client) MessagesDeleteMessages(ctx context.Context, request *MessagesDeleteMessagesRequest) (*MessagesAffectedMessages, error)

MessagesDeleteMessages invokes method messages.deleteMessages#e58e95d2 returning error if any.

func (*Client) MessagesDeleteScheduledMessages ¶

func (c *Client) MessagesDeleteScheduledMessages(ctx context.Context, request *MessagesDeleteScheduledMessagesRequest) (UpdatesClass, error)

MessagesDeleteScheduledMessages invokes method messages.deleteScheduledMessages#59ae2b16 returning error if any.

func (*Client) MessagesDiscardEncryption ¶

func (c *Client) MessagesDiscardEncryption(ctx context.Context, request *MessagesDiscardEncryptionRequest) (BoolClass, error)

MessagesDiscardEncryption invokes method messages.discardEncryption#edd923c5 returning error if any.

func (*Client) MessagesEditChatAbout ¶

func (c *Client) MessagesEditChatAbout(ctx context.Context, request *MessagesEditChatAboutRequest) (BoolClass, error)

MessagesEditChatAbout invokes method messages.editChatAbout#def60797 returning error if any.

func (*Client) MessagesEditChatAdmin ¶

func (c *Client) MessagesEditChatAdmin(ctx context.Context, request *MessagesEditChatAdminRequest) (BoolClass, error)

MessagesEditChatAdmin invokes method messages.editChatAdmin#a9e69f2e returning error if any.

func (*Client) MessagesEditChatDefaultBannedRights ¶

func (c *Client) MessagesEditChatDefaultBannedRights(ctx context.Context, request *MessagesEditChatDefaultBannedRightsRequest) (UpdatesClass, error)

MessagesEditChatDefaultBannedRights invokes method messages.editChatDefaultBannedRights#a5866b41 returning error if any.

func (*Client) MessagesEditChatPhoto ¶

func (c *Client) MessagesEditChatPhoto(ctx context.Context, request *MessagesEditChatPhotoRequest) (UpdatesClass, error)

MessagesEditChatPhoto invokes method messages.editChatPhoto#ca4c79d8 returning error if any.

func (*Client) MessagesEditChatTitle ¶

func (c *Client) MessagesEditChatTitle(ctx context.Context, request *MessagesEditChatTitleRequest) (UpdatesClass, error)

MessagesEditChatTitle invokes method messages.editChatTitle#dc452855 returning error if any.

func (*Client) MessagesEditInlineBotMessage ¶

func (c *Client) MessagesEditInlineBotMessage(ctx context.Context, request *MessagesEditInlineBotMessageRequest) (BoolClass, error)

MessagesEditInlineBotMessage invokes method messages.editInlineBotMessage#83557dba returning error if any.

func (*Client) MessagesEditMessage ¶

func (c *Client) MessagesEditMessage(ctx context.Context, request *MessagesEditMessageRequest) (UpdatesClass, error)

MessagesEditMessage invokes method messages.editMessage#48f71778 returning error if any.

func (*Client) MessagesExportChatInvite ¶

func (c *Client) MessagesExportChatInvite(ctx context.Context, request *MessagesExportChatInviteRequest) (ExportedChatInviteClass, error)

MessagesExportChatInvite invokes method messages.exportChatInvite#df7534c returning error if any.

func (*Client) MessagesFaveSticker ¶

func (c *Client) MessagesFaveSticker(ctx context.Context, request *MessagesFaveStickerRequest) (BoolClass, error)

MessagesFaveSticker invokes method messages.faveSticker#b9ffc55b returning error if any.

func (*Client) MessagesForwardMessages ¶

func (c *Client) MessagesForwardMessages(ctx context.Context, request *MessagesForwardMessagesRequest) (UpdatesClass, error)

MessagesForwardMessages invokes method messages.forwardMessages#d9fee60e returning error if any.

func (*Client) MessagesGetAllChats ¶

func (c *Client) MessagesGetAllChats(ctx context.Context, request *MessagesGetAllChatsRequest) (MessagesChatsClass, error)

MessagesGetAllChats invokes method messages.getAllChats#eba80ff0 returning error if any.

func (*Client) MessagesGetAllDrafts ¶

func (c *Client) MessagesGetAllDrafts(ctx context.Context, request *MessagesGetAllDraftsRequest) (UpdatesClass, error)

MessagesGetAllDrafts invokes method messages.getAllDrafts#6a3f8d65 returning error if any.

func (*Client) MessagesGetAllStickers ¶

func (c *Client) MessagesGetAllStickers(ctx context.Context, request *MessagesGetAllStickersRequest) (MessagesAllStickersClass, error)

MessagesGetAllStickers invokes method messages.getAllStickers#1c9618b1 returning error if any.

func (*Client) MessagesGetArchivedStickers ¶

func (c *Client) MessagesGetArchivedStickers(ctx context.Context, request *MessagesGetArchivedStickersRequest) (*MessagesArchivedStickers, error)

MessagesGetArchivedStickers invokes method messages.getArchivedStickers#57f17692 returning error if any.

func (*Client) MessagesGetBotCallbackAnswer ¶

func (c *Client) MessagesGetBotCallbackAnswer(ctx context.Context, request *MessagesGetBotCallbackAnswerRequest) (*MessagesBotCallbackAnswer, error)

MessagesGetBotCallbackAnswer invokes method messages.getBotCallbackAnswer#9342ca07 returning error if any.

func (*Client) MessagesGetChats ¶

func (c *Client) MessagesGetChats(ctx context.Context, request *MessagesGetChatsRequest) (MessagesChatsClass, error)

MessagesGetChats invokes method messages.getChats#3c6aa187 returning error if any.

func (*Client) MessagesGetCommonChats ¶

func (c *Client) MessagesGetCommonChats(ctx context.Context, request *MessagesGetCommonChatsRequest) (MessagesChatsClass, error)

MessagesGetCommonChats invokes method messages.getCommonChats#d0a48c4 returning error if any.

func (*Client) MessagesGetDhConfig ¶

func (c *Client) MessagesGetDhConfig(ctx context.Context, request *MessagesGetDhConfigRequest) (MessagesDhConfigClass, error)

MessagesGetDhConfig invokes method messages.getDhConfig#26cf8950 returning error if any.

func (*Client) MessagesGetDialogs ¶

func (c *Client) MessagesGetDialogs(ctx context.Context, request *MessagesGetDialogsRequest) (MessagesDialogsClass, error)

MessagesGetDialogs invokes method messages.getDialogs#a0ee3b73 returning error if any.

func (*Client) MessagesGetDiscussionMessage ¶

func (c *Client) MessagesGetDiscussionMessage(ctx context.Context, request *MessagesGetDiscussionMessageRequest) (*MessagesDiscussionMessage, error)

MessagesGetDiscussionMessage invokes method messages.getDiscussionMessage#446972fd returning error if any.

func (*Client) MessagesGetDocumentByHash ¶

func (c *Client) MessagesGetDocumentByHash(ctx context.Context, request *MessagesGetDocumentByHashRequest) (DocumentClass, error)

MessagesGetDocumentByHash invokes method messages.getDocumentByHash#338e2464 returning error if any.

func (*Client) MessagesGetEmojiKeywords ¶

func (c *Client) MessagesGetEmojiKeywords(ctx context.Context, request *MessagesGetEmojiKeywordsRequest) (*EmojiKeywordsDifference, error)

MessagesGetEmojiKeywords invokes method messages.getEmojiKeywords#35a0e062 returning error if any.

func (*Client) MessagesGetEmojiKeywordsDifference ¶

func (c *Client) MessagesGetEmojiKeywordsDifference(ctx context.Context, request *MessagesGetEmojiKeywordsDifferenceRequest) (*EmojiKeywordsDifference, error)

MessagesGetEmojiKeywordsDifference invokes method messages.getEmojiKeywordsDifference#1508b6af returning error if any.

func (*Client) MessagesGetEmojiURL ¶

func (c *Client) MessagesGetEmojiURL(ctx context.Context, request *MessagesGetEmojiURLRequest) (*EmojiURL, error)

MessagesGetEmojiURL invokes method messages.getEmojiURL#d5b10c26 returning error if any.

func (*Client) MessagesGetFavedStickers ¶

func (c *Client) MessagesGetFavedStickers(ctx context.Context, request *MessagesGetFavedStickersRequest) (MessagesFavedStickersClass, error)

MessagesGetFavedStickers invokes method messages.getFavedStickers#21ce0b0e returning error if any.

func (*Client) MessagesGetFeaturedStickers ¶

func (c *Client) MessagesGetFeaturedStickers(ctx context.Context, request *MessagesGetFeaturedStickersRequest) (MessagesFeaturedStickersClass, error)

MessagesGetFeaturedStickers invokes method messages.getFeaturedStickers#2dacca4f returning error if any.

func (*Client) MessagesGetFullChat ¶

func (c *Client) MessagesGetFullChat(ctx context.Context, request *MessagesGetFullChatRequest) (*MessagesChatFull, error)

MessagesGetFullChat invokes method messages.getFullChat#3b831c66 returning error if any.

func (*Client) MessagesGetGameHighScores ¶

func (c *Client) MessagesGetGameHighScores(ctx context.Context, request *MessagesGetGameHighScoresRequest) (*MessagesHighScores, error)

MessagesGetGameHighScores invokes method messages.getGameHighScores#e822649d returning error if any.

func (*Client) MessagesGetHistory ¶

func (c *Client) MessagesGetHistory(ctx context.Context, request *MessagesGetHistoryRequest) (MessagesMessagesClass, error)

MessagesGetHistory invokes method messages.getHistory#dcbb8260 returning error if any.

func (*Client) MessagesGetInlineBotResults ¶

func (c *Client) MessagesGetInlineBotResults(ctx context.Context, request *MessagesGetInlineBotResultsRequest) (*MessagesBotResults, error)

MessagesGetInlineBotResults invokes method messages.getInlineBotResults#514e999d returning error if any.

func (*Client) MessagesGetInlineGameHighScores ¶

func (c *Client) MessagesGetInlineGameHighScores(ctx context.Context, request *MessagesGetInlineGameHighScoresRequest) (*MessagesHighScores, error)

MessagesGetInlineGameHighScores invokes method messages.getInlineGameHighScores#f635e1b returning error if any.

func (*Client) MessagesGetMaskStickers ¶

func (c *Client) MessagesGetMaskStickers(ctx context.Context, request *MessagesGetMaskStickersRequest) (MessagesAllStickersClass, error)

MessagesGetMaskStickers invokes method messages.getMaskStickers#65b8c79f returning error if any.

func (*Client) MessagesGetMessageEditData ¶

func (c *Client) MessagesGetMessageEditData(ctx context.Context, request *MessagesGetMessageEditDataRequest) (*MessagesMessageEditData, error)

MessagesGetMessageEditData invokes method messages.getMessageEditData#fda68d36 returning error if any.

func (*Client) MessagesGetMessages ¶

func (c *Client) MessagesGetMessages(ctx context.Context, request *MessagesGetMessagesRequest) (MessagesMessagesClass, error)

MessagesGetMessages invokes method messages.getMessages#63c66506 returning error if any.

func (*Client) MessagesGetMessagesViews ¶

func (c *Client) MessagesGetMessagesViews(ctx context.Context, request *MessagesGetMessagesViewsRequest) (*MessagesMessageViews, error)

MessagesGetMessagesViews invokes method messages.getMessagesViews#5784d3e1 returning error if any.

func (*Client) MessagesGetOldFeaturedStickers ¶

func (c *Client) MessagesGetOldFeaturedStickers(ctx context.Context, request *MessagesGetOldFeaturedStickersRequest) (MessagesFeaturedStickersClass, error)

MessagesGetOldFeaturedStickers invokes method messages.getOldFeaturedStickers#5fe7025b returning error if any.

func (*Client) MessagesGetOnlines ¶

func (c *Client) MessagesGetOnlines(ctx context.Context, request *MessagesGetOnlinesRequest) (*ChatOnlines, error)

MessagesGetOnlines invokes method messages.getOnlines#6e2be050 returning error if any.

func (*Client) MessagesGetPeerDialogs ¶

func (c *Client) MessagesGetPeerDialogs(ctx context.Context, request *MessagesGetPeerDialogsRequest) (*MessagesPeerDialogs, error)

MessagesGetPeerDialogs invokes method messages.getPeerDialogs#e470bcfd returning error if any.

func (*Client) MessagesGetPeerSettings ¶

func (c *Client) MessagesGetPeerSettings(ctx context.Context, request *MessagesGetPeerSettingsRequest) (*PeerSettings, error)

MessagesGetPeerSettings invokes method messages.getPeerSettings#3672e09c returning error if any.

func (*Client) MessagesGetPinnedDialogs ¶

func (c *Client) MessagesGetPinnedDialogs(ctx context.Context, request *MessagesGetPinnedDialogsRequest) (*MessagesPeerDialogs, error)

MessagesGetPinnedDialogs invokes method messages.getPinnedDialogs#d6b94df2 returning error if any.

func (*Client) MessagesGetPollResults ¶

func (c *Client) MessagesGetPollResults(ctx context.Context, request *MessagesGetPollResultsRequest) (UpdatesClass, error)

MessagesGetPollResults invokes method messages.getPollResults#73bb643b returning error if any.

func (*Client) MessagesGetPollVotes ¶

func (c *Client) MessagesGetPollVotes(ctx context.Context, request *MessagesGetPollVotesRequest) (*MessagesVotesList, error)

MessagesGetPollVotes invokes method messages.getPollVotes#b86e380e returning error if any.

func (*Client) MessagesGetRecentLocations ¶

func (c *Client) MessagesGetRecentLocations(ctx context.Context, request *MessagesGetRecentLocationsRequest) (MessagesMessagesClass, error)

MessagesGetRecentLocations invokes method messages.getRecentLocations#bbc45b09 returning error if any.

func (*Client) MessagesGetRecentStickers ¶

func (c *Client) MessagesGetRecentStickers(ctx context.Context, request *MessagesGetRecentStickersRequest) (MessagesRecentStickersClass, error)

MessagesGetRecentStickers invokes method messages.getRecentStickers#5ea192c9 returning error if any.

func (*Client) MessagesGetReplies ¶

func (c *Client) MessagesGetReplies(ctx context.Context, request *MessagesGetRepliesRequest) (MessagesMessagesClass, error)

MessagesGetReplies invokes method messages.getReplies#24b581ba returning error if any.

func (*Client) MessagesGetSavedGifs ¶

func (c *Client) MessagesGetSavedGifs(ctx context.Context, request *MessagesGetSavedGifsRequest) (MessagesSavedGifsClass, error)

MessagesGetSavedGifs invokes method messages.getSavedGifs#83bf3d52 returning error if any.

func (*Client) MessagesGetScheduledHistory ¶

func (c *Client) MessagesGetScheduledHistory(ctx context.Context, request *MessagesGetScheduledHistoryRequest) (MessagesMessagesClass, error)

MessagesGetScheduledHistory invokes method messages.getScheduledHistory#e2c2685b returning error if any.

func (*Client) MessagesGetScheduledMessages ¶

func (c *Client) MessagesGetScheduledMessages(ctx context.Context, request *MessagesGetScheduledMessagesRequest) (MessagesMessagesClass, error)

MessagesGetScheduledMessages invokes method messages.getScheduledMessages#bdbb0464 returning error if any.

func (*Client) MessagesGetStatsURL ¶

func (c *Client) MessagesGetStatsURL(ctx context.Context, request *MessagesGetStatsURLRequest) (*StatsURL, error)

MessagesGetStatsURL invokes method messages.getStatsURL#812c2ae6 returning error if any.

func (*Client) MessagesGetStickerSet ¶

func (c *Client) MessagesGetStickerSet(ctx context.Context, request *MessagesGetStickerSetRequest) (*MessagesStickerSet, error)

MessagesGetStickerSet invokes method messages.getStickerSet#2619a90e returning error if any.

func (*Client) MessagesGetStickers ¶

func (c *Client) MessagesGetStickers(ctx context.Context, request *MessagesGetStickersRequest) (MessagesStickersClass, error)

MessagesGetStickers invokes method messages.getStickers#43d4f2c returning error if any.

func (*Client) MessagesGetUnreadMentions ¶

func (c *Client) MessagesGetUnreadMentions(ctx context.Context, request *MessagesGetUnreadMentionsRequest) (MessagesMessagesClass, error)

MessagesGetUnreadMentions invokes method messages.getUnreadMentions#46578472 returning error if any.

func (*Client) MessagesGetWebPage ¶

func (c *Client) MessagesGetWebPage(ctx context.Context, request *MessagesGetWebPageRequest) (WebPageClass, error)

MessagesGetWebPage invokes method messages.getWebPage#32ca8f91 returning error if any.

func (*Client) MessagesGetWebPagePreview ¶

func (c *Client) MessagesGetWebPagePreview(ctx context.Context, request *MessagesGetWebPagePreviewRequest) (MessageMediaClass, error)

MessagesGetWebPagePreview invokes method messages.getWebPagePreview#8b68b0cc returning error if any.

func (*Client) MessagesHidePeerSettingsBar ¶

func (c *Client) MessagesHidePeerSettingsBar(ctx context.Context, request *MessagesHidePeerSettingsBarRequest) (BoolClass, error)

MessagesHidePeerSettingsBar invokes method messages.hidePeerSettingsBar#4facb138 returning error if any.

func (*Client) MessagesImportChatInvite ¶

func (c *Client) MessagesImportChatInvite(ctx context.Context, request *MessagesImportChatInviteRequest) (UpdatesClass, error)

MessagesImportChatInvite invokes method messages.importChatInvite#6c50051c returning error if any.

func (*Client) MessagesInstallStickerSet ¶

MessagesInstallStickerSet invokes method messages.installStickerSet#c78fe460 returning error if any.

func (*Client) MessagesMarkDialogUnread ¶

func (c *Client) MessagesMarkDialogUnread(ctx context.Context, request *MessagesMarkDialogUnreadRequest) (BoolClass, error)

MessagesMarkDialogUnread invokes method messages.markDialogUnread#c286d98f returning error if any.

func (*Client) MessagesMigrateChat ¶

func (c *Client) MessagesMigrateChat(ctx context.Context, request *MessagesMigrateChatRequest) (UpdatesClass, error)

MessagesMigrateChat invokes method messages.migrateChat#15a3b8e3 returning error if any.

func (*Client) MessagesReadDiscussion ¶

func (c *Client) MessagesReadDiscussion(ctx context.Context, request *MessagesReadDiscussionRequest) (BoolClass, error)

MessagesReadDiscussion invokes method messages.readDiscussion#f731a9f4 returning error if any.

func (*Client) MessagesReadEncryptedHistory ¶

func (c *Client) MessagesReadEncryptedHistory(ctx context.Context, request *MessagesReadEncryptedHistoryRequest) (BoolClass, error)

MessagesReadEncryptedHistory invokes method messages.readEncryptedHistory#7f4b690a returning error if any.

func (*Client) MessagesReadFeaturedStickers ¶

func (c *Client) MessagesReadFeaturedStickers(ctx context.Context, request *MessagesReadFeaturedStickersRequest) (BoolClass, error)

MessagesReadFeaturedStickers invokes method messages.readFeaturedStickers#5b118126 returning error if any.

func (*Client) MessagesReadHistory ¶

func (c *Client) MessagesReadHistory(ctx context.Context, request *MessagesReadHistoryRequest) (*MessagesAffectedMessages, error)

MessagesReadHistory invokes method messages.readHistory#e306d3a returning error if any.

func (*Client) MessagesReadMentions ¶

func (c *Client) MessagesReadMentions(ctx context.Context, request *MessagesReadMentionsRequest) (*MessagesAffectedHistory, error)

MessagesReadMentions invokes method messages.readMentions#f0189d3 returning error if any.

func (*Client) MessagesReadMessageContents ¶

func (c *Client) MessagesReadMessageContents(ctx context.Context, request *MessagesReadMessageContentsRequest) (*MessagesAffectedMessages, error)

MessagesReadMessageContents invokes method messages.readMessageContents#36a73f77 returning error if any.

func (*Client) MessagesReorderPinnedDialogs ¶

func (c *Client) MessagesReorderPinnedDialogs(ctx context.Context, request *MessagesReorderPinnedDialogsRequest) (BoolClass, error)

MessagesReorderPinnedDialogs invokes method messages.reorderPinnedDialogs#3b1adf37 returning error if any.

func (*Client) MessagesReorderStickerSets ¶

func (c *Client) MessagesReorderStickerSets(ctx context.Context, request *MessagesReorderStickerSetsRequest) (BoolClass, error)

MessagesReorderStickerSets invokes method messages.reorderStickerSets#78337739 returning error if any.

func (*Client) MessagesReport ¶

func (c *Client) MessagesReport(ctx context.Context, request *MessagesReportRequest) (BoolClass, error)

MessagesReport invokes method messages.report#bd82b658 returning error if any.

func (*Client) MessagesReportEncryptedSpam ¶

func (c *Client) MessagesReportEncryptedSpam(ctx context.Context, request *MessagesReportEncryptedSpamRequest) (BoolClass, error)

MessagesReportEncryptedSpam invokes method messages.reportEncryptedSpam#4b0c8c0f returning error if any.

func (*Client) MessagesReportSpam ¶

func (c *Client) MessagesReportSpam(ctx context.Context, request *MessagesReportSpamRequest) (BoolClass, error)

MessagesReportSpam invokes method messages.reportSpam#cf1592db returning error if any.

func (*Client) MessagesRequestEncryption ¶

func (c *Client) MessagesRequestEncryption(ctx context.Context, request *MessagesRequestEncryptionRequest) (EncryptedChatClass, error)

MessagesRequestEncryption invokes method messages.requestEncryption#f64daf43 returning error if any.

func (*Client) MessagesRequestUrlAuth ¶

func (c *Client) MessagesRequestUrlAuth(ctx context.Context, request *MessagesRequestUrlAuthRequest) (UrlAuthResultClass, error)

MessagesRequestUrlAuth invokes method messages.requestUrlAuth#e33f5613 returning error if any.

func (*Client) MessagesSaveDraft ¶

func (c *Client) MessagesSaveDraft(ctx context.Context, request *MessagesSaveDraftRequest) (BoolClass, error)

MessagesSaveDraft invokes method messages.saveDraft#bc39e14b returning error if any.

func (*Client) MessagesSaveGif ¶

func (c *Client) MessagesSaveGif(ctx context.Context, request *MessagesSaveGifRequest) (BoolClass, error)

MessagesSaveGif invokes method messages.saveGif#327a30cb returning error if any.

func (*Client) MessagesSaveRecentSticker ¶

func (c *Client) MessagesSaveRecentSticker(ctx context.Context, request *MessagesSaveRecentStickerRequest) (BoolClass, error)

MessagesSaveRecentSticker invokes method messages.saveRecentSticker#392718f8 returning error if any.

func (*Client) MessagesSearch ¶

func (c *Client) MessagesSearch(ctx context.Context, request *MessagesSearchRequest) (MessagesMessagesClass, error)

MessagesSearch invokes method messages.search#c352eec returning error if any.

func (*Client) MessagesSearchGlobal ¶

func (c *Client) MessagesSearchGlobal(ctx context.Context, request *MessagesSearchGlobalRequest) (MessagesMessagesClass, error)

MessagesSearchGlobal invokes method messages.searchGlobal#4bc6589a returning error if any.

func (*Client) MessagesSearchStickerSets ¶

func (c *Client) MessagesSearchStickerSets(ctx context.Context, request *MessagesSearchStickerSetsRequest) (MessagesFoundStickerSetsClass, error)

MessagesSearchStickerSets invokes method messages.searchStickerSets#c2b7d08b returning error if any.

func (*Client) MessagesSendEncrypted ¶

MessagesSendEncrypted invokes method messages.sendEncrypted#44fa7a15 returning error if any.

func (*Client) MessagesSendEncryptedFile ¶

func (c *Client) MessagesSendEncryptedFile(ctx context.Context, request *MessagesSendEncryptedFileRequest) (MessagesSentEncryptedMessageClass, error)

MessagesSendEncryptedFile invokes method messages.sendEncryptedFile#5559481d returning error if any.

func (*Client) MessagesSendEncryptedService ¶

func (c *Client) MessagesSendEncryptedService(ctx context.Context, request *MessagesSendEncryptedServiceRequest) (MessagesSentEncryptedMessageClass, error)

MessagesSendEncryptedService invokes method messages.sendEncryptedService#32d439a4 returning error if any.

func (*Client) MessagesSendInlineBotResult ¶

func (c *Client) MessagesSendInlineBotResult(ctx context.Context, request *MessagesSendInlineBotResultRequest) (UpdatesClass, error)

MessagesSendInlineBotResult invokes method messages.sendInlineBotResult#220815b0 returning error if any.

func (*Client) MessagesSendMedia ¶

func (c *Client) MessagesSendMedia(ctx context.Context, request *MessagesSendMediaRequest) (UpdatesClass, error)

MessagesSendMedia invokes method messages.sendMedia#3491eba9 returning error if any.

func (*Client) MessagesSendMessage ¶

func (c *Client) MessagesSendMessage(ctx context.Context, request *MessagesSendMessageRequest) (UpdatesClass, error)

MessagesSendMessage invokes method messages.sendMessage#520c3870 returning error if any.

func (*Client) MessagesSendMultiMedia ¶

func (c *Client) MessagesSendMultiMedia(ctx context.Context, request *MessagesSendMultiMediaRequest) (UpdatesClass, error)

MessagesSendMultiMedia invokes method messages.sendMultiMedia#cc0110cb returning error if any.

func (*Client) MessagesSendScheduledMessages ¶

func (c *Client) MessagesSendScheduledMessages(ctx context.Context, request *MessagesSendScheduledMessagesRequest) (UpdatesClass, error)

MessagesSendScheduledMessages invokes method messages.sendScheduledMessages#bd38850a returning error if any.

func (*Client) MessagesSendScreenshotNotification ¶

func (c *Client) MessagesSendScreenshotNotification(ctx context.Context, request *MessagesSendScreenshotNotificationRequest) (UpdatesClass, error)

MessagesSendScreenshotNotification invokes method messages.sendScreenshotNotification#c97df020 returning error if any.

func (*Client) MessagesSendVote ¶

func (c *Client) MessagesSendVote(ctx context.Context, request *MessagesSendVoteRequest) (UpdatesClass, error)

MessagesSendVote invokes method messages.sendVote#10ea6184 returning error if any.

func (*Client) MessagesSetBotCallbackAnswer ¶

func (c *Client) MessagesSetBotCallbackAnswer(ctx context.Context, request *MessagesSetBotCallbackAnswerRequest) (BoolClass, error)

MessagesSetBotCallbackAnswer invokes method messages.setBotCallbackAnswer#d58f130a returning error if any.

func (*Client) MessagesSetBotPrecheckoutResults ¶

func (c *Client) MessagesSetBotPrecheckoutResults(ctx context.Context, request *MessagesSetBotPrecheckoutResultsRequest) (BoolClass, error)

MessagesSetBotPrecheckoutResults invokes method messages.setBotPrecheckoutResults#9c2dd95 returning error if any.

func (*Client) MessagesSetBotShippingResults ¶

func (c *Client) MessagesSetBotShippingResults(ctx context.Context, request *MessagesSetBotShippingResultsRequest) (BoolClass, error)

MessagesSetBotShippingResults invokes method messages.setBotShippingResults#e5f672fa returning error if any.

func (*Client) MessagesSetEncryptedTyping ¶

func (c *Client) MessagesSetEncryptedTyping(ctx context.Context, request *MessagesSetEncryptedTypingRequest) (BoolClass, error)

MessagesSetEncryptedTyping invokes method messages.setEncryptedTyping#791451ed returning error if any.

func (*Client) MessagesSetGameScore ¶

func (c *Client) MessagesSetGameScore(ctx context.Context, request *MessagesSetGameScoreRequest) (UpdatesClass, error)

MessagesSetGameScore invokes method messages.setGameScore#8ef8ecc0 returning error if any.

func (*Client) MessagesSetInlineBotResults ¶

func (c *Client) MessagesSetInlineBotResults(ctx context.Context, request *MessagesSetInlineBotResultsRequest) (BoolClass, error)

MessagesSetInlineBotResults invokes method messages.setInlineBotResults#eb5ea206 returning error if any.

func (*Client) MessagesSetInlineGameScore ¶

func (c *Client) MessagesSetInlineGameScore(ctx context.Context, request *MessagesSetInlineGameScoreRequest) (BoolClass, error)

MessagesSetInlineGameScore invokes method messages.setInlineGameScore#15ad9f64 returning error if any.

func (*Client) MessagesSetTyping ¶

func (c *Client) MessagesSetTyping(ctx context.Context, request *MessagesSetTypingRequest) (BoolClass, error)

MessagesSetTyping invokes method messages.setTyping#58943ee2 returning error if any.

func (*Client) MessagesStartBot ¶

func (c *Client) MessagesStartBot(ctx context.Context, request *MessagesStartBotRequest) (UpdatesClass, error)

MessagesStartBot invokes method messages.startBot#e6df7378 returning error if any.

func (*Client) MessagesToggleDialogPin ¶

func (c *Client) MessagesToggleDialogPin(ctx context.Context, request *MessagesToggleDialogPinRequest) (BoolClass, error)

MessagesToggleDialogPin invokes method messages.toggleDialogPin#a731e257 returning error if any.

func (*Client) MessagesToggleStickerSets ¶

func (c *Client) MessagesToggleStickerSets(ctx context.Context, request *MessagesToggleStickerSetsRequest) (BoolClass, error)

MessagesToggleStickerSets invokes method messages.toggleStickerSets#b5052fea returning error if any.

func (*Client) MessagesUninstallStickerSet ¶

func (c *Client) MessagesUninstallStickerSet(ctx context.Context, request *MessagesUninstallStickerSetRequest) (BoolClass, error)

MessagesUninstallStickerSet invokes method messages.uninstallStickerSet#f96e55de returning error if any.

func (*Client) MessagesUnpinAllMessages ¶

func (c *Client) MessagesUnpinAllMessages(ctx context.Context, request *MessagesUnpinAllMessagesRequest) (*MessagesAffectedHistory, error)

MessagesUnpinAllMessages invokes method messages.unpinAllMessages#f025bc8b returning error if any.

func (*Client) MessagesUpdateDialogFilter ¶

func (c *Client) MessagesUpdateDialogFilter(ctx context.Context, request *MessagesUpdateDialogFilterRequest) (BoolClass, error)

MessagesUpdateDialogFilter invokes method messages.updateDialogFilter#1ad4a04a returning error if any.

func (*Client) MessagesUpdateDialogFiltersOrder ¶

func (c *Client) MessagesUpdateDialogFiltersOrder(ctx context.Context, request *MessagesUpdateDialogFiltersOrderRequest) (BoolClass, error)

MessagesUpdateDialogFiltersOrder invokes method messages.updateDialogFiltersOrder#c563c1e4 returning error if any.

func (*Client) MessagesUpdatePinnedMessage ¶

func (c *Client) MessagesUpdatePinnedMessage(ctx context.Context, request *MessagesUpdatePinnedMessageRequest) (UpdatesClass, error)

MessagesUpdatePinnedMessage invokes method messages.updatePinnedMessage#d2aaf7ec returning error if any.

func (*Client) MessagesUploadEncryptedFile ¶

func (c *Client) MessagesUploadEncryptedFile(ctx context.Context, request *MessagesUploadEncryptedFileRequest) (EncryptedFileClass, error)

MessagesUploadEncryptedFile invokes method messages.uploadEncryptedFile#5057c497 returning error if any.

func (*Client) MessagesUploadMedia ¶

func (c *Client) MessagesUploadMedia(ctx context.Context, request *MessagesUploadMediaRequest) (MessageMediaClass, error)

MessagesUploadMedia invokes method messages.uploadMedia#519bc2b1 returning error if any.

func (*Client) PaymentsClearSavedInfo ¶

func (c *Client) PaymentsClearSavedInfo(ctx context.Context, request *PaymentsClearSavedInfoRequest) (BoolClass, error)

PaymentsClearSavedInfo invokes method payments.clearSavedInfo#d83d70c1 returning error if any.

func (*Client) PaymentsGetBankCardData ¶

func (c *Client) PaymentsGetBankCardData(ctx context.Context, request *PaymentsGetBankCardDataRequest) (*PaymentsBankCardData, error)

PaymentsGetBankCardData invokes method payments.getBankCardData#2e79d779 returning error if any.

func (*Client) PaymentsGetPaymentForm ¶

func (c *Client) PaymentsGetPaymentForm(ctx context.Context, request *PaymentsGetPaymentFormRequest) (*PaymentsPaymentForm, error)

PaymentsGetPaymentForm invokes method payments.getPaymentForm#99f09745 returning error if any.

func (*Client) PaymentsGetPaymentReceipt ¶

func (c *Client) PaymentsGetPaymentReceipt(ctx context.Context, request *PaymentsGetPaymentReceiptRequest) (*PaymentsPaymentReceipt, error)

PaymentsGetPaymentReceipt invokes method payments.getPaymentReceipt#a092a980 returning error if any.

func (*Client) PaymentsGetSavedInfo ¶

func (c *Client) PaymentsGetSavedInfo(ctx context.Context, request *PaymentsGetSavedInfoRequest) (*PaymentsSavedInfo, error)

PaymentsGetSavedInfo invokes method payments.getSavedInfo#227d824b returning error if any.

func (*Client) PaymentsSendPaymentForm ¶

func (c *Client) PaymentsSendPaymentForm(ctx context.Context, request *PaymentsSendPaymentFormRequest) (PaymentsPaymentResultClass, error)

PaymentsSendPaymentForm invokes method payments.sendPaymentForm#2b8879b3 returning error if any.

func (*Client) PaymentsValidateRequestedInfo ¶

func (c *Client) PaymentsValidateRequestedInfo(ctx context.Context, request *PaymentsValidateRequestedInfoRequest) (*PaymentsValidatedRequestedInfo, error)

PaymentsValidateRequestedInfo invokes method payments.validateRequestedInfo#770a8e74 returning error if any.

func (*Client) PhoneAcceptCall ¶

func (c *Client) PhoneAcceptCall(ctx context.Context, request *PhoneAcceptCallRequest) (*PhonePhoneCall, error)

PhoneAcceptCall invokes method phone.acceptCall#3bd2b4a0 returning error if any.

func (*Client) PhoneConfirmCall ¶

func (c *Client) PhoneConfirmCall(ctx context.Context, request *PhoneConfirmCallRequest) (*PhonePhoneCall, error)

PhoneConfirmCall invokes method phone.confirmCall#2efe1722 returning error if any.

func (*Client) PhoneDiscardCall ¶

func (c *Client) PhoneDiscardCall(ctx context.Context, request *PhoneDiscardCallRequest) (UpdatesClass, error)

PhoneDiscardCall invokes method phone.discardCall#b2cbc1c0 returning error if any.

func (*Client) PhoneGetCallConfig ¶

func (c *Client) PhoneGetCallConfig(ctx context.Context, request *PhoneGetCallConfigRequest) (*DataJSON, error)

PhoneGetCallConfig invokes method phone.getCallConfig#55451fa9 returning error if any.

func (*Client) PhoneReceivedCall ¶

func (c *Client) PhoneReceivedCall(ctx context.Context, request *PhoneReceivedCallRequest) (BoolClass, error)

PhoneReceivedCall invokes method phone.receivedCall#17d54f61 returning error if any.

func (*Client) PhoneRequestCall ¶

func (c *Client) PhoneRequestCall(ctx context.Context, request *PhoneRequestCallRequest) (*PhonePhoneCall, error)

PhoneRequestCall invokes method phone.requestCall#42ff96ed returning error if any.

func (*Client) PhoneSaveCallDebug ¶

func (c *Client) PhoneSaveCallDebug(ctx context.Context, request *PhoneSaveCallDebugRequest) (BoolClass, error)

PhoneSaveCallDebug invokes method phone.saveCallDebug#277add7e returning error if any.

func (*Client) PhoneSendSignalingData ¶

func (c *Client) PhoneSendSignalingData(ctx context.Context, request *PhoneSendSignalingDataRequest) (BoolClass, error)

PhoneSendSignalingData invokes method phone.sendSignalingData#ff7a9383 returning error if any.

func (*Client) PhoneSetCallRating ¶

func (c *Client) PhoneSetCallRating(ctx context.Context, request *PhoneSetCallRatingRequest) (UpdatesClass, error)

PhoneSetCallRating invokes method phone.setCallRating#59ead627 returning error if any.

func (*Client) PhotosGetUserPhotos ¶

func (c *Client) PhotosGetUserPhotos(ctx context.Context, request *PhotosGetUserPhotosRequest) (PhotosPhotosClass, error)

PhotosGetUserPhotos invokes method photos.getUserPhotos#91cd32a8 returning error if any.

func (*Client) PhotosUpdateProfilePhoto ¶

func (c *Client) PhotosUpdateProfilePhoto(ctx context.Context, request *PhotosUpdateProfilePhotoRequest) (*PhotosPhoto, error)

PhotosUpdateProfilePhoto invokes method photos.updateProfilePhoto#72d4742c returning error if any.

func (*Client) PhotosUploadProfilePhoto ¶

func (c *Client) PhotosUploadProfilePhoto(ctx context.Context, request *PhotosUploadProfilePhotoRequest) (*PhotosPhoto, error)

PhotosUploadProfilePhoto invokes method photos.uploadProfilePhoto#89f30f69 returning error if any.

func (*Client) StatsGetBroadcastStats ¶

func (c *Client) StatsGetBroadcastStats(ctx context.Context, request *StatsGetBroadcastStatsRequest) (*StatsBroadcastStats, error)

StatsGetBroadcastStats invokes method stats.getBroadcastStats#ab42441a returning error if any.

func (*Client) StatsGetMegagroupStats ¶

func (c *Client) StatsGetMegagroupStats(ctx context.Context, request *StatsGetMegagroupStatsRequest) (*StatsMegagroupStats, error)

StatsGetMegagroupStats invokes method stats.getMegagroupStats#dcdf8607 returning error if any.

func (*Client) StatsGetMessagePublicForwards ¶

func (c *Client) StatsGetMessagePublicForwards(ctx context.Context, request *StatsGetMessagePublicForwardsRequest) (MessagesMessagesClass, error)

StatsGetMessagePublicForwards invokes method stats.getMessagePublicForwards#5630281b returning error if any.

func (*Client) StatsGetMessageStats ¶

func (c *Client) StatsGetMessageStats(ctx context.Context, request *StatsGetMessageStatsRequest) (*StatsMessageStats, error)

StatsGetMessageStats invokes method stats.getMessageStats#b6e0a3f5 returning error if any.

func (*Client) StatsLoadAsyncGraph ¶

func (c *Client) StatsLoadAsyncGraph(ctx context.Context, request *StatsLoadAsyncGraphRequest) (StatsGraphClass, error)

StatsLoadAsyncGraph invokes method stats.loadAsyncGraph#621d5fa0 returning error if any.

func (*Client) StickersAddStickerToSet ¶

func (c *Client) StickersAddStickerToSet(ctx context.Context, request *StickersAddStickerToSetRequest) (*MessagesStickerSet, error)

StickersAddStickerToSet invokes method stickers.addStickerToSet#8653febe returning error if any.

func (*Client) StickersChangeStickerPosition ¶

func (c *Client) StickersChangeStickerPosition(ctx context.Context, request *StickersChangeStickerPositionRequest) (*MessagesStickerSet, error)

StickersChangeStickerPosition invokes method stickers.changeStickerPosition#ffb6d4ca returning error if any.

func (*Client) StickersCreateStickerSet ¶

func (c *Client) StickersCreateStickerSet(ctx context.Context, request *StickersCreateStickerSetRequest) (*MessagesStickerSet, error)

StickersCreateStickerSet invokes method stickers.createStickerSet#f1036780 returning error if any.

func (*Client) StickersRemoveStickerFromSet ¶

func (c *Client) StickersRemoveStickerFromSet(ctx context.Context, request *StickersRemoveStickerFromSetRequest) (*MessagesStickerSet, error)

StickersRemoveStickerFromSet invokes method stickers.removeStickerFromSet#f7760f51 returning error if any.

func (*Client) StickersSetStickerSetThumb ¶

func (c *Client) StickersSetStickerSetThumb(ctx context.Context, request *StickersSetStickerSetThumbRequest) (*MessagesStickerSet, error)

StickersSetStickerSetThumb invokes method stickers.setStickerSetThumb#9a364e30 returning error if any.

func (*Client) UpdatesGetChannelDifference ¶

func (c *Client) UpdatesGetChannelDifference(ctx context.Context, request *UpdatesGetChannelDifferenceRequest) (UpdatesChannelDifferenceClass, error)

UpdatesGetChannelDifference invokes method updates.getChannelDifference#3173d78 returning error if any.

func (*Client) UpdatesGetDifference ¶

func (c *Client) UpdatesGetDifference(ctx context.Context, request *UpdatesGetDifferenceRequest) (UpdatesDifferenceClass, error)

UpdatesGetDifference invokes method updates.getDifference#25939651 returning error if any.

func (*Client) UpdatesGetState ¶

func (c *Client) UpdatesGetState(ctx context.Context, request *UpdatesGetStateRequest) (*UpdatesState, error)

UpdatesGetState invokes method updates.getState#edd4882a returning error if any.

func (*Client) UploadGetCdnFile ¶

func (c *Client) UploadGetCdnFile(ctx context.Context, request *UploadGetCdnFileRequest) (UploadCdnFileClass, error)

UploadGetCdnFile invokes method upload.getCdnFile#2000bcc3 returning error if any.

func (*Client) UploadGetFile ¶

func (c *Client) UploadGetFile(ctx context.Context, request *UploadGetFileRequest) (UploadFileClass, error)

UploadGetFile invokes method upload.getFile#b15a9afc returning error if any.

func (*Client) UploadGetWebFile ¶

func (c *Client) UploadGetWebFile(ctx context.Context, request *UploadGetWebFileRequest) (*UploadWebFile, error)

UploadGetWebFile invokes method upload.getWebFile#24e6818d returning error if any.

func (*Client) UploadSaveBigFilePart ¶

func (c *Client) UploadSaveBigFilePart(ctx context.Context, request *UploadSaveBigFilePartRequest) (BoolClass, error)

UploadSaveBigFilePart invokes method upload.saveBigFilePart#de7b673d returning error if any.

func (*Client) UploadSaveFilePart ¶

func (c *Client) UploadSaveFilePart(ctx context.Context, request *UploadSaveFilePartRequest) (BoolClass, error)

UploadSaveFilePart invokes method upload.saveFilePart#b304a621 returning error if any.

func (*Client) UsersGetFullUser ¶

func (c *Client) UsersGetFullUser(ctx context.Context, request *UsersGetFullUserRequest) (*UserFull, error)

UsersGetFullUser invokes method users.getFullUser#ca30a5b1 returning error if any.

func (*Client) UsersSetSecureValueErrors ¶

func (c *Client) UsersSetSecureValueErrors(ctx context.Context, request *UsersSetSecureValueErrorsRequest) (BoolClass, error)

UsersSetSecureValueErrors invokes method users.setSecureValueErrors#90c894b5 returning error if any.

type CodeSettings ¶

type CodeSettings struct {
	// Flags field of CodeSettings.
	Flags bin.Fields
	// AllowFlashcall field of CodeSettings.
	AllowFlashcall bool
	// CurrentNumber field of CodeSettings.
	CurrentNumber bool
	// AllowAppHash field of CodeSettings.
	AllowAppHash bool
}

CodeSettings represents TL type `codeSettings#debebe83`.

func (*CodeSettings) Decode ¶

func (c *CodeSettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*CodeSettings) Encode ¶

func (c *CodeSettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*CodeSettings) SetAllowAppHash ¶

func (c *CodeSettings) SetAllowAppHash(value bool)

SetAllowAppHash sets value of AllowAppHash conditional field.

func (*CodeSettings) SetAllowFlashcall ¶

func (c *CodeSettings) SetAllowFlashcall(value bool)

SetAllowFlashcall sets value of AllowFlashcall conditional field.

func (*CodeSettings) SetCurrentNumber ¶

func (c *CodeSettings) SetCurrentNumber(value bool)

SetCurrentNumber sets value of CurrentNumber conditional field.

type Config ¶

type Config struct {
	// Flags field of Config.
	Flags bin.Fields
	// PhonecallsEnabled field of Config.
	PhonecallsEnabled bool
	// DefaultP2PContacts field of Config.
	DefaultP2PContacts bool
	// PreloadFeaturedStickers field of Config.
	PreloadFeaturedStickers bool
	// IgnorePhoneEntities field of Config.
	IgnorePhoneEntities bool
	// RevokePmInbox field of Config.
	RevokePmInbox bool
	// BlockedMode field of Config.
	BlockedMode bool
	// PFSEnabled field of Config.
	PFSEnabled bool
	// Date field of Config.
	Date int
	// Expires field of Config.
	Expires int
	// TestMode field of Config.
	TestMode bool
	// ThisDC field of Config.
	ThisDC int
	// DCOptions field of Config.
	DCOptions []DcOption
	// DCTxtDomainName field of Config.
	DCTxtDomainName string
	// ChatSizeMax field of Config.
	ChatSizeMax int
	// MegagroupSizeMax field of Config.
	MegagroupSizeMax int
	// ForwardedCountMax field of Config.
	ForwardedCountMax int
	// OnlineUpdatePeriodMs field of Config.
	OnlineUpdatePeriodMs int
	// OfflineBlurTimeoutMs field of Config.
	OfflineBlurTimeoutMs int
	// OfflineIdleTimeoutMs field of Config.
	OfflineIdleTimeoutMs int
	// OnlineCloudTimeoutMs field of Config.
	OnlineCloudTimeoutMs int
	// NotifyCloudDelayMs field of Config.
	NotifyCloudDelayMs int
	// NotifyDefaultDelayMs field of Config.
	NotifyDefaultDelayMs int
	// PushChatPeriodMs field of Config.
	PushChatPeriodMs int
	// PushChatLimit field of Config.
	PushChatLimit int
	// SavedGifsLimit field of Config.
	SavedGifsLimit int
	// EditTimeLimit field of Config.
	EditTimeLimit int
	// RevokeTimeLimit field of Config.
	RevokeTimeLimit int
	// RevokePmTimeLimit field of Config.
	RevokePmTimeLimit int
	// RatingEDecay field of Config.
	RatingEDecay int
	// StickersRecentLimit field of Config.
	StickersRecentLimit int
	// StickersFavedLimit field of Config.
	StickersFavedLimit int
	// ChannelsReadMediaPeriod field of Config.
	ChannelsReadMediaPeriod int
	// TmpSessions field of Config.
	//
	// Use SetTmpSessions and GetTmpSessions helpers.
	TmpSessions int
	// PinnedDialogsCountMax field of Config.
	PinnedDialogsCountMax int
	// PinnedInfolderCountMax field of Config.
	PinnedInfolderCountMax int
	// CallReceiveTimeoutMs field of Config.
	CallReceiveTimeoutMs int
	// CallRingTimeoutMs field of Config.
	CallRingTimeoutMs int
	// CallConnectTimeoutMs field of Config.
	CallConnectTimeoutMs int
	// CallPacketTimeoutMs field of Config.
	CallPacketTimeoutMs int
	// MeURLPrefix field of Config.
	MeURLPrefix string
	// AutoupdateURLPrefix field of Config.
	//
	// Use SetAutoupdateURLPrefix and GetAutoupdateURLPrefix helpers.
	AutoupdateURLPrefix string
	// GifSearchUsername field of Config.
	//
	// Use SetGifSearchUsername and GetGifSearchUsername helpers.
	GifSearchUsername string
	// VenueSearchUsername field of Config.
	//
	// Use SetVenueSearchUsername and GetVenueSearchUsername helpers.
	VenueSearchUsername string
	// ImgSearchUsername field of Config.
	//
	// Use SetImgSearchUsername and GetImgSearchUsername helpers.
	ImgSearchUsername string
	// StaticMapsProvider field of Config.
	//
	// Use SetStaticMapsProvider and GetStaticMapsProvider helpers.
	StaticMapsProvider string
	// CaptionLengthMax field of Config.
	CaptionLengthMax int
	// MessageLengthMax field of Config.
	MessageLengthMax int
	// WebfileDCID field of Config.
	WebfileDCID int
	// SuggestedLangCode field of Config.
	//
	// Use SetSuggestedLangCode and GetSuggestedLangCode helpers.
	SuggestedLangCode string
	// LangPackVersion field of Config.
	//
	// Use SetLangPackVersion and GetLangPackVersion helpers.
	LangPackVersion int
	// BaseLangPackVersion field of Config.
	//
	// Use SetBaseLangPackVersion and GetBaseLangPackVersion helpers.
	BaseLangPackVersion int
}

Config represents TL type `config#330b4067`.

func (*Config) Decode ¶

func (c *Config) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Config) Encode ¶

func (c *Config) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Config) GetAutoupdateURLPrefix ¶

func (c *Config) GetAutoupdateURLPrefix() (value string, ok bool)

GetAutoupdateURLPrefix returns value of AutoupdateURLPrefix conditional field and boolean which is true if field was set.

func (*Config) GetBaseLangPackVersion ¶

func (c *Config) GetBaseLangPackVersion() (value int, ok bool)

GetBaseLangPackVersion returns value of BaseLangPackVersion conditional field and boolean which is true if field was set.

func (*Config) GetGifSearchUsername ¶

func (c *Config) GetGifSearchUsername() (value string, ok bool)

GetGifSearchUsername returns value of GifSearchUsername conditional field and boolean which is true if field was set.

func (*Config) GetImgSearchUsername ¶

func (c *Config) GetImgSearchUsername() (value string, ok bool)

GetImgSearchUsername returns value of ImgSearchUsername conditional field and boolean which is true if field was set.

func (*Config) GetLangPackVersion ¶

func (c *Config) GetLangPackVersion() (value int, ok bool)

GetLangPackVersion returns value of LangPackVersion conditional field and boolean which is true if field was set.

func (*Config) GetStaticMapsProvider ¶

func (c *Config) GetStaticMapsProvider() (value string, ok bool)

GetStaticMapsProvider returns value of StaticMapsProvider conditional field and boolean which is true if field was set.

func (*Config) GetSuggestedLangCode ¶

func (c *Config) GetSuggestedLangCode() (value string, ok bool)

GetSuggestedLangCode returns value of SuggestedLangCode conditional field and boolean which is true if field was set.

func (*Config) GetTmpSessions ¶

func (c *Config) GetTmpSessions() (value int, ok bool)

GetTmpSessions returns value of TmpSessions conditional field and boolean which is true if field was set.

func (*Config) GetVenueSearchUsername ¶

func (c *Config) GetVenueSearchUsername() (value string, ok bool)

GetVenueSearchUsername returns value of VenueSearchUsername conditional field and boolean which is true if field was set.

func (*Config) SetAutoupdateURLPrefix ¶

func (c *Config) SetAutoupdateURLPrefix(value string)

SetAutoupdateURLPrefix sets value of AutoupdateURLPrefix conditional field.

func (*Config) SetBaseLangPackVersion ¶

func (c *Config) SetBaseLangPackVersion(value int)

SetBaseLangPackVersion sets value of BaseLangPackVersion conditional field.

func (*Config) SetBlockedMode ¶

func (c *Config) SetBlockedMode(value bool)

SetBlockedMode sets value of BlockedMode conditional field.

func (*Config) SetDefaultP2PContacts ¶

func (c *Config) SetDefaultP2PContacts(value bool)

SetDefaultP2PContacts sets value of DefaultP2PContacts conditional field.

func (*Config) SetGifSearchUsername ¶

func (c *Config) SetGifSearchUsername(value string)

SetGifSearchUsername sets value of GifSearchUsername conditional field.

func (*Config) SetIgnorePhoneEntities ¶

func (c *Config) SetIgnorePhoneEntities(value bool)

SetIgnorePhoneEntities sets value of IgnorePhoneEntities conditional field.

func (*Config) SetImgSearchUsername ¶

func (c *Config) SetImgSearchUsername(value string)

SetImgSearchUsername sets value of ImgSearchUsername conditional field.

func (*Config) SetLangPackVersion ¶

func (c *Config) SetLangPackVersion(value int)

SetLangPackVersion sets value of LangPackVersion conditional field.

func (*Config) SetPFSEnabled ¶

func (c *Config) SetPFSEnabled(value bool)

SetPFSEnabled sets value of PFSEnabled conditional field.

func (*Config) SetPhonecallsEnabled ¶

func (c *Config) SetPhonecallsEnabled(value bool)

SetPhonecallsEnabled sets value of PhonecallsEnabled conditional field.

func (*Config) SetPreloadFeaturedStickers ¶

func (c *Config) SetPreloadFeaturedStickers(value bool)

SetPreloadFeaturedStickers sets value of PreloadFeaturedStickers conditional field.

func (*Config) SetRevokePmInbox ¶

func (c *Config) SetRevokePmInbox(value bool)

SetRevokePmInbox sets value of RevokePmInbox conditional field.

func (*Config) SetStaticMapsProvider ¶

func (c *Config) SetStaticMapsProvider(value string)

SetStaticMapsProvider sets value of StaticMapsProvider conditional field.

func (*Config) SetSuggestedLangCode ¶

func (c *Config) SetSuggestedLangCode(value string)

SetSuggestedLangCode sets value of SuggestedLangCode conditional field.

func (*Config) SetTmpSessions ¶

func (c *Config) SetTmpSessions(value int)

SetTmpSessions sets value of TmpSessions conditional field.

func (*Config) SetVenueSearchUsername ¶

func (c *Config) SetVenueSearchUsername(value string)

SetVenueSearchUsername sets value of VenueSearchUsername conditional field.

type Contact ¶

type Contact struct {
	// UserID field of Contact.
	UserID int
	// Mutual field of Contact.
	Mutual bool
}

Contact represents TL type `contact#f911c994`.

func (*Contact) Decode ¶

func (c *Contact) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Contact) Encode ¶

func (c *Contact) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ContactStatus ¶

type ContactStatus struct {
	// UserID field of ContactStatus.
	UserID int
	// Status field of ContactStatus.
	Status UserStatusClass
}

ContactStatus represents TL type `contactStatus#d3680c61`.

func (*ContactStatus) Decode ¶

func (c *ContactStatus) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactStatus) Encode ¶

func (c *ContactStatus) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsAcceptContactRequest ¶

type ContactsAcceptContactRequest struct {
	// ID field of ContactsAcceptContactRequest.
	ID InputUserClass
}

ContactsAcceptContactRequest represents TL type `contacts.acceptContact#f831a20f`.

func (*ContactsAcceptContactRequest) Decode ¶

Decode implements bin.Decoder.

func (*ContactsAcceptContactRequest) Encode ¶

Encode implements bin.Encoder.

type ContactsAddContactRequest ¶

type ContactsAddContactRequest struct {
	// Flags field of ContactsAddContactRequest.
	Flags bin.Fields
	// AddPhonePrivacyException field of ContactsAddContactRequest.
	AddPhonePrivacyException bool
	// ID field of ContactsAddContactRequest.
	ID InputUserClass
	// FirstName field of ContactsAddContactRequest.
	FirstName string
	// LastName field of ContactsAddContactRequest.
	LastName string
	// Phone field of ContactsAddContactRequest.
	Phone string
}

ContactsAddContactRequest represents TL type `contacts.addContact#e8f463d0`.

func (*ContactsAddContactRequest) Decode ¶

func (a *ContactsAddContactRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsAddContactRequest) Encode ¶

func (a *ContactsAddContactRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ContactsAddContactRequest) SetAddPhonePrivacyException ¶

func (a *ContactsAddContactRequest) SetAddPhonePrivacyException(value bool)

SetAddPhonePrivacyException sets value of AddPhonePrivacyException conditional field.

type ContactsBlockFromRepliesRequest ¶

type ContactsBlockFromRepliesRequest struct {
	// Flags field of ContactsBlockFromRepliesRequest.
	Flags bin.Fields
	// DeleteMessage field of ContactsBlockFromRepliesRequest.
	DeleteMessage bool
	// DeleteHistory field of ContactsBlockFromRepliesRequest.
	DeleteHistory bool
	// ReportSpam field of ContactsBlockFromRepliesRequest.
	ReportSpam bool
	// MsgID field of ContactsBlockFromRepliesRequest.
	MsgID int
}

ContactsBlockFromRepliesRequest represents TL type `contacts.blockFromReplies#29a8962c`.

func (*ContactsBlockFromRepliesRequest) Decode ¶

Decode implements bin.Decoder.

func (*ContactsBlockFromRepliesRequest) Encode ¶

Encode implements bin.Encoder.

func (*ContactsBlockFromRepliesRequest) SetDeleteHistory ¶

func (b *ContactsBlockFromRepliesRequest) SetDeleteHistory(value bool)

SetDeleteHistory sets value of DeleteHistory conditional field.

func (*ContactsBlockFromRepliesRequest) SetDeleteMessage ¶

func (b *ContactsBlockFromRepliesRequest) SetDeleteMessage(value bool)

SetDeleteMessage sets value of DeleteMessage conditional field.

func (*ContactsBlockFromRepliesRequest) SetReportSpam ¶

func (b *ContactsBlockFromRepliesRequest) SetReportSpam(value bool)

SetReportSpam sets value of ReportSpam conditional field.

type ContactsBlockRequest ¶

type ContactsBlockRequest struct {
	// ID field of ContactsBlockRequest.
	ID InputPeerClass
}

ContactsBlockRequest represents TL type `contacts.block#68cc1411`.

func (*ContactsBlockRequest) Decode ¶

func (b *ContactsBlockRequest) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsBlockRequest) Encode ¶

func (b *ContactsBlockRequest) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsBlocked ¶

type ContactsBlocked struct {
	// Blocked field of ContactsBlocked.
	Blocked []PeerBlocked
	// Chats field of ContactsBlocked.
	Chats []ChatClass
	// Users field of ContactsBlocked.
	Users []UserClass
}

ContactsBlocked represents TL type `contacts.blocked#ade1591`.

func (*ContactsBlocked) Decode ¶

func (b *ContactsBlocked) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsBlocked) Encode ¶

func (b *ContactsBlocked) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsBlockedBox ¶

type ContactsBlockedBox struct {
	Blocked ContactsBlockedClass
}

ContactsBlocked boxes the ContactsBlockedClass providing a helper.

func (*ContactsBlockedBox) Decode ¶

func (b *ContactsBlockedBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ContactsBlockedBox.

func (*ContactsBlockedBox) Encode ¶

func (b *ContactsBlockedBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ContactsBlockedBox.

type ContactsBlockedClass ¶

type ContactsBlockedClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ContactsBlockedClass represents contacts.Blocked generic type.

Example:

g, err := DecodeContactsBlocked(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ContactsBlocked: // contacts.blocked#ade1591
case *ContactsBlockedSlice: // contacts.blockedSlice#e1664194
default: panic(v)
}

func DecodeContactsBlocked ¶

func DecodeContactsBlocked(buf *bin.Buffer) (ContactsBlockedClass, error)

DecodeContactsBlocked implements binary de-serialization for ContactsBlockedClass.

type ContactsBlockedSlice ¶

type ContactsBlockedSlice struct {
	// Count field of ContactsBlockedSlice.
	Count int
	// Blocked field of ContactsBlockedSlice.
	Blocked []PeerBlocked
	// Chats field of ContactsBlockedSlice.
	Chats []ChatClass
	// Users field of ContactsBlockedSlice.
	Users []UserClass
}

ContactsBlockedSlice represents TL type `contacts.blockedSlice#e1664194`.

func (*ContactsBlockedSlice) Decode ¶

func (b *ContactsBlockedSlice) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsBlockedSlice) Encode ¶

func (b *ContactsBlockedSlice) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsContacts ¶

type ContactsContacts struct {
	// Contacts field of ContactsContacts.
	Contacts []Contact
	// SavedCount field of ContactsContacts.
	SavedCount int
	// Users field of ContactsContacts.
	Users []UserClass
}

ContactsContacts represents TL type `contacts.contacts#eae87e42`.

func (*ContactsContacts) Decode ¶

func (c *ContactsContacts) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsContacts) Encode ¶

func (c *ContactsContacts) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsContactsBox ¶

type ContactsContactsBox struct {
	Contacts ContactsContactsClass
}

ContactsContacts boxes the ContactsContactsClass providing a helper.

func (*ContactsContactsBox) Decode ¶

func (b *ContactsContactsBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ContactsContactsBox.

func (*ContactsContactsBox) Encode ¶

func (b *ContactsContactsBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ContactsContactsBox.

type ContactsContactsClass ¶

type ContactsContactsClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ContactsContactsClass represents contacts.Contacts generic type.

Example:

g, err := DecodeContactsContacts(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ContactsContactsNotModified: // contacts.contactsNotModified#b74ba9d2
case *ContactsContacts: // contacts.contacts#eae87e42
default: panic(v)
}

func DecodeContactsContacts ¶

func DecodeContactsContacts(buf *bin.Buffer) (ContactsContactsClass, error)

DecodeContactsContacts implements binary de-serialization for ContactsContactsClass.

type ContactsContactsNotModified ¶

type ContactsContactsNotModified struct {
}

ContactsContactsNotModified represents TL type `contacts.contactsNotModified#b74ba9d2`.

func (*ContactsContactsNotModified) Decode ¶

Decode implements bin.Decoder.

func (*ContactsContactsNotModified) Encode ¶

Encode implements bin.Encoder.

type ContactsDeleteByPhonesRequest ¶

type ContactsDeleteByPhonesRequest struct {
	// Phones field of ContactsDeleteByPhonesRequest.
	Phones []string
}

ContactsDeleteByPhonesRequest represents TL type `contacts.deleteByPhones#1013fd9e`.

func (*ContactsDeleteByPhonesRequest) Decode ¶

Decode implements bin.Decoder.

func (*ContactsDeleteByPhonesRequest) Encode ¶

Encode implements bin.Encoder.

type ContactsDeleteContactsRequest ¶

type ContactsDeleteContactsRequest struct {
	// ID field of ContactsDeleteContactsRequest.
	ID []InputUserClass
}

ContactsDeleteContactsRequest represents TL type `contacts.deleteContacts#96a0e00`.

func (*ContactsDeleteContactsRequest) Decode ¶

Decode implements bin.Decoder.

func (*ContactsDeleteContactsRequest) Encode ¶

Encode implements bin.Encoder.

type ContactsFound ¶

type ContactsFound struct {
	// MyResults field of ContactsFound.
	MyResults []PeerClass
	// Results field of ContactsFound.
	Results []PeerClass
	// Chats field of ContactsFound.
	Chats []ChatClass
	// Users field of ContactsFound.
	Users []UserClass
}

ContactsFound represents TL type `contacts.found#b3134d9d`.

func (*ContactsFound) Decode ¶

func (f *ContactsFound) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsFound) Encode ¶

func (f *ContactsFound) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsGetBlockedRequest ¶

type ContactsGetBlockedRequest struct {
	// Offset field of ContactsGetBlockedRequest.
	Offset int
	// Limit field of ContactsGetBlockedRequest.
	Limit int
}

ContactsGetBlockedRequest represents TL type `contacts.getBlocked#f57c350f`.

func (*ContactsGetBlockedRequest) Decode ¶

func (g *ContactsGetBlockedRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsGetBlockedRequest) Encode ¶

func (g *ContactsGetBlockedRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsGetContactIDsRequest ¶

type ContactsGetContactIDsRequest struct {
	// Hash field of ContactsGetContactIDsRequest.
	Hash int
}

ContactsGetContactIDsRequest represents TL type `contacts.getContactIDs#2caa4a42`.

func (*ContactsGetContactIDsRequest) Decode ¶

Decode implements bin.Decoder.

func (*ContactsGetContactIDsRequest) Encode ¶

Encode implements bin.Encoder.

type ContactsGetContactsRequest ¶

type ContactsGetContactsRequest struct {
	// Hash field of ContactsGetContactsRequest.
	Hash int
}

ContactsGetContactsRequest represents TL type `contacts.getContacts#c023849f`.

func (*ContactsGetContactsRequest) Decode ¶

Decode implements bin.Decoder.

func (*ContactsGetContactsRequest) Encode ¶

Encode implements bin.Encoder.

type ContactsGetLocatedRequest ¶

type ContactsGetLocatedRequest struct {
	// Flags field of ContactsGetLocatedRequest.
	Flags bin.Fields
	// Background field of ContactsGetLocatedRequest.
	Background bool
	// GeoPoint field of ContactsGetLocatedRequest.
	GeoPoint InputGeoPointClass
	// SelfExpires field of ContactsGetLocatedRequest.
	//
	// Use SetSelfExpires and GetSelfExpires helpers.
	SelfExpires int
}

ContactsGetLocatedRequest represents TL type `contacts.getLocated#d348bc44`.

func (*ContactsGetLocatedRequest) Decode ¶

func (g *ContactsGetLocatedRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsGetLocatedRequest) Encode ¶

func (g *ContactsGetLocatedRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ContactsGetLocatedRequest) GetSelfExpires ¶

func (g *ContactsGetLocatedRequest) GetSelfExpires() (value int, ok bool)

GetSelfExpires returns value of SelfExpires conditional field and boolean which is true if field was set.

func (*ContactsGetLocatedRequest) SetBackground ¶

func (g *ContactsGetLocatedRequest) SetBackground(value bool)

SetBackground sets value of Background conditional field.

func (*ContactsGetLocatedRequest) SetSelfExpires ¶

func (g *ContactsGetLocatedRequest) SetSelfExpires(value int)

SetSelfExpires sets value of SelfExpires conditional field.

type ContactsGetSavedRequest ¶

type ContactsGetSavedRequest struct {
}

ContactsGetSavedRequest represents TL type `contacts.getSaved#82f1e39f`.

func (*ContactsGetSavedRequest) Decode ¶

func (g *ContactsGetSavedRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsGetSavedRequest) Encode ¶

func (g *ContactsGetSavedRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsGetStatusesRequest ¶

type ContactsGetStatusesRequest struct {
}

ContactsGetStatusesRequest represents TL type `contacts.getStatuses#c4a353ee`.

func (*ContactsGetStatusesRequest) Decode ¶

Decode implements bin.Decoder.

func (*ContactsGetStatusesRequest) Encode ¶

Encode implements bin.Encoder.

type ContactsGetTopPeersRequest ¶

type ContactsGetTopPeersRequest struct {
	// Flags field of ContactsGetTopPeersRequest.
	Flags bin.Fields
	// Correspondents field of ContactsGetTopPeersRequest.
	Correspondents bool
	// BotsPm field of ContactsGetTopPeersRequest.
	BotsPm bool
	// BotsInline field of ContactsGetTopPeersRequest.
	BotsInline bool
	// PhoneCalls field of ContactsGetTopPeersRequest.
	PhoneCalls bool
	// ForwardUsers field of ContactsGetTopPeersRequest.
	ForwardUsers bool
	// ForwardChats field of ContactsGetTopPeersRequest.
	ForwardChats bool
	// Groups field of ContactsGetTopPeersRequest.
	Groups bool
	// Channels field of ContactsGetTopPeersRequest.
	Channels bool
	// Offset field of ContactsGetTopPeersRequest.
	Offset int
	// Limit field of ContactsGetTopPeersRequest.
	Limit int
	// Hash field of ContactsGetTopPeersRequest.
	Hash int
}

ContactsGetTopPeersRequest represents TL type `contacts.getTopPeers#d4982db5`.

func (*ContactsGetTopPeersRequest) Decode ¶

Decode implements bin.Decoder.

func (*ContactsGetTopPeersRequest) Encode ¶

Encode implements bin.Encoder.

func (*ContactsGetTopPeersRequest) SetBotsInline ¶

func (g *ContactsGetTopPeersRequest) SetBotsInline(value bool)

SetBotsInline sets value of BotsInline conditional field.

func (*ContactsGetTopPeersRequest) SetBotsPm ¶

func (g *ContactsGetTopPeersRequest) SetBotsPm(value bool)

SetBotsPm sets value of BotsPm conditional field.

func (*ContactsGetTopPeersRequest) SetChannels ¶

func (g *ContactsGetTopPeersRequest) SetChannels(value bool)

SetChannels sets value of Channels conditional field.

func (*ContactsGetTopPeersRequest) SetCorrespondents ¶

func (g *ContactsGetTopPeersRequest) SetCorrespondents(value bool)

SetCorrespondents sets value of Correspondents conditional field.

func (*ContactsGetTopPeersRequest) SetForwardChats ¶

func (g *ContactsGetTopPeersRequest) SetForwardChats(value bool)

SetForwardChats sets value of ForwardChats conditional field.

func (*ContactsGetTopPeersRequest) SetForwardUsers ¶

func (g *ContactsGetTopPeersRequest) SetForwardUsers(value bool)

SetForwardUsers sets value of ForwardUsers conditional field.

func (*ContactsGetTopPeersRequest) SetGroups ¶

func (g *ContactsGetTopPeersRequest) SetGroups(value bool)

SetGroups sets value of Groups conditional field.

func (*ContactsGetTopPeersRequest) SetPhoneCalls ¶

func (g *ContactsGetTopPeersRequest) SetPhoneCalls(value bool)

SetPhoneCalls sets value of PhoneCalls conditional field.

type ContactsImportContactsRequest ¶

type ContactsImportContactsRequest struct {
	// Contacts field of ContactsImportContactsRequest.
	Contacts []InputPhoneContact
}

ContactsImportContactsRequest represents TL type `contacts.importContacts#2c800be5`.

func (*ContactsImportContactsRequest) Decode ¶

Decode implements bin.Decoder.

func (*ContactsImportContactsRequest) Encode ¶

Encode implements bin.Encoder.

type ContactsImportedContacts ¶

type ContactsImportedContacts struct {
	// Imported field of ContactsImportedContacts.
	Imported []ImportedContact
	// PopularInvites field of ContactsImportedContacts.
	PopularInvites []PopularContact
	// RetryContacts field of ContactsImportedContacts.
	RetryContacts []int64
	// Users field of ContactsImportedContacts.
	Users []UserClass
}

ContactsImportedContacts represents TL type `contacts.importedContacts#77d01c3b`.

func (*ContactsImportedContacts) Decode ¶

func (i *ContactsImportedContacts) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsImportedContacts) Encode ¶

func (i *ContactsImportedContacts) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsResetSavedRequest ¶

type ContactsResetSavedRequest struct {
}

ContactsResetSavedRequest represents TL type `contacts.resetSaved#879537f1`.

func (*ContactsResetSavedRequest) Decode ¶

func (r *ContactsResetSavedRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsResetSavedRequest) Encode ¶

func (r *ContactsResetSavedRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsResetTopPeerRatingRequest ¶

type ContactsResetTopPeerRatingRequest struct {
	// Category field of ContactsResetTopPeerRatingRequest.
	Category TopPeerCategoryClass
	// Peer field of ContactsResetTopPeerRatingRequest.
	Peer InputPeerClass
}

ContactsResetTopPeerRatingRequest represents TL type `contacts.resetTopPeerRating#1ae373ac`.

func (*ContactsResetTopPeerRatingRequest) Decode ¶

Decode implements bin.Decoder.

func (*ContactsResetTopPeerRatingRequest) Encode ¶

Encode implements bin.Encoder.

type ContactsResolveUsernameRequest ¶

type ContactsResolveUsernameRequest struct {
	// Username field of ContactsResolveUsernameRequest.
	Username string
}

ContactsResolveUsernameRequest represents TL type `contacts.resolveUsername#f93ccba3`.

func (*ContactsResolveUsernameRequest) Decode ¶

Decode implements bin.Decoder.

func (*ContactsResolveUsernameRequest) Encode ¶

Encode implements bin.Encoder.

type ContactsResolvedPeer ¶

type ContactsResolvedPeer struct {
	// Peer field of ContactsResolvedPeer.
	Peer PeerClass
	// Chats field of ContactsResolvedPeer.
	Chats []ChatClass
	// Users field of ContactsResolvedPeer.
	Users []UserClass
}

ContactsResolvedPeer represents TL type `contacts.resolvedPeer#7f077ad9`.

func (*ContactsResolvedPeer) Decode ¶

func (r *ContactsResolvedPeer) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsResolvedPeer) Encode ¶

func (r *ContactsResolvedPeer) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsSearchRequest ¶

type ContactsSearchRequest struct {
	// Q field of ContactsSearchRequest.
	Q string
	// Limit field of ContactsSearchRequest.
	Limit int
}

ContactsSearchRequest represents TL type `contacts.search#11f812d8`.

func (*ContactsSearchRequest) Decode ¶

func (s *ContactsSearchRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsSearchRequest) Encode ¶

func (s *ContactsSearchRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsToggleTopPeersRequest ¶

type ContactsToggleTopPeersRequest struct {
	// Enabled field of ContactsToggleTopPeersRequest.
	Enabled bool
}

ContactsToggleTopPeersRequest represents TL type `contacts.toggleTopPeers#8514bdda`.

func (*ContactsToggleTopPeersRequest) Decode ¶

Decode implements bin.Decoder.

func (*ContactsToggleTopPeersRequest) Encode ¶

Encode implements bin.Encoder.

type ContactsTopPeers ¶

type ContactsTopPeers struct {
	// Categories field of ContactsTopPeers.
	Categories []TopPeerCategoryPeers
	// Chats field of ContactsTopPeers.
	Chats []ChatClass
	// Users field of ContactsTopPeers.
	Users []UserClass
}

ContactsTopPeers represents TL type `contacts.topPeers#70b772a8`.

func (*ContactsTopPeers) Decode ¶

func (t *ContactsTopPeers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsTopPeers) Encode ¶

func (t *ContactsTopPeers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsTopPeersBox ¶

type ContactsTopPeersBox struct {
	TopPeers ContactsTopPeersClass
}

ContactsTopPeers boxes the ContactsTopPeersClass providing a helper.

func (*ContactsTopPeersBox) Decode ¶

func (b *ContactsTopPeersBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ContactsTopPeersBox.

func (*ContactsTopPeersBox) Encode ¶

func (b *ContactsTopPeersBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ContactsTopPeersBox.

type ContactsTopPeersClass ¶

type ContactsTopPeersClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ContactsTopPeersClass represents contacts.TopPeers generic type.

Example:

g, err := DecodeContactsTopPeers(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ContactsTopPeersNotModified: // contacts.topPeersNotModified#de266ef5
case *ContactsTopPeers: // contacts.topPeers#70b772a8
case *ContactsTopPeersDisabled: // contacts.topPeersDisabled#b52c939d
default: panic(v)
}

func DecodeContactsTopPeers ¶

func DecodeContactsTopPeers(buf *bin.Buffer) (ContactsTopPeersClass, error)

DecodeContactsTopPeers implements binary de-serialization for ContactsTopPeersClass.

type ContactsTopPeersDisabled ¶

type ContactsTopPeersDisabled struct {
}

ContactsTopPeersDisabled represents TL type `contacts.topPeersDisabled#b52c939d`.

func (*ContactsTopPeersDisabled) Decode ¶

func (t *ContactsTopPeersDisabled) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsTopPeersDisabled) Encode ¶

func (t *ContactsTopPeersDisabled) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ContactsTopPeersNotModified ¶

type ContactsTopPeersNotModified struct {
}

ContactsTopPeersNotModified represents TL type `contacts.topPeersNotModified#de266ef5`.

func (*ContactsTopPeersNotModified) Decode ¶

Decode implements bin.Decoder.

func (*ContactsTopPeersNotModified) Encode ¶

Encode implements bin.Encoder.

type ContactsUnblockRequest ¶

type ContactsUnblockRequest struct {
	// ID field of ContactsUnblockRequest.
	ID InputPeerClass
}

ContactsUnblockRequest represents TL type `contacts.unblock#bea65d50`.

func (*ContactsUnblockRequest) Decode ¶

func (u *ContactsUnblockRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ContactsUnblockRequest) Encode ¶

func (u *ContactsUnblockRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type DataJSON ¶

type DataJSON struct {
	// Data field of DataJSON.
	Data string
}

DataJSON represents TL type `dataJSON#7d748d04`.

func (*DataJSON) Decode ¶

func (d *DataJSON) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DataJSON) Encode ¶

func (d *DataJSON) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type DcOption ¶

type DcOption struct {
	// Flags field of DcOption.
	Flags bin.Fields
	// Ipv6 field of DcOption.
	Ipv6 bool
	// MediaOnly field of DcOption.
	MediaOnly bool
	// TcpoOnly field of DcOption.
	TcpoOnly bool
	// CDN field of DcOption.
	CDN bool
	// Static field of DcOption.
	Static bool
	// ID field of DcOption.
	ID int
	// IPAddress field of DcOption.
	IPAddress string
	// Port field of DcOption.
	Port int
	// Secret field of DcOption.
	//
	// Use SetSecret and GetSecret helpers.
	Secret []byte
}

DcOption represents TL type `dcOption#18b7a10d`.

func (*DcOption) Decode ¶

func (d *DcOption) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DcOption) Encode ¶

func (d *DcOption) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DcOption) GetSecret ¶

func (d *DcOption) GetSecret() (value []byte, ok bool)

GetSecret returns value of Secret conditional field and boolean which is true if field was set.

func (*DcOption) SetCDN ¶

func (d *DcOption) SetCDN(value bool)

SetCDN sets value of CDN conditional field.

func (*DcOption) SetIpv6 ¶

func (d *DcOption) SetIpv6(value bool)

SetIpv6 sets value of Ipv6 conditional field.

func (*DcOption) SetMediaOnly ¶

func (d *DcOption) SetMediaOnly(value bool)

SetMediaOnly sets value of MediaOnly conditional field.

func (*DcOption) SetSecret ¶

func (d *DcOption) SetSecret(value []byte)

SetSecret sets value of Secret conditional field.

func (*DcOption) SetStatic ¶

func (d *DcOption) SetStatic(value bool)

SetStatic sets value of Static conditional field.

func (*DcOption) SetTcpoOnly ¶

func (d *DcOption) SetTcpoOnly(value bool)

SetTcpoOnly sets value of TcpoOnly conditional field.

type Dialog ¶

type Dialog struct {
	// Flags field of Dialog.
	Flags bin.Fields
	// Pinned field of Dialog.
	Pinned bool
	// UnreadMark field of Dialog.
	UnreadMark bool
	// Peer field of Dialog.
	Peer PeerClass
	// TopMessage field of Dialog.
	TopMessage int
	// ReadInboxMaxID field of Dialog.
	ReadInboxMaxID int
	// ReadOutboxMaxID field of Dialog.
	ReadOutboxMaxID int
	// UnreadCount field of Dialog.
	UnreadCount int
	// UnreadMentionsCount field of Dialog.
	UnreadMentionsCount int
	// NotifySettings field of Dialog.
	NotifySettings PeerNotifySettings
	// Pts field of Dialog.
	//
	// Use SetPts and GetPts helpers.
	Pts int
	// Draft field of Dialog.
	//
	// Use SetDraft and GetDraft helpers.
	Draft DraftMessageClass
	// FolderID field of Dialog.
	//
	// Use SetFolderID and GetFolderID helpers.
	FolderID int
}

Dialog represents TL type `dialog#2c171f72`.

func (*Dialog) Decode ¶

func (d *Dialog) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Dialog) Encode ¶

func (d *Dialog) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Dialog) GetDraft ¶

func (d *Dialog) GetDraft() (value DraftMessageClass, ok bool)

GetDraft returns value of Draft conditional field and boolean which is true if field was set.

func (*Dialog) GetFolderID ¶

func (d *Dialog) GetFolderID() (value int, ok bool)

GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.

func (*Dialog) GetPts ¶

func (d *Dialog) GetPts() (value int, ok bool)

GetPts returns value of Pts conditional field and boolean which is true if field was set.

func (*Dialog) SetDraft ¶

func (d *Dialog) SetDraft(value DraftMessageClass)

SetDraft sets value of Draft conditional field.

func (*Dialog) SetFolderID ¶

func (d *Dialog) SetFolderID(value int)

SetFolderID sets value of FolderID conditional field.

func (*Dialog) SetPinned ¶

func (d *Dialog) SetPinned(value bool)

SetPinned sets value of Pinned conditional field.

func (*Dialog) SetPts ¶

func (d *Dialog) SetPts(value int)

SetPts sets value of Pts conditional field.

func (*Dialog) SetUnreadMark ¶

func (d *Dialog) SetUnreadMark(value bool)

SetUnreadMark sets value of UnreadMark conditional field.

type DialogBox ¶

type DialogBox struct {
	Dialog DialogClass
}

Dialog boxes the DialogClass providing a helper.

func (*DialogBox) Decode ¶

func (b *DialogBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for DialogBox.

func (*DialogBox) Encode ¶

func (b *DialogBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for DialogBox.

type DialogClass ¶

type DialogClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

DialogClass represents Dialog generic type.

Example:

g, err := DecodeDialog(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *Dialog: // dialog#2c171f72
case *DialogFolder: // dialogFolder#71bd134c
default: panic(v)
}

func DecodeDialog ¶

func DecodeDialog(buf *bin.Buffer) (DialogClass, error)

DecodeDialog implements binary de-serialization for DialogClass.

type DialogFilter ¶

type DialogFilter struct {
	// Flags field of DialogFilter.
	Flags bin.Fields
	// Contacts field of DialogFilter.
	Contacts bool
	// NonContacts field of DialogFilter.
	NonContacts bool
	// Groups field of DialogFilter.
	Groups bool
	// Broadcasts field of DialogFilter.
	Broadcasts bool
	// Bots field of DialogFilter.
	Bots bool
	// ExcludeMuted field of DialogFilter.
	ExcludeMuted bool
	// ExcludeRead field of DialogFilter.
	ExcludeRead bool
	// ExcludeArchived field of DialogFilter.
	ExcludeArchived bool
	// ID field of DialogFilter.
	ID int
	// Title field of DialogFilter.
	Title string
	// Emoticon field of DialogFilter.
	//
	// Use SetEmoticon and GetEmoticon helpers.
	Emoticon string
	// PinnedPeers field of DialogFilter.
	PinnedPeers []InputPeerClass
	// IncludePeers field of DialogFilter.
	IncludePeers []InputPeerClass
	// ExcludePeers field of DialogFilter.
	ExcludePeers []InputPeerClass
}

DialogFilter represents TL type `dialogFilter#7438f7e8`.

func (*DialogFilter) Decode ¶

func (d *DialogFilter) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DialogFilter) Encode ¶

func (d *DialogFilter) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DialogFilter) GetEmoticon ¶

func (d *DialogFilter) GetEmoticon() (value string, ok bool)

GetEmoticon returns value of Emoticon conditional field and boolean which is true if field was set.

func (*DialogFilter) SetBots ¶

func (d *DialogFilter) SetBots(value bool)

SetBots sets value of Bots conditional field.

func (*DialogFilter) SetBroadcasts ¶

func (d *DialogFilter) SetBroadcasts(value bool)

SetBroadcasts sets value of Broadcasts conditional field.

func (*DialogFilter) SetContacts ¶

func (d *DialogFilter) SetContacts(value bool)

SetContacts sets value of Contacts conditional field.

func (*DialogFilter) SetEmoticon ¶

func (d *DialogFilter) SetEmoticon(value string)

SetEmoticon sets value of Emoticon conditional field.

func (*DialogFilter) SetExcludeArchived ¶

func (d *DialogFilter) SetExcludeArchived(value bool)

SetExcludeArchived sets value of ExcludeArchived conditional field.

func (*DialogFilter) SetExcludeMuted ¶

func (d *DialogFilter) SetExcludeMuted(value bool)

SetExcludeMuted sets value of ExcludeMuted conditional field.

func (*DialogFilter) SetExcludeRead ¶

func (d *DialogFilter) SetExcludeRead(value bool)

SetExcludeRead sets value of ExcludeRead conditional field.

func (*DialogFilter) SetGroups ¶

func (d *DialogFilter) SetGroups(value bool)

SetGroups sets value of Groups conditional field.

func (*DialogFilter) SetNonContacts ¶

func (d *DialogFilter) SetNonContacts(value bool)

SetNonContacts sets value of NonContacts conditional field.

type DialogFilterSuggested ¶

type DialogFilterSuggested struct {
	// Filter field of DialogFilterSuggested.
	Filter DialogFilter
	// Description field of DialogFilterSuggested.
	Description string
}

DialogFilterSuggested represents TL type `dialogFilterSuggested#77744d4a`.

func (*DialogFilterSuggested) Decode ¶

func (d *DialogFilterSuggested) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DialogFilterSuggested) Encode ¶

func (d *DialogFilterSuggested) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type DialogFolder ¶

type DialogFolder struct {
	// Flags field of DialogFolder.
	Flags bin.Fields
	// Pinned field of DialogFolder.
	Pinned bool
	// Folder field of DialogFolder.
	Folder Folder
	// Peer field of DialogFolder.
	Peer PeerClass
	// TopMessage field of DialogFolder.
	TopMessage int
	// UnreadMutedPeersCount field of DialogFolder.
	UnreadMutedPeersCount int
	// UnreadUnmutedPeersCount field of DialogFolder.
	UnreadUnmutedPeersCount int
	// UnreadMutedMessagesCount field of DialogFolder.
	UnreadMutedMessagesCount int
	// UnreadUnmutedMessagesCount field of DialogFolder.
	UnreadUnmutedMessagesCount int
}

DialogFolder represents TL type `dialogFolder#71bd134c`.

func (*DialogFolder) Decode ¶

func (d *DialogFolder) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DialogFolder) Encode ¶

func (d *DialogFolder) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DialogFolder) SetPinned ¶

func (d *DialogFolder) SetPinned(value bool)

SetPinned sets value of Pinned conditional field.

type DialogPeer ¶

type DialogPeer struct {
	// Peer field of DialogPeer.
	Peer PeerClass
}

DialogPeer represents TL type `dialogPeer#e56dbf05`.

func (*DialogPeer) Decode ¶

func (d *DialogPeer) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DialogPeer) Encode ¶

func (d *DialogPeer) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type DialogPeerBox ¶

type DialogPeerBox struct {
	DialogPeer DialogPeerClass
}

DialogPeer boxes the DialogPeerClass providing a helper.

func (*DialogPeerBox) Decode ¶

func (b *DialogPeerBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for DialogPeerBox.

func (*DialogPeerBox) Encode ¶

func (b *DialogPeerBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for DialogPeerBox.

type DialogPeerClass ¶

type DialogPeerClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

DialogPeerClass represents DialogPeer generic type.

Example:

g, err := DecodeDialogPeer(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *DialogPeer: // dialogPeer#e56dbf05
case *DialogPeerFolder: // dialogPeerFolder#514519e2
default: panic(v)
}

func DecodeDialogPeer ¶

func DecodeDialogPeer(buf *bin.Buffer) (DialogPeerClass, error)

DecodeDialogPeer implements binary de-serialization for DialogPeerClass.

type DialogPeerFolder ¶

type DialogPeerFolder struct {
	// FolderID field of DialogPeerFolder.
	FolderID int
}

DialogPeerFolder represents TL type `dialogPeerFolder#514519e2`.

func (*DialogPeerFolder) Decode ¶

func (d *DialogPeerFolder) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DialogPeerFolder) Encode ¶

func (d *DialogPeerFolder) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type Document ¶

type Document struct {
	// Flags field of Document.
	Flags bin.Fields
	// ID field of Document.
	ID int64
	// AccessHash field of Document.
	AccessHash int64
	// FileReference field of Document.
	FileReference []byte
	// Date field of Document.
	Date int
	// MimeType field of Document.
	MimeType string
	// Size field of Document.
	Size int
	// Thumbs field of Document.
	//
	// Use SetThumbs and GetThumbs helpers.
	Thumbs []PhotoSizeClass
	// VideoThumbs field of Document.
	//
	// Use SetVideoThumbs and GetVideoThumbs helpers.
	VideoThumbs []VideoSize
	// DCID field of Document.
	DCID int
	// Attributes field of Document.
	Attributes []DocumentAttributeClass
}

Document represents TL type `document#1e87342b`.

func (*Document) Decode ¶

func (d *Document) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Document) Encode ¶

func (d *Document) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Document) GetThumbs ¶

func (d *Document) GetThumbs() (value []PhotoSizeClass, ok bool)

GetThumbs returns value of Thumbs conditional field and boolean which is true if field was set.

func (*Document) GetVideoThumbs ¶

func (d *Document) GetVideoThumbs() (value []VideoSize, ok bool)

GetVideoThumbs returns value of VideoThumbs conditional field and boolean which is true if field was set.

func (*Document) SetThumbs ¶

func (d *Document) SetThumbs(value []PhotoSizeClass)

SetThumbs sets value of Thumbs conditional field.

func (*Document) SetVideoThumbs ¶

func (d *Document) SetVideoThumbs(value []VideoSize)

SetVideoThumbs sets value of VideoThumbs conditional field.

type DocumentAttributeAnimated ¶

type DocumentAttributeAnimated struct {
}

DocumentAttributeAnimated represents TL type `documentAttributeAnimated#11b58939`.

func (*DocumentAttributeAnimated) Decode ¶

func (d *DocumentAttributeAnimated) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DocumentAttributeAnimated) Encode ¶

func (d *DocumentAttributeAnimated) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type DocumentAttributeAudio ¶

type DocumentAttributeAudio struct {
	// Flags field of DocumentAttributeAudio.
	Flags bin.Fields
	// Voice field of DocumentAttributeAudio.
	Voice bool
	// Duration field of DocumentAttributeAudio.
	Duration int
	// Title field of DocumentAttributeAudio.
	//
	// Use SetTitle and GetTitle helpers.
	Title string
	// Performer field of DocumentAttributeAudio.
	//
	// Use SetPerformer and GetPerformer helpers.
	Performer string
	// Waveform field of DocumentAttributeAudio.
	//
	// Use SetWaveform and GetWaveform helpers.
	Waveform []byte
}

DocumentAttributeAudio represents TL type `documentAttributeAudio#9852f9c6`.

func (*DocumentAttributeAudio) Decode ¶

func (d *DocumentAttributeAudio) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DocumentAttributeAudio) Encode ¶

func (d *DocumentAttributeAudio) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DocumentAttributeAudio) GetPerformer ¶

func (d *DocumentAttributeAudio) GetPerformer() (value string, ok bool)

GetPerformer returns value of Performer conditional field and boolean which is true if field was set.

func (*DocumentAttributeAudio) GetTitle ¶

func (d *DocumentAttributeAudio) GetTitle() (value string, ok bool)

GetTitle returns value of Title conditional field and boolean which is true if field was set.

func (*DocumentAttributeAudio) GetWaveform ¶

func (d *DocumentAttributeAudio) GetWaveform() (value []byte, ok bool)

GetWaveform returns value of Waveform conditional field and boolean which is true if field was set.

func (*DocumentAttributeAudio) SetPerformer ¶

func (d *DocumentAttributeAudio) SetPerformer(value string)

SetPerformer sets value of Performer conditional field.

func (*DocumentAttributeAudio) SetTitle ¶

func (d *DocumentAttributeAudio) SetTitle(value string)

SetTitle sets value of Title conditional field.

func (*DocumentAttributeAudio) SetVoice ¶

func (d *DocumentAttributeAudio) SetVoice(value bool)

SetVoice sets value of Voice conditional field.

func (*DocumentAttributeAudio) SetWaveform ¶

func (d *DocumentAttributeAudio) SetWaveform(value []byte)

SetWaveform sets value of Waveform conditional field.

type DocumentAttributeBox ¶

type DocumentAttributeBox struct {
	DocumentAttribute DocumentAttributeClass
}

DocumentAttribute boxes the DocumentAttributeClass providing a helper.

func (*DocumentAttributeBox) Decode ¶

func (b *DocumentAttributeBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for DocumentAttributeBox.

func (*DocumentAttributeBox) Encode ¶

func (b *DocumentAttributeBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for DocumentAttributeBox.

type DocumentAttributeClass ¶

type DocumentAttributeClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

DocumentAttributeClass represents DocumentAttribute generic type.

Example:

g, err := DecodeDocumentAttribute(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *DocumentAttributeImageSize: // documentAttributeImageSize#6c37c15c
case *DocumentAttributeAnimated: // documentAttributeAnimated#11b58939
case *DocumentAttributeSticker: // documentAttributeSticker#6319d612
case *DocumentAttributeVideo: // documentAttributeVideo#ef02ce6
case *DocumentAttributeAudio: // documentAttributeAudio#9852f9c6
case *DocumentAttributeFilename: // documentAttributeFilename#15590068
case *DocumentAttributeHasStickers: // documentAttributeHasStickers#9801d2f7
default: panic(v)
}

func DecodeDocumentAttribute ¶

func DecodeDocumentAttribute(buf *bin.Buffer) (DocumentAttributeClass, error)

DecodeDocumentAttribute implements binary de-serialization for DocumentAttributeClass.

type DocumentAttributeFilename ¶

type DocumentAttributeFilename struct {
	// FileName field of DocumentAttributeFilename.
	FileName string
}

DocumentAttributeFilename represents TL type `documentAttributeFilename#15590068`.

func (*DocumentAttributeFilename) Decode ¶

func (d *DocumentAttributeFilename) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DocumentAttributeFilename) Encode ¶

func (d *DocumentAttributeFilename) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type DocumentAttributeHasStickers ¶

type DocumentAttributeHasStickers struct {
}

DocumentAttributeHasStickers represents TL type `documentAttributeHasStickers#9801d2f7`.

func (*DocumentAttributeHasStickers) Decode ¶

Decode implements bin.Decoder.

func (*DocumentAttributeHasStickers) Encode ¶

Encode implements bin.Encoder.

type DocumentAttributeImageSize ¶

type DocumentAttributeImageSize struct {
	// W field of DocumentAttributeImageSize.
	W int
	// H field of DocumentAttributeImageSize.
	H int
}

DocumentAttributeImageSize represents TL type `documentAttributeImageSize#6c37c15c`.

func (*DocumentAttributeImageSize) Decode ¶

Decode implements bin.Decoder.

func (*DocumentAttributeImageSize) Encode ¶

Encode implements bin.Encoder.

type DocumentAttributeSticker ¶

type DocumentAttributeSticker struct {
	// Flags field of DocumentAttributeSticker.
	Flags bin.Fields
	// Mask field of DocumentAttributeSticker.
	Mask bool
	// Alt field of DocumentAttributeSticker.
	Alt string
	// Stickerset field of DocumentAttributeSticker.
	Stickerset InputStickerSetClass
	// MaskCoords field of DocumentAttributeSticker.
	//
	// Use SetMaskCoords and GetMaskCoords helpers.
	MaskCoords MaskCoords
}

DocumentAttributeSticker represents TL type `documentAttributeSticker#6319d612`.

func (*DocumentAttributeSticker) Decode ¶

func (d *DocumentAttributeSticker) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DocumentAttributeSticker) Encode ¶

func (d *DocumentAttributeSticker) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DocumentAttributeSticker) GetMaskCoords ¶

func (d *DocumentAttributeSticker) GetMaskCoords() (value MaskCoords, ok bool)

GetMaskCoords returns value of MaskCoords conditional field and boolean which is true if field was set.

func (*DocumentAttributeSticker) SetMask ¶

func (d *DocumentAttributeSticker) SetMask(value bool)

SetMask sets value of Mask conditional field.

func (*DocumentAttributeSticker) SetMaskCoords ¶

func (d *DocumentAttributeSticker) SetMaskCoords(value MaskCoords)

SetMaskCoords sets value of MaskCoords conditional field.

type DocumentAttributeVideo ¶

type DocumentAttributeVideo struct {
	// Flags field of DocumentAttributeVideo.
	Flags bin.Fields
	// RoundMessage field of DocumentAttributeVideo.
	RoundMessage bool
	// SupportsStreaming field of DocumentAttributeVideo.
	SupportsStreaming bool
	// Duration field of DocumentAttributeVideo.
	Duration int
	// W field of DocumentAttributeVideo.
	W int
	// H field of DocumentAttributeVideo.
	H int
}

DocumentAttributeVideo represents TL type `documentAttributeVideo#ef02ce6`.

func (*DocumentAttributeVideo) Decode ¶

func (d *DocumentAttributeVideo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DocumentAttributeVideo) Encode ¶

func (d *DocumentAttributeVideo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DocumentAttributeVideo) SetRoundMessage ¶

func (d *DocumentAttributeVideo) SetRoundMessage(value bool)

SetRoundMessage sets value of RoundMessage conditional field.

func (*DocumentAttributeVideo) SetSupportsStreaming ¶

func (d *DocumentAttributeVideo) SetSupportsStreaming(value bool)

SetSupportsStreaming sets value of SupportsStreaming conditional field.

type DocumentBox ¶

type DocumentBox struct {
	Document DocumentClass
}

Document boxes the DocumentClass providing a helper.

func (*DocumentBox) Decode ¶

func (b *DocumentBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for DocumentBox.

func (*DocumentBox) Encode ¶

func (b *DocumentBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for DocumentBox.

type DocumentClass ¶

type DocumentClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

DocumentClass represents Document generic type.

Example:

g, err := DecodeDocument(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *DocumentEmpty: // documentEmpty#36f8c871
case *Document: // document#1e87342b
default: panic(v)
}

func DecodeDocument ¶

func DecodeDocument(buf *bin.Buffer) (DocumentClass, error)

DecodeDocument implements binary de-serialization for DocumentClass.

type DocumentEmpty ¶

type DocumentEmpty struct {
	// ID field of DocumentEmpty.
	ID int64
}

DocumentEmpty represents TL type `documentEmpty#36f8c871`.

func (*DocumentEmpty) Decode ¶

func (d *DocumentEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DocumentEmpty) Encode ¶

func (d *DocumentEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type DraftMessage ¶

type DraftMessage struct {
	// Flags field of DraftMessage.
	Flags bin.Fields
	// NoWebpage field of DraftMessage.
	NoWebpage bool
	// ReplyToMsgID field of DraftMessage.
	//
	// Use SetReplyToMsgID and GetReplyToMsgID helpers.
	ReplyToMsgID int
	// Message field of DraftMessage.
	Message string
	// Entities field of DraftMessage.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
	// Date field of DraftMessage.
	Date int
}

DraftMessage represents TL type `draftMessage#fd8e711f`.

func (*DraftMessage) Decode ¶

func (d *DraftMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DraftMessage) Encode ¶

func (d *DraftMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DraftMessage) GetEntities ¶

func (d *DraftMessage) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*DraftMessage) GetReplyToMsgID ¶

func (d *DraftMessage) GetReplyToMsgID() (value int, ok bool)

GetReplyToMsgID returns value of ReplyToMsgID conditional field and boolean which is true if field was set.

func (*DraftMessage) SetEntities ¶

func (d *DraftMessage) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*DraftMessage) SetNoWebpage ¶

func (d *DraftMessage) SetNoWebpage(value bool)

SetNoWebpage sets value of NoWebpage conditional field.

func (*DraftMessage) SetReplyToMsgID ¶

func (d *DraftMessage) SetReplyToMsgID(value int)

SetReplyToMsgID sets value of ReplyToMsgID conditional field.

type DraftMessageBox ¶

type DraftMessageBox struct {
	DraftMessage DraftMessageClass
}

DraftMessage boxes the DraftMessageClass providing a helper.

func (*DraftMessageBox) Decode ¶

func (b *DraftMessageBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for DraftMessageBox.

func (*DraftMessageBox) Encode ¶

func (b *DraftMessageBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for DraftMessageBox.

type DraftMessageClass ¶

type DraftMessageClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

DraftMessageClass represents DraftMessage generic type.

Example:

g, err := DecodeDraftMessage(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *DraftMessageEmpty: // draftMessageEmpty#1b0c841a
case *DraftMessage: // draftMessage#fd8e711f
default: panic(v)
}

func DecodeDraftMessage ¶

func DecodeDraftMessage(buf *bin.Buffer) (DraftMessageClass, error)

DecodeDraftMessage implements binary de-serialization for DraftMessageClass.

type DraftMessageEmpty ¶

type DraftMessageEmpty struct {
	// Flags field of DraftMessageEmpty.
	Flags bin.Fields
	// Date field of DraftMessageEmpty.
	//
	// Use SetDate and GetDate helpers.
	Date int
}

DraftMessageEmpty represents TL type `draftMessageEmpty#1b0c841a`.

func (*DraftMessageEmpty) Decode ¶

func (d *DraftMessageEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DraftMessageEmpty) Encode ¶

func (d *DraftMessageEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DraftMessageEmpty) GetDate ¶

func (d *DraftMessageEmpty) GetDate() (value int, ok bool)

GetDate returns value of Date conditional field and boolean which is true if field was set.

func (*DraftMessageEmpty) SetDate ¶

func (d *DraftMessageEmpty) SetDate(value int)

SetDate sets value of Date conditional field.

type EmojiKeyword ¶

type EmojiKeyword struct {
	// Keyword field of EmojiKeyword.
	Keyword string
	// Emoticons field of EmojiKeyword.
	Emoticons []string
}

EmojiKeyword represents TL type `emojiKeyword#d5b3b9f9`.

func (*EmojiKeyword) Decode ¶

func (e *EmojiKeyword) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EmojiKeyword) Encode ¶

func (e *EmojiKeyword) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type EmojiKeywordBox ¶

type EmojiKeywordBox struct {
	EmojiKeyword EmojiKeywordClass
}

EmojiKeyword boxes the EmojiKeywordClass providing a helper.

func (*EmojiKeywordBox) Decode ¶

func (b *EmojiKeywordBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for EmojiKeywordBox.

func (*EmojiKeywordBox) Encode ¶

func (b *EmojiKeywordBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for EmojiKeywordBox.

type EmojiKeywordClass ¶

type EmojiKeywordClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

EmojiKeywordClass represents EmojiKeyword generic type.

Example:

g, err := DecodeEmojiKeyword(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *EmojiKeyword: // emojiKeyword#d5b3b9f9
case *EmojiKeywordDeleted: // emojiKeywordDeleted#236df622
default: panic(v)
}

func DecodeEmojiKeyword ¶

func DecodeEmojiKeyword(buf *bin.Buffer) (EmojiKeywordClass, error)

DecodeEmojiKeyword implements binary de-serialization for EmojiKeywordClass.

type EmojiKeywordDeleted ¶

type EmojiKeywordDeleted struct {
	// Keyword field of EmojiKeywordDeleted.
	Keyword string
	// Emoticons field of EmojiKeywordDeleted.
	Emoticons []string
}

EmojiKeywordDeleted represents TL type `emojiKeywordDeleted#236df622`.

func (*EmojiKeywordDeleted) Decode ¶

func (e *EmojiKeywordDeleted) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EmojiKeywordDeleted) Encode ¶

func (e *EmojiKeywordDeleted) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type EmojiKeywordsDifference ¶

type EmojiKeywordsDifference struct {
	// LangCode field of EmojiKeywordsDifference.
	LangCode string
	// FromVersion field of EmojiKeywordsDifference.
	FromVersion int
	// Version field of EmojiKeywordsDifference.
	Version int
	// Keywords field of EmojiKeywordsDifference.
	Keywords []EmojiKeywordClass
}

EmojiKeywordsDifference represents TL type `emojiKeywordsDifference#5cc761bd`.

func (*EmojiKeywordsDifference) Decode ¶

func (e *EmojiKeywordsDifference) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EmojiKeywordsDifference) Encode ¶

func (e *EmojiKeywordsDifference) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type EmojiLanguage ¶

type EmojiLanguage struct {
	// LangCode field of EmojiLanguage.
	LangCode string
}

EmojiLanguage represents TL type `emojiLanguage#b3fb5361`.

func (*EmojiLanguage) Decode ¶

func (e *EmojiLanguage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EmojiLanguage) Encode ¶

func (e *EmojiLanguage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type EmojiURL ¶

type EmojiURL struct {
	// URL field of EmojiURL.
	URL string
}

EmojiURL represents TL type `emojiURL#a575739d`.

func (*EmojiURL) Decode ¶

func (e *EmojiURL) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EmojiURL) Encode ¶

func (e *EmojiURL) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type EncryptedChat ¶

type EncryptedChat struct {
	// ID field of EncryptedChat.
	ID int
	// AccessHash field of EncryptedChat.
	AccessHash int64
	// Date field of EncryptedChat.
	Date int
	// AdminID field of EncryptedChat.
	AdminID int
	// ParticipantID field of EncryptedChat.
	ParticipantID int
	// GAOrB field of EncryptedChat.
	GAOrB []byte
	// KeyFingerprint field of EncryptedChat.
	KeyFingerprint int64
}

EncryptedChat represents TL type `encryptedChat#fa56ce36`.

func (*EncryptedChat) Decode ¶

func (e *EncryptedChat) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EncryptedChat) Encode ¶

func (e *EncryptedChat) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type EncryptedChatBox ¶

type EncryptedChatBox struct {
	EncryptedChat EncryptedChatClass
}

EncryptedChat boxes the EncryptedChatClass providing a helper.

func (*EncryptedChatBox) Decode ¶

func (b *EncryptedChatBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for EncryptedChatBox.

func (*EncryptedChatBox) Encode ¶

func (b *EncryptedChatBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for EncryptedChatBox.

type EncryptedChatClass ¶

type EncryptedChatClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

EncryptedChatClass represents EncryptedChat generic type.

Example:

g, err := DecodeEncryptedChat(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *EncryptedChatEmpty: // encryptedChatEmpty#ab7ec0a0
case *EncryptedChatWaiting: // encryptedChatWaiting#3bf703dc
case *EncryptedChatRequested: // encryptedChatRequested#62718a82
case *EncryptedChat: // encryptedChat#fa56ce36
case *EncryptedChatDiscarded: // encryptedChatDiscarded#13d6dd27
default: panic(v)
}

func DecodeEncryptedChat ¶

func DecodeEncryptedChat(buf *bin.Buffer) (EncryptedChatClass, error)

DecodeEncryptedChat implements binary de-serialization for EncryptedChatClass.

type EncryptedChatDiscarded ¶

type EncryptedChatDiscarded struct {
	// ID field of EncryptedChatDiscarded.
	ID int
}

EncryptedChatDiscarded represents TL type `encryptedChatDiscarded#13d6dd27`.

func (*EncryptedChatDiscarded) Decode ¶

func (e *EncryptedChatDiscarded) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EncryptedChatDiscarded) Encode ¶

func (e *EncryptedChatDiscarded) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type EncryptedChatEmpty ¶

type EncryptedChatEmpty struct {
	// ID field of EncryptedChatEmpty.
	ID int
}

EncryptedChatEmpty represents TL type `encryptedChatEmpty#ab7ec0a0`.

func (*EncryptedChatEmpty) Decode ¶

func (e *EncryptedChatEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EncryptedChatEmpty) Encode ¶

func (e *EncryptedChatEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type EncryptedChatRequested ¶

type EncryptedChatRequested struct {
	// Flags field of EncryptedChatRequested.
	Flags bin.Fields
	// FolderID field of EncryptedChatRequested.
	//
	// Use SetFolderID and GetFolderID helpers.
	FolderID int
	// ID field of EncryptedChatRequested.
	ID int
	// AccessHash field of EncryptedChatRequested.
	AccessHash int64
	// Date field of EncryptedChatRequested.
	Date int
	// AdminID field of EncryptedChatRequested.
	AdminID int
	// ParticipantID field of EncryptedChatRequested.
	ParticipantID int
	// GA field of EncryptedChatRequested.
	GA []byte
}

EncryptedChatRequested represents TL type `encryptedChatRequested#62718a82`.

func (*EncryptedChatRequested) Decode ¶

func (e *EncryptedChatRequested) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EncryptedChatRequested) Encode ¶

func (e *EncryptedChatRequested) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*EncryptedChatRequested) GetFolderID ¶

func (e *EncryptedChatRequested) GetFolderID() (value int, ok bool)

GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.

func (*EncryptedChatRequested) SetFolderID ¶

func (e *EncryptedChatRequested) SetFolderID(value int)

SetFolderID sets value of FolderID conditional field.

type EncryptedChatWaiting ¶

type EncryptedChatWaiting struct {
	// ID field of EncryptedChatWaiting.
	ID int
	// AccessHash field of EncryptedChatWaiting.
	AccessHash int64
	// Date field of EncryptedChatWaiting.
	Date int
	// AdminID field of EncryptedChatWaiting.
	AdminID int
	// ParticipantID field of EncryptedChatWaiting.
	ParticipantID int
}

EncryptedChatWaiting represents TL type `encryptedChatWaiting#3bf703dc`.

func (*EncryptedChatWaiting) Decode ¶

func (e *EncryptedChatWaiting) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EncryptedChatWaiting) Encode ¶

func (e *EncryptedChatWaiting) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type EncryptedFile ¶

type EncryptedFile struct {
	// ID field of EncryptedFile.
	ID int64
	// AccessHash field of EncryptedFile.
	AccessHash int64
	// Size field of EncryptedFile.
	Size int
	// DCID field of EncryptedFile.
	DCID int
	// KeyFingerprint field of EncryptedFile.
	KeyFingerprint int
}

EncryptedFile represents TL type `encryptedFile#4a70994c`.

func (*EncryptedFile) Decode ¶

func (e *EncryptedFile) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EncryptedFile) Encode ¶

func (e *EncryptedFile) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type EncryptedFileBox ¶

type EncryptedFileBox struct {
	EncryptedFile EncryptedFileClass
}

EncryptedFile boxes the EncryptedFileClass providing a helper.

func (*EncryptedFileBox) Decode ¶

func (b *EncryptedFileBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for EncryptedFileBox.

func (*EncryptedFileBox) Encode ¶

func (b *EncryptedFileBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for EncryptedFileBox.

type EncryptedFileClass ¶

type EncryptedFileClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

EncryptedFileClass represents EncryptedFile generic type.

Example:

g, err := DecodeEncryptedFile(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *EncryptedFileEmpty: // encryptedFileEmpty#c21f497e
case *EncryptedFile: // encryptedFile#4a70994c
default: panic(v)
}

func DecodeEncryptedFile ¶

func DecodeEncryptedFile(buf *bin.Buffer) (EncryptedFileClass, error)

DecodeEncryptedFile implements binary de-serialization for EncryptedFileClass.

type EncryptedFileEmpty ¶

type EncryptedFileEmpty struct {
}

EncryptedFileEmpty represents TL type `encryptedFileEmpty#c21f497e`.

func (*EncryptedFileEmpty) Decode ¶

func (e *EncryptedFileEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EncryptedFileEmpty) Encode ¶

func (e *EncryptedFileEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type EncryptedMessage ¶

type EncryptedMessage struct {
	// RandomID field of EncryptedMessage.
	RandomID int64
	// ChatID field of EncryptedMessage.
	ChatID int
	// Date field of EncryptedMessage.
	Date int
	// Bytes field of EncryptedMessage.
	Bytes []byte
	// File field of EncryptedMessage.
	File EncryptedFileClass
}

EncryptedMessage represents TL type `encryptedMessage#ed18c118`.

func (*EncryptedMessage) Decode ¶

func (e *EncryptedMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EncryptedMessage) Encode ¶

func (e *EncryptedMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type EncryptedMessageBox ¶

type EncryptedMessageBox struct {
	EncryptedMessage EncryptedMessageClass
}

EncryptedMessage boxes the EncryptedMessageClass providing a helper.

func (*EncryptedMessageBox) Decode ¶

func (b *EncryptedMessageBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for EncryptedMessageBox.

func (*EncryptedMessageBox) Encode ¶

func (b *EncryptedMessageBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for EncryptedMessageBox.

type EncryptedMessageClass ¶

type EncryptedMessageClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

EncryptedMessageClass represents EncryptedMessage generic type.

Example:

g, err := DecodeEncryptedMessage(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *EncryptedMessage: // encryptedMessage#ed18c118
case *EncryptedMessageService: // encryptedMessageService#23734b06
default: panic(v)
}

func DecodeEncryptedMessage ¶

func DecodeEncryptedMessage(buf *bin.Buffer) (EncryptedMessageClass, error)

DecodeEncryptedMessage implements binary de-serialization for EncryptedMessageClass.

type EncryptedMessageService ¶

type EncryptedMessageService struct {
	// RandomID field of EncryptedMessageService.
	RandomID int64
	// ChatID field of EncryptedMessageService.
	ChatID int
	// Date field of EncryptedMessageService.
	Date int
	// Bytes field of EncryptedMessageService.
	Bytes []byte
}

EncryptedMessageService represents TL type `encryptedMessageService#23734b06`.

func (*EncryptedMessageService) Decode ¶

func (e *EncryptedMessageService) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*EncryptedMessageService) Encode ¶

func (e *EncryptedMessageService) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type Error ¶

type Error struct {
	// Code field of Error.
	Code int
	// Text field of Error.
	Text string
}

Error represents TL type `error#c4b9f9bb`.

func (*Error) Decode ¶

func (e *Error) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Error) Encode ¶

func (e *Error) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ExportedChatInviteBox ¶

type ExportedChatInviteBox struct {
	ExportedChatInvite ExportedChatInviteClass
}

ExportedChatInvite boxes the ExportedChatInviteClass providing a helper.

func (*ExportedChatInviteBox) Decode ¶

func (b *ExportedChatInviteBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ExportedChatInviteBox.

func (*ExportedChatInviteBox) Encode ¶

func (b *ExportedChatInviteBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ExportedChatInviteBox.

type ExportedChatInviteClass ¶

type ExportedChatInviteClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ExportedChatInviteClass represents ExportedChatInvite generic type.

Example:

g, err := DecodeExportedChatInvite(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ChatInviteEmpty: // chatInviteEmpty#69df3769
case *ChatInviteExported: // chatInviteExported#fc2e05bc
default: panic(v)
}

func DecodeExportedChatInvite ¶

func DecodeExportedChatInvite(buf *bin.Buffer) (ExportedChatInviteClass, error)

DecodeExportedChatInvite implements binary de-serialization for ExportedChatInviteClass.

type ExportedMessageLink struct {
	// Link field of ExportedMessageLink.
	Link string
	// HTML field of ExportedMessageLink.
	HTML string
}

ExportedMessageLink represents TL type `exportedMessageLink#5dab1af4`.

func (*ExportedMessageLink) Decode ¶

func (e *ExportedMessageLink) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ExportedMessageLink) Encode ¶

func (e *ExportedMessageLink) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type FileHash ¶

type FileHash struct {
	// Offset field of FileHash.
	Offset int
	// Limit field of FileHash.
	Limit int
	// Hash field of FileHash.
	Hash []byte
}

FileHash represents TL type `fileHash#6242c773`.

func (*FileHash) Decode ¶

func (f *FileHash) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*FileHash) Encode ¶

func (f *FileHash) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type FileLocationToBeDeprecated ¶

type FileLocationToBeDeprecated struct {
	// VolumeID field of FileLocationToBeDeprecated.
	VolumeID int64
	// LocalID field of FileLocationToBeDeprecated.
	LocalID int
}

FileLocationToBeDeprecated represents TL type `fileLocationToBeDeprecated#bc7fc6cd`.

func (*FileLocationToBeDeprecated) Decode ¶

Decode implements bin.Decoder.

func (*FileLocationToBeDeprecated) Encode ¶

Encode implements bin.Encoder.

type Folder ¶

type Folder struct {
	// Flags field of Folder.
	Flags bin.Fields
	// AutofillNewBroadcasts field of Folder.
	AutofillNewBroadcasts bool
	// AutofillPublicGroups field of Folder.
	AutofillPublicGroups bool
	// AutofillNewCorrespondents field of Folder.
	AutofillNewCorrespondents bool
	// ID field of Folder.
	ID int
	// Title field of Folder.
	Title string
	// Photo field of Folder.
	//
	// Use SetPhoto and GetPhoto helpers.
	Photo ChatPhotoClass
}

Folder represents TL type `folder#ff544e65`.

func (*Folder) Decode ¶

func (f *Folder) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Folder) Encode ¶

func (f *Folder) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Folder) GetPhoto ¶

func (f *Folder) GetPhoto() (value ChatPhotoClass, ok bool)

GetPhoto returns value of Photo conditional field and boolean which is true if field was set.

func (*Folder) SetAutofillNewBroadcasts ¶

func (f *Folder) SetAutofillNewBroadcasts(value bool)

SetAutofillNewBroadcasts sets value of AutofillNewBroadcasts conditional field.

func (*Folder) SetAutofillNewCorrespondents ¶

func (f *Folder) SetAutofillNewCorrespondents(value bool)

SetAutofillNewCorrespondents sets value of AutofillNewCorrespondents conditional field.

func (*Folder) SetAutofillPublicGroups ¶

func (f *Folder) SetAutofillPublicGroups(value bool)

SetAutofillPublicGroups sets value of AutofillPublicGroups conditional field.

func (*Folder) SetPhoto ¶

func (f *Folder) SetPhoto(value ChatPhotoClass)

SetPhoto sets value of Photo conditional field.

type FolderPeer ¶

type FolderPeer struct {
	// Peer field of FolderPeer.
	Peer PeerClass
	// FolderID field of FolderPeer.
	FolderID int
}

FolderPeer represents TL type `folderPeer#e9baa668`.

func (*FolderPeer) Decode ¶

func (f *FolderPeer) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*FolderPeer) Encode ¶

func (f *FolderPeer) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type FoldersDeleteFolderRequest ¶

type FoldersDeleteFolderRequest struct {
	// FolderID field of FoldersDeleteFolderRequest.
	FolderID int
}

FoldersDeleteFolderRequest represents TL type `folders.deleteFolder#1c295881`.

func (*FoldersDeleteFolderRequest) Decode ¶

Decode implements bin.Decoder.

func (*FoldersDeleteFolderRequest) Encode ¶

Encode implements bin.Encoder.

type FoldersEditPeerFoldersRequest ¶

type FoldersEditPeerFoldersRequest struct {
	// FolderPeers field of FoldersEditPeerFoldersRequest.
	FolderPeers []InputFolderPeer
}

FoldersEditPeerFoldersRequest represents TL type `folders.editPeerFolders#6847d0ab`.

func (*FoldersEditPeerFoldersRequest) Decode ¶

Decode implements bin.Decoder.

func (*FoldersEditPeerFoldersRequest) Encode ¶

Encode implements bin.Encoder.

type Game ¶

type Game struct {
	// Flags field of Game.
	Flags bin.Fields
	// ID field of Game.
	ID int64
	// AccessHash field of Game.
	AccessHash int64
	// ShortName field of Game.
	ShortName string
	// Title field of Game.
	Title string
	// Description field of Game.
	Description string
	// Photo field of Game.
	Photo PhotoClass
	// Document field of Game.
	//
	// Use SetDocument and GetDocument helpers.
	Document DocumentClass
}

Game represents TL type `game#bdf9653b`.

func (*Game) Decode ¶

func (g *Game) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Game) Encode ¶

func (g *Game) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Game) GetDocument ¶

func (g *Game) GetDocument() (value DocumentClass, ok bool)

GetDocument returns value of Document conditional field and boolean which is true if field was set.

func (*Game) SetDocument ¶

func (g *Game) SetDocument(value DocumentClass)

SetDocument sets value of Document conditional field.

type GeoPoint ¶

type GeoPoint struct {
	// Flags field of GeoPoint.
	Flags bin.Fields
	// Long field of GeoPoint.
	Long float64
	// Lat field of GeoPoint.
	Lat float64
	// AccessHash field of GeoPoint.
	AccessHash int64
	// AccuracyRadius field of GeoPoint.
	//
	// Use SetAccuracyRadius and GetAccuracyRadius helpers.
	AccuracyRadius int
}

GeoPoint represents TL type `geoPoint#b2a2f663`.

func (*GeoPoint) Decode ¶

func (g *GeoPoint) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*GeoPoint) Encode ¶

func (g *GeoPoint) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*GeoPoint) GetAccuracyRadius ¶

func (g *GeoPoint) GetAccuracyRadius() (value int, ok bool)

GetAccuracyRadius returns value of AccuracyRadius conditional field and boolean which is true if field was set.

func (*GeoPoint) SetAccuracyRadius ¶

func (g *GeoPoint) SetAccuracyRadius(value int)

SetAccuracyRadius sets value of AccuracyRadius conditional field.

type GeoPointBox ¶

type GeoPointBox struct {
	GeoPoint GeoPointClass
}

GeoPoint boxes the GeoPointClass providing a helper.

func (*GeoPointBox) Decode ¶

func (b *GeoPointBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for GeoPointBox.

func (*GeoPointBox) Encode ¶

func (b *GeoPointBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for GeoPointBox.

type GeoPointClass ¶

type GeoPointClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

GeoPointClass represents GeoPoint generic type.

Example:

g, err := DecodeGeoPoint(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *GeoPointEmpty: // geoPointEmpty#1117dd5f
case *GeoPoint: // geoPoint#b2a2f663
default: panic(v)
}

func DecodeGeoPoint ¶

func DecodeGeoPoint(buf *bin.Buffer) (GeoPointClass, error)

DecodeGeoPoint implements binary de-serialization for GeoPointClass.

type GeoPointEmpty ¶

type GeoPointEmpty struct {
}

GeoPointEmpty represents TL type `geoPointEmpty#1117dd5f`.

func (*GeoPointEmpty) Decode ¶

func (g *GeoPointEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*GeoPointEmpty) Encode ¶

func (g *GeoPointEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type GlobalPrivacySettings ¶

type GlobalPrivacySettings struct {
	// Flags field of GlobalPrivacySettings.
	Flags bin.Fields
	// ArchiveAndMuteNewNoncontactPeers field of GlobalPrivacySettings.
	ArchiveAndMuteNewNoncontactPeers bool
}

GlobalPrivacySettings represents TL type `globalPrivacySettings#bea2f424`.

func (*GlobalPrivacySettings) Decode ¶

func (g *GlobalPrivacySettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*GlobalPrivacySettings) Encode ¶

func (g *GlobalPrivacySettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*GlobalPrivacySettings) SetArchiveAndMuteNewNoncontactPeers ¶

func (g *GlobalPrivacySettings) SetArchiveAndMuteNewNoncontactPeers(value bool)

SetArchiveAndMuteNewNoncontactPeers sets value of ArchiveAndMuteNewNoncontactPeers conditional field.

type HelpAcceptTermsOfServiceRequest ¶

type HelpAcceptTermsOfServiceRequest struct {
	// ID field of HelpAcceptTermsOfServiceRequest.
	ID DataJSON
}

HelpAcceptTermsOfServiceRequest represents TL type `help.acceptTermsOfService#ee72f79a`.

func (*HelpAcceptTermsOfServiceRequest) Decode ¶

Decode implements bin.Decoder.

func (*HelpAcceptTermsOfServiceRequest) Encode ¶

Encode implements bin.Encoder.

type HelpAppUpdate ¶

type HelpAppUpdate struct {
	// Flags field of HelpAppUpdate.
	Flags bin.Fields
	// CanNotSkip field of HelpAppUpdate.
	CanNotSkip bool
	// ID field of HelpAppUpdate.
	ID int
	// Version field of HelpAppUpdate.
	Version string
	// Text field of HelpAppUpdate.
	Text string
	// Entities field of HelpAppUpdate.
	Entities []MessageEntityClass
	// Document field of HelpAppUpdate.
	//
	// Use SetDocument and GetDocument helpers.
	Document DocumentClass
	// URL field of HelpAppUpdate.
	//
	// Use SetURL and GetURL helpers.
	URL string
}

HelpAppUpdate represents TL type `help.appUpdate#1da7158f`.

func (*HelpAppUpdate) Decode ¶

func (a *HelpAppUpdate) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpAppUpdate) Encode ¶

func (a *HelpAppUpdate) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*HelpAppUpdate) GetDocument ¶

func (a *HelpAppUpdate) GetDocument() (value DocumentClass, ok bool)

GetDocument returns value of Document conditional field and boolean which is true if field was set.

func (*HelpAppUpdate) GetURL ¶

func (a *HelpAppUpdate) GetURL() (value string, ok bool)

GetURL returns value of URL conditional field and boolean which is true if field was set.

func (*HelpAppUpdate) SetCanNotSkip ¶

func (a *HelpAppUpdate) SetCanNotSkip(value bool)

SetCanNotSkip sets value of CanNotSkip conditional field.

func (*HelpAppUpdate) SetDocument ¶

func (a *HelpAppUpdate) SetDocument(value DocumentClass)

SetDocument sets value of Document conditional field.

func (*HelpAppUpdate) SetURL ¶

func (a *HelpAppUpdate) SetURL(value string)

SetURL sets value of URL conditional field.

type HelpAppUpdateBox ¶

type HelpAppUpdateBox struct {
	AppUpdate HelpAppUpdateClass
}

HelpAppUpdate boxes the HelpAppUpdateClass providing a helper.

func (*HelpAppUpdateBox) Decode ¶

func (b *HelpAppUpdateBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for HelpAppUpdateBox.

func (*HelpAppUpdateBox) Encode ¶

func (b *HelpAppUpdateBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for HelpAppUpdateBox.

type HelpAppUpdateClass ¶

type HelpAppUpdateClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

HelpAppUpdateClass represents help.AppUpdate generic type.

Example:

g, err := DecodeHelpAppUpdate(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *HelpAppUpdate: // help.appUpdate#1da7158f
case *HelpNoAppUpdate: // help.noAppUpdate#c45a6536
default: panic(v)
}

func DecodeHelpAppUpdate ¶

func DecodeHelpAppUpdate(buf *bin.Buffer) (HelpAppUpdateClass, error)

DecodeHelpAppUpdate implements binary de-serialization for HelpAppUpdateClass.

type HelpCountriesList ¶

type HelpCountriesList struct {
	// Countries field of HelpCountriesList.
	Countries []HelpCountry
	// Hash field of HelpCountriesList.
	Hash int
}

HelpCountriesList represents TL type `help.countriesList#87d0759e`.

func (*HelpCountriesList) Decode ¶

func (c *HelpCountriesList) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpCountriesList) Encode ¶

func (c *HelpCountriesList) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpCountriesListBox ¶

type HelpCountriesListBox struct {
	CountriesList HelpCountriesListClass
}

HelpCountriesList boxes the HelpCountriesListClass providing a helper.

func (*HelpCountriesListBox) Decode ¶

func (b *HelpCountriesListBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for HelpCountriesListBox.

func (*HelpCountriesListBox) Encode ¶

func (b *HelpCountriesListBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for HelpCountriesListBox.

type HelpCountriesListClass ¶

type HelpCountriesListClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

HelpCountriesListClass represents help.CountriesList generic type.

Example:

g, err := DecodeHelpCountriesList(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *HelpCountriesListNotModified: // help.countriesListNotModified#93cc1f32
case *HelpCountriesList: // help.countriesList#87d0759e
default: panic(v)
}

func DecodeHelpCountriesList ¶

func DecodeHelpCountriesList(buf *bin.Buffer) (HelpCountriesListClass, error)

DecodeHelpCountriesList implements binary de-serialization for HelpCountriesListClass.

type HelpCountriesListNotModified ¶

type HelpCountriesListNotModified struct {
}

HelpCountriesListNotModified represents TL type `help.countriesListNotModified#93cc1f32`.

func (*HelpCountriesListNotModified) Decode ¶

Decode implements bin.Decoder.

func (*HelpCountriesListNotModified) Encode ¶

Encode implements bin.Encoder.

type HelpCountry ¶

type HelpCountry struct {
	// Flags field of HelpCountry.
	Flags bin.Fields
	// Hidden field of HelpCountry.
	Hidden bool
	// Iso2 field of HelpCountry.
	Iso2 string
	// DefaultName field of HelpCountry.
	DefaultName string
	// Name field of HelpCountry.
	//
	// Use SetName and GetName helpers.
	Name string
	// CountryCodes field of HelpCountry.
	CountryCodes []HelpCountryCode
}

HelpCountry represents TL type `help.country#c3878e23`.

func (*HelpCountry) Decode ¶

func (c *HelpCountry) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpCountry) Encode ¶

func (c *HelpCountry) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*HelpCountry) GetName ¶

func (c *HelpCountry) GetName() (value string, ok bool)

GetName returns value of Name conditional field and boolean which is true if field was set.

func (*HelpCountry) SetHidden ¶

func (c *HelpCountry) SetHidden(value bool)

SetHidden sets value of Hidden conditional field.

func (*HelpCountry) SetName ¶

func (c *HelpCountry) SetName(value string)

SetName sets value of Name conditional field.

type HelpCountryCode ¶

type HelpCountryCode struct {
	// Flags field of HelpCountryCode.
	Flags bin.Fields
	// CountryCode field of HelpCountryCode.
	CountryCode string
	// Prefixes field of HelpCountryCode.
	//
	// Use SetPrefixes and GetPrefixes helpers.
	Prefixes []string
	// Patterns field of HelpCountryCode.
	//
	// Use SetPatterns and GetPatterns helpers.
	Patterns []string
}

HelpCountryCode represents TL type `help.countryCode#4203c5ef`.

func (*HelpCountryCode) Decode ¶

func (c *HelpCountryCode) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpCountryCode) Encode ¶

func (c *HelpCountryCode) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*HelpCountryCode) GetPatterns ¶

func (c *HelpCountryCode) GetPatterns() (value []string, ok bool)

GetPatterns returns value of Patterns conditional field and boolean which is true if field was set.

func (*HelpCountryCode) GetPrefixes ¶

func (c *HelpCountryCode) GetPrefixes() (value []string, ok bool)

GetPrefixes returns value of Prefixes conditional field and boolean which is true if field was set.

func (*HelpCountryCode) SetPatterns ¶

func (c *HelpCountryCode) SetPatterns(value []string)

SetPatterns sets value of Patterns conditional field.

func (*HelpCountryCode) SetPrefixes ¶

func (c *HelpCountryCode) SetPrefixes(value []string)

SetPrefixes sets value of Prefixes conditional field.

type HelpDeepLinkInfo ¶

type HelpDeepLinkInfo struct {
	// Flags field of HelpDeepLinkInfo.
	Flags bin.Fields
	// UpdateApp field of HelpDeepLinkInfo.
	UpdateApp bool
	// Message field of HelpDeepLinkInfo.
	Message string
	// Entities field of HelpDeepLinkInfo.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
}

HelpDeepLinkInfo represents TL type `help.deepLinkInfo#6a4ee832`.

func (*HelpDeepLinkInfo) Decode ¶

func (d *HelpDeepLinkInfo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpDeepLinkInfo) Encode ¶

func (d *HelpDeepLinkInfo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*HelpDeepLinkInfo) GetEntities ¶

func (d *HelpDeepLinkInfo) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*HelpDeepLinkInfo) SetEntities ¶

func (d *HelpDeepLinkInfo) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*HelpDeepLinkInfo) SetUpdateApp ¶

func (d *HelpDeepLinkInfo) SetUpdateApp(value bool)

SetUpdateApp sets value of UpdateApp conditional field.

type HelpDeepLinkInfoBox ¶

type HelpDeepLinkInfoBox struct {
	DeepLinkInfo HelpDeepLinkInfoClass
}

HelpDeepLinkInfo boxes the HelpDeepLinkInfoClass providing a helper.

func (*HelpDeepLinkInfoBox) Decode ¶

func (b *HelpDeepLinkInfoBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for HelpDeepLinkInfoBox.

func (*HelpDeepLinkInfoBox) Encode ¶

func (b *HelpDeepLinkInfoBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for HelpDeepLinkInfoBox.

type HelpDeepLinkInfoClass ¶

type HelpDeepLinkInfoClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

HelpDeepLinkInfoClass represents help.DeepLinkInfo generic type.

Example:

g, err := DecodeHelpDeepLinkInfo(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *HelpDeepLinkInfoEmpty: // help.deepLinkInfoEmpty#66afa166
case *HelpDeepLinkInfo: // help.deepLinkInfo#6a4ee832
default: panic(v)
}

func DecodeHelpDeepLinkInfo ¶

func DecodeHelpDeepLinkInfo(buf *bin.Buffer) (HelpDeepLinkInfoClass, error)

DecodeHelpDeepLinkInfo implements binary de-serialization for HelpDeepLinkInfoClass.

type HelpDeepLinkInfoEmpty ¶

type HelpDeepLinkInfoEmpty struct {
}

HelpDeepLinkInfoEmpty represents TL type `help.deepLinkInfoEmpty#66afa166`.

func (*HelpDeepLinkInfoEmpty) Decode ¶

func (d *HelpDeepLinkInfoEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpDeepLinkInfoEmpty) Encode ¶

func (d *HelpDeepLinkInfoEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpDismissSuggestionRequest ¶

type HelpDismissSuggestionRequest struct {
	// Suggestion field of HelpDismissSuggestionRequest.
	Suggestion string
}

HelpDismissSuggestionRequest represents TL type `help.dismissSuggestion#77fa99f`.

func (*HelpDismissSuggestionRequest) Decode ¶

Decode implements bin.Decoder.

func (*HelpDismissSuggestionRequest) Encode ¶

Encode implements bin.Encoder.

type HelpEditUserInfoRequest ¶

type HelpEditUserInfoRequest struct {
	// UserID field of HelpEditUserInfoRequest.
	UserID InputUserClass
	// Message field of HelpEditUserInfoRequest.
	Message string
	// Entities field of HelpEditUserInfoRequest.
	Entities []MessageEntityClass
}

HelpEditUserInfoRequest represents TL type `help.editUserInfo#66b91b70`.

func (*HelpEditUserInfoRequest) Decode ¶

func (e *HelpEditUserInfoRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpEditUserInfoRequest) Encode ¶

func (e *HelpEditUserInfoRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpGetAppChangelogRequest ¶

type HelpGetAppChangelogRequest struct {
	// PrevAppVersion field of HelpGetAppChangelogRequest.
	PrevAppVersion string
}

HelpGetAppChangelogRequest represents TL type `help.getAppChangelog#9010ef6f`.

func (*HelpGetAppChangelogRequest) Decode ¶

Decode implements bin.Decoder.

func (*HelpGetAppChangelogRequest) Encode ¶

Encode implements bin.Encoder.

type HelpGetAppConfigRequest ¶

type HelpGetAppConfigRequest struct {
}

HelpGetAppConfigRequest represents TL type `help.getAppConfig#98914110`.

func (*HelpGetAppConfigRequest) Decode ¶

func (g *HelpGetAppConfigRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpGetAppConfigRequest) Encode ¶

func (g *HelpGetAppConfigRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpGetAppUpdateRequest ¶

type HelpGetAppUpdateRequest struct {
	// Source field of HelpGetAppUpdateRequest.
	Source string
}

HelpGetAppUpdateRequest represents TL type `help.getAppUpdate#522d5a7d`.

func (*HelpGetAppUpdateRequest) Decode ¶

func (g *HelpGetAppUpdateRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpGetAppUpdateRequest) Encode ¶

func (g *HelpGetAppUpdateRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpGetCdnConfigRequest ¶

type HelpGetCdnConfigRequest struct {
}

HelpGetCdnConfigRequest represents TL type `help.getCdnConfig#52029342`.

func (*HelpGetCdnConfigRequest) Decode ¶

func (g *HelpGetCdnConfigRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpGetCdnConfigRequest) Encode ¶

func (g *HelpGetCdnConfigRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpGetConfigRequest ¶

type HelpGetConfigRequest struct {
}

HelpGetConfigRequest represents TL type `help.getConfig#c4f9186b`.

func (*HelpGetConfigRequest) Decode ¶

func (g *HelpGetConfigRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpGetConfigRequest) Encode ¶

func (g *HelpGetConfigRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpGetCountriesListRequest ¶

type HelpGetCountriesListRequest struct {
	// LangCode field of HelpGetCountriesListRequest.
	LangCode string
	// Hash field of HelpGetCountriesListRequest.
	Hash int
}

HelpGetCountriesListRequest represents TL type `help.getCountriesList#735787a8`.

func (*HelpGetCountriesListRequest) Decode ¶

Decode implements bin.Decoder.

func (*HelpGetCountriesListRequest) Encode ¶

Encode implements bin.Encoder.

type HelpGetDeepLinkInfoRequest ¶

type HelpGetDeepLinkInfoRequest struct {
	// Path field of HelpGetDeepLinkInfoRequest.
	Path string
}

HelpGetDeepLinkInfoRequest represents TL type `help.getDeepLinkInfo#3fedc75f`.

func (*HelpGetDeepLinkInfoRequest) Decode ¶

Decode implements bin.Decoder.

func (*HelpGetDeepLinkInfoRequest) Encode ¶

Encode implements bin.Encoder.

type HelpGetInviteTextRequest ¶

type HelpGetInviteTextRequest struct {
}

HelpGetInviteTextRequest represents TL type `help.getInviteText#4d392343`.

func (*HelpGetInviteTextRequest) Decode ¶

func (g *HelpGetInviteTextRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpGetInviteTextRequest) Encode ¶

func (g *HelpGetInviteTextRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpGetNearestDcRequest ¶

type HelpGetNearestDcRequest struct {
}

HelpGetNearestDcRequest represents TL type `help.getNearestDc#1fb33026`.

func (*HelpGetNearestDcRequest) Decode ¶

func (g *HelpGetNearestDcRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpGetNearestDcRequest) Encode ¶

func (g *HelpGetNearestDcRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpGetPassportConfigRequest ¶

type HelpGetPassportConfigRequest struct {
	// Hash field of HelpGetPassportConfigRequest.
	Hash int
}

HelpGetPassportConfigRequest represents TL type `help.getPassportConfig#c661ad08`.

func (*HelpGetPassportConfigRequest) Decode ¶

Decode implements bin.Decoder.

func (*HelpGetPassportConfigRequest) Encode ¶

Encode implements bin.Encoder.

type HelpGetPromoDataRequest ¶

type HelpGetPromoDataRequest struct {
}

HelpGetPromoDataRequest represents TL type `help.getPromoData#c0977421`.

func (*HelpGetPromoDataRequest) Decode ¶

func (g *HelpGetPromoDataRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpGetPromoDataRequest) Encode ¶

func (g *HelpGetPromoDataRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpGetRecentMeUrlsRequest ¶

type HelpGetRecentMeUrlsRequest struct {
	// Referer field of HelpGetRecentMeUrlsRequest.
	Referer string
}

HelpGetRecentMeUrlsRequest represents TL type `help.getRecentMeUrls#3dc0f114`.

func (*HelpGetRecentMeUrlsRequest) Decode ¶

Decode implements bin.Decoder.

func (*HelpGetRecentMeUrlsRequest) Encode ¶

Encode implements bin.Encoder.

type HelpGetSupportNameRequest ¶

type HelpGetSupportNameRequest struct {
}

HelpGetSupportNameRequest represents TL type `help.getSupportName#d360e72c`.

func (*HelpGetSupportNameRequest) Decode ¶

func (g *HelpGetSupportNameRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpGetSupportNameRequest) Encode ¶

func (g *HelpGetSupportNameRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpGetSupportRequest ¶

type HelpGetSupportRequest struct {
}

HelpGetSupportRequest represents TL type `help.getSupport#9cdf08cd`.

func (*HelpGetSupportRequest) Decode ¶

func (g *HelpGetSupportRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpGetSupportRequest) Encode ¶

func (g *HelpGetSupportRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpGetTermsOfServiceUpdateRequest ¶

type HelpGetTermsOfServiceUpdateRequest struct {
}

HelpGetTermsOfServiceUpdateRequest represents TL type `help.getTermsOfServiceUpdate#2ca51fd1`.

func (*HelpGetTermsOfServiceUpdateRequest) Decode ¶

Decode implements bin.Decoder.

func (*HelpGetTermsOfServiceUpdateRequest) Encode ¶

Encode implements bin.Encoder.

type HelpGetUserInfoRequest ¶

type HelpGetUserInfoRequest struct {
	// UserID field of HelpGetUserInfoRequest.
	UserID InputUserClass
}

HelpGetUserInfoRequest represents TL type `help.getUserInfo#38a08d3`.

func (*HelpGetUserInfoRequest) Decode ¶

func (g *HelpGetUserInfoRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpGetUserInfoRequest) Encode ¶

func (g *HelpGetUserInfoRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpHidePromoDataRequest ¶

type HelpHidePromoDataRequest struct {
	// Peer field of HelpHidePromoDataRequest.
	Peer InputPeerClass
}

HelpHidePromoDataRequest represents TL type `help.hidePromoData#1e251c95`.

func (*HelpHidePromoDataRequest) Decode ¶

func (h *HelpHidePromoDataRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpHidePromoDataRequest) Encode ¶

func (h *HelpHidePromoDataRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpInviteText ¶

type HelpInviteText struct {
	// Message field of HelpInviteText.
	Message string
}

HelpInviteText represents TL type `help.inviteText#18cb9f78`.

func (*HelpInviteText) Decode ¶

func (i *HelpInviteText) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpInviteText) Encode ¶

func (i *HelpInviteText) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpNoAppUpdate ¶

type HelpNoAppUpdate struct {
}

HelpNoAppUpdate represents TL type `help.noAppUpdate#c45a6536`.

func (*HelpNoAppUpdate) Decode ¶

func (n *HelpNoAppUpdate) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpNoAppUpdate) Encode ¶

func (n *HelpNoAppUpdate) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpPassportConfig ¶

type HelpPassportConfig struct {
	// Hash field of HelpPassportConfig.
	Hash int
	// CountriesLangs field of HelpPassportConfig.
	CountriesLangs DataJSON
}

HelpPassportConfig represents TL type `help.passportConfig#a098d6af`.

func (*HelpPassportConfig) Decode ¶

func (p *HelpPassportConfig) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpPassportConfig) Encode ¶

func (p *HelpPassportConfig) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpPassportConfigBox ¶

type HelpPassportConfigBox struct {
	PassportConfig HelpPassportConfigClass
}

HelpPassportConfig boxes the HelpPassportConfigClass providing a helper.

func (*HelpPassportConfigBox) Decode ¶

func (b *HelpPassportConfigBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for HelpPassportConfigBox.

func (*HelpPassportConfigBox) Encode ¶

func (b *HelpPassportConfigBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for HelpPassportConfigBox.

type HelpPassportConfigClass ¶

type HelpPassportConfigClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

HelpPassportConfigClass represents help.PassportConfig generic type.

Example:

g, err := DecodeHelpPassportConfig(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *HelpPassportConfigNotModified: // help.passportConfigNotModified#bfb9f457
case *HelpPassportConfig: // help.passportConfig#a098d6af
default: panic(v)
}

func DecodeHelpPassportConfig ¶

func DecodeHelpPassportConfig(buf *bin.Buffer) (HelpPassportConfigClass, error)

DecodeHelpPassportConfig implements binary de-serialization for HelpPassportConfigClass.

type HelpPassportConfigNotModified ¶

type HelpPassportConfigNotModified struct {
}

HelpPassportConfigNotModified represents TL type `help.passportConfigNotModified#bfb9f457`.

func (*HelpPassportConfigNotModified) Decode ¶

Decode implements bin.Decoder.

func (*HelpPassportConfigNotModified) Encode ¶

Encode implements bin.Encoder.

type HelpPromoData ¶

type HelpPromoData struct {
	// Flags field of HelpPromoData.
	Flags bin.Fields
	// Proxy field of HelpPromoData.
	Proxy bool
	// Expires field of HelpPromoData.
	Expires int
	// Peer field of HelpPromoData.
	Peer PeerClass
	// Chats field of HelpPromoData.
	Chats []ChatClass
	// Users field of HelpPromoData.
	Users []UserClass
	// PsaType field of HelpPromoData.
	//
	// Use SetPsaType and GetPsaType helpers.
	PsaType string
	// PsaMessage field of HelpPromoData.
	//
	// Use SetPsaMessage and GetPsaMessage helpers.
	PsaMessage string
}

HelpPromoData represents TL type `help.promoData#8c39793f`.

func (*HelpPromoData) Decode ¶

func (p *HelpPromoData) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpPromoData) Encode ¶

func (p *HelpPromoData) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*HelpPromoData) GetPsaMessage ¶

func (p *HelpPromoData) GetPsaMessage() (value string, ok bool)

GetPsaMessage returns value of PsaMessage conditional field and boolean which is true if field was set.

func (*HelpPromoData) GetPsaType ¶

func (p *HelpPromoData) GetPsaType() (value string, ok bool)

GetPsaType returns value of PsaType conditional field and boolean which is true if field was set.

func (*HelpPromoData) SetProxy ¶

func (p *HelpPromoData) SetProxy(value bool)

SetProxy sets value of Proxy conditional field.

func (*HelpPromoData) SetPsaMessage ¶

func (p *HelpPromoData) SetPsaMessage(value string)

SetPsaMessage sets value of PsaMessage conditional field.

func (*HelpPromoData) SetPsaType ¶

func (p *HelpPromoData) SetPsaType(value string)

SetPsaType sets value of PsaType conditional field.

type HelpPromoDataBox ¶

type HelpPromoDataBox struct {
	PromoData HelpPromoDataClass
}

HelpPromoData boxes the HelpPromoDataClass providing a helper.

func (*HelpPromoDataBox) Decode ¶

func (b *HelpPromoDataBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for HelpPromoDataBox.

func (*HelpPromoDataBox) Encode ¶

func (b *HelpPromoDataBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for HelpPromoDataBox.

type HelpPromoDataClass ¶

type HelpPromoDataClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

HelpPromoDataClass represents help.PromoData generic type.

Example:

g, err := DecodeHelpPromoData(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *HelpPromoDataEmpty: // help.promoDataEmpty#98f6ac75
case *HelpPromoData: // help.promoData#8c39793f
default: panic(v)
}

func DecodeHelpPromoData ¶

func DecodeHelpPromoData(buf *bin.Buffer) (HelpPromoDataClass, error)

DecodeHelpPromoData implements binary de-serialization for HelpPromoDataClass.

type HelpPromoDataEmpty ¶

type HelpPromoDataEmpty struct {
	// Expires field of HelpPromoDataEmpty.
	Expires int
}

HelpPromoDataEmpty represents TL type `help.promoDataEmpty#98f6ac75`.

func (*HelpPromoDataEmpty) Decode ¶

func (p *HelpPromoDataEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpPromoDataEmpty) Encode ¶

func (p *HelpPromoDataEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpRecentMeUrls ¶

type HelpRecentMeUrls struct {
	// Urls field of HelpRecentMeUrls.
	Urls []RecentMeUrlClass
	// Chats field of HelpRecentMeUrls.
	Chats []ChatClass
	// Users field of HelpRecentMeUrls.
	Users []UserClass
}

HelpRecentMeUrls represents TL type `help.recentMeUrls#e0310d7`.

func (*HelpRecentMeUrls) Decode ¶

func (r *HelpRecentMeUrls) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpRecentMeUrls) Encode ¶

func (r *HelpRecentMeUrls) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpSaveAppLogRequest ¶

type HelpSaveAppLogRequest struct {
	// Events field of HelpSaveAppLogRequest.
	Events []InputAppEvent
}

HelpSaveAppLogRequest represents TL type `help.saveAppLog#6f02f748`.

func (*HelpSaveAppLogRequest) Decode ¶

func (s *HelpSaveAppLogRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpSaveAppLogRequest) Encode ¶

func (s *HelpSaveAppLogRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpSetBotUpdatesStatusRequest ¶

type HelpSetBotUpdatesStatusRequest struct {
	// PendingUpdatesCount field of HelpSetBotUpdatesStatusRequest.
	PendingUpdatesCount int
	// Message field of HelpSetBotUpdatesStatusRequest.
	Message string
}

HelpSetBotUpdatesStatusRequest represents TL type `help.setBotUpdatesStatus#ec22cfcd`.

func (*HelpSetBotUpdatesStatusRequest) Decode ¶

Decode implements bin.Decoder.

func (*HelpSetBotUpdatesStatusRequest) Encode ¶

Encode implements bin.Encoder.

type HelpSupport ¶

type HelpSupport struct {
	// PhoneNumber field of HelpSupport.
	PhoneNumber string
	// User field of HelpSupport.
	User UserClass
}

HelpSupport represents TL type `help.support#17c6b5f6`.

func (*HelpSupport) Decode ¶

func (s *HelpSupport) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpSupport) Encode ¶

func (s *HelpSupport) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpSupportName ¶

type HelpSupportName struct {
	// Name field of HelpSupportName.
	Name string
}

HelpSupportName represents TL type `help.supportName#8c05f1c9`.

func (*HelpSupportName) Decode ¶

func (s *HelpSupportName) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpSupportName) Encode ¶

func (s *HelpSupportName) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpTermsOfService ¶

type HelpTermsOfService struct {
	// Flags field of HelpTermsOfService.
	Flags bin.Fields
	// Popup field of HelpTermsOfService.
	Popup bool
	// ID field of HelpTermsOfService.
	ID DataJSON
	// Text field of HelpTermsOfService.
	Text string
	// Entities field of HelpTermsOfService.
	Entities []MessageEntityClass
	// MinAgeConfirm field of HelpTermsOfService.
	//
	// Use SetMinAgeConfirm and GetMinAgeConfirm helpers.
	MinAgeConfirm int
}

HelpTermsOfService represents TL type `help.termsOfService#780a0310`.

func (*HelpTermsOfService) Decode ¶

func (t *HelpTermsOfService) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpTermsOfService) Encode ¶

func (t *HelpTermsOfService) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*HelpTermsOfService) GetMinAgeConfirm ¶

func (t *HelpTermsOfService) GetMinAgeConfirm() (value int, ok bool)

GetMinAgeConfirm returns value of MinAgeConfirm conditional field and boolean which is true if field was set.

func (*HelpTermsOfService) SetMinAgeConfirm ¶

func (t *HelpTermsOfService) SetMinAgeConfirm(value int)

SetMinAgeConfirm sets value of MinAgeConfirm conditional field.

func (*HelpTermsOfService) SetPopup ¶

func (t *HelpTermsOfService) SetPopup(value bool)

SetPopup sets value of Popup conditional field.

type HelpTermsOfServiceUpdate ¶

type HelpTermsOfServiceUpdate struct {
	// Expires field of HelpTermsOfServiceUpdate.
	Expires int
	// TermsOfService field of HelpTermsOfServiceUpdate.
	TermsOfService HelpTermsOfService
}

HelpTermsOfServiceUpdate represents TL type `help.termsOfServiceUpdate#28ecf961`.

func (*HelpTermsOfServiceUpdate) Decode ¶

func (t *HelpTermsOfServiceUpdate) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpTermsOfServiceUpdate) Encode ¶

func (t *HelpTermsOfServiceUpdate) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpTermsOfServiceUpdateBox ¶

type HelpTermsOfServiceUpdateBox struct {
	TermsOfServiceUpdate HelpTermsOfServiceUpdateClass
}

HelpTermsOfServiceUpdate boxes the HelpTermsOfServiceUpdateClass providing a helper.

func (*HelpTermsOfServiceUpdateBox) Decode ¶

func (b *HelpTermsOfServiceUpdateBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for HelpTermsOfServiceUpdateBox.

func (*HelpTermsOfServiceUpdateBox) Encode ¶

func (b *HelpTermsOfServiceUpdateBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for HelpTermsOfServiceUpdateBox.

type HelpTermsOfServiceUpdateClass ¶

type HelpTermsOfServiceUpdateClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

HelpTermsOfServiceUpdateClass represents help.TermsOfServiceUpdate generic type.

Example:

g, err := DecodeHelpTermsOfServiceUpdate(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *HelpTermsOfServiceUpdateEmpty: // help.termsOfServiceUpdateEmpty#e3309f7f
case *HelpTermsOfServiceUpdate: // help.termsOfServiceUpdate#28ecf961
default: panic(v)
}

func DecodeHelpTermsOfServiceUpdate ¶

func DecodeHelpTermsOfServiceUpdate(buf *bin.Buffer) (HelpTermsOfServiceUpdateClass, error)

DecodeHelpTermsOfServiceUpdate implements binary de-serialization for HelpTermsOfServiceUpdateClass.

type HelpTermsOfServiceUpdateEmpty ¶

type HelpTermsOfServiceUpdateEmpty struct {
	// Expires field of HelpTermsOfServiceUpdateEmpty.
	Expires int
}

HelpTermsOfServiceUpdateEmpty represents TL type `help.termsOfServiceUpdateEmpty#e3309f7f`.

func (*HelpTermsOfServiceUpdateEmpty) Decode ¶

Decode implements bin.Decoder.

func (*HelpTermsOfServiceUpdateEmpty) Encode ¶

Encode implements bin.Encoder.

type HelpUserInfo ¶

type HelpUserInfo struct {
	// Message field of HelpUserInfo.
	Message string
	// Entities field of HelpUserInfo.
	Entities []MessageEntityClass
	// Author field of HelpUserInfo.
	Author string
	// Date field of HelpUserInfo.
	Date int
}

HelpUserInfo represents TL type `help.userInfo#1eb3758`.

func (*HelpUserInfo) Decode ¶

func (u *HelpUserInfo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpUserInfo) Encode ¶

func (u *HelpUserInfo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HelpUserInfoBox ¶

type HelpUserInfoBox struct {
	UserInfo HelpUserInfoClass
}

HelpUserInfo boxes the HelpUserInfoClass providing a helper.

func (*HelpUserInfoBox) Decode ¶

func (b *HelpUserInfoBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for HelpUserInfoBox.

func (*HelpUserInfoBox) Encode ¶

func (b *HelpUserInfoBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for HelpUserInfoBox.

type HelpUserInfoClass ¶

type HelpUserInfoClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

HelpUserInfoClass represents help.UserInfo generic type.

Example:

g, err := DecodeHelpUserInfo(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *HelpUserInfoEmpty: // help.userInfoEmpty#f3ae2eed
case *HelpUserInfo: // help.userInfo#1eb3758
default: panic(v)
}

func DecodeHelpUserInfo ¶

func DecodeHelpUserInfo(buf *bin.Buffer) (HelpUserInfoClass, error)

DecodeHelpUserInfo implements binary de-serialization for HelpUserInfoClass.

type HelpUserInfoEmpty ¶

type HelpUserInfoEmpty struct {
}

HelpUserInfoEmpty represents TL type `help.userInfoEmpty#f3ae2eed`.

func (*HelpUserInfoEmpty) Decode ¶

func (u *HelpUserInfoEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HelpUserInfoEmpty) Encode ¶

func (u *HelpUserInfoEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type HighScore ¶

type HighScore struct {
	// Pos field of HighScore.
	Pos int
	// UserID field of HighScore.
	UserID int
	// Score field of HighScore.
	Score int
}

HighScore represents TL type `highScore#58fffcd0`.

func (*HighScore) Decode ¶

func (h *HighScore) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HighScore) Encode ¶

func (h *HighScore) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ImportedContact ¶

type ImportedContact struct {
	// UserID field of ImportedContact.
	UserID int
	// ClientID field of ImportedContact.
	ClientID int64
}

ImportedContact represents TL type `importedContact#d0028438`.

func (*ImportedContact) Decode ¶

func (i *ImportedContact) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ImportedContact) Encode ¶

func (i *ImportedContact) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InlineBotSwitchPM ¶

type InlineBotSwitchPM struct {
	// Text field of InlineBotSwitchPM.
	Text string
	// StartParam field of InlineBotSwitchPM.
	StartParam string
}

InlineBotSwitchPM represents TL type `inlineBotSwitchPM#3c20629f`.

func (*InlineBotSwitchPM) Decode ¶

func (i *InlineBotSwitchPM) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InlineBotSwitchPM) Encode ¶

func (i *InlineBotSwitchPM) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputAppEvent ¶

type InputAppEvent struct {
	// Time field of InputAppEvent.
	Time float64
	// Type field of InputAppEvent.
	Type string
	// Peer field of InputAppEvent.
	Peer int64
	// Data field of InputAppEvent.
	Data JSONValueClass
}

InputAppEvent represents TL type `inputAppEvent#1d1b1245`.

func (*InputAppEvent) Decode ¶

func (i *InputAppEvent) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputAppEvent) Encode ¶

func (i *InputAppEvent) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputBotInlineMessageBox ¶

type InputBotInlineMessageBox struct {
	InputBotInlineMessage InputBotInlineMessageClass
}

InputBotInlineMessage boxes the InputBotInlineMessageClass providing a helper.

func (*InputBotInlineMessageBox) Decode ¶

func (b *InputBotInlineMessageBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputBotInlineMessageBox.

func (*InputBotInlineMessageBox) Encode ¶

func (b *InputBotInlineMessageBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputBotInlineMessageBox.

type InputBotInlineMessageClass ¶

type InputBotInlineMessageClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputBotInlineMessageClass represents InputBotInlineMessage generic type.

Example:

g, err := DecodeInputBotInlineMessage(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputBotInlineMessageMediaAuto: // inputBotInlineMessageMediaAuto#3380c786
case *InputBotInlineMessageText: // inputBotInlineMessageText#3dcd7a87
case *InputBotInlineMessageMediaGeo: // inputBotInlineMessageMediaGeo#96929a85
case *InputBotInlineMessageMediaVenue: // inputBotInlineMessageMediaVenue#417bbf11
case *InputBotInlineMessageMediaContact: // inputBotInlineMessageMediaContact#a6edbffd
case *InputBotInlineMessageGame: // inputBotInlineMessageGame#4b425864
default: panic(v)
}

func DecodeInputBotInlineMessage ¶

func DecodeInputBotInlineMessage(buf *bin.Buffer) (InputBotInlineMessageClass, error)

DecodeInputBotInlineMessage implements binary de-serialization for InputBotInlineMessageClass.

type InputBotInlineMessageGame ¶

type InputBotInlineMessageGame struct {
	// Flags field of InputBotInlineMessageGame.
	Flags bin.Fields
	// ReplyMarkup field of InputBotInlineMessageGame.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
}

InputBotInlineMessageGame represents TL type `inputBotInlineMessageGame#4b425864`.

func (*InputBotInlineMessageGame) Decode ¶

func (i *InputBotInlineMessageGame) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputBotInlineMessageGame) Encode ¶

func (i *InputBotInlineMessageGame) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputBotInlineMessageGame) GetReplyMarkup ¶

func (i *InputBotInlineMessageGame) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*InputBotInlineMessageGame) SetReplyMarkup ¶

func (i *InputBotInlineMessageGame) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

type InputBotInlineMessageID ¶

type InputBotInlineMessageID struct {
	// DCID field of InputBotInlineMessageID.
	DCID int
	// ID field of InputBotInlineMessageID.
	ID int64
	// AccessHash field of InputBotInlineMessageID.
	AccessHash int64
}

InputBotInlineMessageID represents TL type `inputBotInlineMessageID#890c3d89`.

func (*InputBotInlineMessageID) Decode ¶

func (i *InputBotInlineMessageID) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputBotInlineMessageID) Encode ¶

func (i *InputBotInlineMessageID) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputBotInlineMessageMediaAuto ¶

type InputBotInlineMessageMediaAuto struct {
	// Flags field of InputBotInlineMessageMediaAuto.
	Flags bin.Fields
	// Message field of InputBotInlineMessageMediaAuto.
	Message string
	// Entities field of InputBotInlineMessageMediaAuto.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
	// ReplyMarkup field of InputBotInlineMessageMediaAuto.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
}

InputBotInlineMessageMediaAuto represents TL type `inputBotInlineMessageMediaAuto#3380c786`.

func (*InputBotInlineMessageMediaAuto) Decode ¶

Decode implements bin.Decoder.

func (*InputBotInlineMessageMediaAuto) Encode ¶

Encode implements bin.Encoder.

func (*InputBotInlineMessageMediaAuto) GetEntities ¶

func (i *InputBotInlineMessageMediaAuto) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*InputBotInlineMessageMediaAuto) GetReplyMarkup ¶

func (i *InputBotInlineMessageMediaAuto) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*InputBotInlineMessageMediaAuto) SetEntities ¶

func (i *InputBotInlineMessageMediaAuto) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*InputBotInlineMessageMediaAuto) SetReplyMarkup ¶

func (i *InputBotInlineMessageMediaAuto) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

type InputBotInlineMessageMediaContact ¶

type InputBotInlineMessageMediaContact struct {
	// Flags field of InputBotInlineMessageMediaContact.
	Flags bin.Fields
	// PhoneNumber field of InputBotInlineMessageMediaContact.
	PhoneNumber string
	// FirstName field of InputBotInlineMessageMediaContact.
	FirstName string
	// LastName field of InputBotInlineMessageMediaContact.
	LastName string
	// Vcard field of InputBotInlineMessageMediaContact.
	Vcard string
	// ReplyMarkup field of InputBotInlineMessageMediaContact.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
}

InputBotInlineMessageMediaContact represents TL type `inputBotInlineMessageMediaContact#a6edbffd`.

func (*InputBotInlineMessageMediaContact) Decode ¶

Decode implements bin.Decoder.

func (*InputBotInlineMessageMediaContact) Encode ¶

Encode implements bin.Encoder.

func (*InputBotInlineMessageMediaContact) GetReplyMarkup ¶

func (i *InputBotInlineMessageMediaContact) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*InputBotInlineMessageMediaContact) SetReplyMarkup ¶

func (i *InputBotInlineMessageMediaContact) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

type InputBotInlineMessageMediaGeo ¶

type InputBotInlineMessageMediaGeo struct {
	// Flags field of InputBotInlineMessageMediaGeo.
	Flags bin.Fields
	// GeoPoint field of InputBotInlineMessageMediaGeo.
	GeoPoint InputGeoPointClass
	// Heading field of InputBotInlineMessageMediaGeo.
	//
	// Use SetHeading and GetHeading helpers.
	Heading int
	// Period field of InputBotInlineMessageMediaGeo.
	//
	// Use SetPeriod and GetPeriod helpers.
	Period int
	// ProximityNotificationRadius field of InputBotInlineMessageMediaGeo.
	//
	// Use SetProximityNotificationRadius and GetProximityNotificationRadius helpers.
	ProximityNotificationRadius int
	// ReplyMarkup field of InputBotInlineMessageMediaGeo.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
}

InputBotInlineMessageMediaGeo represents TL type `inputBotInlineMessageMediaGeo#96929a85`.

func (*InputBotInlineMessageMediaGeo) Decode ¶

Decode implements bin.Decoder.

func (*InputBotInlineMessageMediaGeo) Encode ¶

Encode implements bin.Encoder.

func (*InputBotInlineMessageMediaGeo) GetHeading ¶

func (i *InputBotInlineMessageMediaGeo) GetHeading() (value int, ok bool)

GetHeading returns value of Heading conditional field and boolean which is true if field was set.

func (*InputBotInlineMessageMediaGeo) GetPeriod ¶

func (i *InputBotInlineMessageMediaGeo) GetPeriod() (value int, ok bool)

GetPeriod returns value of Period conditional field and boolean which is true if field was set.

func (*InputBotInlineMessageMediaGeo) GetProximityNotificationRadius ¶

func (i *InputBotInlineMessageMediaGeo) GetProximityNotificationRadius() (value int, ok bool)

GetProximityNotificationRadius returns value of ProximityNotificationRadius conditional field and boolean which is true if field was set.

func (*InputBotInlineMessageMediaGeo) GetReplyMarkup ¶

func (i *InputBotInlineMessageMediaGeo) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*InputBotInlineMessageMediaGeo) SetHeading ¶

func (i *InputBotInlineMessageMediaGeo) SetHeading(value int)

SetHeading sets value of Heading conditional field.

func (*InputBotInlineMessageMediaGeo) SetPeriod ¶

func (i *InputBotInlineMessageMediaGeo) SetPeriod(value int)

SetPeriod sets value of Period conditional field.

func (*InputBotInlineMessageMediaGeo) SetProximityNotificationRadius ¶

func (i *InputBotInlineMessageMediaGeo) SetProximityNotificationRadius(value int)

SetProximityNotificationRadius sets value of ProximityNotificationRadius conditional field.

func (*InputBotInlineMessageMediaGeo) SetReplyMarkup ¶

func (i *InputBotInlineMessageMediaGeo) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

type InputBotInlineMessageMediaVenue ¶

type InputBotInlineMessageMediaVenue struct {
	// Flags field of InputBotInlineMessageMediaVenue.
	Flags bin.Fields
	// GeoPoint field of InputBotInlineMessageMediaVenue.
	GeoPoint InputGeoPointClass
	// Title field of InputBotInlineMessageMediaVenue.
	Title string
	// Address field of InputBotInlineMessageMediaVenue.
	Address string
	// Provider field of InputBotInlineMessageMediaVenue.
	Provider string
	// VenueID field of InputBotInlineMessageMediaVenue.
	VenueID string
	// VenueType field of InputBotInlineMessageMediaVenue.
	VenueType string
	// ReplyMarkup field of InputBotInlineMessageMediaVenue.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
}

InputBotInlineMessageMediaVenue represents TL type `inputBotInlineMessageMediaVenue#417bbf11`.

func (*InputBotInlineMessageMediaVenue) Decode ¶

Decode implements bin.Decoder.

func (*InputBotInlineMessageMediaVenue) Encode ¶

Encode implements bin.Encoder.

func (*InputBotInlineMessageMediaVenue) GetReplyMarkup ¶

func (i *InputBotInlineMessageMediaVenue) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*InputBotInlineMessageMediaVenue) SetReplyMarkup ¶

func (i *InputBotInlineMessageMediaVenue) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

type InputBotInlineMessageText ¶

type InputBotInlineMessageText struct {
	// Flags field of InputBotInlineMessageText.
	Flags bin.Fields
	// NoWebpage field of InputBotInlineMessageText.
	NoWebpage bool
	// Message field of InputBotInlineMessageText.
	Message string
	// Entities field of InputBotInlineMessageText.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
	// ReplyMarkup field of InputBotInlineMessageText.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
}

InputBotInlineMessageText represents TL type `inputBotInlineMessageText#3dcd7a87`.

func (*InputBotInlineMessageText) Decode ¶

func (i *InputBotInlineMessageText) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputBotInlineMessageText) Encode ¶

func (i *InputBotInlineMessageText) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputBotInlineMessageText) GetEntities ¶

func (i *InputBotInlineMessageText) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*InputBotInlineMessageText) GetReplyMarkup ¶

func (i *InputBotInlineMessageText) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*InputBotInlineMessageText) SetEntities ¶

func (i *InputBotInlineMessageText) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*InputBotInlineMessageText) SetNoWebpage ¶

func (i *InputBotInlineMessageText) SetNoWebpage(value bool)

SetNoWebpage sets value of NoWebpage conditional field.

func (*InputBotInlineMessageText) SetReplyMarkup ¶

func (i *InputBotInlineMessageText) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

type InputBotInlineResult ¶

type InputBotInlineResult struct {
	// Flags field of InputBotInlineResult.
	Flags bin.Fields
	// ID field of InputBotInlineResult.
	ID string
	// Type field of InputBotInlineResult.
	Type string
	// Title field of InputBotInlineResult.
	//
	// Use SetTitle and GetTitle helpers.
	Title string
	// Description field of InputBotInlineResult.
	//
	// Use SetDescription and GetDescription helpers.
	Description string
	// URL field of InputBotInlineResult.
	//
	// Use SetURL and GetURL helpers.
	URL string
	// Thumb field of InputBotInlineResult.
	//
	// Use SetThumb and GetThumb helpers.
	Thumb InputWebDocument
	// Content field of InputBotInlineResult.
	//
	// Use SetContent and GetContent helpers.
	Content InputWebDocument
	// SendMessage field of InputBotInlineResult.
	SendMessage InputBotInlineMessageClass
}

InputBotInlineResult represents TL type `inputBotInlineResult#88bf9319`.

func (*InputBotInlineResult) Decode ¶

func (i *InputBotInlineResult) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputBotInlineResult) Encode ¶

func (i *InputBotInlineResult) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputBotInlineResult) GetContent ¶

func (i *InputBotInlineResult) GetContent() (value InputWebDocument, ok bool)

GetContent returns value of Content conditional field and boolean which is true if field was set.

func (*InputBotInlineResult) GetDescription ¶

func (i *InputBotInlineResult) GetDescription() (value string, ok bool)

GetDescription returns value of Description conditional field and boolean which is true if field was set.

func (*InputBotInlineResult) GetThumb ¶

func (i *InputBotInlineResult) GetThumb() (value InputWebDocument, ok bool)

GetThumb returns value of Thumb conditional field and boolean which is true if field was set.

func (*InputBotInlineResult) GetTitle ¶

func (i *InputBotInlineResult) GetTitle() (value string, ok bool)

GetTitle returns value of Title conditional field and boolean which is true if field was set.

func (*InputBotInlineResult) GetURL ¶

func (i *InputBotInlineResult) GetURL() (value string, ok bool)

GetURL returns value of URL conditional field and boolean which is true if field was set.

func (*InputBotInlineResult) SetContent ¶

func (i *InputBotInlineResult) SetContent(value InputWebDocument)

SetContent sets value of Content conditional field.

func (*InputBotInlineResult) SetDescription ¶

func (i *InputBotInlineResult) SetDescription(value string)

SetDescription sets value of Description conditional field.

func (*InputBotInlineResult) SetThumb ¶

func (i *InputBotInlineResult) SetThumb(value InputWebDocument)

SetThumb sets value of Thumb conditional field.

func (*InputBotInlineResult) SetTitle ¶

func (i *InputBotInlineResult) SetTitle(value string)

SetTitle sets value of Title conditional field.

func (*InputBotInlineResult) SetURL ¶

func (i *InputBotInlineResult) SetURL(value string)

SetURL sets value of URL conditional field.

type InputBotInlineResultBox ¶

type InputBotInlineResultBox struct {
	InputBotInlineResult InputBotInlineResultClass
}

InputBotInlineResult boxes the InputBotInlineResultClass providing a helper.

func (*InputBotInlineResultBox) Decode ¶

func (b *InputBotInlineResultBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputBotInlineResultBox.

func (*InputBotInlineResultBox) Encode ¶

func (b *InputBotInlineResultBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputBotInlineResultBox.

type InputBotInlineResultClass ¶

type InputBotInlineResultClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputBotInlineResultClass represents InputBotInlineResult generic type.

Example:

g, err := DecodeInputBotInlineResult(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputBotInlineResult: // inputBotInlineResult#88bf9319
case *InputBotInlineResultPhoto: // inputBotInlineResultPhoto#a8d864a7
case *InputBotInlineResultDocument: // inputBotInlineResultDocument#fff8fdc4
case *InputBotInlineResultGame: // inputBotInlineResultGame#4fa417f2
default: panic(v)
}

func DecodeInputBotInlineResult ¶

func DecodeInputBotInlineResult(buf *bin.Buffer) (InputBotInlineResultClass, error)

DecodeInputBotInlineResult implements binary de-serialization for InputBotInlineResultClass.

type InputBotInlineResultDocument ¶

type InputBotInlineResultDocument struct {
	// Flags field of InputBotInlineResultDocument.
	Flags bin.Fields
	// ID field of InputBotInlineResultDocument.
	ID string
	// Type field of InputBotInlineResultDocument.
	Type string
	// Title field of InputBotInlineResultDocument.
	//
	// Use SetTitle and GetTitle helpers.
	Title string
	// Description field of InputBotInlineResultDocument.
	//
	// Use SetDescription and GetDescription helpers.
	Description string
	// Document field of InputBotInlineResultDocument.
	Document InputDocumentClass
	// SendMessage field of InputBotInlineResultDocument.
	SendMessage InputBotInlineMessageClass
}

InputBotInlineResultDocument represents TL type `inputBotInlineResultDocument#fff8fdc4`.

func (*InputBotInlineResultDocument) Decode ¶

Decode implements bin.Decoder.

func (*InputBotInlineResultDocument) Encode ¶

Encode implements bin.Encoder.

func (*InputBotInlineResultDocument) GetDescription ¶

func (i *InputBotInlineResultDocument) GetDescription() (value string, ok bool)

GetDescription returns value of Description conditional field and boolean which is true if field was set.

func (*InputBotInlineResultDocument) GetTitle ¶

func (i *InputBotInlineResultDocument) GetTitle() (value string, ok bool)

GetTitle returns value of Title conditional field and boolean which is true if field was set.

func (*InputBotInlineResultDocument) SetDescription ¶

func (i *InputBotInlineResultDocument) SetDescription(value string)

SetDescription sets value of Description conditional field.

func (*InputBotInlineResultDocument) SetTitle ¶

func (i *InputBotInlineResultDocument) SetTitle(value string)

SetTitle sets value of Title conditional field.

type InputBotInlineResultGame ¶

type InputBotInlineResultGame struct {
	// ID field of InputBotInlineResultGame.
	ID string
	// ShortName field of InputBotInlineResultGame.
	ShortName string
	// SendMessage field of InputBotInlineResultGame.
	SendMessage InputBotInlineMessageClass
}

InputBotInlineResultGame represents TL type `inputBotInlineResultGame#4fa417f2`.

func (*InputBotInlineResultGame) Decode ¶

func (i *InputBotInlineResultGame) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputBotInlineResultGame) Encode ¶

func (i *InputBotInlineResultGame) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputBotInlineResultPhoto ¶

type InputBotInlineResultPhoto struct {
	// ID field of InputBotInlineResultPhoto.
	ID string
	// Type field of InputBotInlineResultPhoto.
	Type string
	// Photo field of InputBotInlineResultPhoto.
	Photo InputPhotoClass
	// SendMessage field of InputBotInlineResultPhoto.
	SendMessage InputBotInlineMessageClass
}

InputBotInlineResultPhoto represents TL type `inputBotInlineResultPhoto#a8d864a7`.

func (*InputBotInlineResultPhoto) Decode ¶

func (i *InputBotInlineResultPhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputBotInlineResultPhoto) Encode ¶

func (i *InputBotInlineResultPhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputChannel ¶

type InputChannel struct {
	// ChannelID field of InputChannel.
	ChannelID int
	// AccessHash field of InputChannel.
	AccessHash int64
}

InputChannel represents TL type `inputChannel#afeb712e`.

func (*InputChannel) Decode ¶

func (i *InputChannel) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputChannel) Encode ¶

func (i *InputChannel) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputChannelBox ¶

type InputChannelBox struct {
	InputChannel InputChannelClass
}

InputChannel boxes the InputChannelClass providing a helper.

func (*InputChannelBox) Decode ¶

func (b *InputChannelBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputChannelBox.

func (*InputChannelBox) Encode ¶

func (b *InputChannelBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputChannelBox.

type InputChannelClass ¶

type InputChannelClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputChannelClass represents InputChannel generic type.

Example:

g, err := DecodeInputChannel(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputChannelEmpty: // inputChannelEmpty#ee8c1e86
case *InputChannel: // inputChannel#afeb712e
case *InputChannelFromMessage: // inputChannelFromMessage#2a286531
default: panic(v)
}

func DecodeInputChannel ¶

func DecodeInputChannel(buf *bin.Buffer) (InputChannelClass, error)

DecodeInputChannel implements binary de-serialization for InputChannelClass.

type InputChannelEmpty ¶

type InputChannelEmpty struct {
}

InputChannelEmpty represents TL type `inputChannelEmpty#ee8c1e86`.

func (*InputChannelEmpty) Decode ¶

func (i *InputChannelEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputChannelEmpty) Encode ¶

func (i *InputChannelEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputChannelFromMessage ¶

type InputChannelFromMessage struct {
	// Peer field of InputChannelFromMessage.
	Peer InputPeerClass
	// MsgID field of InputChannelFromMessage.
	MsgID int
	// ChannelID field of InputChannelFromMessage.
	ChannelID int
}

InputChannelFromMessage represents TL type `inputChannelFromMessage#2a286531`.

func (*InputChannelFromMessage) Decode ¶

func (i *InputChannelFromMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputChannelFromMessage) Encode ¶

func (i *InputChannelFromMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputChatPhoto ¶

type InputChatPhoto struct {
	// ID field of InputChatPhoto.
	ID InputPhotoClass
}

InputChatPhoto represents TL type `inputChatPhoto#8953ad37`.

func (*InputChatPhoto) Decode ¶

func (i *InputChatPhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputChatPhoto) Encode ¶

func (i *InputChatPhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputChatPhotoBox ¶

type InputChatPhotoBox struct {
	InputChatPhoto InputChatPhotoClass
}

InputChatPhoto boxes the InputChatPhotoClass providing a helper.

func (*InputChatPhotoBox) Decode ¶

func (b *InputChatPhotoBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputChatPhotoBox.

func (*InputChatPhotoBox) Encode ¶

func (b *InputChatPhotoBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputChatPhotoBox.

type InputChatPhotoClass ¶

type InputChatPhotoClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputChatPhotoClass represents InputChatPhoto generic type.

Example:

g, err := DecodeInputChatPhoto(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputChatPhotoEmpty: // inputChatPhotoEmpty#1ca48f57
case *InputChatUploadedPhoto: // inputChatUploadedPhoto#c642724e
case *InputChatPhoto: // inputChatPhoto#8953ad37
default: panic(v)
}

func DecodeInputChatPhoto ¶

func DecodeInputChatPhoto(buf *bin.Buffer) (InputChatPhotoClass, error)

DecodeInputChatPhoto implements binary de-serialization for InputChatPhotoClass.

type InputChatPhotoEmpty ¶

type InputChatPhotoEmpty struct {
}

InputChatPhotoEmpty represents TL type `inputChatPhotoEmpty#1ca48f57`.

func (*InputChatPhotoEmpty) Decode ¶

func (i *InputChatPhotoEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputChatPhotoEmpty) Encode ¶

func (i *InputChatPhotoEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputChatUploadedPhoto ¶

type InputChatUploadedPhoto struct {
	// Flags field of InputChatUploadedPhoto.
	Flags bin.Fields
	// File field of InputChatUploadedPhoto.
	//
	// Use SetFile and GetFile helpers.
	File InputFileClass
	// Video field of InputChatUploadedPhoto.
	//
	// Use SetVideo and GetVideo helpers.
	Video InputFileClass
	// VideoStartTs field of InputChatUploadedPhoto.
	//
	// Use SetVideoStartTs and GetVideoStartTs helpers.
	VideoStartTs float64
}

InputChatUploadedPhoto represents TL type `inputChatUploadedPhoto#c642724e`.

func (*InputChatUploadedPhoto) Decode ¶

func (i *InputChatUploadedPhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputChatUploadedPhoto) Encode ¶

func (i *InputChatUploadedPhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputChatUploadedPhoto) GetFile ¶

func (i *InputChatUploadedPhoto) GetFile() (value InputFileClass, ok bool)

GetFile returns value of File conditional field and boolean which is true if field was set.

func (*InputChatUploadedPhoto) GetVideo ¶

func (i *InputChatUploadedPhoto) GetVideo() (value InputFileClass, ok bool)

GetVideo returns value of Video conditional field and boolean which is true if field was set.

func (*InputChatUploadedPhoto) GetVideoStartTs ¶

func (i *InputChatUploadedPhoto) GetVideoStartTs() (value float64, ok bool)

GetVideoStartTs returns value of VideoStartTs conditional field and boolean which is true if field was set.

func (*InputChatUploadedPhoto) SetFile ¶

func (i *InputChatUploadedPhoto) SetFile(value InputFileClass)

SetFile sets value of File conditional field.

func (*InputChatUploadedPhoto) SetVideo ¶

func (i *InputChatUploadedPhoto) SetVideo(value InputFileClass)

SetVideo sets value of Video conditional field.

func (*InputChatUploadedPhoto) SetVideoStartTs ¶

func (i *InputChatUploadedPhoto) SetVideoStartTs(value float64)

SetVideoStartTs sets value of VideoStartTs conditional field.

type InputCheckPasswordEmpty ¶

type InputCheckPasswordEmpty struct {
}

InputCheckPasswordEmpty represents TL type `inputCheckPasswordEmpty#9880f658`.

func (*InputCheckPasswordEmpty) Decode ¶

func (i *InputCheckPasswordEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputCheckPasswordEmpty) Encode ¶

func (i *InputCheckPasswordEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputCheckPasswordSRP ¶

type InputCheckPasswordSRP struct {
	// SrpID field of InputCheckPasswordSRP.
	SrpID int64
	// A field of InputCheckPasswordSRP.
	A []byte
	// M1 field of InputCheckPasswordSRP.
	M1 []byte
}

InputCheckPasswordSRP represents TL type `inputCheckPasswordSRP#d27ff082`.

func (*InputCheckPasswordSRP) Decode ¶

func (i *InputCheckPasswordSRP) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputCheckPasswordSRP) Encode ¶

func (i *InputCheckPasswordSRP) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputCheckPasswordSRPBox ¶

type InputCheckPasswordSRPBox struct {
	InputCheckPasswordSRP InputCheckPasswordSRPClass
}

InputCheckPasswordSRP boxes the InputCheckPasswordSRPClass providing a helper.

func (*InputCheckPasswordSRPBox) Decode ¶

func (b *InputCheckPasswordSRPBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputCheckPasswordSRPBox.

func (*InputCheckPasswordSRPBox) Encode ¶

func (b *InputCheckPasswordSRPBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputCheckPasswordSRPBox.

type InputCheckPasswordSRPClass ¶

type InputCheckPasswordSRPClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputCheckPasswordSRPClass represents InputCheckPasswordSRP generic type.

Example:

g, err := DecodeInputCheckPasswordSRP(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputCheckPasswordEmpty: // inputCheckPasswordEmpty#9880f658
case *InputCheckPasswordSRP: // inputCheckPasswordSRP#d27ff082
default: panic(v)
}

func DecodeInputCheckPasswordSRP ¶

func DecodeInputCheckPasswordSRP(buf *bin.Buffer) (InputCheckPasswordSRPClass, error)

DecodeInputCheckPasswordSRP implements binary de-serialization for InputCheckPasswordSRPClass.

type InputClientProxy ¶

type InputClientProxy struct {
	// Address field of InputClientProxy.
	Address string
	// Port field of InputClientProxy.
	Port int
}

InputClientProxy represents TL type `inputClientProxy#75588b3f`.

func (*InputClientProxy) Decode ¶

func (i *InputClientProxy) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputClientProxy) Encode ¶

func (i *InputClientProxy) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputDialogPeer ¶

type InputDialogPeer struct {
	// Peer field of InputDialogPeer.
	Peer InputPeerClass
}

InputDialogPeer represents TL type `inputDialogPeer#fcaafeb7`.

func (*InputDialogPeer) Decode ¶

func (i *InputDialogPeer) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputDialogPeer) Encode ¶

func (i *InputDialogPeer) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputDialogPeerBox ¶

type InputDialogPeerBox struct {
	InputDialogPeer InputDialogPeerClass
}

InputDialogPeer boxes the InputDialogPeerClass providing a helper.

func (*InputDialogPeerBox) Decode ¶

func (b *InputDialogPeerBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputDialogPeerBox.

func (*InputDialogPeerBox) Encode ¶

func (b *InputDialogPeerBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputDialogPeerBox.

type InputDialogPeerClass ¶

type InputDialogPeerClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputDialogPeerClass represents InputDialogPeer generic type.

Example:

g, err := DecodeInputDialogPeer(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputDialogPeer: // inputDialogPeer#fcaafeb7
case *InputDialogPeerFolder: // inputDialogPeerFolder#64600527
default: panic(v)
}

func DecodeInputDialogPeer ¶

func DecodeInputDialogPeer(buf *bin.Buffer) (InputDialogPeerClass, error)

DecodeInputDialogPeer implements binary de-serialization for InputDialogPeerClass.

type InputDialogPeerFolder ¶

type InputDialogPeerFolder struct {
	// FolderID field of InputDialogPeerFolder.
	FolderID int
}

InputDialogPeerFolder represents TL type `inputDialogPeerFolder#64600527`.

func (*InputDialogPeerFolder) Decode ¶

func (i *InputDialogPeerFolder) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputDialogPeerFolder) Encode ¶

func (i *InputDialogPeerFolder) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputDocument ¶

type InputDocument struct {
	// ID field of InputDocument.
	ID int64
	// AccessHash field of InputDocument.
	AccessHash int64
	// FileReference field of InputDocument.
	FileReference []byte
}

InputDocument represents TL type `inputDocument#1abfb575`.

func (*InputDocument) Decode ¶

func (i *InputDocument) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputDocument) Encode ¶

func (i *InputDocument) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputDocumentBox ¶

type InputDocumentBox struct {
	InputDocument InputDocumentClass
}

InputDocument boxes the InputDocumentClass providing a helper.

func (*InputDocumentBox) Decode ¶

func (b *InputDocumentBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputDocumentBox.

func (*InputDocumentBox) Encode ¶

func (b *InputDocumentBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputDocumentBox.

type InputDocumentClass ¶

type InputDocumentClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputDocumentClass represents InputDocument generic type.

Example:

g, err := DecodeInputDocument(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputDocumentEmpty: // inputDocumentEmpty#72f0eaae
case *InputDocument: // inputDocument#1abfb575
default: panic(v)
}

func DecodeInputDocument ¶

func DecodeInputDocument(buf *bin.Buffer) (InputDocumentClass, error)

DecodeInputDocument implements binary de-serialization for InputDocumentClass.

type InputDocumentEmpty ¶

type InputDocumentEmpty struct {
}

InputDocumentEmpty represents TL type `inputDocumentEmpty#72f0eaae`.

func (*InputDocumentEmpty) Decode ¶

func (i *InputDocumentEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputDocumentEmpty) Encode ¶

func (i *InputDocumentEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputDocumentFileLocation ¶

type InputDocumentFileLocation struct {
	// ID field of InputDocumentFileLocation.
	ID int64
	// AccessHash field of InputDocumentFileLocation.
	AccessHash int64
	// FileReference field of InputDocumentFileLocation.
	FileReference []byte
	// ThumbSize field of InputDocumentFileLocation.
	ThumbSize string
}

InputDocumentFileLocation represents TL type `inputDocumentFileLocation#bad07584`.

func (*InputDocumentFileLocation) Decode ¶

func (i *InputDocumentFileLocation) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputDocumentFileLocation) Encode ¶

func (i *InputDocumentFileLocation) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputEncryptedChat ¶

type InputEncryptedChat struct {
	// ChatID field of InputEncryptedChat.
	ChatID int
	// AccessHash field of InputEncryptedChat.
	AccessHash int64
}

InputEncryptedChat represents TL type `inputEncryptedChat#f141b5e1`.

func (*InputEncryptedChat) Decode ¶

func (i *InputEncryptedChat) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputEncryptedChat) Encode ¶

func (i *InputEncryptedChat) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputEncryptedFile ¶

type InputEncryptedFile struct {
	// ID field of InputEncryptedFile.
	ID int64
	// AccessHash field of InputEncryptedFile.
	AccessHash int64
}

InputEncryptedFile represents TL type `inputEncryptedFile#5a17b5e5`.

func (*InputEncryptedFile) Decode ¶

func (i *InputEncryptedFile) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputEncryptedFile) Encode ¶

func (i *InputEncryptedFile) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputEncryptedFileBigUploaded ¶

type InputEncryptedFileBigUploaded struct {
	// ID field of InputEncryptedFileBigUploaded.
	ID int64
	// Parts field of InputEncryptedFileBigUploaded.
	Parts int
	// KeyFingerprint field of InputEncryptedFileBigUploaded.
	KeyFingerprint int
}

InputEncryptedFileBigUploaded represents TL type `inputEncryptedFileBigUploaded#2dc173c8`.

func (*InputEncryptedFileBigUploaded) Decode ¶

Decode implements bin.Decoder.

func (*InputEncryptedFileBigUploaded) Encode ¶

Encode implements bin.Encoder.

type InputEncryptedFileBox ¶

type InputEncryptedFileBox struct {
	InputEncryptedFile InputEncryptedFileClass
}

InputEncryptedFile boxes the InputEncryptedFileClass providing a helper.

func (*InputEncryptedFileBox) Decode ¶

func (b *InputEncryptedFileBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputEncryptedFileBox.

func (*InputEncryptedFileBox) Encode ¶

func (b *InputEncryptedFileBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputEncryptedFileBox.

type InputEncryptedFileClass ¶

type InputEncryptedFileClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputEncryptedFileClass represents InputEncryptedFile generic type.

Example:

g, err := DecodeInputEncryptedFile(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputEncryptedFileEmpty: // inputEncryptedFileEmpty#1837c364
case *InputEncryptedFileUploaded: // inputEncryptedFileUploaded#64bd0306
case *InputEncryptedFile: // inputEncryptedFile#5a17b5e5
case *InputEncryptedFileBigUploaded: // inputEncryptedFileBigUploaded#2dc173c8
default: panic(v)
}

func DecodeInputEncryptedFile ¶

func DecodeInputEncryptedFile(buf *bin.Buffer) (InputEncryptedFileClass, error)

DecodeInputEncryptedFile implements binary de-serialization for InputEncryptedFileClass.

type InputEncryptedFileEmpty ¶

type InputEncryptedFileEmpty struct {
}

InputEncryptedFileEmpty represents TL type `inputEncryptedFileEmpty#1837c364`.

func (*InputEncryptedFileEmpty) Decode ¶

func (i *InputEncryptedFileEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputEncryptedFileEmpty) Encode ¶

func (i *InputEncryptedFileEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputEncryptedFileLocation ¶

type InputEncryptedFileLocation struct {
	// ID field of InputEncryptedFileLocation.
	ID int64
	// AccessHash field of InputEncryptedFileLocation.
	AccessHash int64
}

InputEncryptedFileLocation represents TL type `inputEncryptedFileLocation#f5235d55`.

func (*InputEncryptedFileLocation) Decode ¶

Decode implements bin.Decoder.

func (*InputEncryptedFileLocation) Encode ¶

Encode implements bin.Encoder.

type InputEncryptedFileUploaded ¶

type InputEncryptedFileUploaded struct {
	// ID field of InputEncryptedFileUploaded.
	ID int64
	// Parts field of InputEncryptedFileUploaded.
	Parts int
	// Md5Checksum field of InputEncryptedFileUploaded.
	Md5Checksum string
	// KeyFingerprint field of InputEncryptedFileUploaded.
	KeyFingerprint int
}

InputEncryptedFileUploaded represents TL type `inputEncryptedFileUploaded#64bd0306`.

func (*InputEncryptedFileUploaded) Decode ¶

Decode implements bin.Decoder.

func (*InputEncryptedFileUploaded) Encode ¶

Encode implements bin.Encoder.

type InputFile ¶

type InputFile struct {
	// ID field of InputFile.
	ID int64
	// Parts field of InputFile.
	Parts int
	// Name field of InputFile.
	Name string
	// Md5Checksum field of InputFile.
	Md5Checksum string
}

InputFile represents TL type `inputFile#f52ff27f`.

func (*InputFile) Decode ¶

func (i *InputFile) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputFile) Encode ¶

func (i *InputFile) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputFileBig ¶

type InputFileBig struct {
	// ID field of InputFileBig.
	ID int64
	// Parts field of InputFileBig.
	Parts int
	// Name field of InputFileBig.
	Name string
}

InputFileBig represents TL type `inputFileBig#fa4f0bb5`.

func (*InputFileBig) Decode ¶

func (i *InputFileBig) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputFileBig) Encode ¶

func (i *InputFileBig) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputFileBox ¶

type InputFileBox struct {
	InputFile InputFileClass
}

InputFile boxes the InputFileClass providing a helper.

func (*InputFileBox) Decode ¶

func (b *InputFileBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputFileBox.

func (*InputFileBox) Encode ¶

func (b *InputFileBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputFileBox.

type InputFileClass ¶

type InputFileClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputFileClass represents InputFile generic type.

Example:

g, err := DecodeInputFile(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputFile: // inputFile#f52ff27f
case *InputFileBig: // inputFileBig#fa4f0bb5
default: panic(v)
}

func DecodeInputFile ¶

func DecodeInputFile(buf *bin.Buffer) (InputFileClass, error)

DecodeInputFile implements binary de-serialization for InputFileClass.

type InputFileLocation ¶

type InputFileLocation struct {
	// VolumeID field of InputFileLocation.
	VolumeID int64
	// LocalID field of InputFileLocation.
	LocalID int
	// Secret field of InputFileLocation.
	Secret int64
	// FileReference field of InputFileLocation.
	FileReference []byte
}

InputFileLocation represents TL type `inputFileLocation#dfdaabe1`.

func (*InputFileLocation) Decode ¶

func (i *InputFileLocation) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputFileLocation) Encode ¶

func (i *InputFileLocation) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputFileLocationBox ¶

type InputFileLocationBox struct {
	InputFileLocation InputFileLocationClass
}

InputFileLocation boxes the InputFileLocationClass providing a helper.

func (*InputFileLocationBox) Decode ¶

func (b *InputFileLocationBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputFileLocationBox.

func (*InputFileLocationBox) Encode ¶

func (b *InputFileLocationBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputFileLocationBox.

type InputFileLocationClass ¶

type InputFileLocationClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputFileLocationClass represents InputFileLocation generic type.

Example:

g, err := DecodeInputFileLocation(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputFileLocation: // inputFileLocation#dfdaabe1
case *InputEncryptedFileLocation: // inputEncryptedFileLocation#f5235d55
case *InputDocumentFileLocation: // inputDocumentFileLocation#bad07584
case *InputSecureFileLocation: // inputSecureFileLocation#cbc7ee28
case *InputTakeoutFileLocation: // inputTakeoutFileLocation#29be5899
case *InputPhotoFileLocation: // inputPhotoFileLocation#40181ffe
case *InputPhotoLegacyFileLocation: // inputPhotoLegacyFileLocation#d83466f3
case *InputPeerPhotoFileLocation: // inputPeerPhotoFileLocation#27d69997
case *InputStickerSetThumb: // inputStickerSetThumb#dbaeae9
default: panic(v)
}

func DecodeInputFileLocation ¶

func DecodeInputFileLocation(buf *bin.Buffer) (InputFileLocationClass, error)

DecodeInputFileLocation implements binary de-serialization for InputFileLocationClass.

type InputFolderPeer ¶

type InputFolderPeer struct {
	// Peer field of InputFolderPeer.
	Peer InputPeerClass
	// FolderID field of InputFolderPeer.
	FolderID int
}

InputFolderPeer represents TL type `inputFolderPeer#fbd2c296`.

func (*InputFolderPeer) Decode ¶

func (i *InputFolderPeer) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputFolderPeer) Encode ¶

func (i *InputFolderPeer) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputGameBox ¶

type InputGameBox struct {
	InputGame InputGameClass
}

InputGame boxes the InputGameClass providing a helper.

func (*InputGameBox) Decode ¶

func (b *InputGameBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputGameBox.

func (*InputGameBox) Encode ¶

func (b *InputGameBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputGameBox.

type InputGameClass ¶

type InputGameClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputGameClass represents InputGame generic type.

Example:

g, err := DecodeInputGame(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputGameID: // inputGameID#32c3e77
case *InputGameShortName: // inputGameShortName#c331e80a
default: panic(v)
}

func DecodeInputGame ¶

func DecodeInputGame(buf *bin.Buffer) (InputGameClass, error)

DecodeInputGame implements binary de-serialization for InputGameClass.

type InputGameID ¶

type InputGameID struct {
	// ID field of InputGameID.
	ID int64
	// AccessHash field of InputGameID.
	AccessHash int64
}

InputGameID represents TL type `inputGameID#32c3e77`.

func (*InputGameID) Decode ¶

func (i *InputGameID) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputGameID) Encode ¶

func (i *InputGameID) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputGameShortName ¶

type InputGameShortName struct {
	// BotID field of InputGameShortName.
	BotID InputUserClass
	// ShortName field of InputGameShortName.
	ShortName string
}

InputGameShortName represents TL type `inputGameShortName#c331e80a`.

func (*InputGameShortName) Decode ¶

func (i *InputGameShortName) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputGameShortName) Encode ¶

func (i *InputGameShortName) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputGeoPoint ¶

type InputGeoPoint struct {
	// Flags field of InputGeoPoint.
	Flags bin.Fields
	// Lat field of InputGeoPoint.
	Lat float64
	// Long field of InputGeoPoint.
	Long float64
	// AccuracyRadius field of InputGeoPoint.
	//
	// Use SetAccuracyRadius and GetAccuracyRadius helpers.
	AccuracyRadius int
}

InputGeoPoint represents TL type `inputGeoPoint#48222faf`.

func (*InputGeoPoint) Decode ¶

func (i *InputGeoPoint) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputGeoPoint) Encode ¶

func (i *InputGeoPoint) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputGeoPoint) GetAccuracyRadius ¶

func (i *InputGeoPoint) GetAccuracyRadius() (value int, ok bool)

GetAccuracyRadius returns value of AccuracyRadius conditional field and boolean which is true if field was set.

func (*InputGeoPoint) SetAccuracyRadius ¶

func (i *InputGeoPoint) SetAccuracyRadius(value int)

SetAccuracyRadius sets value of AccuracyRadius conditional field.

type InputGeoPointBox ¶

type InputGeoPointBox struct {
	InputGeoPoint InputGeoPointClass
}

InputGeoPoint boxes the InputGeoPointClass providing a helper.

func (*InputGeoPointBox) Decode ¶

func (b *InputGeoPointBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputGeoPointBox.

func (*InputGeoPointBox) Encode ¶

func (b *InputGeoPointBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputGeoPointBox.

type InputGeoPointClass ¶

type InputGeoPointClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputGeoPointClass represents InputGeoPoint generic type.

Example:

g, err := DecodeInputGeoPoint(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputGeoPointEmpty: // inputGeoPointEmpty#e4c123d6
case *InputGeoPoint: // inputGeoPoint#48222faf
default: panic(v)
}

func DecodeInputGeoPoint ¶

func DecodeInputGeoPoint(buf *bin.Buffer) (InputGeoPointClass, error)

DecodeInputGeoPoint implements binary de-serialization for InputGeoPointClass.

type InputGeoPointEmpty ¶

type InputGeoPointEmpty struct {
}

InputGeoPointEmpty represents TL type `inputGeoPointEmpty#e4c123d6`.

func (*InputGeoPointEmpty) Decode ¶

func (i *InputGeoPointEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputGeoPointEmpty) Encode ¶

func (i *InputGeoPointEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputKeyboardButtonUrlAuth ¶

type InputKeyboardButtonUrlAuth struct {
	// Flags field of InputKeyboardButtonUrlAuth.
	Flags bin.Fields
	// RequestWriteAccess field of InputKeyboardButtonUrlAuth.
	RequestWriteAccess bool
	// Text field of InputKeyboardButtonUrlAuth.
	Text string
	// FwdText field of InputKeyboardButtonUrlAuth.
	//
	// Use SetFwdText and GetFwdText helpers.
	FwdText string
	// URL field of InputKeyboardButtonUrlAuth.
	URL string
	// Bot field of InputKeyboardButtonUrlAuth.
	Bot InputUserClass
}

InputKeyboardButtonUrlAuth represents TL type `inputKeyboardButtonUrlAuth#d02e7fd4`.

func (*InputKeyboardButtonUrlAuth) Decode ¶

Decode implements bin.Decoder.

func (*InputKeyboardButtonUrlAuth) Encode ¶

Encode implements bin.Encoder.

func (*InputKeyboardButtonUrlAuth) GetFwdText ¶

func (i *InputKeyboardButtonUrlAuth) GetFwdText() (value string, ok bool)

GetFwdText returns value of FwdText conditional field and boolean which is true if field was set.

func (*InputKeyboardButtonUrlAuth) SetFwdText ¶

func (i *InputKeyboardButtonUrlAuth) SetFwdText(value string)

SetFwdText sets value of FwdText conditional field.

func (*InputKeyboardButtonUrlAuth) SetRequestWriteAccess ¶

func (i *InputKeyboardButtonUrlAuth) SetRequestWriteAccess(value bool)

SetRequestWriteAccess sets value of RequestWriteAccess conditional field.

type InputMediaBox ¶

type InputMediaBox struct {
	InputMedia InputMediaClass
}

InputMedia boxes the InputMediaClass providing a helper.

func (*InputMediaBox) Decode ¶

func (b *InputMediaBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputMediaBox.

func (*InputMediaBox) Encode ¶

func (b *InputMediaBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputMediaBox.

type InputMediaClass ¶

type InputMediaClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputMediaClass represents InputMedia generic type.

Example:

g, err := DecodeInputMedia(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputMediaEmpty: // inputMediaEmpty#9664f57f
case *InputMediaUploadedPhoto: // inputMediaUploadedPhoto#1e287d04
case *InputMediaPhoto: // inputMediaPhoto#b3ba0635
case *InputMediaGeoPoint: // inputMediaGeoPoint#f9c44144
case *InputMediaContact: // inputMediaContact#f8ab7dfb
case *InputMediaUploadedDocument: // inputMediaUploadedDocument#5b38c6c1
case *InputMediaDocument: // inputMediaDocument#23ab23d2
case *InputMediaVenue: // inputMediaVenue#c13d1c11
case *InputMediaPhotoExternal: // inputMediaPhotoExternal#e5bbfe1a
case *InputMediaDocumentExternal: // inputMediaDocumentExternal#fb52dc99
case *InputMediaGame: // inputMediaGame#d33f43f3
case *InputMediaInvoice: // inputMediaInvoice#f4e096c3
case *InputMediaGeoLive: // inputMediaGeoLive#971fa843
case *InputMediaPoll: // inputMediaPoll#f94e5f1
case *InputMediaDice: // inputMediaDice#e66fbf7b
default: panic(v)
}

func DecodeInputMedia ¶

func DecodeInputMedia(buf *bin.Buffer) (InputMediaClass, error)

DecodeInputMedia implements binary de-serialization for InputMediaClass.

type InputMediaContact ¶

type InputMediaContact struct {
	// PhoneNumber field of InputMediaContact.
	PhoneNumber string
	// FirstName field of InputMediaContact.
	FirstName string
	// LastName field of InputMediaContact.
	LastName string
	// Vcard field of InputMediaContact.
	Vcard string
}

InputMediaContact represents TL type `inputMediaContact#f8ab7dfb`.

func (*InputMediaContact) Decode ¶

func (i *InputMediaContact) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaContact) Encode ¶

func (i *InputMediaContact) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMediaDice ¶

type InputMediaDice struct {
	// Emoticon field of InputMediaDice.
	Emoticon string
}

InputMediaDice represents TL type `inputMediaDice#e66fbf7b`.

func (*InputMediaDice) Decode ¶

func (i *InputMediaDice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaDice) Encode ¶

func (i *InputMediaDice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMediaDocument ¶

type InputMediaDocument struct {
	// Flags field of InputMediaDocument.
	Flags bin.Fields
	// ID field of InputMediaDocument.
	ID InputDocumentClass
	// TTLSeconds field of InputMediaDocument.
	//
	// Use SetTTLSeconds and GetTTLSeconds helpers.
	TTLSeconds int
}

InputMediaDocument represents TL type `inputMediaDocument#23ab23d2`.

func (*InputMediaDocument) Decode ¶

func (i *InputMediaDocument) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaDocument) Encode ¶

func (i *InputMediaDocument) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputMediaDocument) GetTTLSeconds ¶

func (i *InputMediaDocument) GetTTLSeconds() (value int, ok bool)

GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set.

func (*InputMediaDocument) SetTTLSeconds ¶

func (i *InputMediaDocument) SetTTLSeconds(value int)

SetTTLSeconds sets value of TTLSeconds conditional field.

type InputMediaDocumentExternal ¶

type InputMediaDocumentExternal struct {
	// Flags field of InputMediaDocumentExternal.
	Flags bin.Fields
	// URL field of InputMediaDocumentExternal.
	URL string
	// TTLSeconds field of InputMediaDocumentExternal.
	//
	// Use SetTTLSeconds and GetTTLSeconds helpers.
	TTLSeconds int
}

InputMediaDocumentExternal represents TL type `inputMediaDocumentExternal#fb52dc99`.

func (*InputMediaDocumentExternal) Decode ¶

Decode implements bin.Decoder.

func (*InputMediaDocumentExternal) Encode ¶

Encode implements bin.Encoder.

func (*InputMediaDocumentExternal) GetTTLSeconds ¶

func (i *InputMediaDocumentExternal) GetTTLSeconds() (value int, ok bool)

GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set.

func (*InputMediaDocumentExternal) SetTTLSeconds ¶

func (i *InputMediaDocumentExternal) SetTTLSeconds(value int)

SetTTLSeconds sets value of TTLSeconds conditional field.

type InputMediaEmpty ¶

type InputMediaEmpty struct {
}

InputMediaEmpty represents TL type `inputMediaEmpty#9664f57f`.

func (*InputMediaEmpty) Decode ¶

func (i *InputMediaEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaEmpty) Encode ¶

func (i *InputMediaEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMediaGame ¶

type InputMediaGame struct {
	// ID field of InputMediaGame.
	ID InputGameClass
}

InputMediaGame represents TL type `inputMediaGame#d33f43f3`.

func (*InputMediaGame) Decode ¶

func (i *InputMediaGame) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaGame) Encode ¶

func (i *InputMediaGame) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMediaGeoLive ¶

type InputMediaGeoLive struct {
	// Flags field of InputMediaGeoLive.
	Flags bin.Fields
	// Stopped field of InputMediaGeoLive.
	Stopped bool
	// GeoPoint field of InputMediaGeoLive.
	GeoPoint InputGeoPointClass
	// Heading field of InputMediaGeoLive.
	//
	// Use SetHeading and GetHeading helpers.
	Heading int
	// Period field of InputMediaGeoLive.
	//
	// Use SetPeriod and GetPeriod helpers.
	Period int
	// ProximityNotificationRadius field of InputMediaGeoLive.
	//
	// Use SetProximityNotificationRadius and GetProximityNotificationRadius helpers.
	ProximityNotificationRadius int
}

InputMediaGeoLive represents TL type `inputMediaGeoLive#971fa843`.

func (*InputMediaGeoLive) Decode ¶

func (i *InputMediaGeoLive) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaGeoLive) Encode ¶

func (i *InputMediaGeoLive) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputMediaGeoLive) GetHeading ¶

func (i *InputMediaGeoLive) GetHeading() (value int, ok bool)

GetHeading returns value of Heading conditional field and boolean which is true if field was set.

func (*InputMediaGeoLive) GetPeriod ¶

func (i *InputMediaGeoLive) GetPeriod() (value int, ok bool)

GetPeriod returns value of Period conditional field and boolean which is true if field was set.

func (*InputMediaGeoLive) GetProximityNotificationRadius ¶

func (i *InputMediaGeoLive) GetProximityNotificationRadius() (value int, ok bool)

GetProximityNotificationRadius returns value of ProximityNotificationRadius conditional field and boolean which is true if field was set.

func (*InputMediaGeoLive) SetHeading ¶

func (i *InputMediaGeoLive) SetHeading(value int)

SetHeading sets value of Heading conditional field.

func (*InputMediaGeoLive) SetPeriod ¶

func (i *InputMediaGeoLive) SetPeriod(value int)

SetPeriod sets value of Period conditional field.

func (*InputMediaGeoLive) SetProximityNotificationRadius ¶

func (i *InputMediaGeoLive) SetProximityNotificationRadius(value int)

SetProximityNotificationRadius sets value of ProximityNotificationRadius conditional field.

func (*InputMediaGeoLive) SetStopped ¶

func (i *InputMediaGeoLive) SetStopped(value bool)

SetStopped sets value of Stopped conditional field.

type InputMediaGeoPoint ¶

type InputMediaGeoPoint struct {
	// GeoPoint field of InputMediaGeoPoint.
	GeoPoint InputGeoPointClass
}

InputMediaGeoPoint represents TL type `inputMediaGeoPoint#f9c44144`.

func (*InputMediaGeoPoint) Decode ¶

func (i *InputMediaGeoPoint) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaGeoPoint) Encode ¶

func (i *InputMediaGeoPoint) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMediaInvoice ¶

type InputMediaInvoice struct {
	// Flags field of InputMediaInvoice.
	Flags bin.Fields
	// Title field of InputMediaInvoice.
	Title string
	// Description field of InputMediaInvoice.
	Description string
	// Photo field of InputMediaInvoice.
	//
	// Use SetPhoto and GetPhoto helpers.
	Photo InputWebDocument
	// Invoice field of InputMediaInvoice.
	Invoice Invoice
	// Payload field of InputMediaInvoice.
	Payload []byte
	// Provider field of InputMediaInvoice.
	Provider string
	// ProviderData field of InputMediaInvoice.
	ProviderData DataJSON
	// StartParam field of InputMediaInvoice.
	StartParam string
}

InputMediaInvoice represents TL type `inputMediaInvoice#f4e096c3`.

func (*InputMediaInvoice) Decode ¶

func (i *InputMediaInvoice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaInvoice) Encode ¶

func (i *InputMediaInvoice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputMediaInvoice) GetPhoto ¶

func (i *InputMediaInvoice) GetPhoto() (value InputWebDocument, ok bool)

GetPhoto returns value of Photo conditional field and boolean which is true if field was set.

func (*InputMediaInvoice) SetPhoto ¶

func (i *InputMediaInvoice) SetPhoto(value InputWebDocument)

SetPhoto sets value of Photo conditional field.

type InputMediaPhoto ¶

type InputMediaPhoto struct {
	// Flags field of InputMediaPhoto.
	Flags bin.Fields
	// ID field of InputMediaPhoto.
	ID InputPhotoClass
	// TTLSeconds field of InputMediaPhoto.
	//
	// Use SetTTLSeconds and GetTTLSeconds helpers.
	TTLSeconds int
}

InputMediaPhoto represents TL type `inputMediaPhoto#b3ba0635`.

func (*InputMediaPhoto) Decode ¶

func (i *InputMediaPhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaPhoto) Encode ¶

func (i *InputMediaPhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputMediaPhoto) GetTTLSeconds ¶

func (i *InputMediaPhoto) GetTTLSeconds() (value int, ok bool)

GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set.

func (*InputMediaPhoto) SetTTLSeconds ¶

func (i *InputMediaPhoto) SetTTLSeconds(value int)

SetTTLSeconds sets value of TTLSeconds conditional field.

type InputMediaPhotoExternal ¶

type InputMediaPhotoExternal struct {
	// Flags field of InputMediaPhotoExternal.
	Flags bin.Fields
	// URL field of InputMediaPhotoExternal.
	URL string
	// TTLSeconds field of InputMediaPhotoExternal.
	//
	// Use SetTTLSeconds and GetTTLSeconds helpers.
	TTLSeconds int
}

InputMediaPhotoExternal represents TL type `inputMediaPhotoExternal#e5bbfe1a`.

func (*InputMediaPhotoExternal) Decode ¶

func (i *InputMediaPhotoExternal) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaPhotoExternal) Encode ¶

func (i *InputMediaPhotoExternal) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputMediaPhotoExternal) GetTTLSeconds ¶

func (i *InputMediaPhotoExternal) GetTTLSeconds() (value int, ok bool)

GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set.

func (*InputMediaPhotoExternal) SetTTLSeconds ¶

func (i *InputMediaPhotoExternal) SetTTLSeconds(value int)

SetTTLSeconds sets value of TTLSeconds conditional field.

type InputMediaPoll ¶

type InputMediaPoll struct {
	// Flags field of InputMediaPoll.
	Flags bin.Fields
	// Poll field of InputMediaPoll.
	Poll Poll
	// CorrectAnswers field of InputMediaPoll.
	//
	// Use SetCorrectAnswers and GetCorrectAnswers helpers.
	CorrectAnswers [][]byte
	// Solution field of InputMediaPoll.
	//
	// Use SetSolution and GetSolution helpers.
	Solution string
	// SolutionEntities field of InputMediaPoll.
	//
	// Use SetSolutionEntities and GetSolutionEntities helpers.
	SolutionEntities []MessageEntityClass
}

InputMediaPoll represents TL type `inputMediaPoll#f94e5f1`.

func (*InputMediaPoll) Decode ¶

func (i *InputMediaPoll) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaPoll) Encode ¶

func (i *InputMediaPoll) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputMediaPoll) GetCorrectAnswers ¶

func (i *InputMediaPoll) GetCorrectAnswers() (value [][]byte, ok bool)

GetCorrectAnswers returns value of CorrectAnswers conditional field and boolean which is true if field was set.

func (*InputMediaPoll) GetSolution ¶

func (i *InputMediaPoll) GetSolution() (value string, ok bool)

GetSolution returns value of Solution conditional field and boolean which is true if field was set.

func (*InputMediaPoll) GetSolutionEntities ¶

func (i *InputMediaPoll) GetSolutionEntities() (value []MessageEntityClass, ok bool)

GetSolutionEntities returns value of SolutionEntities conditional field and boolean which is true if field was set.

func (*InputMediaPoll) SetCorrectAnswers ¶

func (i *InputMediaPoll) SetCorrectAnswers(value [][]byte)

SetCorrectAnswers sets value of CorrectAnswers conditional field.

func (*InputMediaPoll) SetSolution ¶

func (i *InputMediaPoll) SetSolution(value string)

SetSolution sets value of Solution conditional field.

func (*InputMediaPoll) SetSolutionEntities ¶

func (i *InputMediaPoll) SetSolutionEntities(value []MessageEntityClass)

SetSolutionEntities sets value of SolutionEntities conditional field.

type InputMediaUploadedDocument ¶

type InputMediaUploadedDocument struct {
	// Flags field of InputMediaUploadedDocument.
	Flags bin.Fields
	// NosoundVideo field of InputMediaUploadedDocument.
	NosoundVideo bool
	// ForceFile field of InputMediaUploadedDocument.
	ForceFile bool
	// File field of InputMediaUploadedDocument.
	File InputFileClass
	// Thumb field of InputMediaUploadedDocument.
	//
	// Use SetThumb and GetThumb helpers.
	Thumb InputFileClass
	// MimeType field of InputMediaUploadedDocument.
	MimeType string
	// Attributes field of InputMediaUploadedDocument.
	Attributes []DocumentAttributeClass
	// Stickers field of InputMediaUploadedDocument.
	//
	// Use SetStickers and GetStickers helpers.
	Stickers []InputDocumentClass
	// TTLSeconds field of InputMediaUploadedDocument.
	//
	// Use SetTTLSeconds and GetTTLSeconds helpers.
	TTLSeconds int
}

InputMediaUploadedDocument represents TL type `inputMediaUploadedDocument#5b38c6c1`.

func (*InputMediaUploadedDocument) Decode ¶

Decode implements bin.Decoder.

func (*InputMediaUploadedDocument) Encode ¶

Encode implements bin.Encoder.

func (*InputMediaUploadedDocument) GetStickers ¶

func (i *InputMediaUploadedDocument) GetStickers() (value []InputDocumentClass, ok bool)

GetStickers returns value of Stickers conditional field and boolean which is true if field was set.

func (*InputMediaUploadedDocument) GetTTLSeconds ¶

func (i *InputMediaUploadedDocument) GetTTLSeconds() (value int, ok bool)

GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set.

func (*InputMediaUploadedDocument) GetThumb ¶

func (i *InputMediaUploadedDocument) GetThumb() (value InputFileClass, ok bool)

GetThumb returns value of Thumb conditional field and boolean which is true if field was set.

func (*InputMediaUploadedDocument) SetForceFile ¶

func (i *InputMediaUploadedDocument) SetForceFile(value bool)

SetForceFile sets value of ForceFile conditional field.

func (*InputMediaUploadedDocument) SetNosoundVideo ¶

func (i *InputMediaUploadedDocument) SetNosoundVideo(value bool)

SetNosoundVideo sets value of NosoundVideo conditional field.

func (*InputMediaUploadedDocument) SetStickers ¶

func (i *InputMediaUploadedDocument) SetStickers(value []InputDocumentClass)

SetStickers sets value of Stickers conditional field.

func (*InputMediaUploadedDocument) SetTTLSeconds ¶

func (i *InputMediaUploadedDocument) SetTTLSeconds(value int)

SetTTLSeconds sets value of TTLSeconds conditional field.

func (*InputMediaUploadedDocument) SetThumb ¶

func (i *InputMediaUploadedDocument) SetThumb(value InputFileClass)

SetThumb sets value of Thumb conditional field.

type InputMediaUploadedPhoto ¶

type InputMediaUploadedPhoto struct {
	// Flags field of InputMediaUploadedPhoto.
	Flags bin.Fields
	// File field of InputMediaUploadedPhoto.
	File InputFileClass
	// Stickers field of InputMediaUploadedPhoto.
	//
	// Use SetStickers and GetStickers helpers.
	Stickers []InputDocumentClass
	// TTLSeconds field of InputMediaUploadedPhoto.
	//
	// Use SetTTLSeconds and GetTTLSeconds helpers.
	TTLSeconds int
}

InputMediaUploadedPhoto represents TL type `inputMediaUploadedPhoto#1e287d04`.

func (*InputMediaUploadedPhoto) Decode ¶

func (i *InputMediaUploadedPhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaUploadedPhoto) Encode ¶

func (i *InputMediaUploadedPhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputMediaUploadedPhoto) GetStickers ¶

func (i *InputMediaUploadedPhoto) GetStickers() (value []InputDocumentClass, ok bool)

GetStickers returns value of Stickers conditional field and boolean which is true if field was set.

func (*InputMediaUploadedPhoto) GetTTLSeconds ¶

func (i *InputMediaUploadedPhoto) GetTTLSeconds() (value int, ok bool)

GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set.

func (*InputMediaUploadedPhoto) SetStickers ¶

func (i *InputMediaUploadedPhoto) SetStickers(value []InputDocumentClass)

SetStickers sets value of Stickers conditional field.

func (*InputMediaUploadedPhoto) SetTTLSeconds ¶

func (i *InputMediaUploadedPhoto) SetTTLSeconds(value int)

SetTTLSeconds sets value of TTLSeconds conditional field.

type InputMediaVenue ¶

type InputMediaVenue struct {
	// GeoPoint field of InputMediaVenue.
	GeoPoint InputGeoPointClass
	// Title field of InputMediaVenue.
	Title string
	// Address field of InputMediaVenue.
	Address string
	// Provider field of InputMediaVenue.
	Provider string
	// VenueID field of InputMediaVenue.
	VenueID string
	// VenueType field of InputMediaVenue.
	VenueType string
}

InputMediaVenue represents TL type `inputMediaVenue#c13d1c11`.

func (*InputMediaVenue) Decode ¶

func (i *InputMediaVenue) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMediaVenue) Encode ¶

func (i *InputMediaVenue) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessageBox ¶

type InputMessageBox struct {
	InputMessage InputMessageClass
}

InputMessage boxes the InputMessageClass providing a helper.

func (*InputMessageBox) Decode ¶

func (b *InputMessageBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputMessageBox.

func (*InputMessageBox) Encode ¶

func (b *InputMessageBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputMessageBox.

type InputMessageCallbackQuery ¶

type InputMessageCallbackQuery struct {
	// ID field of InputMessageCallbackQuery.
	ID int
	// QueryID field of InputMessageCallbackQuery.
	QueryID int64
}

InputMessageCallbackQuery represents TL type `inputMessageCallbackQuery#acfa1a7e`.

func (*InputMessageCallbackQuery) Decode ¶

func (i *InputMessageCallbackQuery) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessageCallbackQuery) Encode ¶

func (i *InputMessageCallbackQuery) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessageClass ¶

type InputMessageClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputMessageClass represents InputMessage generic type.

Example:

g, err := DecodeInputMessage(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputMessageID: // inputMessageID#a676a322
case *InputMessageReplyTo: // inputMessageReplyTo#bad88395
case *InputMessagePinned: // inputMessagePinned#86872538
case *InputMessageCallbackQuery: // inputMessageCallbackQuery#acfa1a7e
default: panic(v)
}

func DecodeInputMessage ¶

func DecodeInputMessage(buf *bin.Buffer) (InputMessageClass, error)

DecodeInputMessage implements binary de-serialization for InputMessageClass.

type InputMessageEntityMentionName ¶

type InputMessageEntityMentionName struct {
	// Offset field of InputMessageEntityMentionName.
	Offset int
	// Length field of InputMessageEntityMentionName.
	Length int
	// UserID field of InputMessageEntityMentionName.
	UserID InputUserClass
}

InputMessageEntityMentionName represents TL type `inputMessageEntityMentionName#208e68c9`.

func (*InputMessageEntityMentionName) Decode ¶

Decode implements bin.Decoder.

func (*InputMessageEntityMentionName) Encode ¶

Encode implements bin.Encoder.

type InputMessageID ¶

type InputMessageID struct {
	// ID field of InputMessageID.
	ID int
}

InputMessageID represents TL type `inputMessageID#a676a322`.

func (*InputMessageID) Decode ¶

func (i *InputMessageID) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessageID) Encode ¶

func (i *InputMessageID) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessagePinned ¶

type InputMessagePinned struct {
}

InputMessagePinned represents TL type `inputMessagePinned#86872538`.

func (*InputMessagePinned) Decode ¶

func (i *InputMessagePinned) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessagePinned) Encode ¶

func (i *InputMessagePinned) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessageReplyTo ¶

type InputMessageReplyTo struct {
	// ID field of InputMessageReplyTo.
	ID int
}

InputMessageReplyTo represents TL type `inputMessageReplyTo#bad88395`.

func (*InputMessageReplyTo) Decode ¶

func (i *InputMessageReplyTo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessageReplyTo) Encode ¶

func (i *InputMessageReplyTo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessagesFilterChatPhotos ¶

type InputMessagesFilterChatPhotos struct {
}

InputMessagesFilterChatPhotos represents TL type `inputMessagesFilterChatPhotos#3a20ecb8`.

func (*InputMessagesFilterChatPhotos) Decode ¶

Decode implements bin.Decoder.

func (*InputMessagesFilterChatPhotos) Encode ¶

Encode implements bin.Encoder.

type InputMessagesFilterContacts ¶

type InputMessagesFilterContacts struct {
}

InputMessagesFilterContacts represents TL type `inputMessagesFilterContacts#e062db83`.

func (*InputMessagesFilterContacts) Decode ¶

Decode implements bin.Decoder.

func (*InputMessagesFilterContacts) Encode ¶

Encode implements bin.Encoder.

type InputMessagesFilterDocument ¶

type InputMessagesFilterDocument struct {
}

InputMessagesFilterDocument represents TL type `inputMessagesFilterDocument#9eddf188`.

func (*InputMessagesFilterDocument) Decode ¶

Decode implements bin.Decoder.

func (*InputMessagesFilterDocument) Encode ¶

Encode implements bin.Encoder.

type InputMessagesFilterEmpty ¶

type InputMessagesFilterEmpty struct {
}

InputMessagesFilterEmpty represents TL type `inputMessagesFilterEmpty#57e2f66c`.

func (*InputMessagesFilterEmpty) Decode ¶

func (i *InputMessagesFilterEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessagesFilterEmpty) Encode ¶

func (i *InputMessagesFilterEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessagesFilterGeo ¶

type InputMessagesFilterGeo struct {
}

InputMessagesFilterGeo represents TL type `inputMessagesFilterGeo#e7026d0d`.

func (*InputMessagesFilterGeo) Decode ¶

func (i *InputMessagesFilterGeo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessagesFilterGeo) Encode ¶

func (i *InputMessagesFilterGeo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessagesFilterGif ¶

type InputMessagesFilterGif struct {
}

InputMessagesFilterGif represents TL type `inputMessagesFilterGif#ffc86587`.

func (*InputMessagesFilterGif) Decode ¶

func (i *InputMessagesFilterGif) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessagesFilterGif) Encode ¶

func (i *InputMessagesFilterGif) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessagesFilterMusic ¶

type InputMessagesFilterMusic struct {
}

InputMessagesFilterMusic represents TL type `inputMessagesFilterMusic#3751b49e`.

func (*InputMessagesFilterMusic) Decode ¶

func (i *InputMessagesFilterMusic) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessagesFilterMusic) Encode ¶

func (i *InputMessagesFilterMusic) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessagesFilterMyMentions ¶

type InputMessagesFilterMyMentions struct {
}

InputMessagesFilterMyMentions represents TL type `inputMessagesFilterMyMentions#c1f8e69a`.

func (*InputMessagesFilterMyMentions) Decode ¶

Decode implements bin.Decoder.

func (*InputMessagesFilterMyMentions) Encode ¶

Encode implements bin.Encoder.

type InputMessagesFilterPhoneCalls ¶

type InputMessagesFilterPhoneCalls struct {
	// Flags field of InputMessagesFilterPhoneCalls.
	Flags bin.Fields
	// Missed field of InputMessagesFilterPhoneCalls.
	Missed bool
}

InputMessagesFilterPhoneCalls represents TL type `inputMessagesFilterPhoneCalls#80c99768`.

func (*InputMessagesFilterPhoneCalls) Decode ¶

Decode implements bin.Decoder.

func (*InputMessagesFilterPhoneCalls) Encode ¶

Encode implements bin.Encoder.

func (*InputMessagesFilterPhoneCalls) SetMissed ¶

func (i *InputMessagesFilterPhoneCalls) SetMissed(value bool)

SetMissed sets value of Missed conditional field.

type InputMessagesFilterPhotoVideo ¶

type InputMessagesFilterPhotoVideo struct {
}

InputMessagesFilterPhotoVideo represents TL type `inputMessagesFilterPhotoVideo#56e9f0e4`.

func (*InputMessagesFilterPhotoVideo) Decode ¶

Decode implements bin.Decoder.

func (*InputMessagesFilterPhotoVideo) Encode ¶

Encode implements bin.Encoder.

type InputMessagesFilterPhotos ¶

type InputMessagesFilterPhotos struct {
}

InputMessagesFilterPhotos represents TL type `inputMessagesFilterPhotos#9609a51c`.

func (*InputMessagesFilterPhotos) Decode ¶

func (i *InputMessagesFilterPhotos) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessagesFilterPhotos) Encode ¶

func (i *InputMessagesFilterPhotos) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessagesFilterPinned ¶

type InputMessagesFilterPinned struct {
}

InputMessagesFilterPinned represents TL type `inputMessagesFilterPinned#1bb00451`.

func (*InputMessagesFilterPinned) Decode ¶

func (i *InputMessagesFilterPinned) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessagesFilterPinned) Encode ¶

func (i *InputMessagesFilterPinned) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessagesFilterRoundVideo ¶

type InputMessagesFilterRoundVideo struct {
}

InputMessagesFilterRoundVideo represents TL type `inputMessagesFilterRoundVideo#b549da53`.

func (*InputMessagesFilterRoundVideo) Decode ¶

Decode implements bin.Decoder.

func (*InputMessagesFilterRoundVideo) Encode ¶

Encode implements bin.Encoder.

type InputMessagesFilterRoundVoice ¶

type InputMessagesFilterRoundVoice struct {
}

InputMessagesFilterRoundVoice represents TL type `inputMessagesFilterRoundVoice#7a7c17a4`.

func (*InputMessagesFilterRoundVoice) Decode ¶

Decode implements bin.Decoder.

func (*InputMessagesFilterRoundVoice) Encode ¶

Encode implements bin.Encoder.

type InputMessagesFilterUrl ¶

type InputMessagesFilterUrl struct {
}

InputMessagesFilterUrl represents TL type `inputMessagesFilterUrl#7ef0dd87`.

func (*InputMessagesFilterUrl) Decode ¶

func (i *InputMessagesFilterUrl) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessagesFilterUrl) Encode ¶

func (i *InputMessagesFilterUrl) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessagesFilterVideo ¶

type InputMessagesFilterVideo struct {
}

InputMessagesFilterVideo represents TL type `inputMessagesFilterVideo#9fc00e65`.

func (*InputMessagesFilterVideo) Decode ¶

func (i *InputMessagesFilterVideo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessagesFilterVideo) Encode ¶

func (i *InputMessagesFilterVideo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputMessagesFilterVoice ¶

type InputMessagesFilterVoice struct {
}

InputMessagesFilterVoice represents TL type `inputMessagesFilterVoice#50f5c392`.

func (*InputMessagesFilterVoice) Decode ¶

func (i *InputMessagesFilterVoice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputMessagesFilterVoice) Encode ¶

func (i *InputMessagesFilterVoice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputNotifyBroadcasts ¶

type InputNotifyBroadcasts struct {
}

InputNotifyBroadcasts represents TL type `inputNotifyBroadcasts#b1db7c7e`.

func (*InputNotifyBroadcasts) Decode ¶

func (i *InputNotifyBroadcasts) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputNotifyBroadcasts) Encode ¶

func (i *InputNotifyBroadcasts) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputNotifyChats ¶

type InputNotifyChats struct {
}

InputNotifyChats represents TL type `inputNotifyChats#4a95e84e`.

func (*InputNotifyChats) Decode ¶

func (i *InputNotifyChats) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputNotifyChats) Encode ¶

func (i *InputNotifyChats) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputNotifyPeer ¶

type InputNotifyPeer struct {
	// Peer field of InputNotifyPeer.
	Peer InputPeerClass
}

InputNotifyPeer represents TL type `inputNotifyPeer#b8bc5b0c`.

func (*InputNotifyPeer) Decode ¶

func (i *InputNotifyPeer) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputNotifyPeer) Encode ¶

func (i *InputNotifyPeer) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputNotifyPeerBox ¶

type InputNotifyPeerBox struct {
	InputNotifyPeer InputNotifyPeerClass
}

InputNotifyPeer boxes the InputNotifyPeerClass providing a helper.

func (*InputNotifyPeerBox) Decode ¶

func (b *InputNotifyPeerBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputNotifyPeerBox.

func (*InputNotifyPeerBox) Encode ¶

func (b *InputNotifyPeerBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputNotifyPeerBox.

type InputNotifyPeerClass ¶

type InputNotifyPeerClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputNotifyPeerClass represents InputNotifyPeer generic type.

Example:

g, err := DecodeInputNotifyPeer(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputNotifyPeer: // inputNotifyPeer#b8bc5b0c
case *InputNotifyUsers: // inputNotifyUsers#193b4417
case *InputNotifyChats: // inputNotifyChats#4a95e84e
case *InputNotifyBroadcasts: // inputNotifyBroadcasts#b1db7c7e
default: panic(v)
}

func DecodeInputNotifyPeer ¶

func DecodeInputNotifyPeer(buf *bin.Buffer) (InputNotifyPeerClass, error)

DecodeInputNotifyPeer implements binary de-serialization for InputNotifyPeerClass.

type InputNotifyUsers ¶

type InputNotifyUsers struct {
}

InputNotifyUsers represents TL type `inputNotifyUsers#193b4417`.

func (*InputNotifyUsers) Decode ¶

func (i *InputNotifyUsers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputNotifyUsers) Encode ¶

func (i *InputNotifyUsers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPaymentCredentials ¶

type InputPaymentCredentials struct {
	// Flags field of InputPaymentCredentials.
	Flags bin.Fields
	// Save field of InputPaymentCredentials.
	Save bool
	// Data field of InputPaymentCredentials.
	Data DataJSON
}

InputPaymentCredentials represents TL type `inputPaymentCredentials#3417d728`.

func (*InputPaymentCredentials) Decode ¶

func (i *InputPaymentCredentials) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPaymentCredentials) Encode ¶

func (i *InputPaymentCredentials) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputPaymentCredentials) SetSave ¶

func (i *InputPaymentCredentials) SetSave(value bool)

SetSave sets value of Save conditional field.

type InputPaymentCredentialsAndroidPay ¶

type InputPaymentCredentialsAndroidPay struct {
	// PaymentToken field of InputPaymentCredentialsAndroidPay.
	PaymentToken DataJSON
	// GoogleTransactionID field of InputPaymentCredentialsAndroidPay.
	GoogleTransactionID string
}

InputPaymentCredentialsAndroidPay represents TL type `inputPaymentCredentialsAndroidPay#ca05d50e`.

func (*InputPaymentCredentialsAndroidPay) Decode ¶

Decode implements bin.Decoder.

func (*InputPaymentCredentialsAndroidPay) Encode ¶

Encode implements bin.Encoder.

type InputPaymentCredentialsApplePay ¶

type InputPaymentCredentialsApplePay struct {
	// PaymentData field of InputPaymentCredentialsApplePay.
	PaymentData DataJSON
}

InputPaymentCredentialsApplePay represents TL type `inputPaymentCredentialsApplePay#aa1c39f`.

func (*InputPaymentCredentialsApplePay) Decode ¶

Decode implements bin.Decoder.

func (*InputPaymentCredentialsApplePay) Encode ¶

Encode implements bin.Encoder.

type InputPaymentCredentialsBox ¶

type InputPaymentCredentialsBox struct {
	InputPaymentCredentials InputPaymentCredentialsClass
}

InputPaymentCredentials boxes the InputPaymentCredentialsClass providing a helper.

func (*InputPaymentCredentialsBox) Decode ¶

func (b *InputPaymentCredentialsBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputPaymentCredentialsBox.

func (*InputPaymentCredentialsBox) Encode ¶

func (b *InputPaymentCredentialsBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputPaymentCredentialsBox.

type InputPaymentCredentialsClass ¶

type InputPaymentCredentialsClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputPaymentCredentialsClass represents InputPaymentCredentials generic type.

Example:

g, err := DecodeInputPaymentCredentials(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputPaymentCredentialsSaved: // inputPaymentCredentialsSaved#c10eb2cf
case *InputPaymentCredentials: // inputPaymentCredentials#3417d728
case *InputPaymentCredentialsApplePay: // inputPaymentCredentialsApplePay#aa1c39f
case *InputPaymentCredentialsAndroidPay: // inputPaymentCredentialsAndroidPay#ca05d50e
default: panic(v)
}

func DecodeInputPaymentCredentials ¶

func DecodeInputPaymentCredentials(buf *bin.Buffer) (InputPaymentCredentialsClass, error)

DecodeInputPaymentCredentials implements binary de-serialization for InputPaymentCredentialsClass.

type InputPaymentCredentialsSaved ¶

type InputPaymentCredentialsSaved struct {
	// ID field of InputPaymentCredentialsSaved.
	ID string
	// TmpPassword field of InputPaymentCredentialsSaved.
	TmpPassword []byte
}

InputPaymentCredentialsSaved represents TL type `inputPaymentCredentialsSaved#c10eb2cf`.

func (*InputPaymentCredentialsSaved) Decode ¶

Decode implements bin.Decoder.

func (*InputPaymentCredentialsSaved) Encode ¶

Encode implements bin.Encoder.

type InputPeerBox ¶

type InputPeerBox struct {
	InputPeer InputPeerClass
}

InputPeer boxes the InputPeerClass providing a helper.

func (*InputPeerBox) Decode ¶

func (b *InputPeerBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputPeerBox.

func (*InputPeerBox) Encode ¶

func (b *InputPeerBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputPeerBox.

type InputPeerChannel ¶

type InputPeerChannel struct {
	// ChannelID field of InputPeerChannel.
	ChannelID int
	// AccessHash field of InputPeerChannel.
	AccessHash int64
}

InputPeerChannel represents TL type `inputPeerChannel#20adaef8`.

func (*InputPeerChannel) Decode ¶

func (i *InputPeerChannel) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPeerChannel) Encode ¶

func (i *InputPeerChannel) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPeerChannelFromMessage ¶

type InputPeerChannelFromMessage struct {
	// Peer field of InputPeerChannelFromMessage.
	Peer InputPeerClass
	// MsgID field of InputPeerChannelFromMessage.
	MsgID int
	// ChannelID field of InputPeerChannelFromMessage.
	ChannelID int
}

InputPeerChannelFromMessage represents TL type `inputPeerChannelFromMessage#9c95f7bb`.

func (*InputPeerChannelFromMessage) Decode ¶

Decode implements bin.Decoder.

func (*InputPeerChannelFromMessage) Encode ¶

Encode implements bin.Encoder.

type InputPeerChat ¶

type InputPeerChat struct {
	// ChatID field of InputPeerChat.
	ChatID int
}

InputPeerChat represents TL type `inputPeerChat#179be863`.

func (*InputPeerChat) Decode ¶

func (i *InputPeerChat) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPeerChat) Encode ¶

func (i *InputPeerChat) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPeerClass ¶

type InputPeerClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputPeerClass represents InputPeer generic type.

Example:

g, err := DecodeInputPeer(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputPeerEmpty: // inputPeerEmpty#7f3b18ea
case *InputPeerSelf: // inputPeerSelf#7da07ec9
case *InputPeerChat: // inputPeerChat#179be863
case *InputPeerUser: // inputPeerUser#7b8e7de6
case *InputPeerChannel: // inputPeerChannel#20adaef8
case *InputPeerUserFromMessage: // inputPeerUserFromMessage#17bae2e6
case *InputPeerChannelFromMessage: // inputPeerChannelFromMessage#9c95f7bb
default: panic(v)
}

func DecodeInputPeer ¶

func DecodeInputPeer(buf *bin.Buffer) (InputPeerClass, error)

DecodeInputPeer implements binary de-serialization for InputPeerClass.

type InputPeerEmpty ¶

type InputPeerEmpty struct {
}

InputPeerEmpty represents TL type `inputPeerEmpty#7f3b18ea`.

func (*InputPeerEmpty) Decode ¶

func (i *InputPeerEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPeerEmpty) Encode ¶

func (i *InputPeerEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPeerNotifySettings ¶

type InputPeerNotifySettings struct {
	// Flags field of InputPeerNotifySettings.
	Flags bin.Fields
	// ShowPreviews field of InputPeerNotifySettings.
	ShowPreviews bool
	// Silent field of InputPeerNotifySettings.
	Silent bool
	// MuteUntil field of InputPeerNotifySettings.
	//
	// Use SetMuteUntil and GetMuteUntil helpers.
	MuteUntil int
	// Sound field of InputPeerNotifySettings.
	//
	// Use SetSound and GetSound helpers.
	Sound string
}

InputPeerNotifySettings represents TL type `inputPeerNotifySettings#9c3d198e`.

func (*InputPeerNotifySettings) Decode ¶

func (i *InputPeerNotifySettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPeerNotifySettings) Encode ¶

func (i *InputPeerNotifySettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputPeerNotifySettings) GetMuteUntil ¶

func (i *InputPeerNotifySettings) GetMuteUntil() (value int, ok bool)

GetMuteUntil returns value of MuteUntil conditional field and boolean which is true if field was set.

func (*InputPeerNotifySettings) GetSound ¶

func (i *InputPeerNotifySettings) GetSound() (value string, ok bool)

GetSound returns value of Sound conditional field and boolean which is true if field was set.

func (*InputPeerNotifySettings) SetMuteUntil ¶

func (i *InputPeerNotifySettings) SetMuteUntil(value int)

SetMuteUntil sets value of MuteUntil conditional field.

func (*InputPeerNotifySettings) SetShowPreviews ¶

func (i *InputPeerNotifySettings) SetShowPreviews(value bool)

SetShowPreviews sets value of ShowPreviews conditional field.

func (*InputPeerNotifySettings) SetSilent ¶

func (i *InputPeerNotifySettings) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

func (*InputPeerNotifySettings) SetSound ¶

func (i *InputPeerNotifySettings) SetSound(value string)

SetSound sets value of Sound conditional field.

type InputPeerPhotoFileLocation ¶

type InputPeerPhotoFileLocation struct {
	// Flags field of InputPeerPhotoFileLocation.
	Flags bin.Fields
	// Big field of InputPeerPhotoFileLocation.
	Big bool
	// Peer field of InputPeerPhotoFileLocation.
	Peer InputPeerClass
	// VolumeID field of InputPeerPhotoFileLocation.
	VolumeID int64
	// LocalID field of InputPeerPhotoFileLocation.
	LocalID int
}

InputPeerPhotoFileLocation represents TL type `inputPeerPhotoFileLocation#27d69997`.

func (*InputPeerPhotoFileLocation) Decode ¶

Decode implements bin.Decoder.

func (*InputPeerPhotoFileLocation) Encode ¶

Encode implements bin.Encoder.

func (*InputPeerPhotoFileLocation) SetBig ¶

func (i *InputPeerPhotoFileLocation) SetBig(value bool)

SetBig sets value of Big conditional field.

type InputPeerSelf ¶

type InputPeerSelf struct {
}

InputPeerSelf represents TL type `inputPeerSelf#7da07ec9`.

func (*InputPeerSelf) Decode ¶

func (i *InputPeerSelf) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPeerSelf) Encode ¶

func (i *InputPeerSelf) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPeerUser ¶

type InputPeerUser struct {
	// UserID field of InputPeerUser.
	UserID int
	// AccessHash field of InputPeerUser.
	AccessHash int64
}

InputPeerUser represents TL type `inputPeerUser#7b8e7de6`.

func (*InputPeerUser) Decode ¶

func (i *InputPeerUser) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPeerUser) Encode ¶

func (i *InputPeerUser) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPeerUserFromMessage ¶

type InputPeerUserFromMessage struct {
	// Peer field of InputPeerUserFromMessage.
	Peer InputPeerClass
	// MsgID field of InputPeerUserFromMessage.
	MsgID int
	// UserID field of InputPeerUserFromMessage.
	UserID int
}

InputPeerUserFromMessage represents TL type `inputPeerUserFromMessage#17bae2e6`.

func (*InputPeerUserFromMessage) Decode ¶

func (i *InputPeerUserFromMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPeerUserFromMessage) Encode ¶

func (i *InputPeerUserFromMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPhoneCall ¶

type InputPhoneCall struct {
	// ID field of InputPhoneCall.
	ID int64
	// AccessHash field of InputPhoneCall.
	AccessHash int64
}

InputPhoneCall represents TL type `inputPhoneCall#1e36fded`.

func (*InputPhoneCall) Decode ¶

func (i *InputPhoneCall) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPhoneCall) Encode ¶

func (i *InputPhoneCall) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPhoneContact ¶

type InputPhoneContact struct {
	// ClientID field of InputPhoneContact.
	ClientID int64
	// Phone field of InputPhoneContact.
	Phone string
	// FirstName field of InputPhoneContact.
	FirstName string
	// LastName field of InputPhoneContact.
	LastName string
}

InputPhoneContact represents TL type `inputPhoneContact#f392b7f4`.

func (*InputPhoneContact) Decode ¶

func (i *InputPhoneContact) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPhoneContact) Encode ¶

func (i *InputPhoneContact) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPhoto ¶

type InputPhoto struct {
	// ID field of InputPhoto.
	ID int64
	// AccessHash field of InputPhoto.
	AccessHash int64
	// FileReference field of InputPhoto.
	FileReference []byte
}

InputPhoto represents TL type `inputPhoto#3bb3b94a`.

func (*InputPhoto) Decode ¶

func (i *InputPhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPhoto) Encode ¶

func (i *InputPhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPhotoBox ¶

type InputPhotoBox struct {
	InputPhoto InputPhotoClass
}

InputPhoto boxes the InputPhotoClass providing a helper.

func (*InputPhotoBox) Decode ¶

func (b *InputPhotoBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputPhotoBox.

func (*InputPhotoBox) Encode ¶

func (b *InputPhotoBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputPhotoBox.

type InputPhotoClass ¶

type InputPhotoClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputPhotoClass represents InputPhoto generic type.

Example:

g, err := DecodeInputPhoto(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputPhotoEmpty: // inputPhotoEmpty#1cd7bf0d
case *InputPhoto: // inputPhoto#3bb3b94a
default: panic(v)
}

func DecodeInputPhoto ¶

func DecodeInputPhoto(buf *bin.Buffer) (InputPhotoClass, error)

DecodeInputPhoto implements binary de-serialization for InputPhotoClass.

type InputPhotoEmpty ¶

type InputPhotoEmpty struct {
}

InputPhotoEmpty represents TL type `inputPhotoEmpty#1cd7bf0d`.

func (*InputPhotoEmpty) Decode ¶

func (i *InputPhotoEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPhotoEmpty) Encode ¶

func (i *InputPhotoEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPhotoFileLocation ¶

type InputPhotoFileLocation struct {
	// ID field of InputPhotoFileLocation.
	ID int64
	// AccessHash field of InputPhotoFileLocation.
	AccessHash int64
	// FileReference field of InputPhotoFileLocation.
	FileReference []byte
	// ThumbSize field of InputPhotoFileLocation.
	ThumbSize string
}

InputPhotoFileLocation represents TL type `inputPhotoFileLocation#40181ffe`.

func (*InputPhotoFileLocation) Decode ¶

func (i *InputPhotoFileLocation) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPhotoFileLocation) Encode ¶

func (i *InputPhotoFileLocation) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPhotoLegacyFileLocation ¶

type InputPhotoLegacyFileLocation struct {
	// ID field of InputPhotoLegacyFileLocation.
	ID int64
	// AccessHash field of InputPhotoLegacyFileLocation.
	AccessHash int64
	// FileReference field of InputPhotoLegacyFileLocation.
	FileReference []byte
	// VolumeID field of InputPhotoLegacyFileLocation.
	VolumeID int64
	// LocalID field of InputPhotoLegacyFileLocation.
	LocalID int
	// Secret field of InputPhotoLegacyFileLocation.
	Secret int64
}

InputPhotoLegacyFileLocation represents TL type `inputPhotoLegacyFileLocation#d83466f3`.

func (*InputPhotoLegacyFileLocation) Decode ¶

Decode implements bin.Decoder.

func (*InputPhotoLegacyFileLocation) Encode ¶

Encode implements bin.Encoder.

type InputPrivacyKeyAddedByPhone ¶

type InputPrivacyKeyAddedByPhone struct {
}

InputPrivacyKeyAddedByPhone represents TL type `inputPrivacyKeyAddedByPhone#d1219bdd`.

func (*InputPrivacyKeyAddedByPhone) Decode ¶

Decode implements bin.Decoder.

func (*InputPrivacyKeyAddedByPhone) Encode ¶

Encode implements bin.Encoder.

type InputPrivacyKeyBox ¶

type InputPrivacyKeyBox struct {
	InputPrivacyKey InputPrivacyKeyClass
}

InputPrivacyKey boxes the InputPrivacyKeyClass providing a helper.

func (*InputPrivacyKeyBox) Decode ¶

func (b *InputPrivacyKeyBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputPrivacyKeyBox.

func (*InputPrivacyKeyBox) Encode ¶

func (b *InputPrivacyKeyBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputPrivacyKeyBox.

type InputPrivacyKeyChatInvite ¶

type InputPrivacyKeyChatInvite struct {
}

InputPrivacyKeyChatInvite represents TL type `inputPrivacyKeyChatInvite#bdfb0426`.

func (*InputPrivacyKeyChatInvite) Decode ¶

func (i *InputPrivacyKeyChatInvite) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPrivacyKeyChatInvite) Encode ¶

func (i *InputPrivacyKeyChatInvite) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPrivacyKeyClass ¶

type InputPrivacyKeyClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputPrivacyKeyClass represents InputPrivacyKey generic type.

Example:

g, err := DecodeInputPrivacyKey(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputPrivacyKeyStatusTimestamp: // inputPrivacyKeyStatusTimestamp#4f96cb18
case *InputPrivacyKeyChatInvite: // inputPrivacyKeyChatInvite#bdfb0426
case *InputPrivacyKeyPhoneCall: // inputPrivacyKeyPhoneCall#fabadc5f
case *InputPrivacyKeyPhoneP2P: // inputPrivacyKeyPhoneP2P#db9e70d2
case *InputPrivacyKeyForwards: // inputPrivacyKeyForwards#a4dd4c08
case *InputPrivacyKeyProfilePhoto: // inputPrivacyKeyProfilePhoto#5719bacc
case *InputPrivacyKeyPhoneNumber: // inputPrivacyKeyPhoneNumber#352dafa
case *InputPrivacyKeyAddedByPhone: // inputPrivacyKeyAddedByPhone#d1219bdd
default: panic(v)
}

func DecodeInputPrivacyKey ¶

func DecodeInputPrivacyKey(buf *bin.Buffer) (InputPrivacyKeyClass, error)

DecodeInputPrivacyKey implements binary de-serialization for InputPrivacyKeyClass.

type InputPrivacyKeyForwards ¶

type InputPrivacyKeyForwards struct {
}

InputPrivacyKeyForwards represents TL type `inputPrivacyKeyForwards#a4dd4c08`.

func (*InputPrivacyKeyForwards) Decode ¶

func (i *InputPrivacyKeyForwards) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPrivacyKeyForwards) Encode ¶

func (i *InputPrivacyKeyForwards) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPrivacyKeyPhoneCall ¶

type InputPrivacyKeyPhoneCall struct {
}

InputPrivacyKeyPhoneCall represents TL type `inputPrivacyKeyPhoneCall#fabadc5f`.

func (*InputPrivacyKeyPhoneCall) Decode ¶

func (i *InputPrivacyKeyPhoneCall) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPrivacyKeyPhoneCall) Encode ¶

func (i *InputPrivacyKeyPhoneCall) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPrivacyKeyPhoneNumber ¶

type InputPrivacyKeyPhoneNumber struct {
}

InputPrivacyKeyPhoneNumber represents TL type `inputPrivacyKeyPhoneNumber#352dafa`.

func (*InputPrivacyKeyPhoneNumber) Decode ¶

Decode implements bin.Decoder.

func (*InputPrivacyKeyPhoneNumber) Encode ¶

Encode implements bin.Encoder.

type InputPrivacyKeyPhoneP2P ¶

type InputPrivacyKeyPhoneP2P struct {
}

InputPrivacyKeyPhoneP2P represents TL type `inputPrivacyKeyPhoneP2P#db9e70d2`.

func (*InputPrivacyKeyPhoneP2P) Decode ¶

func (i *InputPrivacyKeyPhoneP2P) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPrivacyKeyPhoneP2P) Encode ¶

func (i *InputPrivacyKeyPhoneP2P) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPrivacyKeyProfilePhoto ¶

type InputPrivacyKeyProfilePhoto struct {
}

InputPrivacyKeyProfilePhoto represents TL type `inputPrivacyKeyProfilePhoto#5719bacc`.

func (*InputPrivacyKeyProfilePhoto) Decode ¶

Decode implements bin.Decoder.

func (*InputPrivacyKeyProfilePhoto) Encode ¶

Encode implements bin.Encoder.

type InputPrivacyKeyStatusTimestamp ¶

type InputPrivacyKeyStatusTimestamp struct {
}

InputPrivacyKeyStatusTimestamp represents TL type `inputPrivacyKeyStatusTimestamp#4f96cb18`.

func (*InputPrivacyKeyStatusTimestamp) Decode ¶

Decode implements bin.Decoder.

func (*InputPrivacyKeyStatusTimestamp) Encode ¶

Encode implements bin.Encoder.

type InputPrivacyRuleBox ¶

type InputPrivacyRuleBox struct {
	InputPrivacyRule InputPrivacyRuleClass
}

InputPrivacyRule boxes the InputPrivacyRuleClass providing a helper.

func (*InputPrivacyRuleBox) Decode ¶

func (b *InputPrivacyRuleBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputPrivacyRuleBox.

func (*InputPrivacyRuleBox) Encode ¶

func (b *InputPrivacyRuleBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputPrivacyRuleBox.

type InputPrivacyRuleClass ¶

type InputPrivacyRuleClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputPrivacyRuleClass represents InputPrivacyRule generic type.

Example:

g, err := DecodeInputPrivacyRule(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputPrivacyValueAllowContacts: // inputPrivacyValueAllowContacts#d09e07b
case *InputPrivacyValueAllowAll: // inputPrivacyValueAllowAll#184b35ce
case *InputPrivacyValueAllowUsers: // inputPrivacyValueAllowUsers#131cc67f
case *InputPrivacyValueDisallowContacts: // inputPrivacyValueDisallowContacts#ba52007
case *InputPrivacyValueDisallowAll: // inputPrivacyValueDisallowAll#d66b66c9
case *InputPrivacyValueDisallowUsers: // inputPrivacyValueDisallowUsers#90110467
case *InputPrivacyValueAllowChatParticipants: // inputPrivacyValueAllowChatParticipants#4c81c1ba
case *InputPrivacyValueDisallowChatParticipants: // inputPrivacyValueDisallowChatParticipants#d82363af
default: panic(v)
}

func DecodeInputPrivacyRule ¶

func DecodeInputPrivacyRule(buf *bin.Buffer) (InputPrivacyRuleClass, error)

DecodeInputPrivacyRule implements binary de-serialization for InputPrivacyRuleClass.

type InputPrivacyValueAllowAll ¶

type InputPrivacyValueAllowAll struct {
}

InputPrivacyValueAllowAll represents TL type `inputPrivacyValueAllowAll#184b35ce`.

func (*InputPrivacyValueAllowAll) Decode ¶

func (i *InputPrivacyValueAllowAll) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputPrivacyValueAllowAll) Encode ¶

func (i *InputPrivacyValueAllowAll) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputPrivacyValueAllowChatParticipants ¶

type InputPrivacyValueAllowChatParticipants struct {
	// Chats field of InputPrivacyValueAllowChatParticipants.
	Chats []int
}

InputPrivacyValueAllowChatParticipants represents TL type `inputPrivacyValueAllowChatParticipants#4c81c1ba`.

func (*InputPrivacyValueAllowChatParticipants) Decode ¶

Decode implements bin.Decoder.

func (*InputPrivacyValueAllowChatParticipants) Encode ¶

Encode implements bin.Encoder.

type InputPrivacyValueAllowContacts ¶

type InputPrivacyValueAllowContacts struct {
}

InputPrivacyValueAllowContacts represents TL type `inputPrivacyValueAllowContacts#d09e07b`.

func (*InputPrivacyValueAllowContacts) Decode ¶

Decode implements bin.Decoder.

func (*InputPrivacyValueAllowContacts) Encode ¶

Encode implements bin.Encoder.

type InputPrivacyValueAllowUsers ¶

type InputPrivacyValueAllowUsers struct {
	// Users field of InputPrivacyValueAllowUsers.
	Users []InputUserClass
}

InputPrivacyValueAllowUsers represents TL type `inputPrivacyValueAllowUsers#131cc67f`.

func (*InputPrivacyValueAllowUsers) Decode ¶

Decode implements bin.Decoder.

func (*InputPrivacyValueAllowUsers) Encode ¶

Encode implements bin.Encoder.

type InputPrivacyValueDisallowAll ¶

type InputPrivacyValueDisallowAll struct {
}

InputPrivacyValueDisallowAll represents TL type `inputPrivacyValueDisallowAll#d66b66c9`.

func (*InputPrivacyValueDisallowAll) Decode ¶

Decode implements bin.Decoder.

func (*InputPrivacyValueDisallowAll) Encode ¶

Encode implements bin.Encoder.

type InputPrivacyValueDisallowChatParticipants ¶

type InputPrivacyValueDisallowChatParticipants struct {
	// Chats field of InputPrivacyValueDisallowChatParticipants.
	Chats []int
}

InputPrivacyValueDisallowChatParticipants represents TL type `inputPrivacyValueDisallowChatParticipants#d82363af`.

func (*InputPrivacyValueDisallowChatParticipants) Decode ¶

Decode implements bin.Decoder.

func (*InputPrivacyValueDisallowChatParticipants) Encode ¶

Encode implements bin.Encoder.

type InputPrivacyValueDisallowContacts ¶

type InputPrivacyValueDisallowContacts struct {
}

InputPrivacyValueDisallowContacts represents TL type `inputPrivacyValueDisallowContacts#ba52007`.

func (*InputPrivacyValueDisallowContacts) Decode ¶

Decode implements bin.Decoder.

func (*InputPrivacyValueDisallowContacts) Encode ¶

Encode implements bin.Encoder.

type InputPrivacyValueDisallowUsers ¶

type InputPrivacyValueDisallowUsers struct {
	// Users field of InputPrivacyValueDisallowUsers.
	Users []InputUserClass
}

InputPrivacyValueDisallowUsers represents TL type `inputPrivacyValueDisallowUsers#90110467`.

func (*InputPrivacyValueDisallowUsers) Decode ¶

Decode implements bin.Decoder.

func (*InputPrivacyValueDisallowUsers) Encode ¶

Encode implements bin.Encoder.

type InputReportReasonChildAbuse ¶

type InputReportReasonChildAbuse struct {
}

InputReportReasonChildAbuse represents TL type `inputReportReasonChildAbuse#adf44ee3`.

func (*InputReportReasonChildAbuse) Decode ¶

Decode implements bin.Decoder.

func (*InputReportReasonChildAbuse) Encode ¶

Encode implements bin.Encoder.

type InputReportReasonCopyright ¶

type InputReportReasonCopyright struct {
}

InputReportReasonCopyright represents TL type `inputReportReasonCopyright#9b89f93a`.

func (*InputReportReasonCopyright) Decode ¶

Decode implements bin.Decoder.

func (*InputReportReasonCopyright) Encode ¶

Encode implements bin.Encoder.

type InputReportReasonGeoIrrelevant ¶

type InputReportReasonGeoIrrelevant struct {
}

InputReportReasonGeoIrrelevant represents TL type `inputReportReasonGeoIrrelevant#dbd4feed`.

func (*InputReportReasonGeoIrrelevant) Decode ¶

Decode implements bin.Decoder.

func (*InputReportReasonGeoIrrelevant) Encode ¶

Encode implements bin.Encoder.

type InputReportReasonOther ¶

type InputReportReasonOther struct {
	// Text field of InputReportReasonOther.
	Text string
}

InputReportReasonOther represents TL type `inputReportReasonOther#e1746d0a`.

func (*InputReportReasonOther) Decode ¶

func (i *InputReportReasonOther) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputReportReasonOther) Encode ¶

func (i *InputReportReasonOther) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputReportReasonPornography ¶

type InputReportReasonPornography struct {
}

InputReportReasonPornography represents TL type `inputReportReasonPornography#2e59d922`.

func (*InputReportReasonPornography) Decode ¶

Decode implements bin.Decoder.

func (*InputReportReasonPornography) Encode ¶

Encode implements bin.Encoder.

type InputReportReasonSpam ¶

type InputReportReasonSpam struct {
}

InputReportReasonSpam represents TL type `inputReportReasonSpam#58dbcab8`.

func (*InputReportReasonSpam) Decode ¶

func (i *InputReportReasonSpam) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputReportReasonSpam) Encode ¶

func (i *InputReportReasonSpam) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputReportReasonViolence ¶

type InputReportReasonViolence struct {
}

InputReportReasonViolence represents TL type `inputReportReasonViolence#1e22c78d`.

func (*InputReportReasonViolence) Decode ¶

func (i *InputReportReasonViolence) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputReportReasonViolence) Encode ¶

func (i *InputReportReasonViolence) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputSecureFile ¶

type InputSecureFile struct {
	// ID field of InputSecureFile.
	ID int64
	// AccessHash field of InputSecureFile.
	AccessHash int64
}

InputSecureFile represents TL type `inputSecureFile#5367e5be`.

func (*InputSecureFile) Decode ¶

func (i *InputSecureFile) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputSecureFile) Encode ¶

func (i *InputSecureFile) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputSecureFileBox ¶

type InputSecureFileBox struct {
	InputSecureFile InputSecureFileClass
}

InputSecureFile boxes the InputSecureFileClass providing a helper.

func (*InputSecureFileBox) Decode ¶

func (b *InputSecureFileBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputSecureFileBox.

func (*InputSecureFileBox) Encode ¶

func (b *InputSecureFileBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputSecureFileBox.

type InputSecureFileClass ¶

type InputSecureFileClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputSecureFileClass represents InputSecureFile generic type.

Example:

g, err := DecodeInputSecureFile(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputSecureFileUploaded: // inputSecureFileUploaded#3334b0f0
case *InputSecureFile: // inputSecureFile#5367e5be
default: panic(v)
}

func DecodeInputSecureFile ¶

func DecodeInputSecureFile(buf *bin.Buffer) (InputSecureFileClass, error)

DecodeInputSecureFile implements binary de-serialization for InputSecureFileClass.

type InputSecureFileLocation ¶

type InputSecureFileLocation struct {
	// ID field of InputSecureFileLocation.
	ID int64
	// AccessHash field of InputSecureFileLocation.
	AccessHash int64
}

InputSecureFileLocation represents TL type `inputSecureFileLocation#cbc7ee28`.

func (*InputSecureFileLocation) Decode ¶

func (i *InputSecureFileLocation) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputSecureFileLocation) Encode ¶

func (i *InputSecureFileLocation) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputSecureFileUploaded ¶

type InputSecureFileUploaded struct {
	// ID field of InputSecureFileUploaded.
	ID int64
	// Parts field of InputSecureFileUploaded.
	Parts int
	// Md5Checksum field of InputSecureFileUploaded.
	Md5Checksum string
	// FileHash field of InputSecureFileUploaded.
	FileHash []byte
	// Secret field of InputSecureFileUploaded.
	Secret []byte
}

InputSecureFileUploaded represents TL type `inputSecureFileUploaded#3334b0f0`.

func (*InputSecureFileUploaded) Decode ¶

func (i *InputSecureFileUploaded) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputSecureFileUploaded) Encode ¶

func (i *InputSecureFileUploaded) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputSecureValue ¶

type InputSecureValue struct {
	// Flags field of InputSecureValue.
	Flags bin.Fields
	// Type field of InputSecureValue.
	Type SecureValueTypeClass
	// Data field of InputSecureValue.
	//
	// Use SetData and GetData helpers.
	Data SecureData
	// FrontSide field of InputSecureValue.
	//
	// Use SetFrontSide and GetFrontSide helpers.
	FrontSide InputSecureFileClass
	// ReverseSide field of InputSecureValue.
	//
	// Use SetReverseSide and GetReverseSide helpers.
	ReverseSide InputSecureFileClass
	// Selfie field of InputSecureValue.
	//
	// Use SetSelfie and GetSelfie helpers.
	Selfie InputSecureFileClass
	// Translation field of InputSecureValue.
	//
	// Use SetTranslation and GetTranslation helpers.
	Translation []InputSecureFileClass
	// Files field of InputSecureValue.
	//
	// Use SetFiles and GetFiles helpers.
	Files []InputSecureFileClass
	// PlainData field of InputSecureValue.
	//
	// Use SetPlainData and GetPlainData helpers.
	PlainData SecurePlainDataClass
}

InputSecureValue represents TL type `inputSecureValue#db21d0a7`.

func (*InputSecureValue) Decode ¶

func (i *InputSecureValue) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputSecureValue) Encode ¶

func (i *InputSecureValue) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputSecureValue) GetData ¶

func (i *InputSecureValue) GetData() (value SecureData, ok bool)

GetData returns value of Data conditional field and boolean which is true if field was set.

func (*InputSecureValue) GetFiles ¶

func (i *InputSecureValue) GetFiles() (value []InputSecureFileClass, ok bool)

GetFiles returns value of Files conditional field and boolean which is true if field was set.

func (*InputSecureValue) GetFrontSide ¶

func (i *InputSecureValue) GetFrontSide() (value InputSecureFileClass, ok bool)

GetFrontSide returns value of FrontSide conditional field and boolean which is true if field was set.

func (*InputSecureValue) GetPlainData ¶

func (i *InputSecureValue) GetPlainData() (value SecurePlainDataClass, ok bool)

GetPlainData returns value of PlainData conditional field and boolean which is true if field was set.

func (*InputSecureValue) GetReverseSide ¶

func (i *InputSecureValue) GetReverseSide() (value InputSecureFileClass, ok bool)

GetReverseSide returns value of ReverseSide conditional field and boolean which is true if field was set.

func (*InputSecureValue) GetSelfie ¶

func (i *InputSecureValue) GetSelfie() (value InputSecureFileClass, ok bool)

GetSelfie returns value of Selfie conditional field and boolean which is true if field was set.

func (*InputSecureValue) GetTranslation ¶

func (i *InputSecureValue) GetTranslation() (value []InputSecureFileClass, ok bool)

GetTranslation returns value of Translation conditional field and boolean which is true if field was set.

func (*InputSecureValue) SetData ¶

func (i *InputSecureValue) SetData(value SecureData)

SetData sets value of Data conditional field.

func (*InputSecureValue) SetFiles ¶

func (i *InputSecureValue) SetFiles(value []InputSecureFileClass)

SetFiles sets value of Files conditional field.

func (*InputSecureValue) SetFrontSide ¶

func (i *InputSecureValue) SetFrontSide(value InputSecureFileClass)

SetFrontSide sets value of FrontSide conditional field.

func (*InputSecureValue) SetPlainData ¶

func (i *InputSecureValue) SetPlainData(value SecurePlainDataClass)

SetPlainData sets value of PlainData conditional field.

func (*InputSecureValue) SetReverseSide ¶

func (i *InputSecureValue) SetReverseSide(value InputSecureFileClass)

SetReverseSide sets value of ReverseSide conditional field.

func (*InputSecureValue) SetSelfie ¶

func (i *InputSecureValue) SetSelfie(value InputSecureFileClass)

SetSelfie sets value of Selfie conditional field.

func (*InputSecureValue) SetTranslation ¶

func (i *InputSecureValue) SetTranslation(value []InputSecureFileClass)

SetTranslation sets value of Translation conditional field.

type InputSingleMedia ¶

type InputSingleMedia struct {
	// Flags field of InputSingleMedia.
	Flags bin.Fields
	// Media field of InputSingleMedia.
	Media InputMediaClass
	// RandomID field of InputSingleMedia.
	RandomID int64
	// Message field of InputSingleMedia.
	Message string
	// Entities field of InputSingleMedia.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
}

InputSingleMedia represents TL type `inputSingleMedia#1cc6e91f`.

func (*InputSingleMedia) Decode ¶

func (i *InputSingleMedia) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputSingleMedia) Encode ¶

func (i *InputSingleMedia) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputSingleMedia) GetEntities ¶

func (i *InputSingleMedia) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*InputSingleMedia) SetEntities ¶

func (i *InputSingleMedia) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

type InputStickerSetAnimatedEmoji ¶

type InputStickerSetAnimatedEmoji struct {
}

InputStickerSetAnimatedEmoji represents TL type `inputStickerSetAnimatedEmoji#28703c8`.

func (*InputStickerSetAnimatedEmoji) Decode ¶

Decode implements bin.Decoder.

func (*InputStickerSetAnimatedEmoji) Encode ¶

Encode implements bin.Encoder.

type InputStickerSetBox ¶

type InputStickerSetBox struct {
	InputStickerSet InputStickerSetClass
}

InputStickerSet boxes the InputStickerSetClass providing a helper.

func (*InputStickerSetBox) Decode ¶

func (b *InputStickerSetBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputStickerSetBox.

func (*InputStickerSetBox) Encode ¶

func (b *InputStickerSetBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputStickerSetBox.

type InputStickerSetClass ¶

type InputStickerSetClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputStickerSetClass represents InputStickerSet generic type.

Example:

g, err := DecodeInputStickerSet(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputStickerSetEmpty: // inputStickerSetEmpty#ffb62b95
case *InputStickerSetID: // inputStickerSetID#9de7a269
case *InputStickerSetShortName: // inputStickerSetShortName#861cc8a0
case *InputStickerSetAnimatedEmoji: // inputStickerSetAnimatedEmoji#28703c8
case *InputStickerSetDice: // inputStickerSetDice#e67f520e
default: panic(v)
}

func DecodeInputStickerSet ¶

func DecodeInputStickerSet(buf *bin.Buffer) (InputStickerSetClass, error)

DecodeInputStickerSet implements binary de-serialization for InputStickerSetClass.

type InputStickerSetDice ¶

type InputStickerSetDice struct {
	// Emoticon field of InputStickerSetDice.
	Emoticon string
}

InputStickerSetDice represents TL type `inputStickerSetDice#e67f520e`.

func (*InputStickerSetDice) Decode ¶

func (i *InputStickerSetDice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputStickerSetDice) Encode ¶

func (i *InputStickerSetDice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputStickerSetEmpty ¶

type InputStickerSetEmpty struct {
}

InputStickerSetEmpty represents TL type `inputStickerSetEmpty#ffb62b95`.

func (*InputStickerSetEmpty) Decode ¶

func (i *InputStickerSetEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputStickerSetEmpty) Encode ¶

func (i *InputStickerSetEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputStickerSetID ¶

type InputStickerSetID struct {
	// ID field of InputStickerSetID.
	ID int64
	// AccessHash field of InputStickerSetID.
	AccessHash int64
}

InputStickerSetID represents TL type `inputStickerSetID#9de7a269`.

func (*InputStickerSetID) Decode ¶

func (i *InputStickerSetID) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputStickerSetID) Encode ¶

func (i *InputStickerSetID) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputStickerSetItem ¶

type InputStickerSetItem struct {
	// Flags field of InputStickerSetItem.
	Flags bin.Fields
	// Document field of InputStickerSetItem.
	Document InputDocumentClass
	// Emoji field of InputStickerSetItem.
	Emoji string
	// MaskCoords field of InputStickerSetItem.
	//
	// Use SetMaskCoords and GetMaskCoords helpers.
	MaskCoords MaskCoords
}

InputStickerSetItem represents TL type `inputStickerSetItem#ffa0a496`.

func (*InputStickerSetItem) Decode ¶

func (i *InputStickerSetItem) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputStickerSetItem) Encode ¶

func (i *InputStickerSetItem) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputStickerSetItem) GetMaskCoords ¶

func (i *InputStickerSetItem) GetMaskCoords() (value MaskCoords, ok bool)

GetMaskCoords returns value of MaskCoords conditional field and boolean which is true if field was set.

func (*InputStickerSetItem) SetMaskCoords ¶

func (i *InputStickerSetItem) SetMaskCoords(value MaskCoords)

SetMaskCoords sets value of MaskCoords conditional field.

type InputStickerSetShortName ¶

type InputStickerSetShortName struct {
	// ShortName field of InputStickerSetShortName.
	ShortName string
}

InputStickerSetShortName represents TL type `inputStickerSetShortName#861cc8a0`.

func (*InputStickerSetShortName) Decode ¶

func (i *InputStickerSetShortName) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputStickerSetShortName) Encode ¶

func (i *InputStickerSetShortName) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputStickerSetThumb ¶

type InputStickerSetThumb struct {
	// Stickerset field of InputStickerSetThumb.
	Stickerset InputStickerSetClass
	// VolumeID field of InputStickerSetThumb.
	VolumeID int64
	// LocalID field of InputStickerSetThumb.
	LocalID int
}

InputStickerSetThumb represents TL type `inputStickerSetThumb#dbaeae9`.

func (*InputStickerSetThumb) Decode ¶

func (i *InputStickerSetThumb) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputStickerSetThumb) Encode ¶

func (i *InputStickerSetThumb) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputStickeredMediaBox ¶

type InputStickeredMediaBox struct {
	InputStickeredMedia InputStickeredMediaClass
}

InputStickeredMedia boxes the InputStickeredMediaClass providing a helper.

func (*InputStickeredMediaBox) Decode ¶

func (b *InputStickeredMediaBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputStickeredMediaBox.

func (*InputStickeredMediaBox) Encode ¶

func (b *InputStickeredMediaBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputStickeredMediaBox.

type InputStickeredMediaClass ¶

type InputStickeredMediaClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputStickeredMediaClass represents InputStickeredMedia generic type.

Example:

g, err := DecodeInputStickeredMedia(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputStickeredMediaPhoto: // inputStickeredMediaPhoto#4a992157
case *InputStickeredMediaDocument: // inputStickeredMediaDocument#438865b
default: panic(v)
}

func DecodeInputStickeredMedia ¶

func DecodeInputStickeredMedia(buf *bin.Buffer) (InputStickeredMediaClass, error)

DecodeInputStickeredMedia implements binary de-serialization for InputStickeredMediaClass.

type InputStickeredMediaDocument ¶

type InputStickeredMediaDocument struct {
	// ID field of InputStickeredMediaDocument.
	ID InputDocumentClass
}

InputStickeredMediaDocument represents TL type `inputStickeredMediaDocument#438865b`.

func (*InputStickeredMediaDocument) Decode ¶

Decode implements bin.Decoder.

func (*InputStickeredMediaDocument) Encode ¶

Encode implements bin.Encoder.

type InputStickeredMediaPhoto ¶

type InputStickeredMediaPhoto struct {
	// ID field of InputStickeredMediaPhoto.
	ID InputPhotoClass
}

InputStickeredMediaPhoto represents TL type `inputStickeredMediaPhoto#4a992157`.

func (*InputStickeredMediaPhoto) Decode ¶

func (i *InputStickeredMediaPhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputStickeredMediaPhoto) Encode ¶

func (i *InputStickeredMediaPhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputTakeoutFileLocation ¶

type InputTakeoutFileLocation struct {
}

InputTakeoutFileLocation represents TL type `inputTakeoutFileLocation#29be5899`.

func (*InputTakeoutFileLocation) Decode ¶

func (i *InputTakeoutFileLocation) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputTakeoutFileLocation) Encode ¶

func (i *InputTakeoutFileLocation) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputTheme ¶

type InputTheme struct {
	// ID field of InputTheme.
	ID int64
	// AccessHash field of InputTheme.
	AccessHash int64
}

InputTheme represents TL type `inputTheme#3c5693e9`.

func (*InputTheme) Decode ¶

func (i *InputTheme) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputTheme) Encode ¶

func (i *InputTheme) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputThemeBox ¶

type InputThemeBox struct {
	InputTheme InputThemeClass
}

InputTheme boxes the InputThemeClass providing a helper.

func (*InputThemeBox) Decode ¶

func (b *InputThemeBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputThemeBox.

func (*InputThemeBox) Encode ¶

func (b *InputThemeBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputThemeBox.

type InputThemeClass ¶

type InputThemeClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputThemeClass represents InputTheme generic type.

Example:

g, err := DecodeInputTheme(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputTheme: // inputTheme#3c5693e9
case *InputThemeSlug: // inputThemeSlug#f5890df1
default: panic(v)
}

func DecodeInputTheme ¶

func DecodeInputTheme(buf *bin.Buffer) (InputThemeClass, error)

DecodeInputTheme implements binary de-serialization for InputThemeClass.

type InputThemeSettings ¶

type InputThemeSettings struct {
	// Flags field of InputThemeSettings.
	Flags bin.Fields
	// BaseTheme field of InputThemeSettings.
	BaseTheme BaseThemeClass
	// AccentColor field of InputThemeSettings.
	AccentColor int
	// MessageTopColor field of InputThemeSettings.
	//
	// Use SetMessageTopColor and GetMessageTopColor helpers.
	MessageTopColor int
	// MessageBottomColor field of InputThemeSettings.
	//
	// Use SetMessageBottomColor and GetMessageBottomColor helpers.
	MessageBottomColor int
	// Wallpaper field of InputThemeSettings.
	//
	// Use SetWallpaper and GetWallpaper helpers.
	Wallpaper InputWallPaperClass
	// WallpaperSettings field of InputThemeSettings.
	//
	// Use SetWallpaperSettings and GetWallpaperSettings helpers.
	WallpaperSettings WallPaperSettings
}

InputThemeSettings represents TL type `inputThemeSettings#bd507cd1`.

func (*InputThemeSettings) Decode ¶

func (i *InputThemeSettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputThemeSettings) Encode ¶

func (i *InputThemeSettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*InputThemeSettings) GetMessageBottomColor ¶

func (i *InputThemeSettings) GetMessageBottomColor() (value int, ok bool)

GetMessageBottomColor returns value of MessageBottomColor conditional field and boolean which is true if field was set.

func (*InputThemeSettings) GetMessageTopColor ¶

func (i *InputThemeSettings) GetMessageTopColor() (value int, ok bool)

GetMessageTopColor returns value of MessageTopColor conditional field and boolean which is true if field was set.

func (*InputThemeSettings) GetWallpaper ¶

func (i *InputThemeSettings) GetWallpaper() (value InputWallPaperClass, ok bool)

GetWallpaper returns value of Wallpaper conditional field and boolean which is true if field was set.

func (*InputThemeSettings) GetWallpaperSettings ¶

func (i *InputThemeSettings) GetWallpaperSettings() (value WallPaperSettings, ok bool)

GetWallpaperSettings returns value of WallpaperSettings conditional field and boolean which is true if field was set.

func (*InputThemeSettings) SetMessageBottomColor ¶

func (i *InputThemeSettings) SetMessageBottomColor(value int)

SetMessageBottomColor sets value of MessageBottomColor conditional field.

func (*InputThemeSettings) SetMessageTopColor ¶

func (i *InputThemeSettings) SetMessageTopColor(value int)

SetMessageTopColor sets value of MessageTopColor conditional field.

func (*InputThemeSettings) SetWallpaper ¶

func (i *InputThemeSettings) SetWallpaper(value InputWallPaperClass)

SetWallpaper sets value of Wallpaper conditional field.

func (*InputThemeSettings) SetWallpaperSettings ¶

func (i *InputThemeSettings) SetWallpaperSettings(value WallPaperSettings)

SetWallpaperSettings sets value of WallpaperSettings conditional field.

type InputThemeSlug ¶

type InputThemeSlug struct {
	// Slug field of InputThemeSlug.
	Slug string
}

InputThemeSlug represents TL type `inputThemeSlug#f5890df1`.

func (*InputThemeSlug) Decode ¶

func (i *InputThemeSlug) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputThemeSlug) Encode ¶

func (i *InputThemeSlug) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputUser ¶

type InputUser struct {
	// UserID field of InputUser.
	UserID int
	// AccessHash field of InputUser.
	AccessHash int64
}

InputUser represents TL type `inputUser#d8292816`.

func (*InputUser) Decode ¶

func (i *InputUser) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputUser) Encode ¶

func (i *InputUser) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputUserBox ¶

type InputUserBox struct {
	InputUser InputUserClass
}

InputUser boxes the InputUserClass providing a helper.

func (*InputUserBox) Decode ¶

func (b *InputUserBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputUserBox.

func (*InputUserBox) Encode ¶

func (b *InputUserBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputUserBox.

type InputUserClass ¶

type InputUserClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputUserClass represents InputUser generic type.

Example:

g, err := DecodeInputUser(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputUserEmpty: // inputUserEmpty#b98886cf
case *InputUserSelf: // inputUserSelf#f7c1b13f
case *InputUser: // inputUser#d8292816
case *InputUserFromMessage: // inputUserFromMessage#2d117597
default: panic(v)
}

func DecodeInputUser ¶

func DecodeInputUser(buf *bin.Buffer) (InputUserClass, error)

DecodeInputUser implements binary de-serialization for InputUserClass.

type InputUserEmpty ¶

type InputUserEmpty struct {
}

InputUserEmpty represents TL type `inputUserEmpty#b98886cf`.

func (*InputUserEmpty) Decode ¶

func (i *InputUserEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputUserEmpty) Encode ¶

func (i *InputUserEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputUserFromMessage ¶

type InputUserFromMessage struct {
	// Peer field of InputUserFromMessage.
	Peer InputPeerClass
	// MsgID field of InputUserFromMessage.
	MsgID int
	// UserID field of InputUserFromMessage.
	UserID int
}

InputUserFromMessage represents TL type `inputUserFromMessage#2d117597`.

func (*InputUserFromMessage) Decode ¶

func (i *InputUserFromMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputUserFromMessage) Encode ¶

func (i *InputUserFromMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputUserSelf ¶

type InputUserSelf struct {
}

InputUserSelf represents TL type `inputUserSelf#f7c1b13f`.

func (*InputUserSelf) Decode ¶

func (i *InputUserSelf) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputUserSelf) Encode ¶

func (i *InputUserSelf) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputWallPaper ¶

type InputWallPaper struct {
	// ID field of InputWallPaper.
	ID int64
	// AccessHash field of InputWallPaper.
	AccessHash int64
}

InputWallPaper represents TL type `inputWallPaper#e630b979`.

func (*InputWallPaper) Decode ¶

func (i *InputWallPaper) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputWallPaper) Encode ¶

func (i *InputWallPaper) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputWallPaperBox ¶

type InputWallPaperBox struct {
	InputWallPaper InputWallPaperClass
}

InputWallPaper boxes the InputWallPaperClass providing a helper.

func (*InputWallPaperBox) Decode ¶

func (b *InputWallPaperBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputWallPaperBox.

func (*InputWallPaperBox) Encode ¶

func (b *InputWallPaperBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputWallPaperBox.

type InputWallPaperClass ¶

type InputWallPaperClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputWallPaperClass represents InputWallPaper generic type.

Example:

g, err := DecodeInputWallPaper(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputWallPaper: // inputWallPaper#e630b979
case *InputWallPaperSlug: // inputWallPaperSlug#72091c80
case *InputWallPaperNoFile: // inputWallPaperNoFile#8427bbac
default: panic(v)
}

func DecodeInputWallPaper ¶

func DecodeInputWallPaper(buf *bin.Buffer) (InputWallPaperClass, error)

DecodeInputWallPaper implements binary de-serialization for InputWallPaperClass.

type InputWallPaperNoFile ¶

type InputWallPaperNoFile struct {
}

InputWallPaperNoFile represents TL type `inputWallPaperNoFile#8427bbac`.

func (*InputWallPaperNoFile) Decode ¶

func (i *InputWallPaperNoFile) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputWallPaperNoFile) Encode ¶

func (i *InputWallPaperNoFile) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputWallPaperSlug ¶

type InputWallPaperSlug struct {
	// Slug field of InputWallPaperSlug.
	Slug string
}

InputWallPaperSlug represents TL type `inputWallPaperSlug#72091c80`.

func (*InputWallPaperSlug) Decode ¶

func (i *InputWallPaperSlug) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputWallPaperSlug) Encode ¶

func (i *InputWallPaperSlug) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputWebDocument ¶

type InputWebDocument struct {
	// URL field of InputWebDocument.
	URL string
	// Size field of InputWebDocument.
	Size int
	// MimeType field of InputWebDocument.
	MimeType string
	// Attributes field of InputWebDocument.
	Attributes []DocumentAttributeClass
}

InputWebDocument represents TL type `inputWebDocument#9bed434d`.

func (*InputWebDocument) Decode ¶

func (i *InputWebDocument) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputWebDocument) Encode ¶

func (i *InputWebDocument) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputWebFileGeoPointLocation ¶

type InputWebFileGeoPointLocation struct {
	// GeoPoint field of InputWebFileGeoPointLocation.
	GeoPoint InputGeoPointClass
	// AccessHash field of InputWebFileGeoPointLocation.
	AccessHash int64
	// W field of InputWebFileGeoPointLocation.
	W int
	// H field of InputWebFileGeoPointLocation.
	H int
	// Zoom field of InputWebFileGeoPointLocation.
	Zoom int
	// Scale field of InputWebFileGeoPointLocation.
	Scale int
}

InputWebFileGeoPointLocation represents TL type `inputWebFileGeoPointLocation#9f2221c9`.

func (*InputWebFileGeoPointLocation) Decode ¶

Decode implements bin.Decoder.

func (*InputWebFileGeoPointLocation) Encode ¶

Encode implements bin.Encoder.

type InputWebFileLocation ¶

type InputWebFileLocation struct {
	// URL field of InputWebFileLocation.
	URL string
	// AccessHash field of InputWebFileLocation.
	AccessHash int64
}

InputWebFileLocation represents TL type `inputWebFileLocation#c239d686`.

func (*InputWebFileLocation) Decode ¶

func (i *InputWebFileLocation) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*InputWebFileLocation) Encode ¶

func (i *InputWebFileLocation) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type InputWebFileLocationBox ¶

type InputWebFileLocationBox struct {
	InputWebFileLocation InputWebFileLocationClass
}

InputWebFileLocation boxes the InputWebFileLocationClass providing a helper.

func (*InputWebFileLocationBox) Decode ¶

func (b *InputWebFileLocationBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for InputWebFileLocationBox.

func (*InputWebFileLocationBox) Encode ¶

func (b *InputWebFileLocationBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for InputWebFileLocationBox.

type InputWebFileLocationClass ¶

type InputWebFileLocationClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

InputWebFileLocationClass represents InputWebFileLocation generic type.

Example:

g, err := DecodeInputWebFileLocation(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputWebFileLocation: // inputWebFileLocation#c239d686
case *InputWebFileGeoPointLocation: // inputWebFileGeoPointLocation#9f2221c9
default: panic(v)
}

func DecodeInputWebFileLocation ¶

func DecodeInputWebFileLocation(buf *bin.Buffer) (InputWebFileLocationClass, error)

DecodeInputWebFileLocation implements binary de-serialization for InputWebFileLocationClass.

type Invoice ¶

type Invoice struct {
	// Flags field of Invoice.
	Flags bin.Fields
	// Test field of Invoice.
	Test bool
	// NameRequested field of Invoice.
	NameRequested bool
	// PhoneRequested field of Invoice.
	PhoneRequested bool
	// EmailRequested field of Invoice.
	EmailRequested bool
	// ShippingAddressRequested field of Invoice.
	ShippingAddressRequested bool
	// Flexible field of Invoice.
	Flexible bool
	// PhoneToProvider field of Invoice.
	PhoneToProvider bool
	// EmailToProvider field of Invoice.
	EmailToProvider bool
	// Currency field of Invoice.
	Currency string
	// Prices field of Invoice.
	Prices []LabeledPrice
}

Invoice represents TL type `invoice#c30aa358`.

func (*Invoice) Decode ¶

func (i *Invoice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Invoice) Encode ¶

func (i *Invoice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Invoice) SetEmailRequested ¶

func (i *Invoice) SetEmailRequested(value bool)

SetEmailRequested sets value of EmailRequested conditional field.

func (*Invoice) SetEmailToProvider ¶

func (i *Invoice) SetEmailToProvider(value bool)

SetEmailToProvider sets value of EmailToProvider conditional field.

func (*Invoice) SetFlexible ¶

func (i *Invoice) SetFlexible(value bool)

SetFlexible sets value of Flexible conditional field.

func (*Invoice) SetNameRequested ¶

func (i *Invoice) SetNameRequested(value bool)

SetNameRequested sets value of NameRequested conditional field.

func (*Invoice) SetPhoneRequested ¶

func (i *Invoice) SetPhoneRequested(value bool)

SetPhoneRequested sets value of PhoneRequested conditional field.

func (*Invoice) SetPhoneToProvider ¶

func (i *Invoice) SetPhoneToProvider(value bool)

SetPhoneToProvider sets value of PhoneToProvider conditional field.

func (*Invoice) SetShippingAddressRequested ¶

func (i *Invoice) SetShippingAddressRequested(value bool)

SetShippingAddressRequested sets value of ShippingAddressRequested conditional field.

func (*Invoice) SetTest ¶

func (i *Invoice) SetTest(value bool)

SetTest sets value of Test conditional field.

type Invoker ¶

type Invoker interface {
	InvokeRaw(ctx context.Context, input bin.Encoder, output bin.Decoder) error
}

Invoker can invoke raw MTProto rpc calls.

type JSONValueBox ¶

type JSONValueBox struct {
	JSONValue JSONValueClass
}

JSONValue boxes the JSONValueClass providing a helper.

func (*JSONValueBox) Decode ¶

func (b *JSONValueBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for JSONValueBox.

func (*JSONValueBox) Encode ¶

func (b *JSONValueBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for JSONValueBox.

type JSONValueClass ¶

type JSONValueClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

JSONValueClass represents JSONValue generic type.

Example:

g, err := DecodeJSONValue(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *JsonNull: // jsonNull#3f6d7b68
case *JsonBool: // jsonBool#c7345e6a
case *JsonNumber: // jsonNumber#2be0dfa4
case *JsonString: // jsonString#b71e767a
case *JsonArray: // jsonArray#f7444763
case *JsonObject: // jsonObject#99c1d49d
default: panic(v)
}

func DecodeJSONValue ¶

func DecodeJSONValue(buf *bin.Buffer) (JSONValueClass, error)

DecodeJSONValue implements binary de-serialization for JSONValueClass.

type JsonArray ¶

type JsonArray struct {
	// Value field of JsonArray.
	Value []JSONValueClass
}

JsonArray represents TL type `jsonArray#f7444763`.

func (*JsonArray) Decode ¶

func (j *JsonArray) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*JsonArray) Encode ¶

func (j *JsonArray) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type JsonBool ¶

type JsonBool struct {
	// Value field of JsonBool.
	Value bool
}

JsonBool represents TL type `jsonBool#c7345e6a`.

func (*JsonBool) Decode ¶

func (j *JsonBool) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*JsonBool) Encode ¶

func (j *JsonBool) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type JsonNull ¶

type JsonNull struct {
}

JsonNull represents TL type `jsonNull#3f6d7b68`.

func (*JsonNull) Decode ¶

func (j *JsonNull) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*JsonNull) Encode ¶

func (j *JsonNull) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type JsonNumber ¶

type JsonNumber struct {
	// Value field of JsonNumber.
	Value float64
}

JsonNumber represents TL type `jsonNumber#2be0dfa4`.

func (*JsonNumber) Decode ¶

func (j *JsonNumber) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*JsonNumber) Encode ¶

func (j *JsonNumber) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type JsonObject ¶

type JsonObject struct {
	// Value field of JsonObject.
	Value []JsonObjectValue
}

JsonObject represents TL type `jsonObject#99c1d49d`.

func (*JsonObject) Decode ¶

func (j *JsonObject) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*JsonObject) Encode ¶

func (j *JsonObject) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type JsonObjectValue ¶

type JsonObjectValue struct {
	// Key field of JsonObjectValue.
	Key string
	// Value field of JsonObjectValue.
	Value JSONValueClass
}

JsonObjectValue represents TL type `jsonObjectValue#c0de1bd9`.

func (*JsonObjectValue) Decode ¶

func (j *JsonObjectValue) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*JsonObjectValue) Encode ¶

func (j *JsonObjectValue) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type JsonString ¶

type JsonString struct {
	// Value field of JsonString.
	Value string
}

JsonString represents TL type `jsonString#b71e767a`.

func (*JsonString) Decode ¶

func (j *JsonString) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*JsonString) Encode ¶

func (j *JsonString) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type KeyboardButton ¶

type KeyboardButton struct {
	// Text field of KeyboardButton.
	Text string
}

KeyboardButton represents TL type `keyboardButton#a2fa4880`.

func (*KeyboardButton) Decode ¶

func (k *KeyboardButton) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*KeyboardButton) Encode ¶

func (k *KeyboardButton) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type KeyboardButtonBox ¶

type KeyboardButtonBox struct {
	KeyboardButton KeyboardButtonClass
}

KeyboardButton boxes the KeyboardButtonClass providing a helper.

func (*KeyboardButtonBox) Decode ¶

func (b *KeyboardButtonBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for KeyboardButtonBox.

func (*KeyboardButtonBox) Encode ¶

func (b *KeyboardButtonBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for KeyboardButtonBox.

type KeyboardButtonBuy ¶

type KeyboardButtonBuy struct {
	// Text field of KeyboardButtonBuy.
	Text string
}

KeyboardButtonBuy represents TL type `keyboardButtonBuy#afd93fbb`.

func (*KeyboardButtonBuy) Decode ¶

func (k *KeyboardButtonBuy) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*KeyboardButtonBuy) Encode ¶

func (k *KeyboardButtonBuy) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type KeyboardButtonCallback ¶

type KeyboardButtonCallback struct {
	// Flags field of KeyboardButtonCallback.
	Flags bin.Fields
	// RequiresPassword field of KeyboardButtonCallback.
	RequiresPassword bool
	// Text field of KeyboardButtonCallback.
	Text string
	// Data field of KeyboardButtonCallback.
	Data []byte
}

KeyboardButtonCallback represents TL type `keyboardButtonCallback#35bbdb6b`.

func (*KeyboardButtonCallback) Decode ¶

func (k *KeyboardButtonCallback) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*KeyboardButtonCallback) Encode ¶

func (k *KeyboardButtonCallback) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*KeyboardButtonCallback) SetRequiresPassword ¶

func (k *KeyboardButtonCallback) SetRequiresPassword(value bool)

SetRequiresPassword sets value of RequiresPassword conditional field.

type KeyboardButtonClass ¶

type KeyboardButtonClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

KeyboardButtonClass represents KeyboardButton generic type.

Example:

g, err := DecodeKeyboardButton(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *KeyboardButton: // keyboardButton#a2fa4880
case *KeyboardButtonUrl: // keyboardButtonUrl#258aff05
case *KeyboardButtonCallback: // keyboardButtonCallback#35bbdb6b
case *KeyboardButtonRequestPhone: // keyboardButtonRequestPhone#b16a6c29
case *KeyboardButtonRequestGeoLocation: // keyboardButtonRequestGeoLocation#fc796b3f
case *KeyboardButtonSwitchInline: // keyboardButtonSwitchInline#568a748
case *KeyboardButtonGame: // keyboardButtonGame#50f41ccf
case *KeyboardButtonBuy: // keyboardButtonBuy#afd93fbb
case *KeyboardButtonUrlAuth: // keyboardButtonUrlAuth#10b78d29
case *InputKeyboardButtonUrlAuth: // inputKeyboardButtonUrlAuth#d02e7fd4
case *KeyboardButtonRequestPoll: // keyboardButtonRequestPoll#bbc7515d
default: panic(v)
}

func DecodeKeyboardButton ¶

func DecodeKeyboardButton(buf *bin.Buffer) (KeyboardButtonClass, error)

DecodeKeyboardButton implements binary de-serialization for KeyboardButtonClass.

type KeyboardButtonGame ¶

type KeyboardButtonGame struct {
	// Text field of KeyboardButtonGame.
	Text string
}

KeyboardButtonGame represents TL type `keyboardButtonGame#50f41ccf`.

func (*KeyboardButtonGame) Decode ¶

func (k *KeyboardButtonGame) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*KeyboardButtonGame) Encode ¶

func (k *KeyboardButtonGame) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type KeyboardButtonRequestGeoLocation ¶

type KeyboardButtonRequestGeoLocation struct {
	// Text field of KeyboardButtonRequestGeoLocation.
	Text string
}

KeyboardButtonRequestGeoLocation represents TL type `keyboardButtonRequestGeoLocation#fc796b3f`.

func (*KeyboardButtonRequestGeoLocation) Decode ¶

Decode implements bin.Decoder.

func (*KeyboardButtonRequestGeoLocation) Encode ¶

Encode implements bin.Encoder.

type KeyboardButtonRequestPhone ¶

type KeyboardButtonRequestPhone struct {
	// Text field of KeyboardButtonRequestPhone.
	Text string
}

KeyboardButtonRequestPhone represents TL type `keyboardButtonRequestPhone#b16a6c29`.

func (*KeyboardButtonRequestPhone) Decode ¶

Decode implements bin.Decoder.

func (*KeyboardButtonRequestPhone) Encode ¶

Encode implements bin.Encoder.

type KeyboardButtonRequestPoll ¶

type KeyboardButtonRequestPoll struct {
	// Flags field of KeyboardButtonRequestPoll.
	Flags bin.Fields
	// Quiz field of KeyboardButtonRequestPoll.
	Quiz bool
	// Text field of KeyboardButtonRequestPoll.
	Text string
}

KeyboardButtonRequestPoll represents TL type `keyboardButtonRequestPoll#bbc7515d`.

func (*KeyboardButtonRequestPoll) Decode ¶

func (k *KeyboardButtonRequestPoll) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*KeyboardButtonRequestPoll) Encode ¶

func (k *KeyboardButtonRequestPoll) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*KeyboardButtonRequestPoll) SetQuiz ¶

func (k *KeyboardButtonRequestPoll) SetQuiz(value bool)

SetQuiz sets value of Quiz conditional field.

type KeyboardButtonRow ¶

type KeyboardButtonRow struct {
	// Buttons field of KeyboardButtonRow.
	Buttons []KeyboardButtonClass
}

KeyboardButtonRow represents TL type `keyboardButtonRow#77608b83`.

func (*KeyboardButtonRow) Decode ¶

func (k *KeyboardButtonRow) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*KeyboardButtonRow) Encode ¶

func (k *KeyboardButtonRow) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type KeyboardButtonSwitchInline ¶

type KeyboardButtonSwitchInline struct {
	// Flags field of KeyboardButtonSwitchInline.
	Flags bin.Fields
	// SamePeer field of KeyboardButtonSwitchInline.
	SamePeer bool
	// Text field of KeyboardButtonSwitchInline.
	Text string
	// Query field of KeyboardButtonSwitchInline.
	Query string
}

KeyboardButtonSwitchInline represents TL type `keyboardButtonSwitchInline#568a748`.

func (*KeyboardButtonSwitchInline) Decode ¶

Decode implements bin.Decoder.

func (*KeyboardButtonSwitchInline) Encode ¶

Encode implements bin.Encoder.

func (*KeyboardButtonSwitchInline) SetSamePeer ¶

func (k *KeyboardButtonSwitchInline) SetSamePeer(value bool)

SetSamePeer sets value of SamePeer conditional field.

type KeyboardButtonUrl ¶

type KeyboardButtonUrl struct {
	// Text field of KeyboardButtonUrl.
	Text string
	// URL field of KeyboardButtonUrl.
	URL string
}

KeyboardButtonUrl represents TL type `keyboardButtonUrl#258aff05`.

func (*KeyboardButtonUrl) Decode ¶

func (k *KeyboardButtonUrl) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*KeyboardButtonUrl) Encode ¶

func (k *KeyboardButtonUrl) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type KeyboardButtonUrlAuth ¶

type KeyboardButtonUrlAuth struct {
	// Flags field of KeyboardButtonUrlAuth.
	Flags bin.Fields
	// Text field of KeyboardButtonUrlAuth.
	Text string
	// FwdText field of KeyboardButtonUrlAuth.
	//
	// Use SetFwdText and GetFwdText helpers.
	FwdText string
	// URL field of KeyboardButtonUrlAuth.
	URL string
	// ButtonID field of KeyboardButtonUrlAuth.
	ButtonID int
}

KeyboardButtonUrlAuth represents TL type `keyboardButtonUrlAuth#10b78d29`.

func (*KeyboardButtonUrlAuth) Decode ¶

func (k *KeyboardButtonUrlAuth) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*KeyboardButtonUrlAuth) Encode ¶

func (k *KeyboardButtonUrlAuth) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*KeyboardButtonUrlAuth) GetFwdText ¶

func (k *KeyboardButtonUrlAuth) GetFwdText() (value string, ok bool)

GetFwdText returns value of FwdText conditional field and boolean which is true if field was set.

func (*KeyboardButtonUrlAuth) SetFwdText ¶

func (k *KeyboardButtonUrlAuth) SetFwdText(value string)

SetFwdText sets value of FwdText conditional field.

type LabeledPrice ¶

type LabeledPrice struct {
	// Label field of LabeledPrice.
	Label string
	// Amount field of LabeledPrice.
	Amount int64
}

LabeledPrice represents TL type `labeledPrice#cb296bf8`.

func (*LabeledPrice) Decode ¶

func (l *LabeledPrice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*LabeledPrice) Encode ¶

func (l *LabeledPrice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type LangPackDifference ¶

type LangPackDifference struct {
	// LangCode field of LangPackDifference.
	LangCode string
	// FromVersion field of LangPackDifference.
	FromVersion int
	// Version field of LangPackDifference.
	Version int
	// Strings field of LangPackDifference.
	Strings []LangPackStringClass
}

LangPackDifference represents TL type `langPackDifference#f385c1f6`.

func (*LangPackDifference) Decode ¶

func (l *LangPackDifference) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*LangPackDifference) Encode ¶

func (l *LangPackDifference) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type LangPackLanguage ¶

type LangPackLanguage struct {
	// Flags field of LangPackLanguage.
	Flags bin.Fields
	// Official field of LangPackLanguage.
	Official bool
	// Rtl field of LangPackLanguage.
	Rtl bool
	// Beta field of LangPackLanguage.
	Beta bool
	// Name field of LangPackLanguage.
	Name string
	// NativeName field of LangPackLanguage.
	NativeName string
	// LangCode field of LangPackLanguage.
	LangCode string
	// BaseLangCode field of LangPackLanguage.
	//
	// Use SetBaseLangCode and GetBaseLangCode helpers.
	BaseLangCode string
	// PluralCode field of LangPackLanguage.
	PluralCode string
	// StringsCount field of LangPackLanguage.
	StringsCount int
	// TranslatedCount field of LangPackLanguage.
	TranslatedCount int
	// TranslationsURL field of LangPackLanguage.
	TranslationsURL string
}

LangPackLanguage represents TL type `langPackLanguage#eeca5ce3`.

func (*LangPackLanguage) Decode ¶

func (l *LangPackLanguage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*LangPackLanguage) Encode ¶

func (l *LangPackLanguage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*LangPackLanguage) GetBaseLangCode ¶

func (l *LangPackLanguage) GetBaseLangCode() (value string, ok bool)

GetBaseLangCode returns value of BaseLangCode conditional field and boolean which is true if field was set.

func (*LangPackLanguage) SetBaseLangCode ¶

func (l *LangPackLanguage) SetBaseLangCode(value string)

SetBaseLangCode sets value of BaseLangCode conditional field.

func (*LangPackLanguage) SetBeta ¶

func (l *LangPackLanguage) SetBeta(value bool)

SetBeta sets value of Beta conditional field.

func (*LangPackLanguage) SetOfficial ¶

func (l *LangPackLanguage) SetOfficial(value bool)

SetOfficial sets value of Official conditional field.

func (*LangPackLanguage) SetRtl ¶

func (l *LangPackLanguage) SetRtl(value bool)

SetRtl sets value of Rtl conditional field.

type LangPackString ¶

type LangPackString struct {
	// Key field of LangPackString.
	Key string
	// Value field of LangPackString.
	Value string
}

LangPackString represents TL type `langPackString#cad181f6`.

func (*LangPackString) Decode ¶

func (l *LangPackString) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*LangPackString) Encode ¶

func (l *LangPackString) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type LangPackStringBox ¶

type LangPackStringBox struct {
	LangPackString LangPackStringClass
}

LangPackString boxes the LangPackStringClass providing a helper.

func (*LangPackStringBox) Decode ¶

func (b *LangPackStringBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for LangPackStringBox.

func (*LangPackStringBox) Encode ¶

func (b *LangPackStringBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for LangPackStringBox.

type LangPackStringClass ¶

type LangPackStringClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

LangPackStringClass represents LangPackString generic type.

Example:

g, err := DecodeLangPackString(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *LangPackString: // langPackString#cad181f6
case *LangPackStringPluralized: // langPackStringPluralized#6c47ac9f
case *LangPackStringDeleted: // langPackStringDeleted#2979eeb2
default: panic(v)
}

func DecodeLangPackString ¶

func DecodeLangPackString(buf *bin.Buffer) (LangPackStringClass, error)

DecodeLangPackString implements binary de-serialization for LangPackStringClass.

type LangPackStringDeleted ¶

type LangPackStringDeleted struct {
	// Key field of LangPackStringDeleted.
	Key string
}

LangPackStringDeleted represents TL type `langPackStringDeleted#2979eeb2`.

func (*LangPackStringDeleted) Decode ¶

func (l *LangPackStringDeleted) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*LangPackStringDeleted) Encode ¶

func (l *LangPackStringDeleted) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type LangPackStringPluralized ¶

type LangPackStringPluralized struct {
	// Flags field of LangPackStringPluralized.
	Flags bin.Fields
	// Key field of LangPackStringPluralized.
	Key string
	// ZeroValue field of LangPackStringPluralized.
	//
	// Use SetZeroValue and GetZeroValue helpers.
	ZeroValue string
	// OneValue field of LangPackStringPluralized.
	//
	// Use SetOneValue and GetOneValue helpers.
	OneValue string
	// TwoValue field of LangPackStringPluralized.
	//
	// Use SetTwoValue and GetTwoValue helpers.
	TwoValue string
	// FewValue field of LangPackStringPluralized.
	//
	// Use SetFewValue and GetFewValue helpers.
	FewValue string
	// ManyValue field of LangPackStringPluralized.
	//
	// Use SetManyValue and GetManyValue helpers.
	ManyValue string
	// OtherValue field of LangPackStringPluralized.
	OtherValue string
}

LangPackStringPluralized represents TL type `langPackStringPluralized#6c47ac9f`.

func (*LangPackStringPluralized) Decode ¶

func (l *LangPackStringPluralized) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*LangPackStringPluralized) Encode ¶

func (l *LangPackStringPluralized) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*LangPackStringPluralized) GetFewValue ¶

func (l *LangPackStringPluralized) GetFewValue() (value string, ok bool)

GetFewValue returns value of FewValue conditional field and boolean which is true if field was set.

func (*LangPackStringPluralized) GetManyValue ¶

func (l *LangPackStringPluralized) GetManyValue() (value string, ok bool)

GetManyValue returns value of ManyValue conditional field and boolean which is true if field was set.

func (*LangPackStringPluralized) GetOneValue ¶

func (l *LangPackStringPluralized) GetOneValue() (value string, ok bool)

GetOneValue returns value of OneValue conditional field and boolean which is true if field was set.

func (*LangPackStringPluralized) GetTwoValue ¶

func (l *LangPackStringPluralized) GetTwoValue() (value string, ok bool)

GetTwoValue returns value of TwoValue conditional field and boolean which is true if field was set.

func (*LangPackStringPluralized) GetZeroValue ¶

func (l *LangPackStringPluralized) GetZeroValue() (value string, ok bool)

GetZeroValue returns value of ZeroValue conditional field and boolean which is true if field was set.

func (*LangPackStringPluralized) SetFewValue ¶

func (l *LangPackStringPluralized) SetFewValue(value string)

SetFewValue sets value of FewValue conditional field.

func (*LangPackStringPluralized) SetManyValue ¶

func (l *LangPackStringPluralized) SetManyValue(value string)

SetManyValue sets value of ManyValue conditional field.

func (*LangPackStringPluralized) SetOneValue ¶

func (l *LangPackStringPluralized) SetOneValue(value string)

SetOneValue sets value of OneValue conditional field.

func (*LangPackStringPluralized) SetTwoValue ¶

func (l *LangPackStringPluralized) SetTwoValue(value string)

SetTwoValue sets value of TwoValue conditional field.

func (*LangPackStringPluralized) SetZeroValue ¶

func (l *LangPackStringPluralized) SetZeroValue(value string)

SetZeroValue sets value of ZeroValue conditional field.

type LangpackGetDifferenceRequest ¶

type LangpackGetDifferenceRequest struct {
	// LangPack field of LangpackGetDifferenceRequest.
	LangPack string
	// LangCode field of LangpackGetDifferenceRequest.
	LangCode string
	// FromVersion field of LangpackGetDifferenceRequest.
	FromVersion int
}

LangpackGetDifferenceRequest represents TL type `langpack.getDifference#cd984aa5`.

func (*LangpackGetDifferenceRequest) Decode ¶

Decode implements bin.Decoder.

func (*LangpackGetDifferenceRequest) Encode ¶

Encode implements bin.Encoder.

type LangpackGetLangPackRequest ¶

type LangpackGetLangPackRequest struct {
	// LangPack field of LangpackGetLangPackRequest.
	LangPack string
	// LangCode field of LangpackGetLangPackRequest.
	LangCode string
}

LangpackGetLangPackRequest represents TL type `langpack.getLangPack#f2f2330a`.

func (*LangpackGetLangPackRequest) Decode ¶

Decode implements bin.Decoder.

func (*LangpackGetLangPackRequest) Encode ¶

Encode implements bin.Encoder.

type LangpackGetLanguageRequest ¶

type LangpackGetLanguageRequest struct {
	// LangPack field of LangpackGetLanguageRequest.
	LangPack string
	// LangCode field of LangpackGetLanguageRequest.
	LangCode string
}

LangpackGetLanguageRequest represents TL type `langpack.getLanguage#6a596502`.

func (*LangpackGetLanguageRequest) Decode ¶

Decode implements bin.Decoder.

func (*LangpackGetLanguageRequest) Encode ¶

Encode implements bin.Encoder.

type LangpackGetLanguagesRequest ¶

type LangpackGetLanguagesRequest struct {
	// LangPack field of LangpackGetLanguagesRequest.
	LangPack string
}

LangpackGetLanguagesRequest represents TL type `langpack.getLanguages#42c6978f`.

func (*LangpackGetLanguagesRequest) Decode ¶

Decode implements bin.Decoder.

func (*LangpackGetLanguagesRequest) Encode ¶

Encode implements bin.Encoder.

type LangpackGetStringsRequest ¶

type LangpackGetStringsRequest struct {
	// LangPack field of LangpackGetStringsRequest.
	LangPack string
	// LangCode field of LangpackGetStringsRequest.
	LangCode string
	// Keys field of LangpackGetStringsRequest.
	Keys []string
}

LangpackGetStringsRequest represents TL type `langpack.getStrings#efea3803`.

func (*LangpackGetStringsRequest) Decode ¶

func (g *LangpackGetStringsRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*LangpackGetStringsRequest) Encode ¶

func (g *LangpackGetStringsRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MaskCoords ¶

type MaskCoords struct {
	// N field of MaskCoords.
	N int
	// X field of MaskCoords.
	X float64
	// Y field of MaskCoords.
	Y float64
	// Zoom field of MaskCoords.
	Zoom float64
}

MaskCoords represents TL type `maskCoords#aed6dbb2`.

func (*MaskCoords) Decode ¶

func (m *MaskCoords) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MaskCoords) Encode ¶

func (m *MaskCoords) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type Message ¶

type Message struct {
	// Flags field of Message.
	Flags bin.Fields
	// Out field of Message.
	Out bool
	// Mentioned field of Message.
	Mentioned bool
	// MediaUnread field of Message.
	MediaUnread bool
	// Silent field of Message.
	Silent bool
	// Post field of Message.
	Post bool
	// FromScheduled field of Message.
	FromScheduled bool
	// Legacy field of Message.
	Legacy bool
	// EditHide field of Message.
	EditHide bool
	// Pinned field of Message.
	Pinned bool
	// ID field of Message.
	ID int
	// FromID field of Message.
	//
	// Use SetFromID and GetFromID helpers.
	FromID PeerClass
	// PeerID field of Message.
	PeerID PeerClass
	// FwdFrom field of Message.
	//
	// Use SetFwdFrom and GetFwdFrom helpers.
	FwdFrom MessageFwdHeader
	// ViaBotID field of Message.
	//
	// Use SetViaBotID and GetViaBotID helpers.
	ViaBotID int
	// ReplyTo field of Message.
	//
	// Use SetReplyTo and GetReplyTo helpers.
	ReplyTo MessageReplyHeader
	// Date field of Message.
	Date int
	// Message field of Message.
	Message string
	// Media field of Message.
	//
	// Use SetMedia and GetMedia helpers.
	Media MessageMediaClass
	// ReplyMarkup field of Message.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
	// Entities field of Message.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
	// Views field of Message.
	//
	// Use SetViews and GetViews helpers.
	Views int
	// Forwards field of Message.
	//
	// Use SetForwards and GetForwards helpers.
	Forwards int
	// Replies field of Message.
	//
	// Use SetReplies and GetReplies helpers.
	Replies MessageReplies
	// EditDate field of Message.
	//
	// Use SetEditDate and GetEditDate helpers.
	EditDate int
	// PostAuthor field of Message.
	//
	// Use SetPostAuthor and GetPostAuthor helpers.
	PostAuthor string
	// GroupedID field of Message.
	//
	// Use SetGroupedID and GetGroupedID helpers.
	GroupedID int64
	// RestrictionReason field of Message.
	//
	// Use SetRestrictionReason and GetRestrictionReason helpers.
	RestrictionReason []RestrictionReason
}

Message represents TL type `message#58ae39c9`.

func (*Message) Decode ¶

func (m *Message) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Message) Encode ¶

func (m *Message) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Message) GetEditDate ¶

func (m *Message) GetEditDate() (value int, ok bool)

GetEditDate returns value of EditDate conditional field and boolean which is true if field was set.

func (*Message) GetEntities ¶

func (m *Message) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*Message) GetForwards ¶

func (m *Message) GetForwards() (value int, ok bool)

GetForwards returns value of Forwards conditional field and boolean which is true if field was set.

func (*Message) GetFromID ¶

func (m *Message) GetFromID() (value PeerClass, ok bool)

GetFromID returns value of FromID conditional field and boolean which is true if field was set.

func (*Message) GetFwdFrom ¶

func (m *Message) GetFwdFrom() (value MessageFwdHeader, ok bool)

GetFwdFrom returns value of FwdFrom conditional field and boolean which is true if field was set.

func (*Message) GetGroupedID ¶

func (m *Message) GetGroupedID() (value int64, ok bool)

GetGroupedID returns value of GroupedID conditional field and boolean which is true if field was set.

func (*Message) GetMedia ¶

func (m *Message) GetMedia() (value MessageMediaClass, ok bool)

GetMedia returns value of Media conditional field and boolean which is true if field was set.

func (*Message) GetPostAuthor ¶

func (m *Message) GetPostAuthor() (value string, ok bool)

GetPostAuthor returns value of PostAuthor conditional field and boolean which is true if field was set.

func (*Message) GetReplies ¶

func (m *Message) GetReplies() (value MessageReplies, ok bool)

GetReplies returns value of Replies conditional field and boolean which is true if field was set.

func (*Message) GetReplyMarkup ¶

func (m *Message) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*Message) GetReplyTo ¶

func (m *Message) GetReplyTo() (value MessageReplyHeader, ok bool)

GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set.

func (*Message) GetRestrictionReason ¶

func (m *Message) GetRestrictionReason() (value []RestrictionReason, ok bool)

GetRestrictionReason returns value of RestrictionReason conditional field and boolean which is true if field was set.

func (*Message) GetViaBotID ¶

func (m *Message) GetViaBotID() (value int, ok bool)

GetViaBotID returns value of ViaBotID conditional field and boolean which is true if field was set.

func (*Message) GetViews ¶

func (m *Message) GetViews() (value int, ok bool)

GetViews returns value of Views conditional field and boolean which is true if field was set.

func (*Message) SetEditDate ¶

func (m *Message) SetEditDate(value int)

SetEditDate sets value of EditDate conditional field.

func (*Message) SetEditHide ¶

func (m *Message) SetEditHide(value bool)

SetEditHide sets value of EditHide conditional field.

func (*Message) SetEntities ¶

func (m *Message) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*Message) SetForwards ¶

func (m *Message) SetForwards(value int)

SetForwards sets value of Forwards conditional field.

func (*Message) SetFromID ¶

func (m *Message) SetFromID(value PeerClass)

SetFromID sets value of FromID conditional field.

func (*Message) SetFromScheduled ¶

func (m *Message) SetFromScheduled(value bool)

SetFromScheduled sets value of FromScheduled conditional field.

func (*Message) SetFwdFrom ¶

func (m *Message) SetFwdFrom(value MessageFwdHeader)

SetFwdFrom sets value of FwdFrom conditional field.

func (*Message) SetGroupedID ¶

func (m *Message) SetGroupedID(value int64)

SetGroupedID sets value of GroupedID conditional field.

func (*Message) SetLegacy ¶

func (m *Message) SetLegacy(value bool)

SetLegacy sets value of Legacy conditional field.

func (*Message) SetMedia ¶

func (m *Message) SetMedia(value MessageMediaClass)

SetMedia sets value of Media conditional field.

func (*Message) SetMediaUnread ¶

func (m *Message) SetMediaUnread(value bool)

SetMediaUnread sets value of MediaUnread conditional field.

func (*Message) SetMentioned ¶

func (m *Message) SetMentioned(value bool)

SetMentioned sets value of Mentioned conditional field.

func (*Message) SetOut ¶

func (m *Message) SetOut(value bool)

SetOut sets value of Out conditional field.

func (*Message) SetPinned ¶

func (m *Message) SetPinned(value bool)

SetPinned sets value of Pinned conditional field.

func (*Message) SetPost ¶

func (m *Message) SetPost(value bool)

SetPost sets value of Post conditional field.

func (*Message) SetPostAuthor ¶

func (m *Message) SetPostAuthor(value string)

SetPostAuthor sets value of PostAuthor conditional field.

func (*Message) SetReplies ¶

func (m *Message) SetReplies(value MessageReplies)

SetReplies sets value of Replies conditional field.

func (*Message) SetReplyMarkup ¶

func (m *Message) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

func (*Message) SetReplyTo ¶

func (m *Message) SetReplyTo(value MessageReplyHeader)

SetReplyTo sets value of ReplyTo conditional field.

func (*Message) SetRestrictionReason ¶

func (m *Message) SetRestrictionReason(value []RestrictionReason)

SetRestrictionReason sets value of RestrictionReason conditional field.

func (*Message) SetSilent ¶

func (m *Message) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

func (*Message) SetViaBotID ¶

func (m *Message) SetViaBotID(value int)

SetViaBotID sets value of ViaBotID conditional field.

func (*Message) SetViews ¶

func (m *Message) SetViews(value int)

SetViews sets value of Views conditional field.

type MessageActionBotAllowed ¶

type MessageActionBotAllowed struct {
	// Domain field of MessageActionBotAllowed.
	Domain string
}

MessageActionBotAllowed represents TL type `messageActionBotAllowed#abe9affe`.

func (*MessageActionBotAllowed) Decode ¶

func (m *MessageActionBotAllowed) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageActionBotAllowed) Encode ¶

func (m *MessageActionBotAllowed) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageActionBox ¶

type MessageActionBox struct {
	MessageAction MessageActionClass
}

MessageAction boxes the MessageActionClass providing a helper.

func (*MessageActionBox) Decode ¶

func (b *MessageActionBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessageActionBox.

func (*MessageActionBox) Encode ¶

func (b *MessageActionBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessageActionBox.

type MessageActionChannelCreate ¶

type MessageActionChannelCreate struct {
	// Title field of MessageActionChannelCreate.
	Title string
}

MessageActionChannelCreate represents TL type `messageActionChannelCreate#95d2ac92`.

func (*MessageActionChannelCreate) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionChannelCreate) Encode ¶

Encode implements bin.Encoder.

type MessageActionChannelMigrateFrom ¶

type MessageActionChannelMigrateFrom struct {
	// Title field of MessageActionChannelMigrateFrom.
	Title string
	// ChatID field of MessageActionChannelMigrateFrom.
	ChatID int
}

MessageActionChannelMigrateFrom represents TL type `messageActionChannelMigrateFrom#b055eaee`.

func (*MessageActionChannelMigrateFrom) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionChannelMigrateFrom) Encode ¶

Encode implements bin.Encoder.

type MessageActionChatAddUser ¶

type MessageActionChatAddUser struct {
	// Users field of MessageActionChatAddUser.
	Users []int
}

MessageActionChatAddUser represents TL type `messageActionChatAddUser#488a7337`.

func (*MessageActionChatAddUser) Decode ¶

func (m *MessageActionChatAddUser) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageActionChatAddUser) Encode ¶

func (m *MessageActionChatAddUser) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageActionChatCreate ¶

type MessageActionChatCreate struct {
	// Title field of MessageActionChatCreate.
	Title string
	// Users field of MessageActionChatCreate.
	Users []int
}

MessageActionChatCreate represents TL type `messageActionChatCreate#a6638b9a`.

func (*MessageActionChatCreate) Decode ¶

func (m *MessageActionChatCreate) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageActionChatCreate) Encode ¶

func (m *MessageActionChatCreate) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageActionChatDeletePhoto ¶

type MessageActionChatDeletePhoto struct {
}

MessageActionChatDeletePhoto represents TL type `messageActionChatDeletePhoto#95e3fbef`.

func (*MessageActionChatDeletePhoto) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionChatDeletePhoto) Encode ¶

Encode implements bin.Encoder.

type MessageActionChatDeleteUser ¶

type MessageActionChatDeleteUser struct {
	// UserID field of MessageActionChatDeleteUser.
	UserID int
}

MessageActionChatDeleteUser represents TL type `messageActionChatDeleteUser#b2ae9b0c`.

func (*MessageActionChatDeleteUser) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionChatDeleteUser) Encode ¶

Encode implements bin.Encoder.

type MessageActionChatEditPhoto ¶

type MessageActionChatEditPhoto struct {
	// Photo field of MessageActionChatEditPhoto.
	Photo PhotoClass
}

MessageActionChatEditPhoto represents TL type `messageActionChatEditPhoto#7fcb13a8`.

func (*MessageActionChatEditPhoto) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionChatEditPhoto) Encode ¶

Encode implements bin.Encoder.

type MessageActionChatEditTitle ¶

type MessageActionChatEditTitle struct {
	// Title field of MessageActionChatEditTitle.
	Title string
}

MessageActionChatEditTitle represents TL type `messageActionChatEditTitle#b5a1ce5a`.

func (*MessageActionChatEditTitle) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionChatEditTitle) Encode ¶

Encode implements bin.Encoder.

type MessageActionChatJoinedByLink struct {
	// InviterID field of MessageActionChatJoinedByLink.
	InviterID int
}

MessageActionChatJoinedByLink represents TL type `messageActionChatJoinedByLink#f89cf5e8`.

func (*MessageActionChatJoinedByLink) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionChatJoinedByLink) Encode ¶

Encode implements bin.Encoder.

type MessageActionChatMigrateTo ¶

type MessageActionChatMigrateTo struct {
	// ChannelID field of MessageActionChatMigrateTo.
	ChannelID int
}

MessageActionChatMigrateTo represents TL type `messageActionChatMigrateTo#51bdb021`.

func (*MessageActionChatMigrateTo) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionChatMigrateTo) Encode ¶

Encode implements bin.Encoder.

type MessageActionClass ¶

type MessageActionClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessageActionClass represents MessageAction generic type.

Example:

g, err := DecodeMessageAction(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessageActionEmpty: // messageActionEmpty#b6aef7b0
case *MessageActionChatCreate: // messageActionChatCreate#a6638b9a
case *MessageActionChatEditTitle: // messageActionChatEditTitle#b5a1ce5a
case *MessageActionChatEditPhoto: // messageActionChatEditPhoto#7fcb13a8
case *MessageActionChatDeletePhoto: // messageActionChatDeletePhoto#95e3fbef
case *MessageActionChatAddUser: // messageActionChatAddUser#488a7337
case *MessageActionChatDeleteUser: // messageActionChatDeleteUser#b2ae9b0c
case *MessageActionChatJoinedByLink: // messageActionChatJoinedByLink#f89cf5e8
case *MessageActionChannelCreate: // messageActionChannelCreate#95d2ac92
case *MessageActionChatMigrateTo: // messageActionChatMigrateTo#51bdb021
case *MessageActionChannelMigrateFrom: // messageActionChannelMigrateFrom#b055eaee
case *MessageActionPinMessage: // messageActionPinMessage#94bd38ed
case *MessageActionHistoryClear: // messageActionHistoryClear#9fbab604
case *MessageActionGameScore: // messageActionGameScore#92a72876
case *MessageActionPaymentSentMe: // messageActionPaymentSentMe#8f31b327
case *MessageActionPaymentSent: // messageActionPaymentSent#40699cd0
case *MessageActionPhoneCall: // messageActionPhoneCall#80e11a7f
case *MessageActionScreenshotTaken: // messageActionScreenshotTaken#4792929b
case *MessageActionCustomAction: // messageActionCustomAction#fae69f56
case *MessageActionBotAllowed: // messageActionBotAllowed#abe9affe
case *MessageActionSecureValuesSentMe: // messageActionSecureValuesSentMe#1b287353
case *MessageActionSecureValuesSent: // messageActionSecureValuesSent#d95c6154
case *MessageActionContactSignUp: // messageActionContactSignUp#f3f25f76
case *MessageActionGeoProximityReached: // messageActionGeoProximityReached#98e0d697
default: panic(v)
}

func DecodeMessageAction ¶

func DecodeMessageAction(buf *bin.Buffer) (MessageActionClass, error)

DecodeMessageAction implements binary de-serialization for MessageActionClass.

type MessageActionContactSignUp ¶

type MessageActionContactSignUp struct {
}

MessageActionContactSignUp represents TL type `messageActionContactSignUp#f3f25f76`.

func (*MessageActionContactSignUp) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionContactSignUp) Encode ¶

Encode implements bin.Encoder.

type MessageActionCustomAction ¶

type MessageActionCustomAction struct {
	// Message field of MessageActionCustomAction.
	Message string
}

MessageActionCustomAction represents TL type `messageActionCustomAction#fae69f56`.

func (*MessageActionCustomAction) Decode ¶

func (m *MessageActionCustomAction) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageActionCustomAction) Encode ¶

func (m *MessageActionCustomAction) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageActionEmpty ¶

type MessageActionEmpty struct {
}

MessageActionEmpty represents TL type `messageActionEmpty#b6aef7b0`.

func (*MessageActionEmpty) Decode ¶

func (m *MessageActionEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageActionEmpty) Encode ¶

func (m *MessageActionEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageActionGameScore ¶

type MessageActionGameScore struct {
	// GameID field of MessageActionGameScore.
	GameID int64
	// Score field of MessageActionGameScore.
	Score int
}

MessageActionGameScore represents TL type `messageActionGameScore#92a72876`.

func (*MessageActionGameScore) Decode ¶

func (m *MessageActionGameScore) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageActionGameScore) Encode ¶

func (m *MessageActionGameScore) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageActionGeoProximityReached ¶

type MessageActionGeoProximityReached struct {
	// FromID field of MessageActionGeoProximityReached.
	FromID PeerClass
	// ToID field of MessageActionGeoProximityReached.
	ToID PeerClass
	// Distance field of MessageActionGeoProximityReached.
	Distance int
}

MessageActionGeoProximityReached represents TL type `messageActionGeoProximityReached#98e0d697`.

func (*MessageActionGeoProximityReached) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionGeoProximityReached) Encode ¶

Encode implements bin.Encoder.

type MessageActionHistoryClear ¶

type MessageActionHistoryClear struct {
}

MessageActionHistoryClear represents TL type `messageActionHistoryClear#9fbab604`.

func (*MessageActionHistoryClear) Decode ¶

func (m *MessageActionHistoryClear) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageActionHistoryClear) Encode ¶

func (m *MessageActionHistoryClear) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageActionPaymentSent ¶

type MessageActionPaymentSent struct {
	// Currency field of MessageActionPaymentSent.
	Currency string
	// TotalAmount field of MessageActionPaymentSent.
	TotalAmount int64
}

MessageActionPaymentSent represents TL type `messageActionPaymentSent#40699cd0`.

func (*MessageActionPaymentSent) Decode ¶

func (m *MessageActionPaymentSent) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageActionPaymentSent) Encode ¶

func (m *MessageActionPaymentSent) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageActionPaymentSentMe ¶

type MessageActionPaymentSentMe struct {
	// Flags field of MessageActionPaymentSentMe.
	Flags bin.Fields
	// Currency field of MessageActionPaymentSentMe.
	Currency string
	// TotalAmount field of MessageActionPaymentSentMe.
	TotalAmount int64
	// Payload field of MessageActionPaymentSentMe.
	Payload []byte
	// Info field of MessageActionPaymentSentMe.
	//
	// Use SetInfo and GetInfo helpers.
	Info PaymentRequestedInfo
	// ShippingOptionID field of MessageActionPaymentSentMe.
	//
	// Use SetShippingOptionID and GetShippingOptionID helpers.
	ShippingOptionID string
	// Charge field of MessageActionPaymentSentMe.
	Charge PaymentCharge
}

MessageActionPaymentSentMe represents TL type `messageActionPaymentSentMe#8f31b327`.

func (*MessageActionPaymentSentMe) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionPaymentSentMe) Encode ¶

Encode implements bin.Encoder.

func (*MessageActionPaymentSentMe) GetInfo ¶

func (m *MessageActionPaymentSentMe) GetInfo() (value PaymentRequestedInfo, ok bool)

GetInfo returns value of Info conditional field and boolean which is true if field was set.

func (*MessageActionPaymentSentMe) GetShippingOptionID ¶

func (m *MessageActionPaymentSentMe) GetShippingOptionID() (value string, ok bool)

GetShippingOptionID returns value of ShippingOptionID conditional field and boolean which is true if field was set.

func (*MessageActionPaymentSentMe) SetInfo ¶

SetInfo sets value of Info conditional field.

func (*MessageActionPaymentSentMe) SetShippingOptionID ¶

func (m *MessageActionPaymentSentMe) SetShippingOptionID(value string)

SetShippingOptionID sets value of ShippingOptionID conditional field.

type MessageActionPhoneCall ¶

type MessageActionPhoneCall struct {
	// Flags field of MessageActionPhoneCall.
	Flags bin.Fields
	// Video field of MessageActionPhoneCall.
	Video bool
	// CallID field of MessageActionPhoneCall.
	CallID int64
	// Reason field of MessageActionPhoneCall.
	//
	// Use SetReason and GetReason helpers.
	Reason PhoneCallDiscardReasonClass
	// Duration field of MessageActionPhoneCall.
	//
	// Use SetDuration and GetDuration helpers.
	Duration int
}

MessageActionPhoneCall represents TL type `messageActionPhoneCall#80e11a7f`.

func (*MessageActionPhoneCall) Decode ¶

func (m *MessageActionPhoneCall) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageActionPhoneCall) Encode ¶

func (m *MessageActionPhoneCall) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessageActionPhoneCall) GetDuration ¶

func (m *MessageActionPhoneCall) GetDuration() (value int, ok bool)

GetDuration returns value of Duration conditional field and boolean which is true if field was set.

func (*MessageActionPhoneCall) GetReason ¶

func (m *MessageActionPhoneCall) GetReason() (value PhoneCallDiscardReasonClass, ok bool)

GetReason returns value of Reason conditional field and boolean which is true if field was set.

func (*MessageActionPhoneCall) SetDuration ¶

func (m *MessageActionPhoneCall) SetDuration(value int)

SetDuration sets value of Duration conditional field.

func (*MessageActionPhoneCall) SetReason ¶

SetReason sets value of Reason conditional field.

func (*MessageActionPhoneCall) SetVideo ¶

func (m *MessageActionPhoneCall) SetVideo(value bool)

SetVideo sets value of Video conditional field.

type MessageActionPinMessage ¶

type MessageActionPinMessage struct {
}

MessageActionPinMessage represents TL type `messageActionPinMessage#94bd38ed`.

func (*MessageActionPinMessage) Decode ¶

func (m *MessageActionPinMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageActionPinMessage) Encode ¶

func (m *MessageActionPinMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageActionScreenshotTaken ¶

type MessageActionScreenshotTaken struct {
}

MessageActionScreenshotTaken represents TL type `messageActionScreenshotTaken#4792929b`.

func (*MessageActionScreenshotTaken) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionScreenshotTaken) Encode ¶

Encode implements bin.Encoder.

type MessageActionSecureValuesSent ¶

type MessageActionSecureValuesSent struct {
	// Types field of MessageActionSecureValuesSent.
	Types []SecureValueTypeClass
}

MessageActionSecureValuesSent represents TL type `messageActionSecureValuesSent#d95c6154`.

func (*MessageActionSecureValuesSent) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionSecureValuesSent) Encode ¶

Encode implements bin.Encoder.

type MessageActionSecureValuesSentMe ¶

type MessageActionSecureValuesSentMe struct {
	// Values field of MessageActionSecureValuesSentMe.
	Values []SecureValue
	// Credentials field of MessageActionSecureValuesSentMe.
	Credentials SecureCredentialsEncrypted
}

MessageActionSecureValuesSentMe represents TL type `messageActionSecureValuesSentMe#1b287353`.

func (*MessageActionSecureValuesSentMe) Decode ¶

Decode implements bin.Decoder.

func (*MessageActionSecureValuesSentMe) Encode ¶

Encode implements bin.Encoder.

type MessageBox ¶

type MessageBox struct {
	Message MessageClass
}

Message boxes the MessageClass providing a helper.

func (*MessageBox) Decode ¶

func (b *MessageBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessageBox.

func (*MessageBox) Encode ¶

func (b *MessageBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessageBox.

type MessageClass ¶

type MessageClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessageClass represents Message generic type.

Example:

g, err := DecodeMessage(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessageEmpty: // messageEmpty#83e5de54
case *Message: // message#58ae39c9
case *MessageService: // messageService#286fa604
default: panic(v)
}

func DecodeMessage ¶

func DecodeMessage(buf *bin.Buffer) (MessageClass, error)

DecodeMessage implements binary de-serialization for MessageClass.

type MessageEmpty ¶

type MessageEmpty struct {
	// ID field of MessageEmpty.
	ID int
}

MessageEmpty represents TL type `messageEmpty#83e5de54`.

func (*MessageEmpty) Decode ¶

func (m *MessageEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEmpty) Encode ¶

func (m *MessageEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityBankCard ¶

type MessageEntityBankCard struct {
	// Offset field of MessageEntityBankCard.
	Offset int
	// Length field of MessageEntityBankCard.
	Length int
}

MessageEntityBankCard represents TL type `messageEntityBankCard#761e6af4`.

func (*MessageEntityBankCard) Decode ¶

func (m *MessageEntityBankCard) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityBankCard) Encode ¶

func (m *MessageEntityBankCard) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityBlockquote ¶

type MessageEntityBlockquote struct {
	// Offset field of MessageEntityBlockquote.
	Offset int
	// Length field of MessageEntityBlockquote.
	Length int
}

MessageEntityBlockquote represents TL type `messageEntityBlockquote#20df5d0`.

func (*MessageEntityBlockquote) Decode ¶

func (m *MessageEntityBlockquote) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityBlockquote) Encode ¶

func (m *MessageEntityBlockquote) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityBold ¶

type MessageEntityBold struct {
	// Offset field of MessageEntityBold.
	Offset int
	// Length field of MessageEntityBold.
	Length int
}

MessageEntityBold represents TL type `messageEntityBold#bd610bc9`.

func (*MessageEntityBold) Decode ¶

func (m *MessageEntityBold) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityBold) Encode ¶

func (m *MessageEntityBold) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityBotCommand ¶

type MessageEntityBotCommand struct {
	// Offset field of MessageEntityBotCommand.
	Offset int
	// Length field of MessageEntityBotCommand.
	Length int
}

MessageEntityBotCommand represents TL type `messageEntityBotCommand#6cef8ac7`.

func (*MessageEntityBotCommand) Decode ¶

func (m *MessageEntityBotCommand) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityBotCommand) Encode ¶

func (m *MessageEntityBotCommand) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityBox ¶

type MessageEntityBox struct {
	MessageEntity MessageEntityClass
}

MessageEntity boxes the MessageEntityClass providing a helper.

func (*MessageEntityBox) Decode ¶

func (b *MessageEntityBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessageEntityBox.

func (*MessageEntityBox) Encode ¶

func (b *MessageEntityBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessageEntityBox.

type MessageEntityCashtag ¶

type MessageEntityCashtag struct {
	// Offset field of MessageEntityCashtag.
	Offset int
	// Length field of MessageEntityCashtag.
	Length int
}

MessageEntityCashtag represents TL type `messageEntityCashtag#4c4e743f`.

func (*MessageEntityCashtag) Decode ¶

func (m *MessageEntityCashtag) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityCashtag) Encode ¶

func (m *MessageEntityCashtag) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityClass ¶

type MessageEntityClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessageEntityClass represents MessageEntity generic type.

Example:

g, err := DecodeMessageEntity(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessageEntityUnknown: // messageEntityUnknown#bb92ba95
case *MessageEntityMention: // messageEntityMention#fa04579d
case *MessageEntityHashtag: // messageEntityHashtag#6f635b0d
case *MessageEntityBotCommand: // messageEntityBotCommand#6cef8ac7
case *MessageEntityUrl: // messageEntityUrl#6ed02538
case *MessageEntityEmail: // messageEntityEmail#64e475c2
case *MessageEntityBold: // messageEntityBold#bd610bc9
case *MessageEntityItalic: // messageEntityItalic#826f8b60
case *MessageEntityCode: // messageEntityCode#28a20571
case *MessageEntityPre: // messageEntityPre#73924be0
case *MessageEntityTextUrl: // messageEntityTextUrl#76a6d327
case *MessageEntityMentionName: // messageEntityMentionName#352dca58
case *InputMessageEntityMentionName: // inputMessageEntityMentionName#208e68c9
case *MessageEntityPhone: // messageEntityPhone#9b69e34b
case *MessageEntityCashtag: // messageEntityCashtag#4c4e743f
case *MessageEntityUnderline: // messageEntityUnderline#9c4e7e8b
case *MessageEntityStrike: // messageEntityStrike#bf0693d4
case *MessageEntityBlockquote: // messageEntityBlockquote#20df5d0
case *MessageEntityBankCard: // messageEntityBankCard#761e6af4
default: panic(v)
}

func DecodeMessageEntity ¶

func DecodeMessageEntity(buf *bin.Buffer) (MessageEntityClass, error)

DecodeMessageEntity implements binary de-serialization for MessageEntityClass.

type MessageEntityCode ¶

type MessageEntityCode struct {
	// Offset field of MessageEntityCode.
	Offset int
	// Length field of MessageEntityCode.
	Length int
}

MessageEntityCode represents TL type `messageEntityCode#28a20571`.

func (*MessageEntityCode) Decode ¶

func (m *MessageEntityCode) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityCode) Encode ¶

func (m *MessageEntityCode) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityEmail ¶

type MessageEntityEmail struct {
	// Offset field of MessageEntityEmail.
	Offset int
	// Length field of MessageEntityEmail.
	Length int
}

MessageEntityEmail represents TL type `messageEntityEmail#64e475c2`.

func (*MessageEntityEmail) Decode ¶

func (m *MessageEntityEmail) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityEmail) Encode ¶

func (m *MessageEntityEmail) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityHashtag ¶

type MessageEntityHashtag struct {
	// Offset field of MessageEntityHashtag.
	Offset int
	// Length field of MessageEntityHashtag.
	Length int
}

MessageEntityHashtag represents TL type `messageEntityHashtag#6f635b0d`.

func (*MessageEntityHashtag) Decode ¶

func (m *MessageEntityHashtag) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityHashtag) Encode ¶

func (m *MessageEntityHashtag) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityItalic ¶

type MessageEntityItalic struct {
	// Offset field of MessageEntityItalic.
	Offset int
	// Length field of MessageEntityItalic.
	Length int
}

MessageEntityItalic represents TL type `messageEntityItalic#826f8b60`.

func (*MessageEntityItalic) Decode ¶

func (m *MessageEntityItalic) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityItalic) Encode ¶

func (m *MessageEntityItalic) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityMention ¶

type MessageEntityMention struct {
	// Offset field of MessageEntityMention.
	Offset int
	// Length field of MessageEntityMention.
	Length int
}

MessageEntityMention represents TL type `messageEntityMention#fa04579d`.

func (*MessageEntityMention) Decode ¶

func (m *MessageEntityMention) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityMention) Encode ¶

func (m *MessageEntityMention) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityMentionName ¶

type MessageEntityMentionName struct {
	// Offset field of MessageEntityMentionName.
	Offset int
	// Length field of MessageEntityMentionName.
	Length int
	// UserID field of MessageEntityMentionName.
	UserID int
}

MessageEntityMentionName represents TL type `messageEntityMentionName#352dca58`.

func (*MessageEntityMentionName) Decode ¶

func (m *MessageEntityMentionName) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityMentionName) Encode ¶

func (m *MessageEntityMentionName) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityPhone ¶

type MessageEntityPhone struct {
	// Offset field of MessageEntityPhone.
	Offset int
	// Length field of MessageEntityPhone.
	Length int
}

MessageEntityPhone represents TL type `messageEntityPhone#9b69e34b`.

func (*MessageEntityPhone) Decode ¶

func (m *MessageEntityPhone) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityPhone) Encode ¶

func (m *MessageEntityPhone) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityPre ¶

type MessageEntityPre struct {
	// Offset field of MessageEntityPre.
	Offset int
	// Length field of MessageEntityPre.
	Length int
	// Language field of MessageEntityPre.
	Language string
}

MessageEntityPre represents TL type `messageEntityPre#73924be0`.

func (*MessageEntityPre) Decode ¶

func (m *MessageEntityPre) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityPre) Encode ¶

func (m *MessageEntityPre) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityStrike ¶

type MessageEntityStrike struct {
	// Offset field of MessageEntityStrike.
	Offset int
	// Length field of MessageEntityStrike.
	Length int
}

MessageEntityStrike represents TL type `messageEntityStrike#bf0693d4`.

func (*MessageEntityStrike) Decode ¶

func (m *MessageEntityStrike) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityStrike) Encode ¶

func (m *MessageEntityStrike) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityTextUrl ¶

type MessageEntityTextUrl struct {
	// Offset field of MessageEntityTextUrl.
	Offset int
	// Length field of MessageEntityTextUrl.
	Length int
	// URL field of MessageEntityTextUrl.
	URL string
}

MessageEntityTextUrl represents TL type `messageEntityTextUrl#76a6d327`.

func (*MessageEntityTextUrl) Decode ¶

func (m *MessageEntityTextUrl) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityTextUrl) Encode ¶

func (m *MessageEntityTextUrl) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityUnderline ¶

type MessageEntityUnderline struct {
	// Offset field of MessageEntityUnderline.
	Offset int
	// Length field of MessageEntityUnderline.
	Length int
}

MessageEntityUnderline represents TL type `messageEntityUnderline#9c4e7e8b`.

func (*MessageEntityUnderline) Decode ¶

func (m *MessageEntityUnderline) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityUnderline) Encode ¶

func (m *MessageEntityUnderline) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityUnknown ¶

type MessageEntityUnknown struct {
	// Offset field of MessageEntityUnknown.
	Offset int
	// Length field of MessageEntityUnknown.
	Length int
}

MessageEntityUnknown represents TL type `messageEntityUnknown#bb92ba95`.

func (*MessageEntityUnknown) Decode ¶

func (m *MessageEntityUnknown) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityUnknown) Encode ¶

func (m *MessageEntityUnknown) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageEntityUrl ¶

type MessageEntityUrl struct {
	// Offset field of MessageEntityUrl.
	Offset int
	// Length field of MessageEntityUrl.
	Length int
}

MessageEntityUrl represents TL type `messageEntityUrl#6ed02538`.

func (*MessageEntityUrl) Decode ¶

func (m *MessageEntityUrl) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageEntityUrl) Encode ¶

func (m *MessageEntityUrl) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageFwdHeader ¶

type MessageFwdHeader struct {
	// Flags field of MessageFwdHeader.
	Flags bin.Fields
	// FromID field of MessageFwdHeader.
	//
	// Use SetFromID and GetFromID helpers.
	FromID PeerClass
	// FromName field of MessageFwdHeader.
	//
	// Use SetFromName and GetFromName helpers.
	FromName string
	// Date field of MessageFwdHeader.
	Date int
	// ChannelPost field of MessageFwdHeader.
	//
	// Use SetChannelPost and GetChannelPost helpers.
	ChannelPost int
	// PostAuthor field of MessageFwdHeader.
	//
	// Use SetPostAuthor and GetPostAuthor helpers.
	PostAuthor string
	// SavedFromPeer field of MessageFwdHeader.
	//
	// Use SetSavedFromPeer and GetSavedFromPeer helpers.
	SavedFromPeer PeerClass
	// SavedFromMsgID field of MessageFwdHeader.
	//
	// Use SetSavedFromMsgID and GetSavedFromMsgID helpers.
	SavedFromMsgID int
	// PsaType field of MessageFwdHeader.
	//
	// Use SetPsaType and GetPsaType helpers.
	PsaType string
}

MessageFwdHeader represents TL type `messageFwdHeader#5f777dce`.

func (*MessageFwdHeader) Decode ¶

func (m *MessageFwdHeader) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageFwdHeader) Encode ¶

func (m *MessageFwdHeader) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessageFwdHeader) GetChannelPost ¶

func (m *MessageFwdHeader) GetChannelPost() (value int, ok bool)

GetChannelPost returns value of ChannelPost conditional field and boolean which is true if field was set.

func (*MessageFwdHeader) GetFromID ¶

func (m *MessageFwdHeader) GetFromID() (value PeerClass, ok bool)

GetFromID returns value of FromID conditional field and boolean which is true if field was set.

func (*MessageFwdHeader) GetFromName ¶

func (m *MessageFwdHeader) GetFromName() (value string, ok bool)

GetFromName returns value of FromName conditional field and boolean which is true if field was set.

func (*MessageFwdHeader) GetPostAuthor ¶

func (m *MessageFwdHeader) GetPostAuthor() (value string, ok bool)

GetPostAuthor returns value of PostAuthor conditional field and boolean which is true if field was set.

func (*MessageFwdHeader) GetPsaType ¶

func (m *MessageFwdHeader) GetPsaType() (value string, ok bool)

GetPsaType returns value of PsaType conditional field and boolean which is true if field was set.

func (*MessageFwdHeader) GetSavedFromMsgID ¶

func (m *MessageFwdHeader) GetSavedFromMsgID() (value int, ok bool)

GetSavedFromMsgID returns value of SavedFromMsgID conditional field and boolean which is true if field was set.

func (*MessageFwdHeader) GetSavedFromPeer ¶

func (m *MessageFwdHeader) GetSavedFromPeer() (value PeerClass, ok bool)

GetSavedFromPeer returns value of SavedFromPeer conditional field and boolean which is true if field was set.

func (*MessageFwdHeader) SetChannelPost ¶

func (m *MessageFwdHeader) SetChannelPost(value int)

SetChannelPost sets value of ChannelPost conditional field.

func (*MessageFwdHeader) SetFromID ¶

func (m *MessageFwdHeader) SetFromID(value PeerClass)

SetFromID sets value of FromID conditional field.

func (*MessageFwdHeader) SetFromName ¶

func (m *MessageFwdHeader) SetFromName(value string)

SetFromName sets value of FromName conditional field.

func (*MessageFwdHeader) SetPostAuthor ¶

func (m *MessageFwdHeader) SetPostAuthor(value string)

SetPostAuthor sets value of PostAuthor conditional field.

func (*MessageFwdHeader) SetPsaType ¶

func (m *MessageFwdHeader) SetPsaType(value string)

SetPsaType sets value of PsaType conditional field.

func (*MessageFwdHeader) SetSavedFromMsgID ¶

func (m *MessageFwdHeader) SetSavedFromMsgID(value int)

SetSavedFromMsgID sets value of SavedFromMsgID conditional field.

func (*MessageFwdHeader) SetSavedFromPeer ¶

func (m *MessageFwdHeader) SetSavedFromPeer(value PeerClass)

SetSavedFromPeer sets value of SavedFromPeer conditional field.

type MessageInteractionCounters ¶

type MessageInteractionCounters struct {
	// MsgID field of MessageInteractionCounters.
	MsgID int
	// Views field of MessageInteractionCounters.
	Views int
	// Forwards field of MessageInteractionCounters.
	Forwards int
}

MessageInteractionCounters represents TL type `messageInteractionCounters#ad4fc9bd`.

func (*MessageInteractionCounters) Decode ¶

Decode implements bin.Decoder.

func (*MessageInteractionCounters) Encode ¶

Encode implements bin.Encoder.

type MessageMediaBox ¶

type MessageMediaBox struct {
	MessageMedia MessageMediaClass
}

MessageMedia boxes the MessageMediaClass providing a helper.

func (*MessageMediaBox) Decode ¶

func (b *MessageMediaBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessageMediaBox.

func (*MessageMediaBox) Encode ¶

func (b *MessageMediaBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessageMediaBox.

type MessageMediaClass ¶

type MessageMediaClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessageMediaClass represents MessageMedia generic type.

Example:

g, err := DecodeMessageMedia(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessageMediaEmpty: // messageMediaEmpty#3ded6320
case *MessageMediaPhoto: // messageMediaPhoto#695150d7
case *MessageMediaGeo: // messageMediaGeo#56e0d474
case *MessageMediaContact: // messageMediaContact#cbf24940
case *MessageMediaUnsupported: // messageMediaUnsupported#9f84f49e
case *MessageMediaDocument: // messageMediaDocument#9cb070d7
case *MessageMediaWebPage: // messageMediaWebPage#a32dd600
case *MessageMediaVenue: // messageMediaVenue#2ec0533f
case *MessageMediaGame: // messageMediaGame#fdb19008
case *MessageMediaInvoice: // messageMediaInvoice#84551347
case *MessageMediaGeoLive: // messageMediaGeoLive#b940c666
case *MessageMediaPoll: // messageMediaPoll#4bd6e798
case *MessageMediaDice: // messageMediaDice#3f7ee58b
default: panic(v)
}

func DecodeMessageMedia ¶

func DecodeMessageMedia(buf *bin.Buffer) (MessageMediaClass, error)

DecodeMessageMedia implements binary de-serialization for MessageMediaClass.

type MessageMediaContact ¶

type MessageMediaContact struct {
	// PhoneNumber field of MessageMediaContact.
	PhoneNumber string
	// FirstName field of MessageMediaContact.
	FirstName string
	// LastName field of MessageMediaContact.
	LastName string
	// Vcard field of MessageMediaContact.
	Vcard string
	// UserID field of MessageMediaContact.
	UserID int
}

MessageMediaContact represents TL type `messageMediaContact#cbf24940`.

func (*MessageMediaContact) Decode ¶

func (m *MessageMediaContact) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaContact) Encode ¶

func (m *MessageMediaContact) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageMediaDice ¶

type MessageMediaDice struct {
	// Value field of MessageMediaDice.
	Value int
	// Emoticon field of MessageMediaDice.
	Emoticon string
}

MessageMediaDice represents TL type `messageMediaDice#3f7ee58b`.

func (*MessageMediaDice) Decode ¶

func (m *MessageMediaDice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaDice) Encode ¶

func (m *MessageMediaDice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageMediaDocument ¶

type MessageMediaDocument struct {
	// Flags field of MessageMediaDocument.
	Flags bin.Fields
	// Document field of MessageMediaDocument.
	//
	// Use SetDocument and GetDocument helpers.
	Document DocumentClass
	// TTLSeconds field of MessageMediaDocument.
	//
	// Use SetTTLSeconds and GetTTLSeconds helpers.
	TTLSeconds int
}

MessageMediaDocument represents TL type `messageMediaDocument#9cb070d7`.

func (*MessageMediaDocument) Decode ¶

func (m *MessageMediaDocument) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaDocument) Encode ¶

func (m *MessageMediaDocument) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessageMediaDocument) GetDocument ¶

func (m *MessageMediaDocument) GetDocument() (value DocumentClass, ok bool)

GetDocument returns value of Document conditional field and boolean which is true if field was set.

func (*MessageMediaDocument) GetTTLSeconds ¶

func (m *MessageMediaDocument) GetTTLSeconds() (value int, ok bool)

GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set.

func (*MessageMediaDocument) SetDocument ¶

func (m *MessageMediaDocument) SetDocument(value DocumentClass)

SetDocument sets value of Document conditional field.

func (*MessageMediaDocument) SetTTLSeconds ¶

func (m *MessageMediaDocument) SetTTLSeconds(value int)

SetTTLSeconds sets value of TTLSeconds conditional field.

type MessageMediaEmpty ¶

type MessageMediaEmpty struct {
}

MessageMediaEmpty represents TL type `messageMediaEmpty#3ded6320`.

func (*MessageMediaEmpty) Decode ¶

func (m *MessageMediaEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaEmpty) Encode ¶

func (m *MessageMediaEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageMediaGame ¶

type MessageMediaGame struct {
	// Game field of MessageMediaGame.
	Game Game
}

MessageMediaGame represents TL type `messageMediaGame#fdb19008`.

func (*MessageMediaGame) Decode ¶

func (m *MessageMediaGame) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaGame) Encode ¶

func (m *MessageMediaGame) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageMediaGeo ¶

type MessageMediaGeo struct {
	// Geo field of MessageMediaGeo.
	Geo GeoPointClass
}

MessageMediaGeo represents TL type `messageMediaGeo#56e0d474`.

func (*MessageMediaGeo) Decode ¶

func (m *MessageMediaGeo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaGeo) Encode ¶

func (m *MessageMediaGeo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageMediaGeoLive ¶

type MessageMediaGeoLive struct {
	// Flags field of MessageMediaGeoLive.
	Flags bin.Fields
	// Geo field of MessageMediaGeoLive.
	Geo GeoPointClass
	// Heading field of MessageMediaGeoLive.
	//
	// Use SetHeading and GetHeading helpers.
	Heading int
	// Period field of MessageMediaGeoLive.
	Period int
	// ProximityNotificationRadius field of MessageMediaGeoLive.
	//
	// Use SetProximityNotificationRadius and GetProximityNotificationRadius helpers.
	ProximityNotificationRadius int
}

MessageMediaGeoLive represents TL type `messageMediaGeoLive#b940c666`.

func (*MessageMediaGeoLive) Decode ¶

func (m *MessageMediaGeoLive) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaGeoLive) Encode ¶

func (m *MessageMediaGeoLive) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessageMediaGeoLive) GetHeading ¶

func (m *MessageMediaGeoLive) GetHeading() (value int, ok bool)

GetHeading returns value of Heading conditional field and boolean which is true if field was set.

func (*MessageMediaGeoLive) GetProximityNotificationRadius ¶

func (m *MessageMediaGeoLive) GetProximityNotificationRadius() (value int, ok bool)

GetProximityNotificationRadius returns value of ProximityNotificationRadius conditional field and boolean which is true if field was set.

func (*MessageMediaGeoLive) SetHeading ¶

func (m *MessageMediaGeoLive) SetHeading(value int)

SetHeading sets value of Heading conditional field.

func (*MessageMediaGeoLive) SetProximityNotificationRadius ¶

func (m *MessageMediaGeoLive) SetProximityNotificationRadius(value int)

SetProximityNotificationRadius sets value of ProximityNotificationRadius conditional field.

type MessageMediaInvoice ¶

type MessageMediaInvoice struct {
	// Flags field of MessageMediaInvoice.
	Flags bin.Fields
	// ShippingAddressRequested field of MessageMediaInvoice.
	ShippingAddressRequested bool
	// Test field of MessageMediaInvoice.
	Test bool
	// Title field of MessageMediaInvoice.
	Title string
	// Description field of MessageMediaInvoice.
	Description string
	// Photo field of MessageMediaInvoice.
	//
	// Use SetPhoto and GetPhoto helpers.
	Photo WebDocumentClass
	// ReceiptMsgID field of MessageMediaInvoice.
	//
	// Use SetReceiptMsgID and GetReceiptMsgID helpers.
	ReceiptMsgID int
	// Currency field of MessageMediaInvoice.
	Currency string
	// TotalAmount field of MessageMediaInvoice.
	TotalAmount int64
	// StartParam field of MessageMediaInvoice.
	StartParam string
}

MessageMediaInvoice represents TL type `messageMediaInvoice#84551347`.

func (*MessageMediaInvoice) Decode ¶

func (m *MessageMediaInvoice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaInvoice) Encode ¶

func (m *MessageMediaInvoice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessageMediaInvoice) GetPhoto ¶

func (m *MessageMediaInvoice) GetPhoto() (value WebDocumentClass, ok bool)

GetPhoto returns value of Photo conditional field and boolean which is true if field was set.

func (*MessageMediaInvoice) GetReceiptMsgID ¶

func (m *MessageMediaInvoice) GetReceiptMsgID() (value int, ok bool)

GetReceiptMsgID returns value of ReceiptMsgID conditional field and boolean which is true if field was set.

func (*MessageMediaInvoice) SetPhoto ¶

func (m *MessageMediaInvoice) SetPhoto(value WebDocumentClass)

SetPhoto sets value of Photo conditional field.

func (*MessageMediaInvoice) SetReceiptMsgID ¶

func (m *MessageMediaInvoice) SetReceiptMsgID(value int)

SetReceiptMsgID sets value of ReceiptMsgID conditional field.

func (*MessageMediaInvoice) SetShippingAddressRequested ¶

func (m *MessageMediaInvoice) SetShippingAddressRequested(value bool)

SetShippingAddressRequested sets value of ShippingAddressRequested conditional field.

func (*MessageMediaInvoice) SetTest ¶

func (m *MessageMediaInvoice) SetTest(value bool)

SetTest sets value of Test conditional field.

type MessageMediaPhoto ¶

type MessageMediaPhoto struct {
	// Flags field of MessageMediaPhoto.
	Flags bin.Fields
	// Photo field of MessageMediaPhoto.
	//
	// Use SetPhoto and GetPhoto helpers.
	Photo PhotoClass
	// TTLSeconds field of MessageMediaPhoto.
	//
	// Use SetTTLSeconds and GetTTLSeconds helpers.
	TTLSeconds int
}

MessageMediaPhoto represents TL type `messageMediaPhoto#695150d7`.

func (*MessageMediaPhoto) Decode ¶

func (m *MessageMediaPhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaPhoto) Encode ¶

func (m *MessageMediaPhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessageMediaPhoto) GetPhoto ¶

func (m *MessageMediaPhoto) GetPhoto() (value PhotoClass, ok bool)

GetPhoto returns value of Photo conditional field and boolean which is true if field was set.

func (*MessageMediaPhoto) GetTTLSeconds ¶

func (m *MessageMediaPhoto) GetTTLSeconds() (value int, ok bool)

GetTTLSeconds returns value of TTLSeconds conditional field and boolean which is true if field was set.

func (*MessageMediaPhoto) SetPhoto ¶

func (m *MessageMediaPhoto) SetPhoto(value PhotoClass)

SetPhoto sets value of Photo conditional field.

func (*MessageMediaPhoto) SetTTLSeconds ¶

func (m *MessageMediaPhoto) SetTTLSeconds(value int)

SetTTLSeconds sets value of TTLSeconds conditional field.

type MessageMediaPoll ¶

type MessageMediaPoll struct {
	// Poll field of MessageMediaPoll.
	Poll Poll
	// Results field of MessageMediaPoll.
	Results PollResults
}

MessageMediaPoll represents TL type `messageMediaPoll#4bd6e798`.

func (*MessageMediaPoll) Decode ¶

func (m *MessageMediaPoll) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaPoll) Encode ¶

func (m *MessageMediaPoll) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageMediaUnsupported ¶

type MessageMediaUnsupported struct {
}

MessageMediaUnsupported represents TL type `messageMediaUnsupported#9f84f49e`.

func (*MessageMediaUnsupported) Decode ¶

func (m *MessageMediaUnsupported) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaUnsupported) Encode ¶

func (m *MessageMediaUnsupported) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageMediaVenue ¶

type MessageMediaVenue struct {
	// Geo field of MessageMediaVenue.
	Geo GeoPointClass
	// Title field of MessageMediaVenue.
	Title string
	// Address field of MessageMediaVenue.
	Address string
	// Provider field of MessageMediaVenue.
	Provider string
	// VenueID field of MessageMediaVenue.
	VenueID string
	// VenueType field of MessageMediaVenue.
	VenueType string
}

MessageMediaVenue represents TL type `messageMediaVenue#2ec0533f`.

func (*MessageMediaVenue) Decode ¶

func (m *MessageMediaVenue) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaVenue) Encode ¶

func (m *MessageMediaVenue) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageMediaWebPage ¶

type MessageMediaWebPage struct {
	// Webpage field of MessageMediaWebPage.
	Webpage WebPageClass
}

MessageMediaWebPage represents TL type `messageMediaWebPage#a32dd600`.

func (*MessageMediaWebPage) Decode ¶

func (m *MessageMediaWebPage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageMediaWebPage) Encode ¶

func (m *MessageMediaWebPage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageRange ¶

type MessageRange struct {
	// MinID field of MessageRange.
	MinID int
	// MaxID field of MessageRange.
	MaxID int
}

MessageRange represents TL type `messageRange#ae30253`.

func (*MessageRange) Decode ¶

func (m *MessageRange) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageRange) Encode ¶

func (m *MessageRange) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageReplies ¶

type MessageReplies struct {
	// Flags field of MessageReplies.
	Flags bin.Fields
	// Comments field of MessageReplies.
	Comments bool
	// Replies field of MessageReplies.
	Replies int
	// RepliesPts field of MessageReplies.
	RepliesPts int
	// RecentRepliers field of MessageReplies.
	//
	// Use SetRecentRepliers and GetRecentRepliers helpers.
	RecentRepliers []PeerClass
	// ChannelID field of MessageReplies.
	//
	// Use SetChannelID and GetChannelID helpers.
	ChannelID int
	// MaxID field of MessageReplies.
	//
	// Use SetMaxID and GetMaxID helpers.
	MaxID int
	// ReadMaxID field of MessageReplies.
	//
	// Use SetReadMaxID and GetReadMaxID helpers.
	ReadMaxID int
}

MessageReplies represents TL type `messageReplies#4128faac`.

func (*MessageReplies) Decode ¶

func (m *MessageReplies) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageReplies) Encode ¶

func (m *MessageReplies) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessageReplies) GetChannelID ¶

func (m *MessageReplies) GetChannelID() (value int, ok bool)

GetChannelID returns value of ChannelID conditional field and boolean which is true if field was set.

func (*MessageReplies) GetMaxID ¶

func (m *MessageReplies) GetMaxID() (value int, ok bool)

GetMaxID returns value of MaxID conditional field and boolean which is true if field was set.

func (*MessageReplies) GetReadMaxID ¶

func (m *MessageReplies) GetReadMaxID() (value int, ok bool)

GetReadMaxID returns value of ReadMaxID conditional field and boolean which is true if field was set.

func (*MessageReplies) GetRecentRepliers ¶

func (m *MessageReplies) GetRecentRepliers() (value []PeerClass, ok bool)

GetRecentRepliers returns value of RecentRepliers conditional field and boolean which is true if field was set.

func (*MessageReplies) SetChannelID ¶

func (m *MessageReplies) SetChannelID(value int)

SetChannelID sets value of ChannelID conditional field.

func (*MessageReplies) SetComments ¶

func (m *MessageReplies) SetComments(value bool)

SetComments sets value of Comments conditional field.

func (*MessageReplies) SetMaxID ¶

func (m *MessageReplies) SetMaxID(value int)

SetMaxID sets value of MaxID conditional field.

func (*MessageReplies) SetReadMaxID ¶

func (m *MessageReplies) SetReadMaxID(value int)

SetReadMaxID sets value of ReadMaxID conditional field.

func (*MessageReplies) SetRecentRepliers ¶

func (m *MessageReplies) SetRecentRepliers(value []PeerClass)

SetRecentRepliers sets value of RecentRepliers conditional field.

type MessageReplyHeader ¶

type MessageReplyHeader struct {
	// Flags field of MessageReplyHeader.
	Flags bin.Fields
	// ReplyToMsgID field of MessageReplyHeader.
	ReplyToMsgID int
	// ReplyToPeerID field of MessageReplyHeader.
	//
	// Use SetReplyToPeerID and GetReplyToPeerID helpers.
	ReplyToPeerID PeerClass
	// ReplyToTopID field of MessageReplyHeader.
	//
	// Use SetReplyToTopID and GetReplyToTopID helpers.
	ReplyToTopID int
}

MessageReplyHeader represents TL type `messageReplyHeader#a6d57763`.

func (*MessageReplyHeader) Decode ¶

func (m *MessageReplyHeader) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageReplyHeader) Encode ¶

func (m *MessageReplyHeader) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessageReplyHeader) GetReplyToPeerID ¶

func (m *MessageReplyHeader) GetReplyToPeerID() (value PeerClass, ok bool)

GetReplyToPeerID returns value of ReplyToPeerID conditional field and boolean which is true if field was set.

func (*MessageReplyHeader) GetReplyToTopID ¶

func (m *MessageReplyHeader) GetReplyToTopID() (value int, ok bool)

GetReplyToTopID returns value of ReplyToTopID conditional field and boolean which is true if field was set.

func (*MessageReplyHeader) SetReplyToPeerID ¶

func (m *MessageReplyHeader) SetReplyToPeerID(value PeerClass)

SetReplyToPeerID sets value of ReplyToPeerID conditional field.

func (*MessageReplyHeader) SetReplyToTopID ¶

func (m *MessageReplyHeader) SetReplyToTopID(value int)

SetReplyToTopID sets value of ReplyToTopID conditional field.

type MessageService ¶

type MessageService struct {
	// Flags field of MessageService.
	Flags bin.Fields
	// Out field of MessageService.
	Out bool
	// Mentioned field of MessageService.
	Mentioned bool
	// MediaUnread field of MessageService.
	MediaUnread bool
	// Silent field of MessageService.
	Silent bool
	// Post field of MessageService.
	Post bool
	// Legacy field of MessageService.
	Legacy bool
	// ID field of MessageService.
	ID int
	// FromID field of MessageService.
	//
	// Use SetFromID and GetFromID helpers.
	FromID PeerClass
	// PeerID field of MessageService.
	PeerID PeerClass
	// ReplyTo field of MessageService.
	//
	// Use SetReplyTo and GetReplyTo helpers.
	ReplyTo MessageReplyHeader
	// Date field of MessageService.
	Date int
	// Action field of MessageService.
	Action MessageActionClass
}

MessageService represents TL type `messageService#286fa604`.

func (*MessageService) Decode ¶

func (m *MessageService) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageService) Encode ¶

func (m *MessageService) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessageService) GetFromID ¶

func (m *MessageService) GetFromID() (value PeerClass, ok bool)

GetFromID returns value of FromID conditional field and boolean which is true if field was set.

func (*MessageService) GetReplyTo ¶

func (m *MessageService) GetReplyTo() (value MessageReplyHeader, ok bool)

GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set.

func (*MessageService) SetFromID ¶

func (m *MessageService) SetFromID(value PeerClass)

SetFromID sets value of FromID conditional field.

func (*MessageService) SetLegacy ¶

func (m *MessageService) SetLegacy(value bool)

SetLegacy sets value of Legacy conditional field.

func (*MessageService) SetMediaUnread ¶

func (m *MessageService) SetMediaUnread(value bool)

SetMediaUnread sets value of MediaUnread conditional field.

func (*MessageService) SetMentioned ¶

func (m *MessageService) SetMentioned(value bool)

SetMentioned sets value of Mentioned conditional field.

func (*MessageService) SetOut ¶

func (m *MessageService) SetOut(value bool)

SetOut sets value of Out conditional field.

func (*MessageService) SetPost ¶

func (m *MessageService) SetPost(value bool)

SetPost sets value of Post conditional field.

func (*MessageService) SetReplyTo ¶

func (m *MessageService) SetReplyTo(value MessageReplyHeader)

SetReplyTo sets value of ReplyTo conditional field.

func (*MessageService) SetSilent ¶

func (m *MessageService) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

type MessageUserVote ¶

type MessageUserVote struct {
	// UserID field of MessageUserVote.
	UserID int
	// Option field of MessageUserVote.
	Option []byte
	// Date field of MessageUserVote.
	Date int
}

MessageUserVote represents TL type `messageUserVote#a28e5559`.

func (*MessageUserVote) Decode ¶

func (m *MessageUserVote) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageUserVote) Encode ¶

func (m *MessageUserVote) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageUserVoteBox ¶

type MessageUserVoteBox struct {
	MessageUserVote MessageUserVoteClass
}

MessageUserVote boxes the MessageUserVoteClass providing a helper.

func (*MessageUserVoteBox) Decode ¶

func (b *MessageUserVoteBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessageUserVoteBox.

func (*MessageUserVoteBox) Encode ¶

func (b *MessageUserVoteBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessageUserVoteBox.

type MessageUserVoteClass ¶

type MessageUserVoteClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessageUserVoteClass represents MessageUserVote generic type.

Example:

g, err := DecodeMessageUserVote(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessageUserVote: // messageUserVote#a28e5559
case *MessageUserVoteInputOption: // messageUserVoteInputOption#36377430
case *MessageUserVoteMultiple: // messageUserVoteMultiple#e8fe0de
default: panic(v)
}

func DecodeMessageUserVote ¶

func DecodeMessageUserVote(buf *bin.Buffer) (MessageUserVoteClass, error)

DecodeMessageUserVote implements binary de-serialization for MessageUserVoteClass.

type MessageUserVoteInputOption ¶

type MessageUserVoteInputOption struct {
	// UserID field of MessageUserVoteInputOption.
	UserID int
	// Date field of MessageUserVoteInputOption.
	Date int
}

MessageUserVoteInputOption represents TL type `messageUserVoteInputOption#36377430`.

func (*MessageUserVoteInputOption) Decode ¶

Decode implements bin.Decoder.

func (*MessageUserVoteInputOption) Encode ¶

Encode implements bin.Encoder.

type MessageUserVoteMultiple ¶

type MessageUserVoteMultiple struct {
	// UserID field of MessageUserVoteMultiple.
	UserID int
	// Options field of MessageUserVoteMultiple.
	Options [][]byte
	// Date field of MessageUserVoteMultiple.
	Date int
}

MessageUserVoteMultiple represents TL type `messageUserVoteMultiple#e8fe0de`.

func (*MessageUserVoteMultiple) Decode ¶

func (m *MessageUserVoteMultiple) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageUserVoteMultiple) Encode ¶

func (m *MessageUserVoteMultiple) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessageViews ¶

type MessageViews struct {
	// Flags field of MessageViews.
	Flags bin.Fields
	// Views field of MessageViews.
	//
	// Use SetViews and GetViews helpers.
	Views int
	// Forwards field of MessageViews.
	//
	// Use SetForwards and GetForwards helpers.
	Forwards int
	// Replies field of MessageViews.
	//
	// Use SetReplies and GetReplies helpers.
	Replies MessageReplies
}

MessageViews represents TL type `messageViews#455b853d`.

func (*MessageViews) Decode ¶

func (m *MessageViews) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessageViews) Encode ¶

func (m *MessageViews) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessageViews) GetForwards ¶

func (m *MessageViews) GetForwards() (value int, ok bool)

GetForwards returns value of Forwards conditional field and boolean which is true if field was set.

func (*MessageViews) GetReplies ¶

func (m *MessageViews) GetReplies() (value MessageReplies, ok bool)

GetReplies returns value of Replies conditional field and boolean which is true if field was set.

func (*MessageViews) GetViews ¶

func (m *MessageViews) GetViews() (value int, ok bool)

GetViews returns value of Views conditional field and boolean which is true if field was set.

func (*MessageViews) SetForwards ¶

func (m *MessageViews) SetForwards(value int)

SetForwards sets value of Forwards conditional field.

func (*MessageViews) SetReplies ¶

func (m *MessageViews) SetReplies(value MessageReplies)

SetReplies sets value of Replies conditional field.

func (*MessageViews) SetViews ¶

func (m *MessageViews) SetViews(value int)

SetViews sets value of Views conditional field.

type MessagesAcceptEncryptionRequest ¶

type MessagesAcceptEncryptionRequest struct {
	// Peer field of MessagesAcceptEncryptionRequest.
	Peer InputEncryptedChat
	// GB field of MessagesAcceptEncryptionRequest.
	GB []byte
	// KeyFingerprint field of MessagesAcceptEncryptionRequest.
	KeyFingerprint int64
}

MessagesAcceptEncryptionRequest represents TL type `messages.acceptEncryption#3dbc0415`.

func (*MessagesAcceptEncryptionRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesAcceptEncryptionRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesAcceptUrlAuthRequest ¶

type MessagesAcceptUrlAuthRequest struct {
	// Flags field of MessagesAcceptUrlAuthRequest.
	Flags bin.Fields
	// WriteAllowed field of MessagesAcceptUrlAuthRequest.
	WriteAllowed bool
	// Peer field of MessagesAcceptUrlAuthRequest.
	Peer InputPeerClass
	// MsgID field of MessagesAcceptUrlAuthRequest.
	MsgID int
	// ButtonID field of MessagesAcceptUrlAuthRequest.
	ButtonID int
}

MessagesAcceptUrlAuthRequest represents TL type `messages.acceptUrlAuth#f729ea98`.

func (*MessagesAcceptUrlAuthRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesAcceptUrlAuthRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesAcceptUrlAuthRequest) SetWriteAllowed ¶

func (a *MessagesAcceptUrlAuthRequest) SetWriteAllowed(value bool)

SetWriteAllowed sets value of WriteAllowed conditional field.

type MessagesAddChatUserRequest ¶

type MessagesAddChatUserRequest struct {
	// ChatID field of MessagesAddChatUserRequest.
	ChatID int
	// UserID field of MessagesAddChatUserRequest.
	UserID InputUserClass
	// FwdLimit field of MessagesAddChatUserRequest.
	FwdLimit int
}

MessagesAddChatUserRequest represents TL type `messages.addChatUser#f9a0aa09`.

func (*MessagesAddChatUserRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesAddChatUserRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesAffectedHistory ¶

type MessagesAffectedHistory struct {
	// Pts field of MessagesAffectedHistory.
	Pts int
	// PtsCount field of MessagesAffectedHistory.
	PtsCount int
	// Offset field of MessagesAffectedHistory.
	Offset int
}

MessagesAffectedHistory represents TL type `messages.affectedHistory#b45c69d1`.

func (*MessagesAffectedHistory) Decode ¶

func (a *MessagesAffectedHistory) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesAffectedHistory) Encode ¶

func (a *MessagesAffectedHistory) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesAffectedMessages ¶

type MessagesAffectedMessages struct {
	// Pts field of MessagesAffectedMessages.
	Pts int
	// PtsCount field of MessagesAffectedMessages.
	PtsCount int
}

MessagesAffectedMessages represents TL type `messages.affectedMessages#84d19185`.

func (*MessagesAffectedMessages) Decode ¶

func (a *MessagesAffectedMessages) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesAffectedMessages) Encode ¶

func (a *MessagesAffectedMessages) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesAllStickers ¶

type MessagesAllStickers struct {
	// Hash field of MessagesAllStickers.
	Hash int
	// Sets field of MessagesAllStickers.
	Sets []StickerSet
}

MessagesAllStickers represents TL type `messages.allStickers#edfd405f`.

func (*MessagesAllStickers) Decode ¶

func (a *MessagesAllStickers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesAllStickers) Encode ¶

func (a *MessagesAllStickers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesAllStickersBox ¶

type MessagesAllStickersBox struct {
	AllStickers MessagesAllStickersClass
}

MessagesAllStickers boxes the MessagesAllStickersClass providing a helper.

func (*MessagesAllStickersBox) Decode ¶

func (b *MessagesAllStickersBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessagesAllStickersBox.

func (*MessagesAllStickersBox) Encode ¶

func (b *MessagesAllStickersBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessagesAllStickersBox.

type MessagesAllStickersClass ¶

type MessagesAllStickersClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesAllStickersClass represents messages.AllStickers generic type.

Example:

g, err := DecodeMessagesAllStickers(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesAllStickersNotModified: // messages.allStickersNotModified#e86602c3
case *MessagesAllStickers: // messages.allStickers#edfd405f
default: panic(v)
}

func DecodeMessagesAllStickers ¶

func DecodeMessagesAllStickers(buf *bin.Buffer) (MessagesAllStickersClass, error)

DecodeMessagesAllStickers implements binary de-serialization for MessagesAllStickersClass.

type MessagesAllStickersNotModified ¶

type MessagesAllStickersNotModified struct {
}

MessagesAllStickersNotModified represents TL type `messages.allStickersNotModified#e86602c3`.

func (*MessagesAllStickersNotModified) Decode ¶

Decode implements bin.Decoder.

func (*MessagesAllStickersNotModified) Encode ¶

Encode implements bin.Encoder.

type MessagesArchivedStickers ¶

type MessagesArchivedStickers struct {
	// Count field of MessagesArchivedStickers.
	Count int
	// Sets field of MessagesArchivedStickers.
	Sets []StickerSetCoveredClass
}

MessagesArchivedStickers represents TL type `messages.archivedStickers#4fcba9c8`.

func (*MessagesArchivedStickers) Decode ¶

func (a *MessagesArchivedStickers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesArchivedStickers) Encode ¶

func (a *MessagesArchivedStickers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesBotCallbackAnswer ¶

type MessagesBotCallbackAnswer struct {
	// Flags field of MessagesBotCallbackAnswer.
	Flags bin.Fields
	// Alert field of MessagesBotCallbackAnswer.
	Alert bool
	// HasURL field of MessagesBotCallbackAnswer.
	HasURL bool
	// NativeUI field of MessagesBotCallbackAnswer.
	NativeUI bool
	// Message field of MessagesBotCallbackAnswer.
	//
	// Use SetMessage and GetMessage helpers.
	Message string
	// URL field of MessagesBotCallbackAnswer.
	//
	// Use SetURL and GetURL helpers.
	URL string
	// CacheTime field of MessagesBotCallbackAnswer.
	CacheTime int
}

MessagesBotCallbackAnswer represents TL type `messages.botCallbackAnswer#36585ea4`.

func (*MessagesBotCallbackAnswer) Decode ¶

func (b *MessagesBotCallbackAnswer) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesBotCallbackAnswer) Encode ¶

func (b *MessagesBotCallbackAnswer) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesBotCallbackAnswer) GetMessage ¶

func (b *MessagesBotCallbackAnswer) GetMessage() (value string, ok bool)

GetMessage returns value of Message conditional field and boolean which is true if field was set.

func (*MessagesBotCallbackAnswer) GetURL ¶

func (b *MessagesBotCallbackAnswer) GetURL() (value string, ok bool)

GetURL returns value of URL conditional field and boolean which is true if field was set.

func (*MessagesBotCallbackAnswer) SetAlert ¶

func (b *MessagesBotCallbackAnswer) SetAlert(value bool)

SetAlert sets value of Alert conditional field.

func (*MessagesBotCallbackAnswer) SetHasURL ¶

func (b *MessagesBotCallbackAnswer) SetHasURL(value bool)

SetHasURL sets value of HasURL conditional field.

func (*MessagesBotCallbackAnswer) SetMessage ¶

func (b *MessagesBotCallbackAnswer) SetMessage(value string)

SetMessage sets value of Message conditional field.

func (*MessagesBotCallbackAnswer) SetNativeUI ¶

func (b *MessagesBotCallbackAnswer) SetNativeUI(value bool)

SetNativeUI sets value of NativeUI conditional field.

func (*MessagesBotCallbackAnswer) SetURL ¶

func (b *MessagesBotCallbackAnswer) SetURL(value string)

SetURL sets value of URL conditional field.

type MessagesBotResults ¶

type MessagesBotResults struct {
	// Flags field of MessagesBotResults.
	Flags bin.Fields
	// Gallery field of MessagesBotResults.
	Gallery bool
	// QueryID field of MessagesBotResults.
	QueryID int64
	// NextOffset field of MessagesBotResults.
	//
	// Use SetNextOffset and GetNextOffset helpers.
	NextOffset string
	// SwitchPm field of MessagesBotResults.
	//
	// Use SetSwitchPm and GetSwitchPm helpers.
	SwitchPm InlineBotSwitchPM
	// Results field of MessagesBotResults.
	Results []BotInlineResultClass
	// CacheTime field of MessagesBotResults.
	CacheTime int
	// Users field of MessagesBotResults.
	Users []UserClass
}

MessagesBotResults represents TL type `messages.botResults#947ca848`.

func (*MessagesBotResults) Decode ¶

func (b *MessagesBotResults) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesBotResults) Encode ¶

func (b *MessagesBotResults) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesBotResults) GetNextOffset ¶

func (b *MessagesBotResults) GetNextOffset() (value string, ok bool)

GetNextOffset returns value of NextOffset conditional field and boolean which is true if field was set.

func (*MessagesBotResults) GetSwitchPm ¶

func (b *MessagesBotResults) GetSwitchPm() (value InlineBotSwitchPM, ok bool)

GetSwitchPm returns value of SwitchPm conditional field and boolean which is true if field was set.

func (*MessagesBotResults) SetGallery ¶

func (b *MessagesBotResults) SetGallery(value bool)

SetGallery sets value of Gallery conditional field.

func (*MessagesBotResults) SetNextOffset ¶

func (b *MessagesBotResults) SetNextOffset(value string)

SetNextOffset sets value of NextOffset conditional field.

func (*MessagesBotResults) SetSwitchPm ¶

func (b *MessagesBotResults) SetSwitchPm(value InlineBotSwitchPM)

SetSwitchPm sets value of SwitchPm conditional field.

type MessagesChannelMessages ¶

type MessagesChannelMessages struct {
	// Flags field of MessagesChannelMessages.
	Flags bin.Fields
	// Inexact field of MessagesChannelMessages.
	Inexact bool
	// Pts field of MessagesChannelMessages.
	Pts int
	// Count field of MessagesChannelMessages.
	Count int
	// OffsetIDOffset field of MessagesChannelMessages.
	//
	// Use SetOffsetIDOffset and GetOffsetIDOffset helpers.
	OffsetIDOffset int
	// Messages field of MessagesChannelMessages.
	Messages []MessageClass
	// Chats field of MessagesChannelMessages.
	Chats []ChatClass
	// Users field of MessagesChannelMessages.
	Users []UserClass
}

MessagesChannelMessages represents TL type `messages.channelMessages#64479808`.

func (*MessagesChannelMessages) Decode ¶

func (c *MessagesChannelMessages) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesChannelMessages) Encode ¶

func (c *MessagesChannelMessages) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesChannelMessages) GetOffsetIDOffset ¶

func (c *MessagesChannelMessages) GetOffsetIDOffset() (value int, ok bool)

GetOffsetIDOffset returns value of OffsetIDOffset conditional field and boolean which is true if field was set.

func (*MessagesChannelMessages) SetInexact ¶

func (c *MessagesChannelMessages) SetInexact(value bool)

SetInexact sets value of Inexact conditional field.

func (*MessagesChannelMessages) SetOffsetIDOffset ¶

func (c *MessagesChannelMessages) SetOffsetIDOffset(value int)

SetOffsetIDOffset sets value of OffsetIDOffset conditional field.

type MessagesChatFull ¶

type MessagesChatFull struct {
	// FullChat field of MessagesChatFull.
	FullChat ChatFullClass
	// Chats field of MessagesChatFull.
	Chats []ChatClass
	// Users field of MessagesChatFull.
	Users []UserClass
}

MessagesChatFull represents TL type `messages.chatFull#e5d7d19c`.

func (*MessagesChatFull) Decode ¶

func (c *MessagesChatFull) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesChatFull) Encode ¶

func (c *MessagesChatFull) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesChats ¶

type MessagesChats struct {
	// Chats field of MessagesChats.
	Chats []ChatClass
}

MessagesChats represents TL type `messages.chats#64ff9fd5`.

func (*MessagesChats) Decode ¶

func (c *MessagesChats) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesChats) Encode ¶

func (c *MessagesChats) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesChatsBox ¶

type MessagesChatsBox struct {
	Chats MessagesChatsClass
}

MessagesChats boxes the MessagesChatsClass providing a helper.

func (*MessagesChatsBox) Decode ¶

func (b *MessagesChatsBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessagesChatsBox.

func (*MessagesChatsBox) Encode ¶

func (b *MessagesChatsBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessagesChatsBox.

type MessagesChatsClass ¶

type MessagesChatsClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesChatsClass represents messages.Chats generic type.

Example:

g, err := DecodeMessagesChats(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesChats: // messages.chats#64ff9fd5
case *MessagesChatsSlice: // messages.chatsSlice#9cd81144
default: panic(v)
}

func DecodeMessagesChats ¶

func DecodeMessagesChats(buf *bin.Buffer) (MessagesChatsClass, error)

DecodeMessagesChats implements binary de-serialization for MessagesChatsClass.

type MessagesChatsSlice ¶

type MessagesChatsSlice struct {
	// Count field of MessagesChatsSlice.
	Count int
	// Chats field of MessagesChatsSlice.
	Chats []ChatClass
}

MessagesChatsSlice represents TL type `messages.chatsSlice#9cd81144`.

func (*MessagesChatsSlice) Decode ¶

func (c *MessagesChatsSlice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesChatsSlice) Encode ¶

func (c *MessagesChatsSlice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesCheckChatInviteRequest ¶

type MessagesCheckChatInviteRequest struct {
	// Hash field of MessagesCheckChatInviteRequest.
	Hash string
}

MessagesCheckChatInviteRequest represents TL type `messages.checkChatInvite#3eadb1bb`.

func (*MessagesCheckChatInviteRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesCheckChatInviteRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesClearAllDraftsRequest ¶

type MessagesClearAllDraftsRequest struct {
}

MessagesClearAllDraftsRequest represents TL type `messages.clearAllDrafts#7e58ee9c`.

func (*MessagesClearAllDraftsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesClearAllDraftsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesClearRecentStickersRequest ¶

type MessagesClearRecentStickersRequest struct {
	// Flags field of MessagesClearRecentStickersRequest.
	Flags bin.Fields
	// Attached field of MessagesClearRecentStickersRequest.
	Attached bool
}

MessagesClearRecentStickersRequest represents TL type `messages.clearRecentStickers#8999602d`.

func (*MessagesClearRecentStickersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesClearRecentStickersRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesClearRecentStickersRequest) SetAttached ¶

func (c *MessagesClearRecentStickersRequest) SetAttached(value bool)

SetAttached sets value of Attached conditional field.

type MessagesCreateChatRequest ¶

type MessagesCreateChatRequest struct {
	// Users field of MessagesCreateChatRequest.
	Users []InputUserClass
	// Title field of MessagesCreateChatRequest.
	Title string
}

MessagesCreateChatRequest represents TL type `messages.createChat#9cb126e`.

func (*MessagesCreateChatRequest) Decode ¶

func (c *MessagesCreateChatRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesCreateChatRequest) Encode ¶

func (c *MessagesCreateChatRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesDeleteChatUserRequest ¶

type MessagesDeleteChatUserRequest struct {
	// ChatID field of MessagesDeleteChatUserRequest.
	ChatID int
	// UserID field of MessagesDeleteChatUserRequest.
	UserID InputUserClass
}

MessagesDeleteChatUserRequest represents TL type `messages.deleteChatUser#e0611f16`.

func (*MessagesDeleteChatUserRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesDeleteChatUserRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesDeleteHistoryRequest ¶

type MessagesDeleteHistoryRequest struct {
	// Flags field of MessagesDeleteHistoryRequest.
	Flags bin.Fields
	// JustClear field of MessagesDeleteHistoryRequest.
	JustClear bool
	// Revoke field of MessagesDeleteHistoryRequest.
	Revoke bool
	// Peer field of MessagesDeleteHistoryRequest.
	Peer InputPeerClass
	// MaxID field of MessagesDeleteHistoryRequest.
	MaxID int
}

MessagesDeleteHistoryRequest represents TL type `messages.deleteHistory#1c015b09`.

func (*MessagesDeleteHistoryRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesDeleteHistoryRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesDeleteHistoryRequest) SetJustClear ¶

func (d *MessagesDeleteHistoryRequest) SetJustClear(value bool)

SetJustClear sets value of JustClear conditional field.

func (*MessagesDeleteHistoryRequest) SetRevoke ¶

func (d *MessagesDeleteHistoryRequest) SetRevoke(value bool)

SetRevoke sets value of Revoke conditional field.

type MessagesDeleteMessagesRequest ¶

type MessagesDeleteMessagesRequest struct {
	// Flags field of MessagesDeleteMessagesRequest.
	Flags bin.Fields
	// Revoke field of MessagesDeleteMessagesRequest.
	Revoke bool
	// ID field of MessagesDeleteMessagesRequest.
	ID []int
}

MessagesDeleteMessagesRequest represents TL type `messages.deleteMessages#e58e95d2`.

func (*MessagesDeleteMessagesRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesDeleteMessagesRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesDeleteMessagesRequest) SetRevoke ¶

func (d *MessagesDeleteMessagesRequest) SetRevoke(value bool)

SetRevoke sets value of Revoke conditional field.

type MessagesDeleteScheduledMessagesRequest ¶

type MessagesDeleteScheduledMessagesRequest struct {
	// Peer field of MessagesDeleteScheduledMessagesRequest.
	Peer InputPeerClass
	// ID field of MessagesDeleteScheduledMessagesRequest.
	ID []int
}

MessagesDeleteScheduledMessagesRequest represents TL type `messages.deleteScheduledMessages#59ae2b16`.

func (*MessagesDeleteScheduledMessagesRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesDeleteScheduledMessagesRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesDhConfig ¶

type MessagesDhConfig struct {
	// G field of MessagesDhConfig.
	G int
	// P field of MessagesDhConfig.
	P []byte
	// Version field of MessagesDhConfig.
	Version int
	// Random field of MessagesDhConfig.
	Random []byte
}

MessagesDhConfig represents TL type `messages.dhConfig#2c221edd`.

func (*MessagesDhConfig) Decode ¶

func (d *MessagesDhConfig) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesDhConfig) Encode ¶

func (d *MessagesDhConfig) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesDhConfigBox ¶

type MessagesDhConfigBox struct {
	DhConfig MessagesDhConfigClass
}

MessagesDhConfig boxes the MessagesDhConfigClass providing a helper.

func (*MessagesDhConfigBox) Decode ¶

func (b *MessagesDhConfigBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessagesDhConfigBox.

func (*MessagesDhConfigBox) Encode ¶

func (b *MessagesDhConfigBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessagesDhConfigBox.

type MessagesDhConfigClass ¶

type MessagesDhConfigClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesDhConfigClass represents messages.DhConfig generic type.

Example:

g, err := DecodeMessagesDhConfig(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesDhConfigNotModified: // messages.dhConfigNotModified#c0e24635
case *MessagesDhConfig: // messages.dhConfig#2c221edd
default: panic(v)
}

func DecodeMessagesDhConfig ¶

func DecodeMessagesDhConfig(buf *bin.Buffer) (MessagesDhConfigClass, error)

DecodeMessagesDhConfig implements binary de-serialization for MessagesDhConfigClass.

type MessagesDhConfigNotModified ¶

type MessagesDhConfigNotModified struct {
	// Random field of MessagesDhConfigNotModified.
	Random []byte
}

MessagesDhConfigNotModified represents TL type `messages.dhConfigNotModified#c0e24635`.

func (*MessagesDhConfigNotModified) Decode ¶

Decode implements bin.Decoder.

func (*MessagesDhConfigNotModified) Encode ¶

Encode implements bin.Encoder.

type MessagesDialogs ¶

type MessagesDialogs struct {
	// Dialogs field of MessagesDialogs.
	Dialogs []DialogClass
	// Messages field of MessagesDialogs.
	Messages []MessageClass
	// Chats field of MessagesDialogs.
	Chats []ChatClass
	// Users field of MessagesDialogs.
	Users []UserClass
}

MessagesDialogs represents TL type `messages.dialogs#15ba6c40`.

func (*MessagesDialogs) Decode ¶

func (d *MessagesDialogs) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesDialogs) Encode ¶

func (d *MessagesDialogs) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesDialogsBox ¶

type MessagesDialogsBox struct {
	Dialogs MessagesDialogsClass
}

MessagesDialogs boxes the MessagesDialogsClass providing a helper.

func (*MessagesDialogsBox) Decode ¶

func (b *MessagesDialogsBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessagesDialogsBox.

func (*MessagesDialogsBox) Encode ¶

func (b *MessagesDialogsBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessagesDialogsBox.

type MessagesDialogsClass ¶

type MessagesDialogsClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesDialogsClass represents messages.Dialogs generic type.

Example:

g, err := DecodeMessagesDialogs(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesDialogs: // messages.dialogs#15ba6c40
case *MessagesDialogsSlice: // messages.dialogsSlice#71e094f3
case *MessagesDialogsNotModified: // messages.dialogsNotModified#f0e3e596
default: panic(v)
}

func DecodeMessagesDialogs ¶

func DecodeMessagesDialogs(buf *bin.Buffer) (MessagesDialogsClass, error)

DecodeMessagesDialogs implements binary de-serialization for MessagesDialogsClass.

type MessagesDialogsNotModified ¶

type MessagesDialogsNotModified struct {
	// Count field of MessagesDialogsNotModified.
	Count int
}

MessagesDialogsNotModified represents TL type `messages.dialogsNotModified#f0e3e596`.

func (*MessagesDialogsNotModified) Decode ¶

Decode implements bin.Decoder.

func (*MessagesDialogsNotModified) Encode ¶

Encode implements bin.Encoder.

type MessagesDialogsSlice ¶

type MessagesDialogsSlice struct {
	// Count field of MessagesDialogsSlice.
	Count int
	// Dialogs field of MessagesDialogsSlice.
	Dialogs []DialogClass
	// Messages field of MessagesDialogsSlice.
	Messages []MessageClass
	// Chats field of MessagesDialogsSlice.
	Chats []ChatClass
	// Users field of MessagesDialogsSlice.
	Users []UserClass
}

MessagesDialogsSlice represents TL type `messages.dialogsSlice#71e094f3`.

func (*MessagesDialogsSlice) Decode ¶

func (d *MessagesDialogsSlice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesDialogsSlice) Encode ¶

func (d *MessagesDialogsSlice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesDiscardEncryptionRequest ¶

type MessagesDiscardEncryptionRequest struct {
	// ChatID field of MessagesDiscardEncryptionRequest.
	ChatID int
}

MessagesDiscardEncryptionRequest represents TL type `messages.discardEncryption#edd923c5`.

func (*MessagesDiscardEncryptionRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesDiscardEncryptionRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesDiscussionMessage ¶

type MessagesDiscussionMessage struct {
	// Flags field of MessagesDiscussionMessage.
	Flags bin.Fields
	// Messages field of MessagesDiscussionMessage.
	Messages []MessageClass
	// MaxID field of MessagesDiscussionMessage.
	//
	// Use SetMaxID and GetMaxID helpers.
	MaxID int
	// ReadInboxMaxID field of MessagesDiscussionMessage.
	//
	// Use SetReadInboxMaxID and GetReadInboxMaxID helpers.
	ReadInboxMaxID int
	// ReadOutboxMaxID field of MessagesDiscussionMessage.
	//
	// Use SetReadOutboxMaxID and GetReadOutboxMaxID helpers.
	ReadOutboxMaxID int
	// Chats field of MessagesDiscussionMessage.
	Chats []ChatClass
	// Users field of MessagesDiscussionMessage.
	Users []UserClass
}

MessagesDiscussionMessage represents TL type `messages.discussionMessage#f5dd8f9d`.

func (*MessagesDiscussionMessage) Decode ¶

func (d *MessagesDiscussionMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesDiscussionMessage) Encode ¶

func (d *MessagesDiscussionMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesDiscussionMessage) GetMaxID ¶

func (d *MessagesDiscussionMessage) GetMaxID() (value int, ok bool)

GetMaxID returns value of MaxID conditional field and boolean which is true if field was set.

func (*MessagesDiscussionMessage) GetReadInboxMaxID ¶

func (d *MessagesDiscussionMessage) GetReadInboxMaxID() (value int, ok bool)

GetReadInboxMaxID returns value of ReadInboxMaxID conditional field and boolean which is true if field was set.

func (*MessagesDiscussionMessage) GetReadOutboxMaxID ¶

func (d *MessagesDiscussionMessage) GetReadOutboxMaxID() (value int, ok bool)

GetReadOutboxMaxID returns value of ReadOutboxMaxID conditional field and boolean which is true if field was set.

func (*MessagesDiscussionMessage) SetMaxID ¶

func (d *MessagesDiscussionMessage) SetMaxID(value int)

SetMaxID sets value of MaxID conditional field.

func (*MessagesDiscussionMessage) SetReadInboxMaxID ¶

func (d *MessagesDiscussionMessage) SetReadInboxMaxID(value int)

SetReadInboxMaxID sets value of ReadInboxMaxID conditional field.

func (*MessagesDiscussionMessage) SetReadOutboxMaxID ¶

func (d *MessagesDiscussionMessage) SetReadOutboxMaxID(value int)

SetReadOutboxMaxID sets value of ReadOutboxMaxID conditional field.

type MessagesEditChatAboutRequest ¶

type MessagesEditChatAboutRequest struct {
	// Peer field of MessagesEditChatAboutRequest.
	Peer InputPeerClass
	// About field of MessagesEditChatAboutRequest.
	About string
}

MessagesEditChatAboutRequest represents TL type `messages.editChatAbout#def60797`.

func (*MessagesEditChatAboutRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesEditChatAboutRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesEditChatAdminRequest ¶

type MessagesEditChatAdminRequest struct {
	// ChatID field of MessagesEditChatAdminRequest.
	ChatID int
	// UserID field of MessagesEditChatAdminRequest.
	UserID InputUserClass
	// IsAdmin field of MessagesEditChatAdminRequest.
	IsAdmin bool
}

MessagesEditChatAdminRequest represents TL type `messages.editChatAdmin#a9e69f2e`.

func (*MessagesEditChatAdminRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesEditChatAdminRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesEditChatDefaultBannedRightsRequest ¶

type MessagesEditChatDefaultBannedRightsRequest struct {
	// Peer field of MessagesEditChatDefaultBannedRightsRequest.
	Peer InputPeerClass
	// BannedRights field of MessagesEditChatDefaultBannedRightsRequest.
	BannedRights ChatBannedRights
}

MessagesEditChatDefaultBannedRightsRequest represents TL type `messages.editChatDefaultBannedRights#a5866b41`.

func (*MessagesEditChatDefaultBannedRightsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesEditChatDefaultBannedRightsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesEditChatPhotoRequest ¶

type MessagesEditChatPhotoRequest struct {
	// ChatID field of MessagesEditChatPhotoRequest.
	ChatID int
	// Photo field of MessagesEditChatPhotoRequest.
	Photo InputChatPhotoClass
}

MessagesEditChatPhotoRequest represents TL type `messages.editChatPhoto#ca4c79d8`.

func (*MessagesEditChatPhotoRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesEditChatPhotoRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesEditChatTitleRequest ¶

type MessagesEditChatTitleRequest struct {
	// ChatID field of MessagesEditChatTitleRequest.
	ChatID int
	// Title field of MessagesEditChatTitleRequest.
	Title string
}

MessagesEditChatTitleRequest represents TL type `messages.editChatTitle#dc452855`.

func (*MessagesEditChatTitleRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesEditChatTitleRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesEditInlineBotMessageRequest ¶

type MessagesEditInlineBotMessageRequest struct {
	// Flags field of MessagesEditInlineBotMessageRequest.
	Flags bin.Fields
	// NoWebpage field of MessagesEditInlineBotMessageRequest.
	NoWebpage bool
	// ID field of MessagesEditInlineBotMessageRequest.
	ID InputBotInlineMessageID
	// Message field of MessagesEditInlineBotMessageRequest.
	//
	// Use SetMessage and GetMessage helpers.
	Message string
	// Media field of MessagesEditInlineBotMessageRequest.
	//
	// Use SetMedia and GetMedia helpers.
	Media InputMediaClass
	// ReplyMarkup field of MessagesEditInlineBotMessageRequest.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
	// Entities field of MessagesEditInlineBotMessageRequest.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
}

MessagesEditInlineBotMessageRequest represents TL type `messages.editInlineBotMessage#83557dba`.

func (*MessagesEditInlineBotMessageRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesEditInlineBotMessageRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesEditInlineBotMessageRequest) GetEntities ¶

func (e *MessagesEditInlineBotMessageRequest) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*MessagesEditInlineBotMessageRequest) GetMedia ¶

func (e *MessagesEditInlineBotMessageRequest) GetMedia() (value InputMediaClass, ok bool)

GetMedia returns value of Media conditional field and boolean which is true if field was set.

func (*MessagesEditInlineBotMessageRequest) GetMessage ¶

func (e *MessagesEditInlineBotMessageRequest) GetMessage() (value string, ok bool)

GetMessage returns value of Message conditional field and boolean which is true if field was set.

func (*MessagesEditInlineBotMessageRequest) GetReplyMarkup ¶

func (e *MessagesEditInlineBotMessageRequest) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*MessagesEditInlineBotMessageRequest) SetEntities ¶

SetEntities sets value of Entities conditional field.

func (*MessagesEditInlineBotMessageRequest) SetMedia ¶

SetMedia sets value of Media conditional field.

func (*MessagesEditInlineBotMessageRequest) SetMessage ¶

func (e *MessagesEditInlineBotMessageRequest) SetMessage(value string)

SetMessage sets value of Message conditional field.

func (*MessagesEditInlineBotMessageRequest) SetNoWebpage ¶

func (e *MessagesEditInlineBotMessageRequest) SetNoWebpage(value bool)

SetNoWebpage sets value of NoWebpage conditional field.

func (*MessagesEditInlineBotMessageRequest) SetReplyMarkup ¶

func (e *MessagesEditInlineBotMessageRequest) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

type MessagesEditMessageRequest ¶

type MessagesEditMessageRequest struct {
	// Flags field of MessagesEditMessageRequest.
	Flags bin.Fields
	// NoWebpage field of MessagesEditMessageRequest.
	NoWebpage bool
	// Peer field of MessagesEditMessageRequest.
	Peer InputPeerClass
	// ID field of MessagesEditMessageRequest.
	ID int
	// Message field of MessagesEditMessageRequest.
	//
	// Use SetMessage and GetMessage helpers.
	Message string
	// Media field of MessagesEditMessageRequest.
	//
	// Use SetMedia and GetMedia helpers.
	Media InputMediaClass
	// ReplyMarkup field of MessagesEditMessageRequest.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
	// Entities field of MessagesEditMessageRequest.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
	// ScheduleDate field of MessagesEditMessageRequest.
	//
	// Use SetScheduleDate and GetScheduleDate helpers.
	ScheduleDate int
}

MessagesEditMessageRequest represents TL type `messages.editMessage#48f71778`.

func (*MessagesEditMessageRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesEditMessageRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesEditMessageRequest) GetEntities ¶

func (e *MessagesEditMessageRequest) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*MessagesEditMessageRequest) GetMedia ¶

func (e *MessagesEditMessageRequest) GetMedia() (value InputMediaClass, ok bool)

GetMedia returns value of Media conditional field and boolean which is true if field was set.

func (*MessagesEditMessageRequest) GetMessage ¶

func (e *MessagesEditMessageRequest) GetMessage() (value string, ok bool)

GetMessage returns value of Message conditional field and boolean which is true if field was set.

func (*MessagesEditMessageRequest) GetReplyMarkup ¶

func (e *MessagesEditMessageRequest) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*MessagesEditMessageRequest) GetScheduleDate ¶

func (e *MessagesEditMessageRequest) GetScheduleDate() (value int, ok bool)

GetScheduleDate returns value of ScheduleDate conditional field and boolean which is true if field was set.

func (*MessagesEditMessageRequest) SetEntities ¶

func (e *MessagesEditMessageRequest) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*MessagesEditMessageRequest) SetMedia ¶

func (e *MessagesEditMessageRequest) SetMedia(value InputMediaClass)

SetMedia sets value of Media conditional field.

func (*MessagesEditMessageRequest) SetMessage ¶

func (e *MessagesEditMessageRequest) SetMessage(value string)

SetMessage sets value of Message conditional field.

func (*MessagesEditMessageRequest) SetNoWebpage ¶

func (e *MessagesEditMessageRequest) SetNoWebpage(value bool)

SetNoWebpage sets value of NoWebpage conditional field.

func (*MessagesEditMessageRequest) SetReplyMarkup ¶

func (e *MessagesEditMessageRequest) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

func (*MessagesEditMessageRequest) SetScheduleDate ¶

func (e *MessagesEditMessageRequest) SetScheduleDate(value int)

SetScheduleDate sets value of ScheduleDate conditional field.

type MessagesExportChatInviteRequest ¶

type MessagesExportChatInviteRequest struct {
	// Peer field of MessagesExportChatInviteRequest.
	Peer InputPeerClass
}

MessagesExportChatInviteRequest represents TL type `messages.exportChatInvite#df7534c`.

func (*MessagesExportChatInviteRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesExportChatInviteRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesFaveStickerRequest ¶

type MessagesFaveStickerRequest struct {
	// ID field of MessagesFaveStickerRequest.
	ID InputDocumentClass
	// Unfave field of MessagesFaveStickerRequest.
	Unfave bool
}

MessagesFaveStickerRequest represents TL type `messages.faveSticker#b9ffc55b`.

func (*MessagesFaveStickerRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesFaveStickerRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesFavedStickers ¶

type MessagesFavedStickers struct {
	// Hash field of MessagesFavedStickers.
	Hash int
	// Packs field of MessagesFavedStickers.
	Packs []StickerPack
	// Stickers field of MessagesFavedStickers.
	Stickers []DocumentClass
}

MessagesFavedStickers represents TL type `messages.favedStickers#f37f2f16`.

func (*MessagesFavedStickers) Decode ¶

func (f *MessagesFavedStickers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesFavedStickers) Encode ¶

func (f *MessagesFavedStickers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesFavedStickersBox ¶

type MessagesFavedStickersBox struct {
	FavedStickers MessagesFavedStickersClass
}

MessagesFavedStickers boxes the MessagesFavedStickersClass providing a helper.

func (*MessagesFavedStickersBox) Decode ¶

func (b *MessagesFavedStickersBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessagesFavedStickersBox.

func (*MessagesFavedStickersBox) Encode ¶

func (b *MessagesFavedStickersBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessagesFavedStickersBox.

type MessagesFavedStickersClass ¶

type MessagesFavedStickersClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesFavedStickersClass represents messages.FavedStickers generic type.

Example:

g, err := DecodeMessagesFavedStickers(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesFavedStickersNotModified: // messages.favedStickersNotModified#9e8fa6d3
case *MessagesFavedStickers: // messages.favedStickers#f37f2f16
default: panic(v)
}

func DecodeMessagesFavedStickers ¶

func DecodeMessagesFavedStickers(buf *bin.Buffer) (MessagesFavedStickersClass, error)

DecodeMessagesFavedStickers implements binary de-serialization for MessagesFavedStickersClass.

type MessagesFavedStickersNotModified ¶

type MessagesFavedStickersNotModified struct {
}

MessagesFavedStickersNotModified represents TL type `messages.favedStickersNotModified#9e8fa6d3`.

func (*MessagesFavedStickersNotModified) Decode ¶

Decode implements bin.Decoder.

func (*MessagesFavedStickersNotModified) Encode ¶

Encode implements bin.Encoder.

type MessagesFeaturedStickers ¶

type MessagesFeaturedStickers struct {
	// Hash field of MessagesFeaturedStickers.
	Hash int
	// Count field of MessagesFeaturedStickers.
	Count int
	// Sets field of MessagesFeaturedStickers.
	Sets []StickerSetCoveredClass
	// Unread field of MessagesFeaturedStickers.
	Unread []int64
}

MessagesFeaturedStickers represents TL type `messages.featuredStickers#b6abc341`.

func (*MessagesFeaturedStickers) Decode ¶

func (f *MessagesFeaturedStickers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesFeaturedStickers) Encode ¶

func (f *MessagesFeaturedStickers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesFeaturedStickersBox ¶

type MessagesFeaturedStickersBox struct {
	FeaturedStickers MessagesFeaturedStickersClass
}

MessagesFeaturedStickers boxes the MessagesFeaturedStickersClass providing a helper.

func (*MessagesFeaturedStickersBox) Decode ¶

func (b *MessagesFeaturedStickersBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessagesFeaturedStickersBox.

func (*MessagesFeaturedStickersBox) Encode ¶

func (b *MessagesFeaturedStickersBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessagesFeaturedStickersBox.

type MessagesFeaturedStickersClass ¶

type MessagesFeaturedStickersClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesFeaturedStickersClass represents messages.FeaturedStickers generic type.

Example:

g, err := DecodeMessagesFeaturedStickers(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesFeaturedStickersNotModified: // messages.featuredStickersNotModified#c6dc0c66
case *MessagesFeaturedStickers: // messages.featuredStickers#b6abc341
default: panic(v)
}

func DecodeMessagesFeaturedStickers ¶

func DecodeMessagesFeaturedStickers(buf *bin.Buffer) (MessagesFeaturedStickersClass, error)

DecodeMessagesFeaturedStickers implements binary de-serialization for MessagesFeaturedStickersClass.

type MessagesFeaturedStickersNotModified ¶

type MessagesFeaturedStickersNotModified struct {
	// Count field of MessagesFeaturedStickersNotModified.
	Count int
}

MessagesFeaturedStickersNotModified represents TL type `messages.featuredStickersNotModified#c6dc0c66`.

func (*MessagesFeaturedStickersNotModified) Decode ¶

Decode implements bin.Decoder.

func (*MessagesFeaturedStickersNotModified) Encode ¶

Encode implements bin.Encoder.

type MessagesFilterBox ¶

type MessagesFilterBox struct {
	MessagesFilter MessagesFilterClass
}

MessagesFilter boxes the MessagesFilterClass providing a helper.

func (*MessagesFilterBox) Decode ¶

func (b *MessagesFilterBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessagesFilterBox.

func (*MessagesFilterBox) Encode ¶

func (b *MessagesFilterBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessagesFilterBox.

type MessagesFilterClass ¶

type MessagesFilterClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesFilterClass represents MessagesFilter generic type.

Example:

g, err := DecodeMessagesFilter(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputMessagesFilterEmpty: // inputMessagesFilterEmpty#57e2f66c
case *InputMessagesFilterPhotos: // inputMessagesFilterPhotos#9609a51c
case *InputMessagesFilterVideo: // inputMessagesFilterVideo#9fc00e65
case *InputMessagesFilterPhotoVideo: // inputMessagesFilterPhotoVideo#56e9f0e4
case *InputMessagesFilterDocument: // inputMessagesFilterDocument#9eddf188
case *InputMessagesFilterUrl: // inputMessagesFilterUrl#7ef0dd87
case *InputMessagesFilterGif: // inputMessagesFilterGif#ffc86587
case *InputMessagesFilterVoice: // inputMessagesFilterVoice#50f5c392
case *InputMessagesFilterMusic: // inputMessagesFilterMusic#3751b49e
case *InputMessagesFilterChatPhotos: // inputMessagesFilterChatPhotos#3a20ecb8
case *InputMessagesFilterPhoneCalls: // inputMessagesFilterPhoneCalls#80c99768
case *InputMessagesFilterRoundVoice: // inputMessagesFilterRoundVoice#7a7c17a4
case *InputMessagesFilterRoundVideo: // inputMessagesFilterRoundVideo#b549da53
case *InputMessagesFilterMyMentions: // inputMessagesFilterMyMentions#c1f8e69a
case *InputMessagesFilterGeo: // inputMessagesFilterGeo#e7026d0d
case *InputMessagesFilterContacts: // inputMessagesFilterContacts#e062db83
case *InputMessagesFilterPinned: // inputMessagesFilterPinned#1bb00451
default: panic(v)
}

func DecodeMessagesFilter ¶

func DecodeMessagesFilter(buf *bin.Buffer) (MessagesFilterClass, error)

DecodeMessagesFilter implements binary de-serialization for MessagesFilterClass.

type MessagesForwardMessagesRequest ¶

type MessagesForwardMessagesRequest struct {
	// Flags field of MessagesForwardMessagesRequest.
	Flags bin.Fields
	// Silent field of MessagesForwardMessagesRequest.
	Silent bool
	// Background field of MessagesForwardMessagesRequest.
	Background bool
	// WithMyScore field of MessagesForwardMessagesRequest.
	WithMyScore bool
	// FromPeer field of MessagesForwardMessagesRequest.
	FromPeer InputPeerClass
	// ID field of MessagesForwardMessagesRequest.
	ID []int
	// RandomID field of MessagesForwardMessagesRequest.
	RandomID []int64
	// ToPeer field of MessagesForwardMessagesRequest.
	ToPeer InputPeerClass
	// ScheduleDate field of MessagesForwardMessagesRequest.
	//
	// Use SetScheduleDate and GetScheduleDate helpers.
	ScheduleDate int
}

MessagesForwardMessagesRequest represents TL type `messages.forwardMessages#d9fee60e`.

func (*MessagesForwardMessagesRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesForwardMessagesRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesForwardMessagesRequest) GetScheduleDate ¶

func (f *MessagesForwardMessagesRequest) GetScheduleDate() (value int, ok bool)

GetScheduleDate returns value of ScheduleDate conditional field and boolean which is true if field was set.

func (*MessagesForwardMessagesRequest) SetBackground ¶

func (f *MessagesForwardMessagesRequest) SetBackground(value bool)

SetBackground sets value of Background conditional field.

func (*MessagesForwardMessagesRequest) SetScheduleDate ¶

func (f *MessagesForwardMessagesRequest) SetScheduleDate(value int)

SetScheduleDate sets value of ScheduleDate conditional field.

func (*MessagesForwardMessagesRequest) SetSilent ¶

func (f *MessagesForwardMessagesRequest) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

func (*MessagesForwardMessagesRequest) SetWithMyScore ¶

func (f *MessagesForwardMessagesRequest) SetWithMyScore(value bool)

SetWithMyScore sets value of WithMyScore conditional field.

type MessagesFoundStickerSets ¶

type MessagesFoundStickerSets struct {
	// Hash field of MessagesFoundStickerSets.
	Hash int
	// Sets field of MessagesFoundStickerSets.
	Sets []StickerSetCoveredClass
}

MessagesFoundStickerSets represents TL type `messages.foundStickerSets#5108d648`.

func (*MessagesFoundStickerSets) Decode ¶

func (f *MessagesFoundStickerSets) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesFoundStickerSets) Encode ¶

func (f *MessagesFoundStickerSets) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesFoundStickerSetsBox ¶

type MessagesFoundStickerSetsBox struct {
	FoundStickerSets MessagesFoundStickerSetsClass
}

MessagesFoundStickerSets boxes the MessagesFoundStickerSetsClass providing a helper.

func (*MessagesFoundStickerSetsBox) Decode ¶

func (b *MessagesFoundStickerSetsBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessagesFoundStickerSetsBox.

func (*MessagesFoundStickerSetsBox) Encode ¶

func (b *MessagesFoundStickerSetsBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessagesFoundStickerSetsBox.

type MessagesFoundStickerSetsClass ¶

type MessagesFoundStickerSetsClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesFoundStickerSetsClass represents messages.FoundStickerSets generic type.

Example:

g, err := DecodeMessagesFoundStickerSets(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesFoundStickerSetsNotModified: // messages.foundStickerSetsNotModified#d54b65d
case *MessagesFoundStickerSets: // messages.foundStickerSets#5108d648
default: panic(v)
}

func DecodeMessagesFoundStickerSets ¶

func DecodeMessagesFoundStickerSets(buf *bin.Buffer) (MessagesFoundStickerSetsClass, error)

DecodeMessagesFoundStickerSets implements binary de-serialization for MessagesFoundStickerSetsClass.

type MessagesFoundStickerSetsNotModified ¶

type MessagesFoundStickerSetsNotModified struct {
}

MessagesFoundStickerSetsNotModified represents TL type `messages.foundStickerSetsNotModified#d54b65d`.

func (*MessagesFoundStickerSetsNotModified) Decode ¶

Decode implements bin.Decoder.

func (*MessagesFoundStickerSetsNotModified) Encode ¶

Encode implements bin.Encoder.

type MessagesGetAllChatsRequest ¶

type MessagesGetAllChatsRequest struct {
	// ExceptIds field of MessagesGetAllChatsRequest.
	ExceptIds []int
}

MessagesGetAllChatsRequest represents TL type `messages.getAllChats#eba80ff0`.

func (*MessagesGetAllChatsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetAllChatsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetAllDraftsRequest ¶

type MessagesGetAllDraftsRequest struct {
}

MessagesGetAllDraftsRequest represents TL type `messages.getAllDrafts#6a3f8d65`.

func (*MessagesGetAllDraftsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetAllDraftsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetAllStickersRequest ¶

type MessagesGetAllStickersRequest struct {
	// Hash field of MessagesGetAllStickersRequest.
	Hash int
}

MessagesGetAllStickersRequest represents TL type `messages.getAllStickers#1c9618b1`.

func (*MessagesGetAllStickersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetAllStickersRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetArchivedStickersRequest ¶

type MessagesGetArchivedStickersRequest struct {
	// Flags field of MessagesGetArchivedStickersRequest.
	Flags bin.Fields
	// Masks field of MessagesGetArchivedStickersRequest.
	Masks bool
	// OffsetID field of MessagesGetArchivedStickersRequest.
	OffsetID int64
	// Limit field of MessagesGetArchivedStickersRequest.
	Limit int
}

MessagesGetArchivedStickersRequest represents TL type `messages.getArchivedStickers#57f17692`.

func (*MessagesGetArchivedStickersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetArchivedStickersRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesGetArchivedStickersRequest) SetMasks ¶

func (g *MessagesGetArchivedStickersRequest) SetMasks(value bool)

SetMasks sets value of Masks conditional field.

type MessagesGetAttachedStickersRequest ¶

type MessagesGetAttachedStickersRequest struct {
	// Media field of MessagesGetAttachedStickersRequest.
	Media InputStickeredMediaClass
}

MessagesGetAttachedStickersRequest represents TL type `messages.getAttachedStickers#cc5b67cc`.

func (*MessagesGetAttachedStickersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetAttachedStickersRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetBotCallbackAnswerRequest ¶

type MessagesGetBotCallbackAnswerRequest struct {
	// Flags field of MessagesGetBotCallbackAnswerRequest.
	Flags bin.Fields
	// Game field of MessagesGetBotCallbackAnswerRequest.
	Game bool
	// Peer field of MessagesGetBotCallbackAnswerRequest.
	Peer InputPeerClass
	// MsgID field of MessagesGetBotCallbackAnswerRequest.
	MsgID int
	// Data field of MessagesGetBotCallbackAnswerRequest.
	//
	// Use SetData and GetData helpers.
	Data []byte
	// Password field of MessagesGetBotCallbackAnswerRequest.
	//
	// Use SetPassword and GetPassword helpers.
	Password InputCheckPasswordSRPClass
}

MessagesGetBotCallbackAnswerRequest represents TL type `messages.getBotCallbackAnswer#9342ca07`.

func (*MessagesGetBotCallbackAnswerRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetBotCallbackAnswerRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesGetBotCallbackAnswerRequest) GetData ¶

func (g *MessagesGetBotCallbackAnswerRequest) GetData() (value []byte, ok bool)

GetData returns value of Data conditional field and boolean which is true if field was set.

func (*MessagesGetBotCallbackAnswerRequest) GetPassword ¶

GetPassword returns value of Password conditional field and boolean which is true if field was set.

func (*MessagesGetBotCallbackAnswerRequest) SetData ¶

func (g *MessagesGetBotCallbackAnswerRequest) SetData(value []byte)

SetData sets value of Data conditional field.

func (*MessagesGetBotCallbackAnswerRequest) SetGame ¶

func (g *MessagesGetBotCallbackAnswerRequest) SetGame(value bool)

SetGame sets value of Game conditional field.

func (*MessagesGetBotCallbackAnswerRequest) SetPassword ¶

SetPassword sets value of Password conditional field.

type MessagesGetChatsRequest ¶

type MessagesGetChatsRequest struct {
	// ID field of MessagesGetChatsRequest.
	ID []int
}

MessagesGetChatsRequest represents TL type `messages.getChats#3c6aa187`.

func (*MessagesGetChatsRequest) Decode ¶

func (g *MessagesGetChatsRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesGetChatsRequest) Encode ¶

func (g *MessagesGetChatsRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesGetCommonChatsRequest ¶

type MessagesGetCommonChatsRequest struct {
	// UserID field of MessagesGetCommonChatsRequest.
	UserID InputUserClass
	// MaxID field of MessagesGetCommonChatsRequest.
	MaxID int
	// Limit field of MessagesGetCommonChatsRequest.
	Limit int
}

MessagesGetCommonChatsRequest represents TL type `messages.getCommonChats#d0a48c4`.

func (*MessagesGetCommonChatsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetCommonChatsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetDhConfigRequest ¶

type MessagesGetDhConfigRequest struct {
	// Version field of MessagesGetDhConfigRequest.
	Version int
	// RandomLength field of MessagesGetDhConfigRequest.
	RandomLength int
}

MessagesGetDhConfigRequest represents TL type `messages.getDhConfig#26cf8950`.

func (*MessagesGetDhConfigRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetDhConfigRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetDialogFiltersRequest ¶

type MessagesGetDialogFiltersRequest struct {
}

MessagesGetDialogFiltersRequest represents TL type `messages.getDialogFilters#f19ed96d`.

func (*MessagesGetDialogFiltersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetDialogFiltersRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetDialogUnreadMarksRequest ¶

type MessagesGetDialogUnreadMarksRequest struct {
}

MessagesGetDialogUnreadMarksRequest represents TL type `messages.getDialogUnreadMarks#22e24e22`.

func (*MessagesGetDialogUnreadMarksRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetDialogUnreadMarksRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetDialogsRequest ¶

type MessagesGetDialogsRequest struct {
	// Flags field of MessagesGetDialogsRequest.
	Flags bin.Fields
	// ExcludePinned field of MessagesGetDialogsRequest.
	ExcludePinned bool
	// FolderID field of MessagesGetDialogsRequest.
	//
	// Use SetFolderID and GetFolderID helpers.
	FolderID int
	// OffsetDate field of MessagesGetDialogsRequest.
	OffsetDate int
	// OffsetID field of MessagesGetDialogsRequest.
	OffsetID int
	// OffsetPeer field of MessagesGetDialogsRequest.
	OffsetPeer InputPeerClass
	// Limit field of MessagesGetDialogsRequest.
	Limit int
	// Hash field of MessagesGetDialogsRequest.
	Hash int
}

MessagesGetDialogsRequest represents TL type `messages.getDialogs#a0ee3b73`.

func (*MessagesGetDialogsRequest) Decode ¶

func (g *MessagesGetDialogsRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesGetDialogsRequest) Encode ¶

func (g *MessagesGetDialogsRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesGetDialogsRequest) GetFolderID ¶

func (g *MessagesGetDialogsRequest) GetFolderID() (value int, ok bool)

GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.

func (*MessagesGetDialogsRequest) SetExcludePinned ¶

func (g *MessagesGetDialogsRequest) SetExcludePinned(value bool)

SetExcludePinned sets value of ExcludePinned conditional field.

func (*MessagesGetDialogsRequest) SetFolderID ¶

func (g *MessagesGetDialogsRequest) SetFolderID(value int)

SetFolderID sets value of FolderID conditional field.

type MessagesGetDiscussionMessageRequest ¶

type MessagesGetDiscussionMessageRequest struct {
	// Peer field of MessagesGetDiscussionMessageRequest.
	Peer InputPeerClass
	// MsgID field of MessagesGetDiscussionMessageRequest.
	MsgID int
}

MessagesGetDiscussionMessageRequest represents TL type `messages.getDiscussionMessage#446972fd`.

func (*MessagesGetDiscussionMessageRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetDiscussionMessageRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetDocumentByHashRequest ¶

type MessagesGetDocumentByHashRequest struct {
	// Sha256 field of MessagesGetDocumentByHashRequest.
	Sha256 []byte
	// Size field of MessagesGetDocumentByHashRequest.
	Size int
	// MimeType field of MessagesGetDocumentByHashRequest.
	MimeType string
}

MessagesGetDocumentByHashRequest represents TL type `messages.getDocumentByHash#338e2464`.

func (*MessagesGetDocumentByHashRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetDocumentByHashRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetEmojiKeywordsDifferenceRequest ¶

type MessagesGetEmojiKeywordsDifferenceRequest struct {
	// LangCode field of MessagesGetEmojiKeywordsDifferenceRequest.
	LangCode string
	// FromVersion field of MessagesGetEmojiKeywordsDifferenceRequest.
	FromVersion int
}

MessagesGetEmojiKeywordsDifferenceRequest represents TL type `messages.getEmojiKeywordsDifference#1508b6af`.

func (*MessagesGetEmojiKeywordsDifferenceRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetEmojiKeywordsDifferenceRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetEmojiKeywordsLanguagesRequest ¶

type MessagesGetEmojiKeywordsLanguagesRequest struct {
	// LangCodes field of MessagesGetEmojiKeywordsLanguagesRequest.
	LangCodes []string
}

MessagesGetEmojiKeywordsLanguagesRequest represents TL type `messages.getEmojiKeywordsLanguages#4e9963b2`.

func (*MessagesGetEmojiKeywordsLanguagesRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetEmojiKeywordsLanguagesRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetEmojiKeywordsRequest ¶

type MessagesGetEmojiKeywordsRequest struct {
	// LangCode field of MessagesGetEmojiKeywordsRequest.
	LangCode string
}

MessagesGetEmojiKeywordsRequest represents TL type `messages.getEmojiKeywords#35a0e062`.

func (*MessagesGetEmojiKeywordsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetEmojiKeywordsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetEmojiURLRequest ¶

type MessagesGetEmojiURLRequest struct {
	// LangCode field of MessagesGetEmojiURLRequest.
	LangCode string
}

MessagesGetEmojiURLRequest represents TL type `messages.getEmojiURL#d5b10c26`.

func (*MessagesGetEmojiURLRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetEmojiURLRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetFavedStickersRequest ¶

type MessagesGetFavedStickersRequest struct {
	// Hash field of MessagesGetFavedStickersRequest.
	Hash int
}

MessagesGetFavedStickersRequest represents TL type `messages.getFavedStickers#21ce0b0e`.

func (*MessagesGetFavedStickersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetFavedStickersRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetFeaturedStickersRequest ¶

type MessagesGetFeaturedStickersRequest struct {
	// Hash field of MessagesGetFeaturedStickersRequest.
	Hash int
}

MessagesGetFeaturedStickersRequest represents TL type `messages.getFeaturedStickers#2dacca4f`.

func (*MessagesGetFeaturedStickersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetFeaturedStickersRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetFullChatRequest ¶

type MessagesGetFullChatRequest struct {
	// ChatID field of MessagesGetFullChatRequest.
	ChatID int
}

MessagesGetFullChatRequest represents TL type `messages.getFullChat#3b831c66`.

func (*MessagesGetFullChatRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetFullChatRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetGameHighScoresRequest ¶

type MessagesGetGameHighScoresRequest struct {
	// Peer field of MessagesGetGameHighScoresRequest.
	Peer InputPeerClass
	// ID field of MessagesGetGameHighScoresRequest.
	ID int
	// UserID field of MessagesGetGameHighScoresRequest.
	UserID InputUserClass
}

MessagesGetGameHighScoresRequest represents TL type `messages.getGameHighScores#e822649d`.

func (*MessagesGetGameHighScoresRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetGameHighScoresRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetHistoryRequest ¶

type MessagesGetHistoryRequest struct {
	// Peer field of MessagesGetHistoryRequest.
	Peer InputPeerClass
	// OffsetID field of MessagesGetHistoryRequest.
	OffsetID int
	// OffsetDate field of MessagesGetHistoryRequest.
	OffsetDate int
	// AddOffset field of MessagesGetHistoryRequest.
	AddOffset int
	// Limit field of MessagesGetHistoryRequest.
	Limit int
	// MaxID field of MessagesGetHistoryRequest.
	MaxID int
	// MinID field of MessagesGetHistoryRequest.
	MinID int
	// Hash field of MessagesGetHistoryRequest.
	Hash int
}

MessagesGetHistoryRequest represents TL type `messages.getHistory#dcbb8260`.

func (*MessagesGetHistoryRequest) Decode ¶

func (g *MessagesGetHistoryRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesGetHistoryRequest) Encode ¶

func (g *MessagesGetHistoryRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesGetInlineBotResultsRequest ¶

type MessagesGetInlineBotResultsRequest struct {
	// Flags field of MessagesGetInlineBotResultsRequest.
	Flags bin.Fields
	// Bot field of MessagesGetInlineBotResultsRequest.
	Bot InputUserClass
	// Peer field of MessagesGetInlineBotResultsRequest.
	Peer InputPeerClass
	// GeoPoint field of MessagesGetInlineBotResultsRequest.
	//
	// Use SetGeoPoint and GetGeoPoint helpers.
	GeoPoint InputGeoPointClass
	// Query field of MessagesGetInlineBotResultsRequest.
	Query string
	// Offset field of MessagesGetInlineBotResultsRequest.
	Offset string
}

MessagesGetInlineBotResultsRequest represents TL type `messages.getInlineBotResults#514e999d`.

func (*MessagesGetInlineBotResultsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetInlineBotResultsRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesGetInlineBotResultsRequest) GetGeoPoint ¶

func (g *MessagesGetInlineBotResultsRequest) GetGeoPoint() (value InputGeoPointClass, ok bool)

GetGeoPoint returns value of GeoPoint conditional field and boolean which is true if field was set.

func (*MessagesGetInlineBotResultsRequest) SetGeoPoint ¶

SetGeoPoint sets value of GeoPoint conditional field.

type MessagesGetInlineGameHighScoresRequest ¶

type MessagesGetInlineGameHighScoresRequest struct {
	// ID field of MessagesGetInlineGameHighScoresRequest.
	ID InputBotInlineMessageID
	// UserID field of MessagesGetInlineGameHighScoresRequest.
	UserID InputUserClass
}

MessagesGetInlineGameHighScoresRequest represents TL type `messages.getInlineGameHighScores#f635e1b`.

func (*MessagesGetInlineGameHighScoresRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetInlineGameHighScoresRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetMaskStickersRequest ¶

type MessagesGetMaskStickersRequest struct {
	// Hash field of MessagesGetMaskStickersRequest.
	Hash int
}

MessagesGetMaskStickersRequest represents TL type `messages.getMaskStickers#65b8c79f`.

func (*MessagesGetMaskStickersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetMaskStickersRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetMessageEditDataRequest ¶

type MessagesGetMessageEditDataRequest struct {
	// Peer field of MessagesGetMessageEditDataRequest.
	Peer InputPeerClass
	// ID field of MessagesGetMessageEditDataRequest.
	ID int
}

MessagesGetMessageEditDataRequest represents TL type `messages.getMessageEditData#fda68d36`.

func (*MessagesGetMessageEditDataRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetMessageEditDataRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetMessagesRequest ¶

type MessagesGetMessagesRequest struct {
	// ID field of MessagesGetMessagesRequest.
	ID []InputMessageClass
}

MessagesGetMessagesRequest represents TL type `messages.getMessages#63c66506`.

func (*MessagesGetMessagesRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetMessagesRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetMessagesViewsRequest ¶

type MessagesGetMessagesViewsRequest struct {
	// Peer field of MessagesGetMessagesViewsRequest.
	Peer InputPeerClass
	// ID field of MessagesGetMessagesViewsRequest.
	ID []int
	// Increment field of MessagesGetMessagesViewsRequest.
	Increment bool
}

MessagesGetMessagesViewsRequest represents TL type `messages.getMessagesViews#5784d3e1`.

func (*MessagesGetMessagesViewsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetMessagesViewsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetOldFeaturedStickersRequest ¶

type MessagesGetOldFeaturedStickersRequest struct {
	// Offset field of MessagesGetOldFeaturedStickersRequest.
	Offset int
	// Limit field of MessagesGetOldFeaturedStickersRequest.
	Limit int
	// Hash field of MessagesGetOldFeaturedStickersRequest.
	Hash int
}

MessagesGetOldFeaturedStickersRequest represents TL type `messages.getOldFeaturedStickers#5fe7025b`.

func (*MessagesGetOldFeaturedStickersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetOldFeaturedStickersRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetOnlinesRequest ¶

type MessagesGetOnlinesRequest struct {
	// Peer field of MessagesGetOnlinesRequest.
	Peer InputPeerClass
}

MessagesGetOnlinesRequest represents TL type `messages.getOnlines#6e2be050`.

func (*MessagesGetOnlinesRequest) Decode ¶

func (g *MessagesGetOnlinesRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesGetOnlinesRequest) Encode ¶

func (g *MessagesGetOnlinesRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesGetPeerDialogsRequest ¶

type MessagesGetPeerDialogsRequest struct {
	// Peers field of MessagesGetPeerDialogsRequest.
	Peers []InputDialogPeerClass
}

MessagesGetPeerDialogsRequest represents TL type `messages.getPeerDialogs#e470bcfd`.

func (*MessagesGetPeerDialogsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetPeerDialogsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetPeerSettingsRequest ¶

type MessagesGetPeerSettingsRequest struct {
	// Peer field of MessagesGetPeerSettingsRequest.
	Peer InputPeerClass
}

MessagesGetPeerSettingsRequest represents TL type `messages.getPeerSettings#3672e09c`.

func (*MessagesGetPeerSettingsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetPeerSettingsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetPinnedDialogsRequest ¶

type MessagesGetPinnedDialogsRequest struct {
	// FolderID field of MessagesGetPinnedDialogsRequest.
	FolderID int
}

MessagesGetPinnedDialogsRequest represents TL type `messages.getPinnedDialogs#d6b94df2`.

func (*MessagesGetPinnedDialogsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetPinnedDialogsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetPollResultsRequest ¶

type MessagesGetPollResultsRequest struct {
	// Peer field of MessagesGetPollResultsRequest.
	Peer InputPeerClass
	// MsgID field of MessagesGetPollResultsRequest.
	MsgID int
}

MessagesGetPollResultsRequest represents TL type `messages.getPollResults#73bb643b`.

func (*MessagesGetPollResultsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetPollResultsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetPollVotesRequest ¶

type MessagesGetPollVotesRequest struct {
	// Flags field of MessagesGetPollVotesRequest.
	Flags bin.Fields
	// Peer field of MessagesGetPollVotesRequest.
	Peer InputPeerClass
	// ID field of MessagesGetPollVotesRequest.
	ID int
	// Option field of MessagesGetPollVotesRequest.
	//
	// Use SetOption and GetOption helpers.
	Option []byte
	// Offset field of MessagesGetPollVotesRequest.
	//
	// Use SetOffset and GetOffset helpers.
	Offset string
	// Limit field of MessagesGetPollVotesRequest.
	Limit int
}

MessagesGetPollVotesRequest represents TL type `messages.getPollVotes#b86e380e`.

func (*MessagesGetPollVotesRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetPollVotesRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesGetPollVotesRequest) GetOffset ¶

func (g *MessagesGetPollVotesRequest) GetOffset() (value string, ok bool)

GetOffset returns value of Offset conditional field and boolean which is true if field was set.

func (*MessagesGetPollVotesRequest) GetOption ¶

func (g *MessagesGetPollVotesRequest) GetOption() (value []byte, ok bool)

GetOption returns value of Option conditional field and boolean which is true if field was set.

func (*MessagesGetPollVotesRequest) SetOffset ¶

func (g *MessagesGetPollVotesRequest) SetOffset(value string)

SetOffset sets value of Offset conditional field.

func (*MessagesGetPollVotesRequest) SetOption ¶

func (g *MessagesGetPollVotesRequest) SetOption(value []byte)

SetOption sets value of Option conditional field.

type MessagesGetRecentLocationsRequest ¶

type MessagesGetRecentLocationsRequest struct {
	// Peer field of MessagesGetRecentLocationsRequest.
	Peer InputPeerClass
	// Limit field of MessagesGetRecentLocationsRequest.
	Limit int
	// Hash field of MessagesGetRecentLocationsRequest.
	Hash int
}

MessagesGetRecentLocationsRequest represents TL type `messages.getRecentLocations#bbc45b09`.

func (*MessagesGetRecentLocationsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetRecentLocationsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetRecentStickersRequest ¶

type MessagesGetRecentStickersRequest struct {
	// Flags field of MessagesGetRecentStickersRequest.
	Flags bin.Fields
	// Attached field of MessagesGetRecentStickersRequest.
	Attached bool
	// Hash field of MessagesGetRecentStickersRequest.
	Hash int
}

MessagesGetRecentStickersRequest represents TL type `messages.getRecentStickers#5ea192c9`.

func (*MessagesGetRecentStickersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetRecentStickersRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesGetRecentStickersRequest) SetAttached ¶

func (g *MessagesGetRecentStickersRequest) SetAttached(value bool)

SetAttached sets value of Attached conditional field.

type MessagesGetRepliesRequest ¶

type MessagesGetRepliesRequest struct {
	// Peer field of MessagesGetRepliesRequest.
	Peer InputPeerClass
	// MsgID field of MessagesGetRepliesRequest.
	MsgID int
	// OffsetID field of MessagesGetRepliesRequest.
	OffsetID int
	// OffsetDate field of MessagesGetRepliesRequest.
	OffsetDate int
	// AddOffset field of MessagesGetRepliesRequest.
	AddOffset int
	// Limit field of MessagesGetRepliesRequest.
	Limit int
	// MaxID field of MessagesGetRepliesRequest.
	MaxID int
	// MinID field of MessagesGetRepliesRequest.
	MinID int
	// Hash field of MessagesGetRepliesRequest.
	Hash int
}

MessagesGetRepliesRequest represents TL type `messages.getReplies#24b581ba`.

func (*MessagesGetRepliesRequest) Decode ¶

func (g *MessagesGetRepliesRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesGetRepliesRequest) Encode ¶

func (g *MessagesGetRepliesRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesGetSavedGifsRequest ¶

type MessagesGetSavedGifsRequest struct {
	// Hash field of MessagesGetSavedGifsRequest.
	Hash int
}

MessagesGetSavedGifsRequest represents TL type `messages.getSavedGifs#83bf3d52`.

func (*MessagesGetSavedGifsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetSavedGifsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetScheduledHistoryRequest ¶

type MessagesGetScheduledHistoryRequest struct {
	// Peer field of MessagesGetScheduledHistoryRequest.
	Peer InputPeerClass
	// Hash field of MessagesGetScheduledHistoryRequest.
	Hash int
}

MessagesGetScheduledHistoryRequest represents TL type `messages.getScheduledHistory#e2c2685b`.

func (*MessagesGetScheduledHistoryRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetScheduledHistoryRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetScheduledMessagesRequest ¶

type MessagesGetScheduledMessagesRequest struct {
	// Peer field of MessagesGetScheduledMessagesRequest.
	Peer InputPeerClass
	// ID field of MessagesGetScheduledMessagesRequest.
	ID []int
}

MessagesGetScheduledMessagesRequest represents TL type `messages.getScheduledMessages#bdbb0464`.

func (*MessagesGetScheduledMessagesRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetScheduledMessagesRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetSearchCountersRequest ¶

type MessagesGetSearchCountersRequest struct {
	// Peer field of MessagesGetSearchCountersRequest.
	Peer InputPeerClass
	// Filters field of MessagesGetSearchCountersRequest.
	Filters []MessagesFilterClass
}

MessagesGetSearchCountersRequest represents TL type `messages.getSearchCounters#732eef00`.

func (*MessagesGetSearchCountersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetSearchCountersRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetSplitRangesRequest ¶

type MessagesGetSplitRangesRequest struct {
}

MessagesGetSplitRangesRequest represents TL type `messages.getSplitRanges#1cff7e08`.

func (*MessagesGetSplitRangesRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetSplitRangesRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetStatsURLRequest ¶

type MessagesGetStatsURLRequest struct {
	// Flags field of MessagesGetStatsURLRequest.
	Flags bin.Fields
	// Dark field of MessagesGetStatsURLRequest.
	Dark bool
	// Peer field of MessagesGetStatsURLRequest.
	Peer InputPeerClass
	// Params field of MessagesGetStatsURLRequest.
	Params string
}

MessagesGetStatsURLRequest represents TL type `messages.getStatsURL#812c2ae6`.

func (*MessagesGetStatsURLRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetStatsURLRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesGetStatsURLRequest) SetDark ¶

func (g *MessagesGetStatsURLRequest) SetDark(value bool)

SetDark sets value of Dark conditional field.

type MessagesGetStickerSetRequest ¶

type MessagesGetStickerSetRequest struct {
	// Stickerset field of MessagesGetStickerSetRequest.
	Stickerset InputStickerSetClass
}

MessagesGetStickerSetRequest represents TL type `messages.getStickerSet#2619a90e`.

func (*MessagesGetStickerSetRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetStickerSetRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetStickersRequest ¶

type MessagesGetStickersRequest struct {
	// Emoticon field of MessagesGetStickersRequest.
	Emoticon string
	// Hash field of MessagesGetStickersRequest.
	Hash int
}

MessagesGetStickersRequest represents TL type `messages.getStickers#43d4f2c`.

func (*MessagesGetStickersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetStickersRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetSuggestedDialogFiltersRequest ¶

type MessagesGetSuggestedDialogFiltersRequest struct {
}

MessagesGetSuggestedDialogFiltersRequest represents TL type `messages.getSuggestedDialogFilters#a29cd42c`.

func (*MessagesGetSuggestedDialogFiltersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetSuggestedDialogFiltersRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetUnreadMentionsRequest ¶

type MessagesGetUnreadMentionsRequest struct {
	// Peer field of MessagesGetUnreadMentionsRequest.
	Peer InputPeerClass
	// OffsetID field of MessagesGetUnreadMentionsRequest.
	OffsetID int
	// AddOffset field of MessagesGetUnreadMentionsRequest.
	AddOffset int
	// Limit field of MessagesGetUnreadMentionsRequest.
	Limit int
	// MaxID field of MessagesGetUnreadMentionsRequest.
	MaxID int
	// MinID field of MessagesGetUnreadMentionsRequest.
	MinID int
}

MessagesGetUnreadMentionsRequest represents TL type `messages.getUnreadMentions#46578472`.

func (*MessagesGetUnreadMentionsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetUnreadMentionsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesGetWebPagePreviewRequest ¶

type MessagesGetWebPagePreviewRequest struct {
	// Flags field of MessagesGetWebPagePreviewRequest.
	Flags bin.Fields
	// Message field of MessagesGetWebPagePreviewRequest.
	Message string
	// Entities field of MessagesGetWebPagePreviewRequest.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
}

MessagesGetWebPagePreviewRequest represents TL type `messages.getWebPagePreview#8b68b0cc`.

func (*MessagesGetWebPagePreviewRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesGetWebPagePreviewRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesGetWebPagePreviewRequest) GetEntities ¶

func (g *MessagesGetWebPagePreviewRequest) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*MessagesGetWebPagePreviewRequest) SetEntities ¶

func (g *MessagesGetWebPagePreviewRequest) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

type MessagesGetWebPageRequest ¶

type MessagesGetWebPageRequest struct {
	// URL field of MessagesGetWebPageRequest.
	URL string
	// Hash field of MessagesGetWebPageRequest.
	Hash int
}

MessagesGetWebPageRequest represents TL type `messages.getWebPage#32ca8f91`.

func (*MessagesGetWebPageRequest) Decode ¶

func (g *MessagesGetWebPageRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesGetWebPageRequest) Encode ¶

func (g *MessagesGetWebPageRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesHidePeerSettingsBarRequest ¶

type MessagesHidePeerSettingsBarRequest struct {
	// Peer field of MessagesHidePeerSettingsBarRequest.
	Peer InputPeerClass
}

MessagesHidePeerSettingsBarRequest represents TL type `messages.hidePeerSettingsBar#4facb138`.

func (*MessagesHidePeerSettingsBarRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesHidePeerSettingsBarRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesHighScores ¶

type MessagesHighScores struct {
	// Scores field of MessagesHighScores.
	Scores []HighScore
	// Users field of MessagesHighScores.
	Users []UserClass
}

MessagesHighScores represents TL type `messages.highScores#9a3bfd99`.

func (*MessagesHighScores) Decode ¶

func (h *MessagesHighScores) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesHighScores) Encode ¶

func (h *MessagesHighScores) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesImportChatInviteRequest ¶

type MessagesImportChatInviteRequest struct {
	// Hash field of MessagesImportChatInviteRequest.
	Hash string
}

MessagesImportChatInviteRequest represents TL type `messages.importChatInvite#6c50051c`.

func (*MessagesImportChatInviteRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesImportChatInviteRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesInactiveChats ¶

type MessagesInactiveChats struct {
	// Dates field of MessagesInactiveChats.
	Dates []int
	// Chats field of MessagesInactiveChats.
	Chats []ChatClass
	// Users field of MessagesInactiveChats.
	Users []UserClass
}

MessagesInactiveChats represents TL type `messages.inactiveChats#a927fec5`.

func (*MessagesInactiveChats) Decode ¶

func (i *MessagesInactiveChats) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesInactiveChats) Encode ¶

func (i *MessagesInactiveChats) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesInstallStickerSetRequest ¶

type MessagesInstallStickerSetRequest struct {
	// Stickerset field of MessagesInstallStickerSetRequest.
	Stickerset InputStickerSetClass
	// Archived field of MessagesInstallStickerSetRequest.
	Archived bool
}

MessagesInstallStickerSetRequest represents TL type `messages.installStickerSet#c78fe460`.

func (*MessagesInstallStickerSetRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesInstallStickerSetRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesMarkDialogUnreadRequest ¶

type MessagesMarkDialogUnreadRequest struct {
	// Flags field of MessagesMarkDialogUnreadRequest.
	Flags bin.Fields
	// Unread field of MessagesMarkDialogUnreadRequest.
	Unread bool
	// Peer field of MessagesMarkDialogUnreadRequest.
	Peer InputDialogPeerClass
}

MessagesMarkDialogUnreadRequest represents TL type `messages.markDialogUnread#c286d98f`.

func (*MessagesMarkDialogUnreadRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesMarkDialogUnreadRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesMarkDialogUnreadRequest) SetUnread ¶

func (m *MessagesMarkDialogUnreadRequest) SetUnread(value bool)

SetUnread sets value of Unread conditional field.

type MessagesMessageEditData ¶

type MessagesMessageEditData struct {
	// Flags field of MessagesMessageEditData.
	Flags bin.Fields
	// Caption field of MessagesMessageEditData.
	Caption bool
}

MessagesMessageEditData represents TL type `messages.messageEditData#26b5dde6`.

func (*MessagesMessageEditData) Decode ¶

func (m *MessagesMessageEditData) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesMessageEditData) Encode ¶

func (m *MessagesMessageEditData) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesMessageEditData) SetCaption ¶

func (m *MessagesMessageEditData) SetCaption(value bool)

SetCaption sets value of Caption conditional field.

type MessagesMessageViews ¶

type MessagesMessageViews struct {
	// Views field of MessagesMessageViews.
	Views []MessageViews
	// Chats field of MessagesMessageViews.
	Chats []ChatClass
	// Users field of MessagesMessageViews.
	Users []UserClass
}

MessagesMessageViews represents TL type `messages.messageViews#b6c4f543`.

func (*MessagesMessageViews) Decode ¶

func (m *MessagesMessageViews) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesMessageViews) Encode ¶

func (m *MessagesMessageViews) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesMessages ¶

type MessagesMessages struct {
	// Messages field of MessagesMessages.
	Messages []MessageClass
	// Chats field of MessagesMessages.
	Chats []ChatClass
	// Users field of MessagesMessages.
	Users []UserClass
}

MessagesMessages represents TL type `messages.messages#8c718e87`.

func (*MessagesMessages) Decode ¶

func (m *MessagesMessages) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesMessages) Encode ¶

func (m *MessagesMessages) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesMessagesBox ¶

type MessagesMessagesBox struct {
	Messages MessagesMessagesClass
}

MessagesMessages boxes the MessagesMessagesClass providing a helper.

func (*MessagesMessagesBox) Decode ¶

func (b *MessagesMessagesBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessagesMessagesBox.

func (*MessagesMessagesBox) Encode ¶

func (b *MessagesMessagesBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessagesMessagesBox.

type MessagesMessagesClass ¶

type MessagesMessagesClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesMessagesClass represents messages.Messages generic type.

Example:

g, err := DecodeMessagesMessages(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesMessages: // messages.messages#8c718e87
case *MessagesMessagesSlice: // messages.messagesSlice#3a54685e
case *MessagesChannelMessages: // messages.channelMessages#64479808
case *MessagesMessagesNotModified: // messages.messagesNotModified#74535f21
default: panic(v)
}

func DecodeMessagesMessages ¶

func DecodeMessagesMessages(buf *bin.Buffer) (MessagesMessagesClass, error)

DecodeMessagesMessages implements binary de-serialization for MessagesMessagesClass.

type MessagesMessagesNotModified ¶

type MessagesMessagesNotModified struct {
	// Count field of MessagesMessagesNotModified.
	Count int
}

MessagesMessagesNotModified represents TL type `messages.messagesNotModified#74535f21`.

func (*MessagesMessagesNotModified) Decode ¶

Decode implements bin.Decoder.

func (*MessagesMessagesNotModified) Encode ¶

Encode implements bin.Encoder.

type MessagesMessagesSlice ¶

type MessagesMessagesSlice struct {
	// Flags field of MessagesMessagesSlice.
	Flags bin.Fields
	// Inexact field of MessagesMessagesSlice.
	Inexact bool
	// Count field of MessagesMessagesSlice.
	Count int
	// NextRate field of MessagesMessagesSlice.
	//
	// Use SetNextRate and GetNextRate helpers.
	NextRate int
	// OffsetIDOffset field of MessagesMessagesSlice.
	//
	// Use SetOffsetIDOffset and GetOffsetIDOffset helpers.
	OffsetIDOffset int
	// Messages field of MessagesMessagesSlice.
	Messages []MessageClass
	// Chats field of MessagesMessagesSlice.
	Chats []ChatClass
	// Users field of MessagesMessagesSlice.
	Users []UserClass
}

MessagesMessagesSlice represents TL type `messages.messagesSlice#3a54685e`.

func (*MessagesMessagesSlice) Decode ¶

func (m *MessagesMessagesSlice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesMessagesSlice) Encode ¶

func (m *MessagesMessagesSlice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesMessagesSlice) GetNextRate ¶

func (m *MessagesMessagesSlice) GetNextRate() (value int, ok bool)

GetNextRate returns value of NextRate conditional field and boolean which is true if field was set.

func (*MessagesMessagesSlice) GetOffsetIDOffset ¶

func (m *MessagesMessagesSlice) GetOffsetIDOffset() (value int, ok bool)

GetOffsetIDOffset returns value of OffsetIDOffset conditional field and boolean which is true if field was set.

func (*MessagesMessagesSlice) SetInexact ¶

func (m *MessagesMessagesSlice) SetInexact(value bool)

SetInexact sets value of Inexact conditional field.

func (*MessagesMessagesSlice) SetNextRate ¶

func (m *MessagesMessagesSlice) SetNextRate(value int)

SetNextRate sets value of NextRate conditional field.

func (*MessagesMessagesSlice) SetOffsetIDOffset ¶

func (m *MessagesMessagesSlice) SetOffsetIDOffset(value int)

SetOffsetIDOffset sets value of OffsetIDOffset conditional field.

type MessagesMigrateChatRequest ¶

type MessagesMigrateChatRequest struct {
	// ChatID field of MessagesMigrateChatRequest.
	ChatID int
}

MessagesMigrateChatRequest represents TL type `messages.migrateChat#15a3b8e3`.

func (*MessagesMigrateChatRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesMigrateChatRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesPeerDialogs ¶

type MessagesPeerDialogs struct {
	// Dialogs field of MessagesPeerDialogs.
	Dialogs []DialogClass
	// Messages field of MessagesPeerDialogs.
	Messages []MessageClass
	// Chats field of MessagesPeerDialogs.
	Chats []ChatClass
	// Users field of MessagesPeerDialogs.
	Users []UserClass
	// State field of MessagesPeerDialogs.
	State UpdatesState
}

MessagesPeerDialogs represents TL type `messages.peerDialogs#3371c354`.

func (*MessagesPeerDialogs) Decode ¶

func (p *MessagesPeerDialogs) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesPeerDialogs) Encode ¶

func (p *MessagesPeerDialogs) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesReadDiscussionRequest ¶

type MessagesReadDiscussionRequest struct {
	// Peer field of MessagesReadDiscussionRequest.
	Peer InputPeerClass
	// MsgID field of MessagesReadDiscussionRequest.
	MsgID int
	// ReadMaxID field of MessagesReadDiscussionRequest.
	ReadMaxID int
}

MessagesReadDiscussionRequest represents TL type `messages.readDiscussion#f731a9f4`.

func (*MessagesReadDiscussionRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesReadDiscussionRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesReadEncryptedHistoryRequest ¶

type MessagesReadEncryptedHistoryRequest struct {
	// Peer field of MessagesReadEncryptedHistoryRequest.
	Peer InputEncryptedChat
	// MaxDate field of MessagesReadEncryptedHistoryRequest.
	MaxDate int
}

MessagesReadEncryptedHistoryRequest represents TL type `messages.readEncryptedHistory#7f4b690a`.

func (*MessagesReadEncryptedHistoryRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesReadEncryptedHistoryRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesReadFeaturedStickersRequest ¶

type MessagesReadFeaturedStickersRequest struct {
	// ID field of MessagesReadFeaturedStickersRequest.
	ID []int64
}

MessagesReadFeaturedStickersRequest represents TL type `messages.readFeaturedStickers#5b118126`.

func (*MessagesReadFeaturedStickersRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesReadFeaturedStickersRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesReadHistoryRequest ¶

type MessagesReadHistoryRequest struct {
	// Peer field of MessagesReadHistoryRequest.
	Peer InputPeerClass
	// MaxID field of MessagesReadHistoryRequest.
	MaxID int
}

MessagesReadHistoryRequest represents TL type `messages.readHistory#e306d3a`.

func (*MessagesReadHistoryRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesReadHistoryRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesReadMentionsRequest ¶

type MessagesReadMentionsRequest struct {
	// Peer field of MessagesReadMentionsRequest.
	Peer InputPeerClass
}

MessagesReadMentionsRequest represents TL type `messages.readMentions#f0189d3`.

func (*MessagesReadMentionsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesReadMentionsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesReadMessageContentsRequest ¶

type MessagesReadMessageContentsRequest struct {
	// ID field of MessagesReadMessageContentsRequest.
	ID []int
}

MessagesReadMessageContentsRequest represents TL type `messages.readMessageContents#36a73f77`.

func (*MessagesReadMessageContentsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesReadMessageContentsRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesReceivedMessagesRequest ¶

type MessagesReceivedMessagesRequest struct {
	// MaxID field of MessagesReceivedMessagesRequest.
	MaxID int
}

MessagesReceivedMessagesRequest represents TL type `messages.receivedMessages#5a954c0`.

func (*MessagesReceivedMessagesRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesReceivedMessagesRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesReceivedQueueRequest ¶

type MessagesReceivedQueueRequest struct {
	// MaxQts field of MessagesReceivedQueueRequest.
	MaxQts int
}

MessagesReceivedQueueRequest represents TL type `messages.receivedQueue#55a5bb66`.

func (*MessagesReceivedQueueRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesReceivedQueueRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesRecentStickers ¶

type MessagesRecentStickers struct {
	// Hash field of MessagesRecentStickers.
	Hash int
	// Packs field of MessagesRecentStickers.
	Packs []StickerPack
	// Stickers field of MessagesRecentStickers.
	Stickers []DocumentClass
	// Dates field of MessagesRecentStickers.
	Dates []int
}

MessagesRecentStickers represents TL type `messages.recentStickers#22f3afb3`.

func (*MessagesRecentStickers) Decode ¶

func (r *MessagesRecentStickers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesRecentStickers) Encode ¶

func (r *MessagesRecentStickers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesRecentStickersBox ¶

type MessagesRecentStickersBox struct {
	RecentStickers MessagesRecentStickersClass
}

MessagesRecentStickers boxes the MessagesRecentStickersClass providing a helper.

func (*MessagesRecentStickersBox) Decode ¶

func (b *MessagesRecentStickersBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessagesRecentStickersBox.

func (*MessagesRecentStickersBox) Encode ¶

func (b *MessagesRecentStickersBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessagesRecentStickersBox.

type MessagesRecentStickersClass ¶

type MessagesRecentStickersClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesRecentStickersClass represents messages.RecentStickers generic type.

Example:

g, err := DecodeMessagesRecentStickers(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesRecentStickersNotModified: // messages.recentStickersNotModified#b17f890
case *MessagesRecentStickers: // messages.recentStickers#22f3afb3
default: panic(v)
}

func DecodeMessagesRecentStickers ¶

func DecodeMessagesRecentStickers(buf *bin.Buffer) (MessagesRecentStickersClass, error)

DecodeMessagesRecentStickers implements binary de-serialization for MessagesRecentStickersClass.

type MessagesRecentStickersNotModified ¶

type MessagesRecentStickersNotModified struct {
}

MessagesRecentStickersNotModified represents TL type `messages.recentStickersNotModified#b17f890`.

func (*MessagesRecentStickersNotModified) Decode ¶

Decode implements bin.Decoder.

func (*MessagesRecentStickersNotModified) Encode ¶

Encode implements bin.Encoder.

type MessagesReorderPinnedDialogsRequest ¶

type MessagesReorderPinnedDialogsRequest struct {
	// Flags field of MessagesReorderPinnedDialogsRequest.
	Flags bin.Fields
	// Force field of MessagesReorderPinnedDialogsRequest.
	Force bool
	// FolderID field of MessagesReorderPinnedDialogsRequest.
	FolderID int
	// Order field of MessagesReorderPinnedDialogsRequest.
	Order []InputDialogPeerClass
}

MessagesReorderPinnedDialogsRequest represents TL type `messages.reorderPinnedDialogs#3b1adf37`.

func (*MessagesReorderPinnedDialogsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesReorderPinnedDialogsRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesReorderPinnedDialogsRequest) SetForce ¶

func (r *MessagesReorderPinnedDialogsRequest) SetForce(value bool)

SetForce sets value of Force conditional field.

type MessagesReorderStickerSetsRequest ¶

type MessagesReorderStickerSetsRequest struct {
	// Flags field of MessagesReorderStickerSetsRequest.
	Flags bin.Fields
	// Masks field of MessagesReorderStickerSetsRequest.
	Masks bool
	// Order field of MessagesReorderStickerSetsRequest.
	Order []int64
}

MessagesReorderStickerSetsRequest represents TL type `messages.reorderStickerSets#78337739`.

func (*MessagesReorderStickerSetsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesReorderStickerSetsRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesReorderStickerSetsRequest) SetMasks ¶

func (r *MessagesReorderStickerSetsRequest) SetMasks(value bool)

SetMasks sets value of Masks conditional field.

type MessagesReportEncryptedSpamRequest ¶

type MessagesReportEncryptedSpamRequest struct {
	// Peer field of MessagesReportEncryptedSpamRequest.
	Peer InputEncryptedChat
}

MessagesReportEncryptedSpamRequest represents TL type `messages.reportEncryptedSpam#4b0c8c0f`.

func (*MessagesReportEncryptedSpamRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesReportEncryptedSpamRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesReportRequest ¶

type MessagesReportRequest struct {
	// Peer field of MessagesReportRequest.
	Peer InputPeerClass
	// ID field of MessagesReportRequest.
	ID []int
	// Reason field of MessagesReportRequest.
	Reason ReportReasonClass
}

MessagesReportRequest represents TL type `messages.report#bd82b658`.

func (*MessagesReportRequest) Decode ¶

func (r *MessagesReportRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesReportRequest) Encode ¶

func (r *MessagesReportRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesReportSpamRequest ¶

type MessagesReportSpamRequest struct {
	// Peer field of MessagesReportSpamRequest.
	Peer InputPeerClass
}

MessagesReportSpamRequest represents TL type `messages.reportSpam#cf1592db`.

func (*MessagesReportSpamRequest) Decode ¶

func (r *MessagesReportSpamRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesReportSpamRequest) Encode ¶

func (r *MessagesReportSpamRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesRequestEncryptionRequest ¶

type MessagesRequestEncryptionRequest struct {
	// UserID field of MessagesRequestEncryptionRequest.
	UserID InputUserClass
	// RandomID field of MessagesRequestEncryptionRequest.
	RandomID int
	// GA field of MessagesRequestEncryptionRequest.
	GA []byte
}

MessagesRequestEncryptionRequest represents TL type `messages.requestEncryption#f64daf43`.

func (*MessagesRequestEncryptionRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesRequestEncryptionRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesRequestUrlAuthRequest ¶

type MessagesRequestUrlAuthRequest struct {
	// Peer field of MessagesRequestUrlAuthRequest.
	Peer InputPeerClass
	// MsgID field of MessagesRequestUrlAuthRequest.
	MsgID int
	// ButtonID field of MessagesRequestUrlAuthRequest.
	ButtonID int
}

MessagesRequestUrlAuthRequest represents TL type `messages.requestUrlAuth#e33f5613`.

func (*MessagesRequestUrlAuthRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesRequestUrlAuthRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesSaveDraftRequest ¶

type MessagesSaveDraftRequest struct {
	// Flags field of MessagesSaveDraftRequest.
	Flags bin.Fields
	// NoWebpage field of MessagesSaveDraftRequest.
	NoWebpage bool
	// ReplyToMsgID field of MessagesSaveDraftRequest.
	//
	// Use SetReplyToMsgID and GetReplyToMsgID helpers.
	ReplyToMsgID int
	// Peer field of MessagesSaveDraftRequest.
	Peer InputPeerClass
	// Message field of MessagesSaveDraftRequest.
	Message string
	// Entities field of MessagesSaveDraftRequest.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
}

MessagesSaveDraftRequest represents TL type `messages.saveDraft#bc39e14b`.

func (*MessagesSaveDraftRequest) Decode ¶

func (s *MessagesSaveDraftRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesSaveDraftRequest) Encode ¶

func (s *MessagesSaveDraftRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesSaveDraftRequest) GetEntities ¶

func (s *MessagesSaveDraftRequest) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*MessagesSaveDraftRequest) GetReplyToMsgID ¶

func (s *MessagesSaveDraftRequest) GetReplyToMsgID() (value int, ok bool)

GetReplyToMsgID returns value of ReplyToMsgID conditional field and boolean which is true if field was set.

func (*MessagesSaveDraftRequest) SetEntities ¶

func (s *MessagesSaveDraftRequest) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*MessagesSaveDraftRequest) SetNoWebpage ¶

func (s *MessagesSaveDraftRequest) SetNoWebpage(value bool)

SetNoWebpage sets value of NoWebpage conditional field.

func (*MessagesSaveDraftRequest) SetReplyToMsgID ¶

func (s *MessagesSaveDraftRequest) SetReplyToMsgID(value int)

SetReplyToMsgID sets value of ReplyToMsgID conditional field.

type MessagesSaveGifRequest ¶

type MessagesSaveGifRequest struct {
	// ID field of MessagesSaveGifRequest.
	ID InputDocumentClass
	// Unsave field of MessagesSaveGifRequest.
	Unsave bool
}

MessagesSaveGifRequest represents TL type `messages.saveGif#327a30cb`.

func (*MessagesSaveGifRequest) Decode ¶

func (s *MessagesSaveGifRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesSaveGifRequest) Encode ¶

func (s *MessagesSaveGifRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesSaveRecentStickerRequest ¶

type MessagesSaveRecentStickerRequest struct {
	// Flags field of MessagesSaveRecentStickerRequest.
	Flags bin.Fields
	// Attached field of MessagesSaveRecentStickerRequest.
	Attached bool
	// ID field of MessagesSaveRecentStickerRequest.
	ID InputDocumentClass
	// Unsave field of MessagesSaveRecentStickerRequest.
	Unsave bool
}

MessagesSaveRecentStickerRequest represents TL type `messages.saveRecentSticker#392718f8`.

func (*MessagesSaveRecentStickerRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSaveRecentStickerRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSaveRecentStickerRequest) SetAttached ¶

func (s *MessagesSaveRecentStickerRequest) SetAttached(value bool)

SetAttached sets value of Attached conditional field.

type MessagesSavedGifs ¶

type MessagesSavedGifs struct {
	// Hash field of MessagesSavedGifs.
	Hash int
	// Gifs field of MessagesSavedGifs.
	Gifs []DocumentClass
}

MessagesSavedGifs represents TL type `messages.savedGifs#2e0709a5`.

func (*MessagesSavedGifs) Decode ¶

func (s *MessagesSavedGifs) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesSavedGifs) Encode ¶

func (s *MessagesSavedGifs) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesSavedGifsBox ¶

type MessagesSavedGifsBox struct {
	SavedGifs MessagesSavedGifsClass
}

MessagesSavedGifs boxes the MessagesSavedGifsClass providing a helper.

func (*MessagesSavedGifsBox) Decode ¶

func (b *MessagesSavedGifsBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessagesSavedGifsBox.

func (*MessagesSavedGifsBox) Encode ¶

func (b *MessagesSavedGifsBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessagesSavedGifsBox.

type MessagesSavedGifsClass ¶

type MessagesSavedGifsClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesSavedGifsClass represents messages.SavedGifs generic type.

Example:

g, err := DecodeMessagesSavedGifs(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesSavedGifsNotModified: // messages.savedGifsNotModified#e8025ca2
case *MessagesSavedGifs: // messages.savedGifs#2e0709a5
default: panic(v)
}

func DecodeMessagesSavedGifs ¶

func DecodeMessagesSavedGifs(buf *bin.Buffer) (MessagesSavedGifsClass, error)

DecodeMessagesSavedGifs implements binary de-serialization for MessagesSavedGifsClass.

type MessagesSavedGifsNotModified ¶

type MessagesSavedGifsNotModified struct {
}

MessagesSavedGifsNotModified represents TL type `messages.savedGifsNotModified#e8025ca2`.

func (*MessagesSavedGifsNotModified) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSavedGifsNotModified) Encode ¶

Encode implements bin.Encoder.

type MessagesSearchCounter ¶

type MessagesSearchCounter struct {
	// Flags field of MessagesSearchCounter.
	Flags bin.Fields
	// Inexact field of MessagesSearchCounter.
	Inexact bool
	// Filter field of MessagesSearchCounter.
	Filter MessagesFilterClass
	// Count field of MessagesSearchCounter.
	Count int
}

MessagesSearchCounter represents TL type `messages.searchCounter#e844ebff`.

func (*MessagesSearchCounter) Decode ¶

func (s *MessagesSearchCounter) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesSearchCounter) Encode ¶

func (s *MessagesSearchCounter) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesSearchCounter) SetInexact ¶

func (s *MessagesSearchCounter) SetInexact(value bool)

SetInexact sets value of Inexact conditional field.

type MessagesSearchGlobalRequest ¶

type MessagesSearchGlobalRequest struct {
	// Flags field of MessagesSearchGlobalRequest.
	Flags bin.Fields
	// FolderID field of MessagesSearchGlobalRequest.
	//
	// Use SetFolderID and GetFolderID helpers.
	FolderID int
	// Q field of MessagesSearchGlobalRequest.
	Q string
	// Filter field of MessagesSearchGlobalRequest.
	Filter MessagesFilterClass
	// MinDate field of MessagesSearchGlobalRequest.
	MinDate int
	// MaxDate field of MessagesSearchGlobalRequest.
	MaxDate int
	// OffsetRate field of MessagesSearchGlobalRequest.
	OffsetRate int
	// OffsetPeer field of MessagesSearchGlobalRequest.
	OffsetPeer InputPeerClass
	// OffsetID field of MessagesSearchGlobalRequest.
	OffsetID int
	// Limit field of MessagesSearchGlobalRequest.
	Limit int
}

MessagesSearchGlobalRequest represents TL type `messages.searchGlobal#4bc6589a`.

func (*MessagesSearchGlobalRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSearchGlobalRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSearchGlobalRequest) GetFolderID ¶

func (s *MessagesSearchGlobalRequest) GetFolderID() (value int, ok bool)

GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.

func (*MessagesSearchGlobalRequest) SetFolderID ¶

func (s *MessagesSearchGlobalRequest) SetFolderID(value int)

SetFolderID sets value of FolderID conditional field.

type MessagesSearchRequest ¶

type MessagesSearchRequest struct {
	// Flags field of MessagesSearchRequest.
	Flags bin.Fields
	// Peer field of MessagesSearchRequest.
	Peer InputPeerClass
	// Q field of MessagesSearchRequest.
	Q string
	// FromID field of MessagesSearchRequest.
	//
	// Use SetFromID and GetFromID helpers.
	FromID InputPeerClass
	// TopMsgID field of MessagesSearchRequest.
	//
	// Use SetTopMsgID and GetTopMsgID helpers.
	TopMsgID int
	// Filter field of MessagesSearchRequest.
	Filter MessagesFilterClass
	// MinDate field of MessagesSearchRequest.
	MinDate int
	// MaxDate field of MessagesSearchRequest.
	MaxDate int
	// OffsetID field of MessagesSearchRequest.
	OffsetID int
	// AddOffset field of MessagesSearchRequest.
	AddOffset int
	// Limit field of MessagesSearchRequest.
	Limit int
	// MaxID field of MessagesSearchRequest.
	MaxID int
	// MinID field of MessagesSearchRequest.
	MinID int
	// Hash field of MessagesSearchRequest.
	Hash int
}

MessagesSearchRequest represents TL type `messages.search#c352eec`.

func (*MessagesSearchRequest) Decode ¶

func (s *MessagesSearchRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesSearchRequest) Encode ¶

func (s *MessagesSearchRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesSearchRequest) GetFromID ¶

func (s *MessagesSearchRequest) GetFromID() (value InputPeerClass, ok bool)

GetFromID returns value of FromID conditional field and boolean which is true if field was set.

func (*MessagesSearchRequest) GetTopMsgID ¶

func (s *MessagesSearchRequest) GetTopMsgID() (value int, ok bool)

GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set.

func (*MessagesSearchRequest) SetFromID ¶

func (s *MessagesSearchRequest) SetFromID(value InputPeerClass)

SetFromID sets value of FromID conditional field.

func (*MessagesSearchRequest) SetTopMsgID ¶

func (s *MessagesSearchRequest) SetTopMsgID(value int)

SetTopMsgID sets value of TopMsgID conditional field.

type MessagesSearchStickerSetsRequest ¶

type MessagesSearchStickerSetsRequest struct {
	// Flags field of MessagesSearchStickerSetsRequest.
	Flags bin.Fields
	// ExcludeFeatured field of MessagesSearchStickerSetsRequest.
	ExcludeFeatured bool
	// Q field of MessagesSearchStickerSetsRequest.
	Q string
	// Hash field of MessagesSearchStickerSetsRequest.
	Hash int
}

MessagesSearchStickerSetsRequest represents TL type `messages.searchStickerSets#c2b7d08b`.

func (*MessagesSearchStickerSetsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSearchStickerSetsRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSearchStickerSetsRequest) SetExcludeFeatured ¶

func (s *MessagesSearchStickerSetsRequest) SetExcludeFeatured(value bool)

SetExcludeFeatured sets value of ExcludeFeatured conditional field.

type MessagesSendEncryptedFileRequest ¶

type MessagesSendEncryptedFileRequest struct {
	// Flags field of MessagesSendEncryptedFileRequest.
	Flags bin.Fields
	// Silent field of MessagesSendEncryptedFileRequest.
	Silent bool
	// Peer field of MessagesSendEncryptedFileRequest.
	Peer InputEncryptedChat
	// RandomID field of MessagesSendEncryptedFileRequest.
	RandomID int64
	// Data field of MessagesSendEncryptedFileRequest.
	Data []byte
	// File field of MessagesSendEncryptedFileRequest.
	File InputEncryptedFileClass
}

MessagesSendEncryptedFileRequest represents TL type `messages.sendEncryptedFile#5559481d`.

func (*MessagesSendEncryptedFileRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSendEncryptedFileRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSendEncryptedFileRequest) SetSilent ¶

func (s *MessagesSendEncryptedFileRequest) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

type MessagesSendEncryptedRequest ¶

type MessagesSendEncryptedRequest struct {
	// Flags field of MessagesSendEncryptedRequest.
	Flags bin.Fields
	// Silent field of MessagesSendEncryptedRequest.
	Silent bool
	// Peer field of MessagesSendEncryptedRequest.
	Peer InputEncryptedChat
	// RandomID field of MessagesSendEncryptedRequest.
	RandomID int64
	// Data field of MessagesSendEncryptedRequest.
	Data []byte
}

MessagesSendEncryptedRequest represents TL type `messages.sendEncrypted#44fa7a15`.

func (*MessagesSendEncryptedRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSendEncryptedRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSendEncryptedRequest) SetSilent ¶

func (s *MessagesSendEncryptedRequest) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

type MessagesSendEncryptedServiceRequest ¶

type MessagesSendEncryptedServiceRequest struct {
	// Peer field of MessagesSendEncryptedServiceRequest.
	Peer InputEncryptedChat
	// RandomID field of MessagesSendEncryptedServiceRequest.
	RandomID int64
	// Data field of MessagesSendEncryptedServiceRequest.
	Data []byte
}

MessagesSendEncryptedServiceRequest represents TL type `messages.sendEncryptedService#32d439a4`.

func (*MessagesSendEncryptedServiceRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSendEncryptedServiceRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesSendInlineBotResultRequest ¶

type MessagesSendInlineBotResultRequest struct {
	// Flags field of MessagesSendInlineBotResultRequest.
	Flags bin.Fields
	// Silent field of MessagesSendInlineBotResultRequest.
	Silent bool
	// Background field of MessagesSendInlineBotResultRequest.
	Background bool
	// ClearDraft field of MessagesSendInlineBotResultRequest.
	ClearDraft bool
	// HideVia field of MessagesSendInlineBotResultRequest.
	HideVia bool
	// Peer field of MessagesSendInlineBotResultRequest.
	Peer InputPeerClass
	// ReplyToMsgID field of MessagesSendInlineBotResultRequest.
	//
	// Use SetReplyToMsgID and GetReplyToMsgID helpers.
	ReplyToMsgID int
	// RandomID field of MessagesSendInlineBotResultRequest.
	RandomID int64
	// QueryID field of MessagesSendInlineBotResultRequest.
	QueryID int64
	// ID field of MessagesSendInlineBotResultRequest.
	ID string
	// ScheduleDate field of MessagesSendInlineBotResultRequest.
	//
	// Use SetScheduleDate and GetScheduleDate helpers.
	ScheduleDate int
}

MessagesSendInlineBotResultRequest represents TL type `messages.sendInlineBotResult#220815b0`.

func (*MessagesSendInlineBotResultRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSendInlineBotResultRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSendInlineBotResultRequest) GetReplyToMsgID ¶

func (s *MessagesSendInlineBotResultRequest) GetReplyToMsgID() (value int, ok bool)

GetReplyToMsgID returns value of ReplyToMsgID conditional field and boolean which is true if field was set.

func (*MessagesSendInlineBotResultRequest) GetScheduleDate ¶

func (s *MessagesSendInlineBotResultRequest) GetScheduleDate() (value int, ok bool)

GetScheduleDate returns value of ScheduleDate conditional field and boolean which is true if field was set.

func (*MessagesSendInlineBotResultRequest) SetBackground ¶

func (s *MessagesSendInlineBotResultRequest) SetBackground(value bool)

SetBackground sets value of Background conditional field.

func (*MessagesSendInlineBotResultRequest) SetClearDraft ¶

func (s *MessagesSendInlineBotResultRequest) SetClearDraft(value bool)

SetClearDraft sets value of ClearDraft conditional field.

func (*MessagesSendInlineBotResultRequest) SetHideVia ¶

func (s *MessagesSendInlineBotResultRequest) SetHideVia(value bool)

SetHideVia sets value of HideVia conditional field.

func (*MessagesSendInlineBotResultRequest) SetReplyToMsgID ¶

func (s *MessagesSendInlineBotResultRequest) SetReplyToMsgID(value int)

SetReplyToMsgID sets value of ReplyToMsgID conditional field.

func (*MessagesSendInlineBotResultRequest) SetScheduleDate ¶

func (s *MessagesSendInlineBotResultRequest) SetScheduleDate(value int)

SetScheduleDate sets value of ScheduleDate conditional field.

func (*MessagesSendInlineBotResultRequest) SetSilent ¶

func (s *MessagesSendInlineBotResultRequest) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

type MessagesSendMediaRequest ¶

type MessagesSendMediaRequest struct {
	// Flags field of MessagesSendMediaRequest.
	Flags bin.Fields
	// Silent field of MessagesSendMediaRequest.
	Silent bool
	// Background field of MessagesSendMediaRequest.
	Background bool
	// ClearDraft field of MessagesSendMediaRequest.
	ClearDraft bool
	// Peer field of MessagesSendMediaRequest.
	Peer InputPeerClass
	// ReplyToMsgID field of MessagesSendMediaRequest.
	//
	// Use SetReplyToMsgID and GetReplyToMsgID helpers.
	ReplyToMsgID int
	// Media field of MessagesSendMediaRequest.
	Media InputMediaClass
	// Message field of MessagesSendMediaRequest.
	Message string
	// RandomID field of MessagesSendMediaRequest.
	RandomID int64
	// ReplyMarkup field of MessagesSendMediaRequest.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
	// Entities field of MessagesSendMediaRequest.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
	// ScheduleDate field of MessagesSendMediaRequest.
	//
	// Use SetScheduleDate and GetScheduleDate helpers.
	ScheduleDate int
}

MessagesSendMediaRequest represents TL type `messages.sendMedia#3491eba9`.

func (*MessagesSendMediaRequest) Decode ¶

func (s *MessagesSendMediaRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesSendMediaRequest) Encode ¶

func (s *MessagesSendMediaRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesSendMediaRequest) GetEntities ¶

func (s *MessagesSendMediaRequest) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*MessagesSendMediaRequest) GetReplyMarkup ¶

func (s *MessagesSendMediaRequest) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*MessagesSendMediaRequest) GetReplyToMsgID ¶

func (s *MessagesSendMediaRequest) GetReplyToMsgID() (value int, ok bool)

GetReplyToMsgID returns value of ReplyToMsgID conditional field and boolean which is true if field was set.

func (*MessagesSendMediaRequest) GetScheduleDate ¶

func (s *MessagesSendMediaRequest) GetScheduleDate() (value int, ok bool)

GetScheduleDate returns value of ScheduleDate conditional field and boolean which is true if field was set.

func (*MessagesSendMediaRequest) SetBackground ¶

func (s *MessagesSendMediaRequest) SetBackground(value bool)

SetBackground sets value of Background conditional field.

func (*MessagesSendMediaRequest) SetClearDraft ¶

func (s *MessagesSendMediaRequest) SetClearDraft(value bool)

SetClearDraft sets value of ClearDraft conditional field.

func (*MessagesSendMediaRequest) SetEntities ¶

func (s *MessagesSendMediaRequest) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*MessagesSendMediaRequest) SetReplyMarkup ¶

func (s *MessagesSendMediaRequest) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

func (*MessagesSendMediaRequest) SetReplyToMsgID ¶

func (s *MessagesSendMediaRequest) SetReplyToMsgID(value int)

SetReplyToMsgID sets value of ReplyToMsgID conditional field.

func (*MessagesSendMediaRequest) SetScheduleDate ¶

func (s *MessagesSendMediaRequest) SetScheduleDate(value int)

SetScheduleDate sets value of ScheduleDate conditional field.

func (*MessagesSendMediaRequest) SetSilent ¶

func (s *MessagesSendMediaRequest) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

type MessagesSendMessageRequest ¶

type MessagesSendMessageRequest struct {
	// Flags field of MessagesSendMessageRequest.
	Flags bin.Fields
	// NoWebpage field of MessagesSendMessageRequest.
	NoWebpage bool
	// Silent field of MessagesSendMessageRequest.
	Silent bool
	// Background field of MessagesSendMessageRequest.
	Background bool
	// ClearDraft field of MessagesSendMessageRequest.
	ClearDraft bool
	// Peer field of MessagesSendMessageRequest.
	Peer InputPeerClass
	// ReplyToMsgID field of MessagesSendMessageRequest.
	//
	// Use SetReplyToMsgID and GetReplyToMsgID helpers.
	ReplyToMsgID int
	// Message field of MessagesSendMessageRequest.
	Message string
	// RandomID field of MessagesSendMessageRequest.
	RandomID int64
	// ReplyMarkup field of MessagesSendMessageRequest.
	//
	// Use SetReplyMarkup and GetReplyMarkup helpers.
	ReplyMarkup ReplyMarkupClass
	// Entities field of MessagesSendMessageRequest.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
	// ScheduleDate field of MessagesSendMessageRequest.
	//
	// Use SetScheduleDate and GetScheduleDate helpers.
	ScheduleDate int
}

MessagesSendMessageRequest represents TL type `messages.sendMessage#520c3870`.

func (*MessagesSendMessageRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSendMessageRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSendMessageRequest) GetEntities ¶

func (s *MessagesSendMessageRequest) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*MessagesSendMessageRequest) GetReplyMarkup ¶

func (s *MessagesSendMessageRequest) GetReplyMarkup() (value ReplyMarkupClass, ok bool)

GetReplyMarkup returns value of ReplyMarkup conditional field and boolean which is true if field was set.

func (*MessagesSendMessageRequest) GetReplyToMsgID ¶

func (s *MessagesSendMessageRequest) GetReplyToMsgID() (value int, ok bool)

GetReplyToMsgID returns value of ReplyToMsgID conditional field and boolean which is true if field was set.

func (*MessagesSendMessageRequest) GetScheduleDate ¶

func (s *MessagesSendMessageRequest) GetScheduleDate() (value int, ok bool)

GetScheduleDate returns value of ScheduleDate conditional field and boolean which is true if field was set.

func (*MessagesSendMessageRequest) SetBackground ¶

func (s *MessagesSendMessageRequest) SetBackground(value bool)

SetBackground sets value of Background conditional field.

func (*MessagesSendMessageRequest) SetClearDraft ¶

func (s *MessagesSendMessageRequest) SetClearDraft(value bool)

SetClearDraft sets value of ClearDraft conditional field.

func (*MessagesSendMessageRequest) SetEntities ¶

func (s *MessagesSendMessageRequest) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*MessagesSendMessageRequest) SetNoWebpage ¶

func (s *MessagesSendMessageRequest) SetNoWebpage(value bool)

SetNoWebpage sets value of NoWebpage conditional field.

func (*MessagesSendMessageRequest) SetReplyMarkup ¶

func (s *MessagesSendMessageRequest) SetReplyMarkup(value ReplyMarkupClass)

SetReplyMarkup sets value of ReplyMarkup conditional field.

func (*MessagesSendMessageRequest) SetReplyToMsgID ¶

func (s *MessagesSendMessageRequest) SetReplyToMsgID(value int)

SetReplyToMsgID sets value of ReplyToMsgID conditional field.

func (*MessagesSendMessageRequest) SetScheduleDate ¶

func (s *MessagesSendMessageRequest) SetScheduleDate(value int)

SetScheduleDate sets value of ScheduleDate conditional field.

func (*MessagesSendMessageRequest) SetSilent ¶

func (s *MessagesSendMessageRequest) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

type MessagesSendMultiMediaRequest ¶

type MessagesSendMultiMediaRequest struct {
	// Flags field of MessagesSendMultiMediaRequest.
	Flags bin.Fields
	// Silent field of MessagesSendMultiMediaRequest.
	Silent bool
	// Background field of MessagesSendMultiMediaRequest.
	Background bool
	// ClearDraft field of MessagesSendMultiMediaRequest.
	ClearDraft bool
	// Peer field of MessagesSendMultiMediaRequest.
	Peer InputPeerClass
	// ReplyToMsgID field of MessagesSendMultiMediaRequest.
	//
	// Use SetReplyToMsgID and GetReplyToMsgID helpers.
	ReplyToMsgID int
	// MultiMedia field of MessagesSendMultiMediaRequest.
	MultiMedia []InputSingleMedia
	// ScheduleDate field of MessagesSendMultiMediaRequest.
	//
	// Use SetScheduleDate and GetScheduleDate helpers.
	ScheduleDate int
}

MessagesSendMultiMediaRequest represents TL type `messages.sendMultiMedia#cc0110cb`.

func (*MessagesSendMultiMediaRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSendMultiMediaRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSendMultiMediaRequest) GetReplyToMsgID ¶

func (s *MessagesSendMultiMediaRequest) GetReplyToMsgID() (value int, ok bool)

GetReplyToMsgID returns value of ReplyToMsgID conditional field and boolean which is true if field was set.

func (*MessagesSendMultiMediaRequest) GetScheduleDate ¶

func (s *MessagesSendMultiMediaRequest) GetScheduleDate() (value int, ok bool)

GetScheduleDate returns value of ScheduleDate conditional field and boolean which is true if field was set.

func (*MessagesSendMultiMediaRequest) SetBackground ¶

func (s *MessagesSendMultiMediaRequest) SetBackground(value bool)

SetBackground sets value of Background conditional field.

func (*MessagesSendMultiMediaRequest) SetClearDraft ¶

func (s *MessagesSendMultiMediaRequest) SetClearDraft(value bool)

SetClearDraft sets value of ClearDraft conditional field.

func (*MessagesSendMultiMediaRequest) SetReplyToMsgID ¶

func (s *MessagesSendMultiMediaRequest) SetReplyToMsgID(value int)

SetReplyToMsgID sets value of ReplyToMsgID conditional field.

func (*MessagesSendMultiMediaRequest) SetScheduleDate ¶

func (s *MessagesSendMultiMediaRequest) SetScheduleDate(value int)

SetScheduleDate sets value of ScheduleDate conditional field.

func (*MessagesSendMultiMediaRequest) SetSilent ¶

func (s *MessagesSendMultiMediaRequest) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

type MessagesSendScheduledMessagesRequest ¶

type MessagesSendScheduledMessagesRequest struct {
	// Peer field of MessagesSendScheduledMessagesRequest.
	Peer InputPeerClass
	// ID field of MessagesSendScheduledMessagesRequest.
	ID []int
}

MessagesSendScheduledMessagesRequest represents TL type `messages.sendScheduledMessages#bd38850a`.

func (*MessagesSendScheduledMessagesRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSendScheduledMessagesRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesSendScreenshotNotificationRequest ¶

type MessagesSendScreenshotNotificationRequest struct {
	// Peer field of MessagesSendScreenshotNotificationRequest.
	Peer InputPeerClass
	// ReplyToMsgID field of MessagesSendScreenshotNotificationRequest.
	ReplyToMsgID int
	// RandomID field of MessagesSendScreenshotNotificationRequest.
	RandomID int64
}

MessagesSendScreenshotNotificationRequest represents TL type `messages.sendScreenshotNotification#c97df020`.

func (*MessagesSendScreenshotNotificationRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSendScreenshotNotificationRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesSendVoteRequest ¶

type MessagesSendVoteRequest struct {
	// Peer field of MessagesSendVoteRequest.
	Peer InputPeerClass
	// MsgID field of MessagesSendVoteRequest.
	MsgID int
	// Options field of MessagesSendVoteRequest.
	Options [][]byte
}

MessagesSendVoteRequest represents TL type `messages.sendVote#10ea6184`.

func (*MessagesSendVoteRequest) Decode ¶

func (s *MessagesSendVoteRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesSendVoteRequest) Encode ¶

func (s *MessagesSendVoteRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesSentEncryptedFile ¶

type MessagesSentEncryptedFile struct {
	// Date field of MessagesSentEncryptedFile.
	Date int
	// File field of MessagesSentEncryptedFile.
	File EncryptedFileClass
}

MessagesSentEncryptedFile represents TL type `messages.sentEncryptedFile#9493ff32`.

func (*MessagesSentEncryptedFile) Decode ¶

func (s *MessagesSentEncryptedFile) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesSentEncryptedFile) Encode ¶

func (s *MessagesSentEncryptedFile) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesSentEncryptedMessage ¶

type MessagesSentEncryptedMessage struct {
	// Date field of MessagesSentEncryptedMessage.
	Date int
}

MessagesSentEncryptedMessage represents TL type `messages.sentEncryptedMessage#560f8935`.

func (*MessagesSentEncryptedMessage) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSentEncryptedMessage) Encode ¶

Encode implements bin.Encoder.

type MessagesSentEncryptedMessageBox ¶

type MessagesSentEncryptedMessageBox struct {
	SentEncryptedMessage MessagesSentEncryptedMessageClass
}

MessagesSentEncryptedMessage boxes the MessagesSentEncryptedMessageClass providing a helper.

func (*MessagesSentEncryptedMessageBox) Decode ¶

Decode implements bin.Decoder for MessagesSentEncryptedMessageBox.

func (*MessagesSentEncryptedMessageBox) Encode ¶

Encode implements bin.Encode for MessagesSentEncryptedMessageBox.

type MessagesSentEncryptedMessageClass ¶

type MessagesSentEncryptedMessageClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesSentEncryptedMessageClass represents messages.SentEncryptedMessage generic type.

Example:

g, err := DecodeMessagesSentEncryptedMessage(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesSentEncryptedMessage: // messages.sentEncryptedMessage#560f8935
case *MessagesSentEncryptedFile: // messages.sentEncryptedFile#9493ff32
default: panic(v)
}

func DecodeMessagesSentEncryptedMessage ¶

func DecodeMessagesSentEncryptedMessage(buf *bin.Buffer) (MessagesSentEncryptedMessageClass, error)

DecodeMessagesSentEncryptedMessage implements binary de-serialization for MessagesSentEncryptedMessageClass.

type MessagesSetBotCallbackAnswerRequest ¶

type MessagesSetBotCallbackAnswerRequest struct {
	// Flags field of MessagesSetBotCallbackAnswerRequest.
	Flags bin.Fields
	// Alert field of MessagesSetBotCallbackAnswerRequest.
	Alert bool
	// QueryID field of MessagesSetBotCallbackAnswerRequest.
	QueryID int64
	// Message field of MessagesSetBotCallbackAnswerRequest.
	//
	// Use SetMessage and GetMessage helpers.
	Message string
	// URL field of MessagesSetBotCallbackAnswerRequest.
	//
	// Use SetURL and GetURL helpers.
	URL string
	// CacheTime field of MessagesSetBotCallbackAnswerRequest.
	CacheTime int
}

MessagesSetBotCallbackAnswerRequest represents TL type `messages.setBotCallbackAnswer#d58f130a`.

func (*MessagesSetBotCallbackAnswerRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSetBotCallbackAnswerRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSetBotCallbackAnswerRequest) GetMessage ¶

func (s *MessagesSetBotCallbackAnswerRequest) GetMessage() (value string, ok bool)

GetMessage returns value of Message conditional field and boolean which is true if field was set.

func (*MessagesSetBotCallbackAnswerRequest) GetURL ¶

func (s *MessagesSetBotCallbackAnswerRequest) GetURL() (value string, ok bool)

GetURL returns value of URL conditional field and boolean which is true if field was set.

func (*MessagesSetBotCallbackAnswerRequest) SetAlert ¶

func (s *MessagesSetBotCallbackAnswerRequest) SetAlert(value bool)

SetAlert sets value of Alert conditional field.

func (*MessagesSetBotCallbackAnswerRequest) SetMessage ¶

func (s *MessagesSetBotCallbackAnswerRequest) SetMessage(value string)

SetMessage sets value of Message conditional field.

func (*MessagesSetBotCallbackAnswerRequest) SetURL ¶

SetURL sets value of URL conditional field.

type MessagesSetBotPrecheckoutResultsRequest ¶

type MessagesSetBotPrecheckoutResultsRequest struct {
	// Flags field of MessagesSetBotPrecheckoutResultsRequest.
	Flags bin.Fields
	// Success field of MessagesSetBotPrecheckoutResultsRequest.
	Success bool
	// QueryID field of MessagesSetBotPrecheckoutResultsRequest.
	QueryID int64
	// Error field of MessagesSetBotPrecheckoutResultsRequest.
	//
	// Use SetError and GetError helpers.
	Error string
}

MessagesSetBotPrecheckoutResultsRequest represents TL type `messages.setBotPrecheckoutResults#9c2dd95`.

func (*MessagesSetBotPrecheckoutResultsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSetBotPrecheckoutResultsRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSetBotPrecheckoutResultsRequest) GetError ¶

func (s *MessagesSetBotPrecheckoutResultsRequest) GetError() (value string, ok bool)

GetError returns value of Error conditional field and boolean which is true if field was set.

func (*MessagesSetBotPrecheckoutResultsRequest) SetError ¶

SetError sets value of Error conditional field.

func (*MessagesSetBotPrecheckoutResultsRequest) SetSuccess ¶

func (s *MessagesSetBotPrecheckoutResultsRequest) SetSuccess(value bool)

SetSuccess sets value of Success conditional field.

type MessagesSetBotShippingResultsRequest ¶

type MessagesSetBotShippingResultsRequest struct {
	// Flags field of MessagesSetBotShippingResultsRequest.
	Flags bin.Fields
	// QueryID field of MessagesSetBotShippingResultsRequest.
	QueryID int64
	// Error field of MessagesSetBotShippingResultsRequest.
	//
	// Use SetError and GetError helpers.
	Error string
	// ShippingOptions field of MessagesSetBotShippingResultsRequest.
	//
	// Use SetShippingOptions and GetShippingOptions helpers.
	ShippingOptions []ShippingOption
}

MessagesSetBotShippingResultsRequest represents TL type `messages.setBotShippingResults#e5f672fa`.

func (*MessagesSetBotShippingResultsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSetBotShippingResultsRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSetBotShippingResultsRequest) GetError ¶

func (s *MessagesSetBotShippingResultsRequest) GetError() (value string, ok bool)

GetError returns value of Error conditional field and boolean which is true if field was set.

func (*MessagesSetBotShippingResultsRequest) GetShippingOptions ¶

func (s *MessagesSetBotShippingResultsRequest) GetShippingOptions() (value []ShippingOption, ok bool)

GetShippingOptions returns value of ShippingOptions conditional field and boolean which is true if field was set.

func (*MessagesSetBotShippingResultsRequest) SetError ¶

func (s *MessagesSetBotShippingResultsRequest) SetError(value string)

SetError sets value of Error conditional field.

func (*MessagesSetBotShippingResultsRequest) SetShippingOptions ¶

func (s *MessagesSetBotShippingResultsRequest) SetShippingOptions(value []ShippingOption)

SetShippingOptions sets value of ShippingOptions conditional field.

type MessagesSetEncryptedTypingRequest ¶

type MessagesSetEncryptedTypingRequest struct {
	// Peer field of MessagesSetEncryptedTypingRequest.
	Peer InputEncryptedChat
	// Typing field of MessagesSetEncryptedTypingRequest.
	Typing bool
}

MessagesSetEncryptedTypingRequest represents TL type `messages.setEncryptedTyping#791451ed`.

func (*MessagesSetEncryptedTypingRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSetEncryptedTypingRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesSetGameScoreRequest ¶

type MessagesSetGameScoreRequest struct {
	// Flags field of MessagesSetGameScoreRequest.
	Flags bin.Fields
	// EditMessage field of MessagesSetGameScoreRequest.
	EditMessage bool
	// Force field of MessagesSetGameScoreRequest.
	Force bool
	// Peer field of MessagesSetGameScoreRequest.
	Peer InputPeerClass
	// ID field of MessagesSetGameScoreRequest.
	ID int
	// UserID field of MessagesSetGameScoreRequest.
	UserID InputUserClass
	// Score field of MessagesSetGameScoreRequest.
	Score int
}

MessagesSetGameScoreRequest represents TL type `messages.setGameScore#8ef8ecc0`.

func (*MessagesSetGameScoreRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSetGameScoreRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSetGameScoreRequest) SetEditMessage ¶

func (s *MessagesSetGameScoreRequest) SetEditMessage(value bool)

SetEditMessage sets value of EditMessage conditional field.

func (*MessagesSetGameScoreRequest) SetForce ¶

func (s *MessagesSetGameScoreRequest) SetForce(value bool)

SetForce sets value of Force conditional field.

type MessagesSetInlineBotResultsRequest ¶

type MessagesSetInlineBotResultsRequest struct {
	// Flags field of MessagesSetInlineBotResultsRequest.
	Flags bin.Fields
	// Gallery field of MessagesSetInlineBotResultsRequest.
	Gallery bool
	// Private field of MessagesSetInlineBotResultsRequest.
	Private bool
	// QueryID field of MessagesSetInlineBotResultsRequest.
	QueryID int64
	// Results field of MessagesSetInlineBotResultsRequest.
	Results []InputBotInlineResultClass
	// CacheTime field of MessagesSetInlineBotResultsRequest.
	CacheTime int
	// NextOffset field of MessagesSetInlineBotResultsRequest.
	//
	// Use SetNextOffset and GetNextOffset helpers.
	NextOffset string
	// SwitchPm field of MessagesSetInlineBotResultsRequest.
	//
	// Use SetSwitchPm and GetSwitchPm helpers.
	SwitchPm InlineBotSwitchPM
}

MessagesSetInlineBotResultsRequest represents TL type `messages.setInlineBotResults#eb5ea206`.

func (*MessagesSetInlineBotResultsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSetInlineBotResultsRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSetInlineBotResultsRequest) GetNextOffset ¶

func (s *MessagesSetInlineBotResultsRequest) GetNextOffset() (value string, ok bool)

GetNextOffset returns value of NextOffset conditional field and boolean which is true if field was set.

func (*MessagesSetInlineBotResultsRequest) GetSwitchPm ¶

func (s *MessagesSetInlineBotResultsRequest) GetSwitchPm() (value InlineBotSwitchPM, ok bool)

GetSwitchPm returns value of SwitchPm conditional field and boolean which is true if field was set.

func (*MessagesSetInlineBotResultsRequest) SetGallery ¶

func (s *MessagesSetInlineBotResultsRequest) SetGallery(value bool)

SetGallery sets value of Gallery conditional field.

func (*MessagesSetInlineBotResultsRequest) SetNextOffset ¶

func (s *MessagesSetInlineBotResultsRequest) SetNextOffset(value string)

SetNextOffset sets value of NextOffset conditional field.

func (*MessagesSetInlineBotResultsRequest) SetPrivate ¶

func (s *MessagesSetInlineBotResultsRequest) SetPrivate(value bool)

SetPrivate sets value of Private conditional field.

func (*MessagesSetInlineBotResultsRequest) SetSwitchPm ¶

SetSwitchPm sets value of SwitchPm conditional field.

type MessagesSetInlineGameScoreRequest ¶

type MessagesSetInlineGameScoreRequest struct {
	// Flags field of MessagesSetInlineGameScoreRequest.
	Flags bin.Fields
	// EditMessage field of MessagesSetInlineGameScoreRequest.
	EditMessage bool
	// Force field of MessagesSetInlineGameScoreRequest.
	Force bool
	// ID field of MessagesSetInlineGameScoreRequest.
	ID InputBotInlineMessageID
	// UserID field of MessagesSetInlineGameScoreRequest.
	UserID InputUserClass
	// Score field of MessagesSetInlineGameScoreRequest.
	Score int
}

MessagesSetInlineGameScoreRequest represents TL type `messages.setInlineGameScore#15ad9f64`.

func (*MessagesSetInlineGameScoreRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesSetInlineGameScoreRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesSetInlineGameScoreRequest) SetEditMessage ¶

func (s *MessagesSetInlineGameScoreRequest) SetEditMessage(value bool)

SetEditMessage sets value of EditMessage conditional field.

func (*MessagesSetInlineGameScoreRequest) SetForce ¶

func (s *MessagesSetInlineGameScoreRequest) SetForce(value bool)

SetForce sets value of Force conditional field.

type MessagesSetTypingRequest ¶

type MessagesSetTypingRequest struct {
	// Flags field of MessagesSetTypingRequest.
	Flags bin.Fields
	// Peer field of MessagesSetTypingRequest.
	Peer InputPeerClass
	// TopMsgID field of MessagesSetTypingRequest.
	//
	// Use SetTopMsgID and GetTopMsgID helpers.
	TopMsgID int
	// Action field of MessagesSetTypingRequest.
	Action SendMessageActionClass
}

MessagesSetTypingRequest represents TL type `messages.setTyping#58943ee2`.

func (*MessagesSetTypingRequest) Decode ¶

func (s *MessagesSetTypingRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesSetTypingRequest) Encode ¶

func (s *MessagesSetTypingRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesSetTypingRequest) GetTopMsgID ¶

func (s *MessagesSetTypingRequest) GetTopMsgID() (value int, ok bool)

GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set.

func (*MessagesSetTypingRequest) SetTopMsgID ¶

func (s *MessagesSetTypingRequest) SetTopMsgID(value int)

SetTopMsgID sets value of TopMsgID conditional field.

type MessagesStartBotRequest ¶

type MessagesStartBotRequest struct {
	// Bot field of MessagesStartBotRequest.
	Bot InputUserClass
	// Peer field of MessagesStartBotRequest.
	Peer InputPeerClass
	// RandomID field of MessagesStartBotRequest.
	RandomID int64
	// StartParam field of MessagesStartBotRequest.
	StartParam string
}

MessagesStartBotRequest represents TL type `messages.startBot#e6df7378`.

func (*MessagesStartBotRequest) Decode ¶

func (s *MessagesStartBotRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesStartBotRequest) Encode ¶

func (s *MessagesStartBotRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesStickerSet ¶

type MessagesStickerSet struct {
	// Set field of MessagesStickerSet.
	Set StickerSet
	// Packs field of MessagesStickerSet.
	Packs []StickerPack
	// Documents field of MessagesStickerSet.
	Documents []DocumentClass
}

MessagesStickerSet represents TL type `messages.stickerSet#b60a24a6`.

func (*MessagesStickerSet) Decode ¶

func (s *MessagesStickerSet) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesStickerSet) Encode ¶

func (s *MessagesStickerSet) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesStickerSetInstallResultArchive ¶

type MessagesStickerSetInstallResultArchive struct {
	// Sets field of MessagesStickerSetInstallResultArchive.
	Sets []StickerSetCoveredClass
}

MessagesStickerSetInstallResultArchive represents TL type `messages.stickerSetInstallResultArchive#35e410a8`.

func (*MessagesStickerSetInstallResultArchive) Decode ¶

Decode implements bin.Decoder.

func (*MessagesStickerSetInstallResultArchive) Encode ¶

Encode implements bin.Encoder.

type MessagesStickerSetInstallResultBox ¶

type MessagesStickerSetInstallResultBox struct {
	StickerSetInstallResult MessagesStickerSetInstallResultClass
}

MessagesStickerSetInstallResult boxes the MessagesStickerSetInstallResultClass providing a helper.

func (*MessagesStickerSetInstallResultBox) Decode ¶

Decode implements bin.Decoder for MessagesStickerSetInstallResultBox.

func (*MessagesStickerSetInstallResultBox) Encode ¶

Encode implements bin.Encode for MessagesStickerSetInstallResultBox.

type MessagesStickerSetInstallResultClass ¶

type MessagesStickerSetInstallResultClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesStickerSetInstallResultClass represents messages.StickerSetInstallResult generic type.

Example:

g, err := DecodeMessagesStickerSetInstallResult(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesStickerSetInstallResultSuccess: // messages.stickerSetInstallResultSuccess#38641628
case *MessagesStickerSetInstallResultArchive: // messages.stickerSetInstallResultArchive#35e410a8
default: panic(v)
}

func DecodeMessagesStickerSetInstallResult ¶

func DecodeMessagesStickerSetInstallResult(buf *bin.Buffer) (MessagesStickerSetInstallResultClass, error)

DecodeMessagesStickerSetInstallResult implements binary de-serialization for MessagesStickerSetInstallResultClass.

type MessagesStickerSetInstallResultSuccess ¶

type MessagesStickerSetInstallResultSuccess struct {
}

MessagesStickerSetInstallResultSuccess represents TL type `messages.stickerSetInstallResultSuccess#38641628`.

func (*MessagesStickerSetInstallResultSuccess) Decode ¶

Decode implements bin.Decoder.

func (*MessagesStickerSetInstallResultSuccess) Encode ¶

Encode implements bin.Encoder.

type MessagesStickers ¶

type MessagesStickers struct {
	// Hash field of MessagesStickers.
	Hash int
	// Stickers field of MessagesStickers.
	Stickers []DocumentClass
}

MessagesStickers represents TL type `messages.stickers#e4599bbd`.

func (*MessagesStickers) Decode ¶

func (s *MessagesStickers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesStickers) Encode ¶

func (s *MessagesStickers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type MessagesStickersBox ¶

type MessagesStickersBox struct {
	Stickers MessagesStickersClass
}

MessagesStickers boxes the MessagesStickersClass providing a helper.

func (*MessagesStickersBox) Decode ¶

func (b *MessagesStickersBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MessagesStickersBox.

func (*MessagesStickersBox) Encode ¶

func (b *MessagesStickersBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MessagesStickersBox.

type MessagesStickersClass ¶

type MessagesStickersClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

MessagesStickersClass represents messages.Stickers generic type.

Example:

g, err := DecodeMessagesStickers(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *MessagesStickersNotModified: // messages.stickersNotModified#f1749a22
case *MessagesStickers: // messages.stickers#e4599bbd
default: panic(v)
}

func DecodeMessagesStickers ¶

func DecodeMessagesStickers(buf *bin.Buffer) (MessagesStickersClass, error)

DecodeMessagesStickers implements binary de-serialization for MessagesStickersClass.

type MessagesStickersNotModified ¶

type MessagesStickersNotModified struct {
}

MessagesStickersNotModified represents TL type `messages.stickersNotModified#f1749a22`.

func (*MessagesStickersNotModified) Decode ¶

Decode implements bin.Decoder.

func (*MessagesStickersNotModified) Encode ¶

Encode implements bin.Encoder.

type MessagesToggleDialogPinRequest ¶

type MessagesToggleDialogPinRequest struct {
	// Flags field of MessagesToggleDialogPinRequest.
	Flags bin.Fields
	// Pinned field of MessagesToggleDialogPinRequest.
	Pinned bool
	// Peer field of MessagesToggleDialogPinRequest.
	Peer InputDialogPeerClass
}

MessagesToggleDialogPinRequest represents TL type `messages.toggleDialogPin#a731e257`.

func (*MessagesToggleDialogPinRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesToggleDialogPinRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesToggleDialogPinRequest) SetPinned ¶

func (t *MessagesToggleDialogPinRequest) SetPinned(value bool)

SetPinned sets value of Pinned conditional field.

type MessagesToggleStickerSetsRequest ¶

type MessagesToggleStickerSetsRequest struct {
	// Flags field of MessagesToggleStickerSetsRequest.
	Flags bin.Fields
	// Uninstall field of MessagesToggleStickerSetsRequest.
	Uninstall bool
	// Archive field of MessagesToggleStickerSetsRequest.
	Archive bool
	// Unarchive field of MessagesToggleStickerSetsRequest.
	Unarchive bool
	// Stickersets field of MessagesToggleStickerSetsRequest.
	Stickersets []InputStickerSetClass
}

MessagesToggleStickerSetsRequest represents TL type `messages.toggleStickerSets#b5052fea`.

func (*MessagesToggleStickerSetsRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesToggleStickerSetsRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesToggleStickerSetsRequest) SetArchive ¶

func (t *MessagesToggleStickerSetsRequest) SetArchive(value bool)

SetArchive sets value of Archive conditional field.

func (*MessagesToggleStickerSetsRequest) SetUnarchive ¶

func (t *MessagesToggleStickerSetsRequest) SetUnarchive(value bool)

SetUnarchive sets value of Unarchive conditional field.

func (*MessagesToggleStickerSetsRequest) SetUninstall ¶

func (t *MessagesToggleStickerSetsRequest) SetUninstall(value bool)

SetUninstall sets value of Uninstall conditional field.

type MessagesUninstallStickerSetRequest ¶

type MessagesUninstallStickerSetRequest struct {
	// Stickerset field of MessagesUninstallStickerSetRequest.
	Stickerset InputStickerSetClass
}

MessagesUninstallStickerSetRequest represents TL type `messages.uninstallStickerSet#f96e55de`.

func (*MessagesUninstallStickerSetRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesUninstallStickerSetRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesUnpinAllMessagesRequest ¶

type MessagesUnpinAllMessagesRequest struct {
	// Peer field of MessagesUnpinAllMessagesRequest.
	Peer InputPeerClass
}

MessagesUnpinAllMessagesRequest represents TL type `messages.unpinAllMessages#f025bc8b`.

func (*MessagesUnpinAllMessagesRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesUnpinAllMessagesRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesUpdateDialogFilterRequest ¶

type MessagesUpdateDialogFilterRequest struct {
	// Flags field of MessagesUpdateDialogFilterRequest.
	Flags bin.Fields
	// ID field of MessagesUpdateDialogFilterRequest.
	ID int
	// Filter field of MessagesUpdateDialogFilterRequest.
	//
	// Use SetFilter and GetFilter helpers.
	Filter DialogFilter
}

MessagesUpdateDialogFilterRequest represents TL type `messages.updateDialogFilter#1ad4a04a`.

func (*MessagesUpdateDialogFilterRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesUpdateDialogFilterRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesUpdateDialogFilterRequest) GetFilter ¶

func (u *MessagesUpdateDialogFilterRequest) GetFilter() (value DialogFilter, ok bool)

GetFilter returns value of Filter conditional field and boolean which is true if field was set.

func (*MessagesUpdateDialogFilterRequest) SetFilter ¶

func (u *MessagesUpdateDialogFilterRequest) SetFilter(value DialogFilter)

SetFilter sets value of Filter conditional field.

type MessagesUpdateDialogFiltersOrderRequest ¶

type MessagesUpdateDialogFiltersOrderRequest struct {
	// Order field of MessagesUpdateDialogFiltersOrderRequest.
	Order []int
}

MessagesUpdateDialogFiltersOrderRequest represents TL type `messages.updateDialogFiltersOrder#c563c1e4`.

func (*MessagesUpdateDialogFiltersOrderRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesUpdateDialogFiltersOrderRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesUpdatePinnedMessageRequest ¶

type MessagesUpdatePinnedMessageRequest struct {
	// Flags field of MessagesUpdatePinnedMessageRequest.
	Flags bin.Fields
	// Silent field of MessagesUpdatePinnedMessageRequest.
	Silent bool
	// Unpin field of MessagesUpdatePinnedMessageRequest.
	Unpin bool
	// PmOneside field of MessagesUpdatePinnedMessageRequest.
	PmOneside bool
	// Peer field of MessagesUpdatePinnedMessageRequest.
	Peer InputPeerClass
	// ID field of MessagesUpdatePinnedMessageRequest.
	ID int
}

MessagesUpdatePinnedMessageRequest represents TL type `messages.updatePinnedMessage#d2aaf7ec`.

func (*MessagesUpdatePinnedMessageRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesUpdatePinnedMessageRequest) Encode ¶

Encode implements bin.Encoder.

func (*MessagesUpdatePinnedMessageRequest) SetPmOneside ¶

func (u *MessagesUpdatePinnedMessageRequest) SetPmOneside(value bool)

SetPmOneside sets value of PmOneside conditional field.

func (*MessagesUpdatePinnedMessageRequest) SetSilent ¶

func (u *MessagesUpdatePinnedMessageRequest) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

func (*MessagesUpdatePinnedMessageRequest) SetUnpin ¶

func (u *MessagesUpdatePinnedMessageRequest) SetUnpin(value bool)

SetUnpin sets value of Unpin conditional field.

type MessagesUploadEncryptedFileRequest ¶

type MessagesUploadEncryptedFileRequest struct {
	// Peer field of MessagesUploadEncryptedFileRequest.
	Peer InputEncryptedChat
	// File field of MessagesUploadEncryptedFileRequest.
	File InputEncryptedFileClass
}

MessagesUploadEncryptedFileRequest represents TL type `messages.uploadEncryptedFile#5057c497`.

func (*MessagesUploadEncryptedFileRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesUploadEncryptedFileRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesUploadMediaRequest ¶

type MessagesUploadMediaRequest struct {
	// Peer field of MessagesUploadMediaRequest.
	Peer InputPeerClass
	// Media field of MessagesUploadMediaRequest.
	Media InputMediaClass
}

MessagesUploadMediaRequest represents TL type `messages.uploadMedia#519bc2b1`.

func (*MessagesUploadMediaRequest) Decode ¶

Decode implements bin.Decoder.

func (*MessagesUploadMediaRequest) Encode ¶

Encode implements bin.Encoder.

type MessagesVotesList ¶

type MessagesVotesList struct {
	// Flags field of MessagesVotesList.
	Flags bin.Fields
	// Count field of MessagesVotesList.
	Count int
	// Votes field of MessagesVotesList.
	Votes []MessageUserVoteClass
	// Users field of MessagesVotesList.
	Users []UserClass
	// NextOffset field of MessagesVotesList.
	//
	// Use SetNextOffset and GetNextOffset helpers.
	NextOffset string
}

MessagesVotesList represents TL type `messages.votesList#823f649`.

func (*MessagesVotesList) Decode ¶

func (v *MessagesVotesList) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MessagesVotesList) Encode ¶

func (v *MessagesVotesList) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MessagesVotesList) GetNextOffset ¶

func (v *MessagesVotesList) GetNextOffset() (value string, ok bool)

GetNextOffset returns value of NextOffset conditional field and boolean which is true if field was set.

func (*MessagesVotesList) SetNextOffset ¶

func (v *MessagesVotesList) SetNextOffset(value string)

SetNextOffset sets value of NextOffset conditional field.

type NearestDc ¶

type NearestDc struct {
	// Country field of NearestDc.
	Country string
	// ThisDC field of NearestDc.
	ThisDC int
	// NearestDC field of NearestDc.
	NearestDC int
}

NearestDc represents TL type `nearestDc#8e1a1775`.

func (*NearestDc) Decode ¶

func (n *NearestDc) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*NearestDc) Encode ¶

func (n *NearestDc) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type NotifyBroadcasts ¶

type NotifyBroadcasts struct {
}

NotifyBroadcasts represents TL type `notifyBroadcasts#d612e8ef`.

func (*NotifyBroadcasts) Decode ¶

func (n *NotifyBroadcasts) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*NotifyBroadcasts) Encode ¶

func (n *NotifyBroadcasts) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type NotifyChats ¶

type NotifyChats struct {
}

NotifyChats represents TL type `notifyChats#c007cec3`.

func (*NotifyChats) Decode ¶

func (n *NotifyChats) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*NotifyChats) Encode ¶

func (n *NotifyChats) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type NotifyPeer ¶

type NotifyPeer struct {
	// Peer field of NotifyPeer.
	Peer PeerClass
}

NotifyPeer represents TL type `notifyPeer#9fd40bd8`.

func (*NotifyPeer) Decode ¶

func (n *NotifyPeer) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*NotifyPeer) Encode ¶

func (n *NotifyPeer) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type NotifyPeerBox ¶

type NotifyPeerBox struct {
	NotifyPeer NotifyPeerClass
}

NotifyPeer boxes the NotifyPeerClass providing a helper.

func (*NotifyPeerBox) Decode ¶

func (b *NotifyPeerBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for NotifyPeerBox.

func (*NotifyPeerBox) Encode ¶

func (b *NotifyPeerBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for NotifyPeerBox.

type NotifyPeerClass ¶

type NotifyPeerClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

NotifyPeerClass represents NotifyPeer generic type.

Example:

g, err := DecodeNotifyPeer(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *NotifyPeer: // notifyPeer#9fd40bd8
case *NotifyUsers: // notifyUsers#b4c83b4c
case *NotifyChats: // notifyChats#c007cec3
case *NotifyBroadcasts: // notifyBroadcasts#d612e8ef
default: panic(v)
}

func DecodeNotifyPeer ¶

func DecodeNotifyPeer(buf *bin.Buffer) (NotifyPeerClass, error)

DecodeNotifyPeer implements binary de-serialization for NotifyPeerClass.

type NotifyUsers ¶

type NotifyUsers struct {
}

NotifyUsers represents TL type `notifyUsers#b4c83b4c`.

func (*NotifyUsers) Decode ¶

func (n *NotifyUsers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*NotifyUsers) Encode ¶

func (n *NotifyUsers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type Null ¶

type Null struct {
}

Null represents TL type `null#56730bcc`.

func (*Null) Decode ¶

func (n *Null) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Null) Encode ¶

func (n *Null) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type Page ¶

type Page struct {
	// Flags field of Page.
	Flags bin.Fields
	// Part field of Page.
	Part bool
	// Rtl field of Page.
	Rtl bool
	// V2 field of Page.
	V2 bool
	// URL field of Page.
	URL string
	// Blocks field of Page.
	Blocks []PageBlockClass
	// Photos field of Page.
	Photos []PhotoClass
	// Documents field of Page.
	Documents []DocumentClass
	// Views field of Page.
	//
	// Use SetViews and GetViews helpers.
	Views int
}

Page represents TL type `page#98657f0d`.

func (*Page) Decode ¶

func (p *Page) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Page) Encode ¶

func (p *Page) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Page) GetViews ¶

func (p *Page) GetViews() (value int, ok bool)

GetViews returns value of Views conditional field and boolean which is true if field was set.

func (*Page) SetPart ¶

func (p *Page) SetPart(value bool)

SetPart sets value of Part conditional field.

func (*Page) SetRtl ¶

func (p *Page) SetRtl(value bool)

SetRtl sets value of Rtl conditional field.

func (*Page) SetV2 ¶

func (p *Page) SetV2(value bool)

SetV2 sets value of V2 conditional field.

func (*Page) SetViews ¶

func (p *Page) SetViews(value int)

SetViews sets value of Views conditional field.

type PageBlockAnchor ¶

type PageBlockAnchor struct {
	// Name field of PageBlockAnchor.
	Name string
}

PageBlockAnchor represents TL type `pageBlockAnchor#ce0d37b0`.

func (*PageBlockAnchor) Decode ¶

func (p *PageBlockAnchor) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockAnchor) Encode ¶

func (p *PageBlockAnchor) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockAudio ¶

type PageBlockAudio struct {
	// AudioID field of PageBlockAudio.
	AudioID int64
	// Caption field of PageBlockAudio.
	Caption PageCaption
}

PageBlockAudio represents TL type `pageBlockAudio#804361ea`.

func (*PageBlockAudio) Decode ¶

func (p *PageBlockAudio) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockAudio) Encode ¶

func (p *PageBlockAudio) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockAuthorDate ¶

type PageBlockAuthorDate struct {
	// Author field of PageBlockAuthorDate.
	Author RichTextClass
	// PublishedDate field of PageBlockAuthorDate.
	PublishedDate int
}

PageBlockAuthorDate represents TL type `pageBlockAuthorDate#baafe5e0`.

func (*PageBlockAuthorDate) Decode ¶

func (p *PageBlockAuthorDate) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockAuthorDate) Encode ¶

func (p *PageBlockAuthorDate) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockBlockquote ¶

type PageBlockBlockquote struct {
	// Text field of PageBlockBlockquote.
	Text RichTextClass
	// Caption field of PageBlockBlockquote.
	Caption RichTextClass
}

PageBlockBlockquote represents TL type `pageBlockBlockquote#263d7c26`.

func (*PageBlockBlockquote) Decode ¶

func (p *PageBlockBlockquote) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockBlockquote) Encode ¶

func (p *PageBlockBlockquote) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockBox ¶

type PageBlockBox struct {
	PageBlock PageBlockClass
}

PageBlock boxes the PageBlockClass providing a helper.

func (*PageBlockBox) Decode ¶

func (b *PageBlockBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PageBlockBox.

func (*PageBlockBox) Encode ¶

func (b *PageBlockBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PageBlockBox.

type PageBlockChannel ¶

type PageBlockChannel struct {
	// Channel field of PageBlockChannel.
	Channel ChatClass
}

PageBlockChannel represents TL type `pageBlockChannel#ef1751b5`.

func (*PageBlockChannel) Decode ¶

func (p *PageBlockChannel) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockChannel) Encode ¶

func (p *PageBlockChannel) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockClass ¶

type PageBlockClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PageBlockClass represents PageBlock generic type.

Example:

g, err := DecodePageBlock(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PageBlockUnsupported: // pageBlockUnsupported#13567e8a
case *PageBlockTitle: // pageBlockTitle#70abc3fd
case *PageBlockSubtitle: // pageBlockSubtitle#8ffa9a1f
case *PageBlockAuthorDate: // pageBlockAuthorDate#baafe5e0
case *PageBlockHeader: // pageBlockHeader#bfd064ec
case *PageBlockSubheader: // pageBlockSubheader#f12bb6e1
case *PageBlockParagraph: // pageBlockParagraph#467a0766
case *PageBlockPreformatted: // pageBlockPreformatted#c070d93e
case *PageBlockFooter: // pageBlockFooter#48870999
case *PageBlockDivider: // pageBlockDivider#db20b188
case *PageBlockAnchor: // pageBlockAnchor#ce0d37b0
case *PageBlockList: // pageBlockList#e4e88011
case *PageBlockBlockquote: // pageBlockBlockquote#263d7c26
case *PageBlockPullquote: // pageBlockPullquote#4f4456d3
case *PageBlockPhoto: // pageBlockPhoto#1759c560
case *PageBlockVideo: // pageBlockVideo#7c8fe7b6
case *PageBlockCover: // pageBlockCover#39f23300
case *PageBlockEmbed: // pageBlockEmbed#a8718dc5
case *PageBlockEmbedPost: // pageBlockEmbedPost#f259a80b
case *PageBlockCollage: // pageBlockCollage#65a0fa4d
case *PageBlockSlideshow: // pageBlockSlideshow#31f9590
case *PageBlockChannel: // pageBlockChannel#ef1751b5
case *PageBlockAudio: // pageBlockAudio#804361ea
case *PageBlockKicker: // pageBlockKicker#1e148390
case *PageBlockTable: // pageBlockTable#bf4dea82
case *PageBlockOrderedList: // pageBlockOrderedList#9a8ae1e1
case *PageBlockDetails: // pageBlockDetails#76768bed
case *PageBlockRelatedArticles: // pageBlockRelatedArticles#16115a96
case *PageBlockMap: // pageBlockMap#a44f3ef6
default: panic(v)
}

func DecodePageBlock ¶

func DecodePageBlock(buf *bin.Buffer) (PageBlockClass, error)

DecodePageBlock implements binary de-serialization for PageBlockClass.

type PageBlockCollage ¶

type PageBlockCollage struct {
	// Items field of PageBlockCollage.
	Items []PageBlockClass
	// Caption field of PageBlockCollage.
	Caption PageCaption
}

PageBlockCollage represents TL type `pageBlockCollage#65a0fa4d`.

func (*PageBlockCollage) Decode ¶

func (p *PageBlockCollage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockCollage) Encode ¶

func (p *PageBlockCollage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockCover ¶

type PageBlockCover struct {
	// Cover field of PageBlockCover.
	Cover PageBlockClass
}

PageBlockCover represents TL type `pageBlockCover#39f23300`.

func (*PageBlockCover) Decode ¶

func (p *PageBlockCover) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockCover) Encode ¶

func (p *PageBlockCover) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockDetails ¶

type PageBlockDetails struct {
	// Flags field of PageBlockDetails.
	Flags bin.Fields
	// Open field of PageBlockDetails.
	Open bool
	// Blocks field of PageBlockDetails.
	Blocks []PageBlockClass
	// Title field of PageBlockDetails.
	Title RichTextClass
}

PageBlockDetails represents TL type `pageBlockDetails#76768bed`.

func (*PageBlockDetails) Decode ¶

func (p *PageBlockDetails) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockDetails) Encode ¶

func (p *PageBlockDetails) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PageBlockDetails) SetOpen ¶

func (p *PageBlockDetails) SetOpen(value bool)

SetOpen sets value of Open conditional field.

type PageBlockDivider ¶

type PageBlockDivider struct {
}

PageBlockDivider represents TL type `pageBlockDivider#db20b188`.

func (*PageBlockDivider) Decode ¶

func (p *PageBlockDivider) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockDivider) Encode ¶

func (p *PageBlockDivider) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockEmbed ¶

type PageBlockEmbed struct {
	// Flags field of PageBlockEmbed.
	Flags bin.Fields
	// FullWidth field of PageBlockEmbed.
	FullWidth bool
	// AllowScrolling field of PageBlockEmbed.
	AllowScrolling bool
	// URL field of PageBlockEmbed.
	//
	// Use SetURL and GetURL helpers.
	URL string
	// HTML field of PageBlockEmbed.
	//
	// Use SetHTML and GetHTML helpers.
	HTML string
	// PosterPhotoID field of PageBlockEmbed.
	//
	// Use SetPosterPhotoID and GetPosterPhotoID helpers.
	PosterPhotoID int64
	// W field of PageBlockEmbed.
	//
	// Use SetW and GetW helpers.
	W int
	// H field of PageBlockEmbed.
	//
	// Use SetH and GetH helpers.
	H int
	// Caption field of PageBlockEmbed.
	Caption PageCaption
}

PageBlockEmbed represents TL type `pageBlockEmbed#a8718dc5`.

func (*PageBlockEmbed) Decode ¶

func (p *PageBlockEmbed) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockEmbed) Encode ¶

func (p *PageBlockEmbed) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PageBlockEmbed) GetH ¶

func (p *PageBlockEmbed) GetH() (value int, ok bool)

GetH returns value of H conditional field and boolean which is true if field was set.

func (*PageBlockEmbed) GetHTML ¶

func (p *PageBlockEmbed) GetHTML() (value string, ok bool)

GetHTML returns value of HTML conditional field and boolean which is true if field was set.

func (*PageBlockEmbed) GetPosterPhotoID ¶

func (p *PageBlockEmbed) GetPosterPhotoID() (value int64, ok bool)

GetPosterPhotoID returns value of PosterPhotoID conditional field and boolean which is true if field was set.

func (*PageBlockEmbed) GetURL ¶

func (p *PageBlockEmbed) GetURL() (value string, ok bool)

GetURL returns value of URL conditional field and boolean which is true if field was set.

func (*PageBlockEmbed) GetW ¶

func (p *PageBlockEmbed) GetW() (value int, ok bool)

GetW returns value of W conditional field and boolean which is true if field was set.

func (*PageBlockEmbed) SetAllowScrolling ¶

func (p *PageBlockEmbed) SetAllowScrolling(value bool)

SetAllowScrolling sets value of AllowScrolling conditional field.

func (*PageBlockEmbed) SetFullWidth ¶

func (p *PageBlockEmbed) SetFullWidth(value bool)

SetFullWidth sets value of FullWidth conditional field.

func (*PageBlockEmbed) SetH ¶

func (p *PageBlockEmbed) SetH(value int)

SetH sets value of H conditional field.

func (*PageBlockEmbed) SetHTML ¶

func (p *PageBlockEmbed) SetHTML(value string)

SetHTML sets value of HTML conditional field.

func (*PageBlockEmbed) SetPosterPhotoID ¶

func (p *PageBlockEmbed) SetPosterPhotoID(value int64)

SetPosterPhotoID sets value of PosterPhotoID conditional field.

func (*PageBlockEmbed) SetURL ¶

func (p *PageBlockEmbed) SetURL(value string)

SetURL sets value of URL conditional field.

func (*PageBlockEmbed) SetW ¶

func (p *PageBlockEmbed) SetW(value int)

SetW sets value of W conditional field.

type PageBlockEmbedPost ¶

type PageBlockEmbedPost struct {
	// URL field of PageBlockEmbedPost.
	URL string
	// WebpageID field of PageBlockEmbedPost.
	WebpageID int64
	// AuthorPhotoID field of PageBlockEmbedPost.
	AuthorPhotoID int64
	// Author field of PageBlockEmbedPost.
	Author string
	// Date field of PageBlockEmbedPost.
	Date int
	// Blocks field of PageBlockEmbedPost.
	Blocks []PageBlockClass
	// Caption field of PageBlockEmbedPost.
	Caption PageCaption
}

PageBlockEmbedPost represents TL type `pageBlockEmbedPost#f259a80b`.

func (*PageBlockEmbedPost) Decode ¶

func (p *PageBlockEmbedPost) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockEmbedPost) Encode ¶

func (p *PageBlockEmbedPost) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockFooter ¶

type PageBlockFooter struct {
	// Text field of PageBlockFooter.
	Text RichTextClass
}

PageBlockFooter represents TL type `pageBlockFooter#48870999`.

func (*PageBlockFooter) Decode ¶

func (p *PageBlockFooter) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockFooter) Encode ¶

func (p *PageBlockFooter) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockHeader ¶

type PageBlockHeader struct {
	// Text field of PageBlockHeader.
	Text RichTextClass
}

PageBlockHeader represents TL type `pageBlockHeader#bfd064ec`.

func (*PageBlockHeader) Decode ¶

func (p *PageBlockHeader) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockHeader) Encode ¶

func (p *PageBlockHeader) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockKicker ¶

type PageBlockKicker struct {
	// Text field of PageBlockKicker.
	Text RichTextClass
}

PageBlockKicker represents TL type `pageBlockKicker#1e148390`.

func (*PageBlockKicker) Decode ¶

func (p *PageBlockKicker) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockKicker) Encode ¶

func (p *PageBlockKicker) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockList ¶

type PageBlockList struct {
	// Items field of PageBlockList.
	Items []PageListItemClass
}

PageBlockList represents TL type `pageBlockList#e4e88011`.

func (*PageBlockList) Decode ¶

func (p *PageBlockList) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockList) Encode ¶

func (p *PageBlockList) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockMap ¶

type PageBlockMap struct {
	// Geo field of PageBlockMap.
	Geo GeoPointClass
	// Zoom field of PageBlockMap.
	Zoom int
	// W field of PageBlockMap.
	W int
	// H field of PageBlockMap.
	H int
	// Caption field of PageBlockMap.
	Caption PageCaption
}

PageBlockMap represents TL type `pageBlockMap#a44f3ef6`.

func (*PageBlockMap) Decode ¶

func (p *PageBlockMap) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockMap) Encode ¶

func (p *PageBlockMap) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockOrderedList ¶

type PageBlockOrderedList struct {
	// Items field of PageBlockOrderedList.
	Items []PageListOrderedItemClass
}

PageBlockOrderedList represents TL type `pageBlockOrderedList#9a8ae1e1`.

func (*PageBlockOrderedList) Decode ¶

func (p *PageBlockOrderedList) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockOrderedList) Encode ¶

func (p *PageBlockOrderedList) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockParagraph ¶

type PageBlockParagraph struct {
	// Text field of PageBlockParagraph.
	Text RichTextClass
}

PageBlockParagraph represents TL type `pageBlockParagraph#467a0766`.

func (*PageBlockParagraph) Decode ¶

func (p *PageBlockParagraph) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockParagraph) Encode ¶

func (p *PageBlockParagraph) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockPhoto ¶

type PageBlockPhoto struct {
	// Flags field of PageBlockPhoto.
	Flags bin.Fields
	// PhotoID field of PageBlockPhoto.
	PhotoID int64
	// Caption field of PageBlockPhoto.
	Caption PageCaption
	// URL field of PageBlockPhoto.
	//
	// Use SetURL and GetURL helpers.
	URL string
	// WebpageID field of PageBlockPhoto.
	//
	// Use SetWebpageID and GetWebpageID helpers.
	WebpageID int64
}

PageBlockPhoto represents TL type `pageBlockPhoto#1759c560`.

func (*PageBlockPhoto) Decode ¶

func (p *PageBlockPhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockPhoto) Encode ¶

func (p *PageBlockPhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PageBlockPhoto) GetURL ¶

func (p *PageBlockPhoto) GetURL() (value string, ok bool)

GetURL returns value of URL conditional field and boolean which is true if field was set.

func (*PageBlockPhoto) GetWebpageID ¶

func (p *PageBlockPhoto) GetWebpageID() (value int64, ok bool)

GetWebpageID returns value of WebpageID conditional field and boolean which is true if field was set.

func (*PageBlockPhoto) SetURL ¶

func (p *PageBlockPhoto) SetURL(value string)

SetURL sets value of URL conditional field.

func (*PageBlockPhoto) SetWebpageID ¶

func (p *PageBlockPhoto) SetWebpageID(value int64)

SetWebpageID sets value of WebpageID conditional field.

type PageBlockPreformatted ¶

type PageBlockPreformatted struct {
	// Text field of PageBlockPreformatted.
	Text RichTextClass
	// Language field of PageBlockPreformatted.
	Language string
}

PageBlockPreformatted represents TL type `pageBlockPreformatted#c070d93e`.

func (*PageBlockPreformatted) Decode ¶

func (p *PageBlockPreformatted) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockPreformatted) Encode ¶

func (p *PageBlockPreformatted) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockPullquote ¶

type PageBlockPullquote struct {
	// Text field of PageBlockPullquote.
	Text RichTextClass
	// Caption field of PageBlockPullquote.
	Caption RichTextClass
}

PageBlockPullquote represents TL type `pageBlockPullquote#4f4456d3`.

func (*PageBlockPullquote) Decode ¶

func (p *PageBlockPullquote) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockPullquote) Encode ¶

func (p *PageBlockPullquote) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockRelatedArticles ¶

type PageBlockRelatedArticles struct {
	// Title field of PageBlockRelatedArticles.
	Title RichTextClass
	// Articles field of PageBlockRelatedArticles.
	Articles []PageRelatedArticle
}

PageBlockRelatedArticles represents TL type `pageBlockRelatedArticles#16115a96`.

func (*PageBlockRelatedArticles) Decode ¶

func (p *PageBlockRelatedArticles) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockRelatedArticles) Encode ¶

func (p *PageBlockRelatedArticles) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockSlideshow ¶

type PageBlockSlideshow struct {
	// Items field of PageBlockSlideshow.
	Items []PageBlockClass
	// Caption field of PageBlockSlideshow.
	Caption PageCaption
}

PageBlockSlideshow represents TL type `pageBlockSlideshow#31f9590`.

func (*PageBlockSlideshow) Decode ¶

func (p *PageBlockSlideshow) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockSlideshow) Encode ¶

func (p *PageBlockSlideshow) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockSubheader ¶

type PageBlockSubheader struct {
	// Text field of PageBlockSubheader.
	Text RichTextClass
}

PageBlockSubheader represents TL type `pageBlockSubheader#f12bb6e1`.

func (*PageBlockSubheader) Decode ¶

func (p *PageBlockSubheader) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockSubheader) Encode ¶

func (p *PageBlockSubheader) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockSubtitle ¶

type PageBlockSubtitle struct {
	// Text field of PageBlockSubtitle.
	Text RichTextClass
}

PageBlockSubtitle represents TL type `pageBlockSubtitle#8ffa9a1f`.

func (*PageBlockSubtitle) Decode ¶

func (p *PageBlockSubtitle) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockSubtitle) Encode ¶

func (p *PageBlockSubtitle) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockTable ¶

type PageBlockTable struct {
	// Flags field of PageBlockTable.
	Flags bin.Fields
	// Bordered field of PageBlockTable.
	Bordered bool
	// Striped field of PageBlockTable.
	Striped bool
	// Title field of PageBlockTable.
	Title RichTextClass
	// Rows field of PageBlockTable.
	Rows []PageTableRow
}

PageBlockTable represents TL type `pageBlockTable#bf4dea82`.

func (*PageBlockTable) Decode ¶

func (p *PageBlockTable) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockTable) Encode ¶

func (p *PageBlockTable) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PageBlockTable) SetBordered ¶

func (p *PageBlockTable) SetBordered(value bool)

SetBordered sets value of Bordered conditional field.

func (*PageBlockTable) SetStriped ¶

func (p *PageBlockTable) SetStriped(value bool)

SetStriped sets value of Striped conditional field.

type PageBlockTitle ¶

type PageBlockTitle struct {
	// Text field of PageBlockTitle.
	Text RichTextClass
}

PageBlockTitle represents TL type `pageBlockTitle#70abc3fd`.

func (*PageBlockTitle) Decode ¶

func (p *PageBlockTitle) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockTitle) Encode ¶

func (p *PageBlockTitle) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockUnsupported ¶

type PageBlockUnsupported struct {
}

PageBlockUnsupported represents TL type `pageBlockUnsupported#13567e8a`.

func (*PageBlockUnsupported) Decode ¶

func (p *PageBlockUnsupported) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockUnsupported) Encode ¶

func (p *PageBlockUnsupported) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageBlockVideo ¶

type PageBlockVideo struct {
	// Flags field of PageBlockVideo.
	Flags bin.Fields
	// Autoplay field of PageBlockVideo.
	Autoplay bool
	// Loop field of PageBlockVideo.
	Loop bool
	// VideoID field of PageBlockVideo.
	VideoID int64
	// Caption field of PageBlockVideo.
	Caption PageCaption
}

PageBlockVideo represents TL type `pageBlockVideo#7c8fe7b6`.

func (*PageBlockVideo) Decode ¶

func (p *PageBlockVideo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageBlockVideo) Encode ¶

func (p *PageBlockVideo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PageBlockVideo) SetAutoplay ¶

func (p *PageBlockVideo) SetAutoplay(value bool)

SetAutoplay sets value of Autoplay conditional field.

func (*PageBlockVideo) SetLoop ¶

func (p *PageBlockVideo) SetLoop(value bool)

SetLoop sets value of Loop conditional field.

type PageCaption ¶

type PageCaption struct {
	// Text field of PageCaption.
	Text RichTextClass
	// Credit field of PageCaption.
	Credit RichTextClass
}

PageCaption represents TL type `pageCaption#6f747657`.

func (*PageCaption) Decode ¶

func (p *PageCaption) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageCaption) Encode ¶

func (p *PageCaption) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageListItemBlocks ¶

type PageListItemBlocks struct {
	// Blocks field of PageListItemBlocks.
	Blocks []PageBlockClass
}

PageListItemBlocks represents TL type `pageListItemBlocks#25e073fc`.

func (*PageListItemBlocks) Decode ¶

func (p *PageListItemBlocks) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageListItemBlocks) Encode ¶

func (p *PageListItemBlocks) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageListItemBox ¶

type PageListItemBox struct {
	PageListItem PageListItemClass
}

PageListItem boxes the PageListItemClass providing a helper.

func (*PageListItemBox) Decode ¶

func (b *PageListItemBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PageListItemBox.

func (*PageListItemBox) Encode ¶

func (b *PageListItemBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PageListItemBox.

type PageListItemClass ¶

type PageListItemClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PageListItemClass represents PageListItem generic type.

Example:

g, err := DecodePageListItem(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PageListItemText: // pageListItemText#b92fb6cd
case *PageListItemBlocks: // pageListItemBlocks#25e073fc
default: panic(v)
}

func DecodePageListItem ¶

func DecodePageListItem(buf *bin.Buffer) (PageListItemClass, error)

DecodePageListItem implements binary de-serialization for PageListItemClass.

type PageListItemText ¶

type PageListItemText struct {
	// Text field of PageListItemText.
	Text RichTextClass
}

PageListItemText represents TL type `pageListItemText#b92fb6cd`.

func (*PageListItemText) Decode ¶

func (p *PageListItemText) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageListItemText) Encode ¶

func (p *PageListItemText) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageListOrderedItemBlocks ¶

type PageListOrderedItemBlocks struct {
	// Num field of PageListOrderedItemBlocks.
	Num string
	// Blocks field of PageListOrderedItemBlocks.
	Blocks []PageBlockClass
}

PageListOrderedItemBlocks represents TL type `pageListOrderedItemBlocks#98dd8936`.

func (*PageListOrderedItemBlocks) Decode ¶

func (p *PageListOrderedItemBlocks) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageListOrderedItemBlocks) Encode ¶

func (p *PageListOrderedItemBlocks) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageListOrderedItemBox ¶

type PageListOrderedItemBox struct {
	PageListOrderedItem PageListOrderedItemClass
}

PageListOrderedItem boxes the PageListOrderedItemClass providing a helper.

func (*PageListOrderedItemBox) Decode ¶

func (b *PageListOrderedItemBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PageListOrderedItemBox.

func (*PageListOrderedItemBox) Encode ¶

func (b *PageListOrderedItemBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PageListOrderedItemBox.

type PageListOrderedItemClass ¶

type PageListOrderedItemClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PageListOrderedItemClass represents PageListOrderedItem generic type.

Example:

g, err := DecodePageListOrderedItem(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PageListOrderedItemText: // pageListOrderedItemText#5e068047
case *PageListOrderedItemBlocks: // pageListOrderedItemBlocks#98dd8936
default: panic(v)
}

func DecodePageListOrderedItem ¶

func DecodePageListOrderedItem(buf *bin.Buffer) (PageListOrderedItemClass, error)

DecodePageListOrderedItem implements binary de-serialization for PageListOrderedItemClass.

type PageListOrderedItemText ¶

type PageListOrderedItemText struct {
	// Num field of PageListOrderedItemText.
	Num string
	// Text field of PageListOrderedItemText.
	Text RichTextClass
}

PageListOrderedItemText represents TL type `pageListOrderedItemText#5e068047`.

func (*PageListOrderedItemText) Decode ¶

func (p *PageListOrderedItemText) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageListOrderedItemText) Encode ¶

func (p *PageListOrderedItemText) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PageRelatedArticle ¶

type PageRelatedArticle struct {
	// Flags field of PageRelatedArticle.
	Flags bin.Fields
	// URL field of PageRelatedArticle.
	URL string
	// WebpageID field of PageRelatedArticle.
	WebpageID int64
	// Title field of PageRelatedArticle.
	//
	// Use SetTitle and GetTitle helpers.
	Title string
	// Description field of PageRelatedArticle.
	//
	// Use SetDescription and GetDescription helpers.
	Description string
	// PhotoID field of PageRelatedArticle.
	//
	// Use SetPhotoID and GetPhotoID helpers.
	PhotoID int64
	// Author field of PageRelatedArticle.
	//
	// Use SetAuthor and GetAuthor helpers.
	Author string
	// PublishedDate field of PageRelatedArticle.
	//
	// Use SetPublishedDate and GetPublishedDate helpers.
	PublishedDate int
}

PageRelatedArticle represents TL type `pageRelatedArticle#b390dc08`.

func (*PageRelatedArticle) Decode ¶

func (p *PageRelatedArticle) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageRelatedArticle) Encode ¶

func (p *PageRelatedArticle) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PageRelatedArticle) GetAuthor ¶

func (p *PageRelatedArticle) GetAuthor() (value string, ok bool)

GetAuthor returns value of Author conditional field and boolean which is true if field was set.

func (*PageRelatedArticle) GetDescription ¶

func (p *PageRelatedArticle) GetDescription() (value string, ok bool)

GetDescription returns value of Description conditional field and boolean which is true if field was set.

func (*PageRelatedArticle) GetPhotoID ¶

func (p *PageRelatedArticle) GetPhotoID() (value int64, ok bool)

GetPhotoID returns value of PhotoID conditional field and boolean which is true if field was set.

func (*PageRelatedArticle) GetPublishedDate ¶

func (p *PageRelatedArticle) GetPublishedDate() (value int, ok bool)

GetPublishedDate returns value of PublishedDate conditional field and boolean which is true if field was set.

func (*PageRelatedArticle) GetTitle ¶

func (p *PageRelatedArticle) GetTitle() (value string, ok bool)

GetTitle returns value of Title conditional field and boolean which is true if field was set.

func (*PageRelatedArticle) SetAuthor ¶

func (p *PageRelatedArticle) SetAuthor(value string)

SetAuthor sets value of Author conditional field.

func (*PageRelatedArticle) SetDescription ¶

func (p *PageRelatedArticle) SetDescription(value string)

SetDescription sets value of Description conditional field.

func (*PageRelatedArticle) SetPhotoID ¶

func (p *PageRelatedArticle) SetPhotoID(value int64)

SetPhotoID sets value of PhotoID conditional field.

func (*PageRelatedArticle) SetPublishedDate ¶

func (p *PageRelatedArticle) SetPublishedDate(value int)

SetPublishedDate sets value of PublishedDate conditional field.

func (*PageRelatedArticle) SetTitle ¶

func (p *PageRelatedArticle) SetTitle(value string)

SetTitle sets value of Title conditional field.

type PageTableCell ¶

type PageTableCell struct {
	// Flags field of PageTableCell.
	Flags bin.Fields
	// Header field of PageTableCell.
	Header bool
	// AlignCenter field of PageTableCell.
	AlignCenter bool
	// AlignRight field of PageTableCell.
	AlignRight bool
	// ValignMiddle field of PageTableCell.
	ValignMiddle bool
	// ValignBottom field of PageTableCell.
	ValignBottom bool
	// Text field of PageTableCell.
	//
	// Use SetText and GetText helpers.
	Text RichTextClass
	// Colspan field of PageTableCell.
	//
	// Use SetColspan and GetColspan helpers.
	Colspan int
	// Rowspan field of PageTableCell.
	//
	// Use SetRowspan and GetRowspan helpers.
	Rowspan int
}

PageTableCell represents TL type `pageTableCell#34566b6a`.

func (*PageTableCell) Decode ¶

func (p *PageTableCell) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageTableCell) Encode ¶

func (p *PageTableCell) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PageTableCell) GetColspan ¶

func (p *PageTableCell) GetColspan() (value int, ok bool)

GetColspan returns value of Colspan conditional field and boolean which is true if field was set.

func (*PageTableCell) GetRowspan ¶

func (p *PageTableCell) GetRowspan() (value int, ok bool)

GetRowspan returns value of Rowspan conditional field and boolean which is true if field was set.

func (*PageTableCell) GetText ¶

func (p *PageTableCell) GetText() (value RichTextClass, ok bool)

GetText returns value of Text conditional field and boolean which is true if field was set.

func (*PageTableCell) SetAlignCenter ¶

func (p *PageTableCell) SetAlignCenter(value bool)

SetAlignCenter sets value of AlignCenter conditional field.

func (*PageTableCell) SetAlignRight ¶

func (p *PageTableCell) SetAlignRight(value bool)

SetAlignRight sets value of AlignRight conditional field.

func (*PageTableCell) SetColspan ¶

func (p *PageTableCell) SetColspan(value int)

SetColspan sets value of Colspan conditional field.

func (*PageTableCell) SetHeader ¶

func (p *PageTableCell) SetHeader(value bool)

SetHeader sets value of Header conditional field.

func (*PageTableCell) SetRowspan ¶

func (p *PageTableCell) SetRowspan(value int)

SetRowspan sets value of Rowspan conditional field.

func (*PageTableCell) SetText ¶

func (p *PageTableCell) SetText(value RichTextClass)

SetText sets value of Text conditional field.

func (*PageTableCell) SetValignBottom ¶

func (p *PageTableCell) SetValignBottom(value bool)

SetValignBottom sets value of ValignBottom conditional field.

func (*PageTableCell) SetValignMiddle ¶

func (p *PageTableCell) SetValignMiddle(value bool)

SetValignMiddle sets value of ValignMiddle conditional field.

type PageTableRow ¶

type PageTableRow struct {
	// Cells field of PageTableRow.
	Cells []PageTableCell
}

PageTableRow represents TL type `pageTableRow#e0c0c5e5`.

func (*PageTableRow) Decode ¶

func (p *PageTableRow) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PageTableRow) Encode ¶

func (p *PageTableRow) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PasswordKdfAlgoBox ¶

type PasswordKdfAlgoBox struct {
	PasswordKdfAlgo PasswordKdfAlgoClass
}

PasswordKdfAlgo boxes the PasswordKdfAlgoClass providing a helper.

func (*PasswordKdfAlgoBox) Decode ¶

func (b *PasswordKdfAlgoBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PasswordKdfAlgoBox.

func (*PasswordKdfAlgoBox) Encode ¶

func (b *PasswordKdfAlgoBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PasswordKdfAlgoBox.

type PasswordKdfAlgoClass ¶

type PasswordKdfAlgoClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PasswordKdfAlgoClass represents PasswordKdfAlgo generic type.

Example:

g, err := DecodePasswordKdfAlgo(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PasswordKdfAlgoUnknown: // passwordKdfAlgoUnknown#d45ab096
case *PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow: // passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a
default: panic(v)
}

func DecodePasswordKdfAlgo ¶

func DecodePasswordKdfAlgo(buf *bin.Buffer) (PasswordKdfAlgoClass, error)

DecodePasswordKdfAlgo implements binary de-serialization for PasswordKdfAlgoClass.

type PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow ¶

type PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow struct {
	// Salt1 field of PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.
	Salt1 []byte
	// Salt2 field of PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.
	Salt2 []byte
	// G field of PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.
	G int
	// P field of PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.
	P []byte
}

PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow represents TL type `passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a`.

func (*PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow) Decode ¶

Decode implements bin.Decoder.

func (*PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow) Encode ¶

Encode implements bin.Encoder.

type PasswordKdfAlgoUnknown ¶

type PasswordKdfAlgoUnknown struct {
}

PasswordKdfAlgoUnknown represents TL type `passwordKdfAlgoUnknown#d45ab096`.

func (*PasswordKdfAlgoUnknown) Decode ¶

func (p *PasswordKdfAlgoUnknown) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PasswordKdfAlgoUnknown) Encode ¶

func (p *PasswordKdfAlgoUnknown) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PaymentCharge ¶

type PaymentCharge struct {
	// ID field of PaymentCharge.
	ID string
	// ProviderChargeID field of PaymentCharge.
	ProviderChargeID string
}

PaymentCharge represents TL type `paymentCharge#ea02c27e`.

func (*PaymentCharge) Decode ¶

func (p *PaymentCharge) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PaymentCharge) Encode ¶

func (p *PaymentCharge) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PaymentRequestedInfo ¶

type PaymentRequestedInfo struct {
	// Flags field of PaymentRequestedInfo.
	Flags bin.Fields
	// Name field of PaymentRequestedInfo.
	//
	// Use SetName and GetName helpers.
	Name string
	// Phone field of PaymentRequestedInfo.
	//
	// Use SetPhone and GetPhone helpers.
	Phone string
	// Email field of PaymentRequestedInfo.
	//
	// Use SetEmail and GetEmail helpers.
	Email string
	// ShippingAddress field of PaymentRequestedInfo.
	//
	// Use SetShippingAddress and GetShippingAddress helpers.
	ShippingAddress PostAddress
}

PaymentRequestedInfo represents TL type `paymentRequestedInfo#909c3f94`.

func (*PaymentRequestedInfo) Decode ¶

func (p *PaymentRequestedInfo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PaymentRequestedInfo) Encode ¶

func (p *PaymentRequestedInfo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PaymentRequestedInfo) GetEmail ¶

func (p *PaymentRequestedInfo) GetEmail() (value string, ok bool)

GetEmail returns value of Email conditional field and boolean which is true if field was set.

func (*PaymentRequestedInfo) GetName ¶

func (p *PaymentRequestedInfo) GetName() (value string, ok bool)

GetName returns value of Name conditional field and boolean which is true if field was set.

func (*PaymentRequestedInfo) GetPhone ¶

func (p *PaymentRequestedInfo) GetPhone() (value string, ok bool)

GetPhone returns value of Phone conditional field and boolean which is true if field was set.

func (*PaymentRequestedInfo) GetShippingAddress ¶

func (p *PaymentRequestedInfo) GetShippingAddress() (value PostAddress, ok bool)

GetShippingAddress returns value of ShippingAddress conditional field and boolean which is true if field was set.

func (*PaymentRequestedInfo) SetEmail ¶

func (p *PaymentRequestedInfo) SetEmail(value string)

SetEmail sets value of Email conditional field.

func (*PaymentRequestedInfo) SetName ¶

func (p *PaymentRequestedInfo) SetName(value string)

SetName sets value of Name conditional field.

func (*PaymentRequestedInfo) SetPhone ¶

func (p *PaymentRequestedInfo) SetPhone(value string)

SetPhone sets value of Phone conditional field.

func (*PaymentRequestedInfo) SetShippingAddress ¶

func (p *PaymentRequestedInfo) SetShippingAddress(value PostAddress)

SetShippingAddress sets value of ShippingAddress conditional field.

type PaymentSavedCredentialsCard ¶

type PaymentSavedCredentialsCard struct {
	// ID field of PaymentSavedCredentialsCard.
	ID string
	// Title field of PaymentSavedCredentialsCard.
	Title string
}

PaymentSavedCredentialsCard represents TL type `paymentSavedCredentialsCard#cdc27a1f`.

func (*PaymentSavedCredentialsCard) Decode ¶

Decode implements bin.Decoder.

func (*PaymentSavedCredentialsCard) Encode ¶

Encode implements bin.Encoder.

type PaymentsBankCardData ¶

type PaymentsBankCardData struct {
	// Title field of PaymentsBankCardData.
	Title string
	// OpenUrls field of PaymentsBankCardData.
	OpenUrls []BankCardOpenUrl
}

PaymentsBankCardData represents TL type `payments.bankCardData#3e24e573`.

func (*PaymentsBankCardData) Decode ¶

func (b *PaymentsBankCardData) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*PaymentsBankCardData) Encode ¶

func (b *PaymentsBankCardData) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type PaymentsClearSavedInfoRequest ¶

type PaymentsClearSavedInfoRequest struct {
	// Flags field of PaymentsClearSavedInfoRequest.
	Flags bin.Fields
	// Credentials field of PaymentsClearSavedInfoRequest.
	Credentials bool
	// Info field of PaymentsClearSavedInfoRequest.
	Info bool
}

PaymentsClearSavedInfoRequest represents TL type `payments.clearSavedInfo#d83d70c1`.

func (*PaymentsClearSavedInfoRequest) Decode ¶

Decode implements bin.Decoder.

func (*PaymentsClearSavedInfoRequest) Encode ¶

Encode implements bin.Encoder.

func (*PaymentsClearSavedInfoRequest) SetCredentials ¶

func (c *PaymentsClearSavedInfoRequest) SetCredentials(value bool)

SetCredentials sets value of Credentials conditional field.

func (*PaymentsClearSavedInfoRequest) SetInfo ¶

func (c *PaymentsClearSavedInfoRequest) SetInfo(value bool)

SetInfo sets value of Info conditional field.

type PaymentsGetBankCardDataRequest ¶

type PaymentsGetBankCardDataRequest struct {
	// Number field of PaymentsGetBankCardDataRequest.
	Number string
}

PaymentsGetBankCardDataRequest represents TL type `payments.getBankCardData#2e79d779`.

func (*PaymentsGetBankCardDataRequest) Decode ¶

Decode implements bin.Decoder.

func (*PaymentsGetBankCardDataRequest) Encode ¶

Encode implements bin.Encoder.

type PaymentsGetPaymentFormRequest ¶

type PaymentsGetPaymentFormRequest struct {
	// MsgID field of PaymentsGetPaymentFormRequest.
	MsgID int
}

PaymentsGetPaymentFormRequest represents TL type `payments.getPaymentForm#99f09745`.

func (*PaymentsGetPaymentFormRequest) Decode ¶

Decode implements bin.Decoder.

func (*PaymentsGetPaymentFormRequest) Encode ¶

Encode implements bin.Encoder.

type PaymentsGetPaymentReceiptRequest ¶

type PaymentsGetPaymentReceiptRequest struct {
	// MsgID field of PaymentsGetPaymentReceiptRequest.
	MsgID int
}

PaymentsGetPaymentReceiptRequest represents TL type `payments.getPaymentReceipt#a092a980`.

func (*PaymentsGetPaymentReceiptRequest) Decode ¶

Decode implements bin.Decoder.

func (*PaymentsGetPaymentReceiptRequest) Encode ¶

Encode implements bin.Encoder.

type PaymentsGetSavedInfoRequest ¶

type PaymentsGetSavedInfoRequest struct {
}

PaymentsGetSavedInfoRequest represents TL type `payments.getSavedInfo#227d824b`.

func (*PaymentsGetSavedInfoRequest) Decode ¶

Decode implements bin.Decoder.

func (*PaymentsGetSavedInfoRequest) Encode ¶

Encode implements bin.Encoder.

type PaymentsPaymentForm ¶

type PaymentsPaymentForm struct {
	// Flags field of PaymentsPaymentForm.
	Flags bin.Fields
	// CanSaveCredentials field of PaymentsPaymentForm.
	CanSaveCredentials bool
	// PasswordMissing field of PaymentsPaymentForm.
	PasswordMissing bool
	// BotID field of PaymentsPaymentForm.
	BotID int
	// Invoice field of PaymentsPaymentForm.
	Invoice Invoice
	// ProviderID field of PaymentsPaymentForm.
	ProviderID int
	// URL field of PaymentsPaymentForm.
	URL string
	// NativeProvider field of PaymentsPaymentForm.
	//
	// Use SetNativeProvider and GetNativeProvider helpers.
	NativeProvider string
	// NativeParams field of PaymentsPaymentForm.
	//
	// Use SetNativeParams and GetNativeParams helpers.
	NativeParams DataJSON
	// SavedInfo field of PaymentsPaymentForm.
	//
	// Use SetSavedInfo and GetSavedInfo helpers.
	SavedInfo PaymentRequestedInfo
	// SavedCredentials field of PaymentsPaymentForm.
	//
	// Use SetSavedCredentials and GetSavedCredentials helpers.
	SavedCredentials PaymentSavedCredentialsCard
	// Users field of PaymentsPaymentForm.
	Users []UserClass
}

PaymentsPaymentForm represents TL type `payments.paymentForm#3f56aea3`.

func (*PaymentsPaymentForm) Decode ¶

func (p *PaymentsPaymentForm) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PaymentsPaymentForm) Encode ¶

func (p *PaymentsPaymentForm) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PaymentsPaymentForm) GetNativeParams ¶

func (p *PaymentsPaymentForm) GetNativeParams() (value DataJSON, ok bool)

GetNativeParams returns value of NativeParams conditional field and boolean which is true if field was set.

func (*PaymentsPaymentForm) GetNativeProvider ¶

func (p *PaymentsPaymentForm) GetNativeProvider() (value string, ok bool)

GetNativeProvider returns value of NativeProvider conditional field and boolean which is true if field was set.

func (*PaymentsPaymentForm) GetSavedCredentials ¶

func (p *PaymentsPaymentForm) GetSavedCredentials() (value PaymentSavedCredentialsCard, ok bool)

GetSavedCredentials returns value of SavedCredentials conditional field and boolean which is true if field was set.

func (*PaymentsPaymentForm) GetSavedInfo ¶

func (p *PaymentsPaymentForm) GetSavedInfo() (value PaymentRequestedInfo, ok bool)

GetSavedInfo returns value of SavedInfo conditional field and boolean which is true if field was set.

func (*PaymentsPaymentForm) SetCanSaveCredentials ¶

func (p *PaymentsPaymentForm) SetCanSaveCredentials(value bool)

SetCanSaveCredentials sets value of CanSaveCredentials conditional field.

func (*PaymentsPaymentForm) SetNativeParams ¶

func (p *PaymentsPaymentForm) SetNativeParams(value DataJSON)

SetNativeParams sets value of NativeParams conditional field.

func (*PaymentsPaymentForm) SetNativeProvider ¶

func (p *PaymentsPaymentForm) SetNativeProvider(value string)

SetNativeProvider sets value of NativeProvider conditional field.

func (*PaymentsPaymentForm) SetPasswordMissing ¶

func (p *PaymentsPaymentForm) SetPasswordMissing(value bool)

SetPasswordMissing sets value of PasswordMissing conditional field.

func (*PaymentsPaymentForm) SetSavedCredentials ¶

func (p *PaymentsPaymentForm) SetSavedCredentials(value PaymentSavedCredentialsCard)

SetSavedCredentials sets value of SavedCredentials conditional field.

func (*PaymentsPaymentForm) SetSavedInfo ¶

func (p *PaymentsPaymentForm) SetSavedInfo(value PaymentRequestedInfo)

SetSavedInfo sets value of SavedInfo conditional field.

type PaymentsPaymentReceipt ¶

type PaymentsPaymentReceipt struct {
	// Flags field of PaymentsPaymentReceipt.
	Flags bin.Fields
	// Date field of PaymentsPaymentReceipt.
	Date int
	// BotID field of PaymentsPaymentReceipt.
	BotID int
	// Invoice field of PaymentsPaymentReceipt.
	Invoice Invoice
	// ProviderID field of PaymentsPaymentReceipt.
	ProviderID int
	// Info field of PaymentsPaymentReceipt.
	//
	// Use SetInfo and GetInfo helpers.
	Info PaymentRequestedInfo
	// Shipping field of PaymentsPaymentReceipt.
	//
	// Use SetShipping and GetShipping helpers.
	Shipping ShippingOption
	// Currency field of PaymentsPaymentReceipt.
	Currency string
	// TotalAmount field of PaymentsPaymentReceipt.
	TotalAmount int64
	// CredentialsTitle field of PaymentsPaymentReceipt.
	CredentialsTitle string
	// Users field of PaymentsPaymentReceipt.
	Users []UserClass
}

PaymentsPaymentReceipt represents TL type `payments.paymentReceipt#500911e1`.

func (*PaymentsPaymentReceipt) Decode ¶

func (p *PaymentsPaymentReceipt) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PaymentsPaymentReceipt) Encode ¶

func (p *PaymentsPaymentReceipt) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PaymentsPaymentReceipt) GetInfo ¶

func (p *PaymentsPaymentReceipt) GetInfo() (value PaymentRequestedInfo, ok bool)

GetInfo returns value of Info conditional field and boolean which is true if field was set.

func (*PaymentsPaymentReceipt) GetShipping ¶

func (p *PaymentsPaymentReceipt) GetShipping() (value ShippingOption, ok bool)

GetShipping returns value of Shipping conditional field and boolean which is true if field was set.

func (*PaymentsPaymentReceipt) SetInfo ¶

func (p *PaymentsPaymentReceipt) SetInfo(value PaymentRequestedInfo)

SetInfo sets value of Info conditional field.

func (*PaymentsPaymentReceipt) SetShipping ¶

func (p *PaymentsPaymentReceipt) SetShipping(value ShippingOption)

SetShipping sets value of Shipping conditional field.

type PaymentsPaymentResult ¶

type PaymentsPaymentResult struct {
	// Updates field of PaymentsPaymentResult.
	Updates UpdatesClass
}

PaymentsPaymentResult represents TL type `payments.paymentResult#4e5f810d`.

func (*PaymentsPaymentResult) Decode ¶

func (p *PaymentsPaymentResult) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PaymentsPaymentResult) Encode ¶

func (p *PaymentsPaymentResult) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PaymentsPaymentResultBox ¶

type PaymentsPaymentResultBox struct {
	PaymentResult PaymentsPaymentResultClass
}

PaymentsPaymentResult boxes the PaymentsPaymentResultClass providing a helper.

func (*PaymentsPaymentResultBox) Decode ¶

func (b *PaymentsPaymentResultBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PaymentsPaymentResultBox.

func (*PaymentsPaymentResultBox) Encode ¶

func (b *PaymentsPaymentResultBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PaymentsPaymentResultBox.

type PaymentsPaymentResultClass ¶

type PaymentsPaymentResultClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PaymentsPaymentResultClass represents payments.PaymentResult generic type.

Example:

g, err := DecodePaymentsPaymentResult(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PaymentsPaymentResult: // payments.paymentResult#4e5f810d
case *PaymentsPaymentVerificationNeeded: // payments.paymentVerificationNeeded#d8411139
default: panic(v)
}

func DecodePaymentsPaymentResult ¶

func DecodePaymentsPaymentResult(buf *bin.Buffer) (PaymentsPaymentResultClass, error)

DecodePaymentsPaymentResult implements binary de-serialization for PaymentsPaymentResultClass.

type PaymentsPaymentVerificationNeeded ¶

type PaymentsPaymentVerificationNeeded struct {
	// URL field of PaymentsPaymentVerificationNeeded.
	URL string
}

PaymentsPaymentVerificationNeeded represents TL type `payments.paymentVerificationNeeded#d8411139`.

func (*PaymentsPaymentVerificationNeeded) Decode ¶

Decode implements bin.Decoder.

func (*PaymentsPaymentVerificationNeeded) Encode ¶

Encode implements bin.Encoder.

type PaymentsSavedInfo ¶

type PaymentsSavedInfo struct {
	// Flags field of PaymentsSavedInfo.
	Flags bin.Fields
	// HasSavedCredentials field of PaymentsSavedInfo.
	HasSavedCredentials bool
	// SavedInfo field of PaymentsSavedInfo.
	//
	// Use SetSavedInfo and GetSavedInfo helpers.
	SavedInfo PaymentRequestedInfo
}

PaymentsSavedInfo represents TL type `payments.savedInfo#fb8fe43c`.

func (*PaymentsSavedInfo) Decode ¶

func (s *PaymentsSavedInfo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PaymentsSavedInfo) Encode ¶

func (s *PaymentsSavedInfo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PaymentsSavedInfo) GetSavedInfo ¶

func (s *PaymentsSavedInfo) GetSavedInfo() (value PaymentRequestedInfo, ok bool)

GetSavedInfo returns value of SavedInfo conditional field and boolean which is true if field was set.

func (*PaymentsSavedInfo) SetHasSavedCredentials ¶

func (s *PaymentsSavedInfo) SetHasSavedCredentials(value bool)

SetHasSavedCredentials sets value of HasSavedCredentials conditional field.

func (*PaymentsSavedInfo) SetSavedInfo ¶

func (s *PaymentsSavedInfo) SetSavedInfo(value PaymentRequestedInfo)

SetSavedInfo sets value of SavedInfo conditional field.

type PaymentsSendPaymentFormRequest ¶

type PaymentsSendPaymentFormRequest struct {
	// Flags field of PaymentsSendPaymentFormRequest.
	Flags bin.Fields
	// MsgID field of PaymentsSendPaymentFormRequest.
	MsgID int
	// RequestedInfoID field of PaymentsSendPaymentFormRequest.
	//
	// Use SetRequestedInfoID and GetRequestedInfoID helpers.
	RequestedInfoID string
	// ShippingOptionID field of PaymentsSendPaymentFormRequest.
	//
	// Use SetShippingOptionID and GetShippingOptionID helpers.
	ShippingOptionID string
	// Credentials field of PaymentsSendPaymentFormRequest.
	Credentials InputPaymentCredentialsClass
}

PaymentsSendPaymentFormRequest represents TL type `payments.sendPaymentForm#2b8879b3`.

func (*PaymentsSendPaymentFormRequest) Decode ¶

Decode implements bin.Decoder.

func (*PaymentsSendPaymentFormRequest) Encode ¶

Encode implements bin.Encoder.

func (*PaymentsSendPaymentFormRequest) GetRequestedInfoID ¶

func (s *PaymentsSendPaymentFormRequest) GetRequestedInfoID() (value string, ok bool)

GetRequestedInfoID returns value of RequestedInfoID conditional field and boolean which is true if field was set.

func (*PaymentsSendPaymentFormRequest) GetShippingOptionID ¶

func (s *PaymentsSendPaymentFormRequest) GetShippingOptionID() (value string, ok bool)

GetShippingOptionID returns value of ShippingOptionID conditional field and boolean which is true if field was set.

func (*PaymentsSendPaymentFormRequest) SetRequestedInfoID ¶

func (s *PaymentsSendPaymentFormRequest) SetRequestedInfoID(value string)

SetRequestedInfoID sets value of RequestedInfoID conditional field.

func (*PaymentsSendPaymentFormRequest) SetShippingOptionID ¶

func (s *PaymentsSendPaymentFormRequest) SetShippingOptionID(value string)

SetShippingOptionID sets value of ShippingOptionID conditional field.

type PaymentsValidateRequestedInfoRequest ¶

type PaymentsValidateRequestedInfoRequest struct {
	// Flags field of PaymentsValidateRequestedInfoRequest.
	Flags bin.Fields
	// Save field of PaymentsValidateRequestedInfoRequest.
	Save bool
	// MsgID field of PaymentsValidateRequestedInfoRequest.
	MsgID int
	// Info field of PaymentsValidateRequestedInfoRequest.
	Info PaymentRequestedInfo
}

PaymentsValidateRequestedInfoRequest represents TL type `payments.validateRequestedInfo#770a8e74`.

func (*PaymentsValidateRequestedInfoRequest) Decode ¶

Decode implements bin.Decoder.

func (*PaymentsValidateRequestedInfoRequest) Encode ¶

Encode implements bin.Encoder.

func (*PaymentsValidateRequestedInfoRequest) SetSave ¶

func (v *PaymentsValidateRequestedInfoRequest) SetSave(value bool)

SetSave sets value of Save conditional field.

type PaymentsValidatedRequestedInfo ¶

type PaymentsValidatedRequestedInfo struct {
	// Flags field of PaymentsValidatedRequestedInfo.
	Flags bin.Fields
	// ID field of PaymentsValidatedRequestedInfo.
	//
	// Use SetID and GetID helpers.
	ID string
	// ShippingOptions field of PaymentsValidatedRequestedInfo.
	//
	// Use SetShippingOptions and GetShippingOptions helpers.
	ShippingOptions []ShippingOption
}

PaymentsValidatedRequestedInfo represents TL type `payments.validatedRequestedInfo#d1451883`.

func (*PaymentsValidatedRequestedInfo) Decode ¶

Decode implements bin.Decoder.

func (*PaymentsValidatedRequestedInfo) Encode ¶

Encode implements bin.Encoder.

func (*PaymentsValidatedRequestedInfo) GetID ¶

func (v *PaymentsValidatedRequestedInfo) GetID() (value string, ok bool)

GetID returns value of ID conditional field and boolean which is true if field was set.

func (*PaymentsValidatedRequestedInfo) GetShippingOptions ¶

func (v *PaymentsValidatedRequestedInfo) GetShippingOptions() (value []ShippingOption, ok bool)

GetShippingOptions returns value of ShippingOptions conditional field and boolean which is true if field was set.

func (*PaymentsValidatedRequestedInfo) SetID ¶

func (v *PaymentsValidatedRequestedInfo) SetID(value string)

SetID sets value of ID conditional field.

func (*PaymentsValidatedRequestedInfo) SetShippingOptions ¶

func (v *PaymentsValidatedRequestedInfo) SetShippingOptions(value []ShippingOption)

SetShippingOptions sets value of ShippingOptions conditional field.

type PeerBlocked ¶

type PeerBlocked struct {
	// PeerID field of PeerBlocked.
	PeerID PeerClass
	// Date field of PeerBlocked.
	Date int
}

PeerBlocked represents TL type `peerBlocked#e8fd8014`.

func (*PeerBlocked) Decode ¶

func (p *PeerBlocked) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PeerBlocked) Encode ¶

func (p *PeerBlocked) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PeerBox ¶

type PeerBox struct {
	Peer PeerClass
}

Peer boxes the PeerClass providing a helper.

func (*PeerBox) Decode ¶

func (b *PeerBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PeerBox.

func (*PeerBox) Encode ¶

func (b *PeerBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PeerBox.

type PeerChannel ¶

type PeerChannel struct {
	// ChannelID field of PeerChannel.
	ChannelID int
}

PeerChannel represents TL type `peerChannel#bddde532`.

func (*PeerChannel) Decode ¶

func (p *PeerChannel) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PeerChannel) Encode ¶

func (p *PeerChannel) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PeerChat ¶

type PeerChat struct {
	// ChatID field of PeerChat.
	ChatID int
}

PeerChat represents TL type `peerChat#bad0e5bb`.

func (*PeerChat) Decode ¶

func (p *PeerChat) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PeerChat) Encode ¶

func (p *PeerChat) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PeerClass ¶

type PeerClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PeerClass represents Peer generic type.

Example:

g, err := DecodePeer(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PeerUser: // peerUser#9db1bc6d
case *PeerChat: // peerChat#bad0e5bb
case *PeerChannel: // peerChannel#bddde532
default: panic(v)
}

func DecodePeer ¶

func DecodePeer(buf *bin.Buffer) (PeerClass, error)

DecodePeer implements binary de-serialization for PeerClass.

type PeerLocated ¶

type PeerLocated struct {
	// Peer field of PeerLocated.
	Peer PeerClass
	// Expires field of PeerLocated.
	Expires int
	// Distance field of PeerLocated.
	Distance int
}

PeerLocated represents TL type `peerLocated#ca461b5d`.

func (*PeerLocated) Decode ¶

func (p *PeerLocated) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PeerLocated) Encode ¶

func (p *PeerLocated) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PeerLocatedBox ¶

type PeerLocatedBox struct {
	PeerLocated PeerLocatedClass
}

PeerLocated boxes the PeerLocatedClass providing a helper.

func (*PeerLocatedBox) Decode ¶

func (b *PeerLocatedBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PeerLocatedBox.

func (*PeerLocatedBox) Encode ¶

func (b *PeerLocatedBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PeerLocatedBox.

type PeerLocatedClass ¶

type PeerLocatedClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PeerLocatedClass represents PeerLocated generic type.

Example:

g, err := DecodePeerLocated(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PeerLocated: // peerLocated#ca461b5d
case *PeerSelfLocated: // peerSelfLocated#f8ec284b
default: panic(v)
}

func DecodePeerLocated ¶

func DecodePeerLocated(buf *bin.Buffer) (PeerLocatedClass, error)

DecodePeerLocated implements binary de-serialization for PeerLocatedClass.

type PeerNotifySettings ¶

type PeerNotifySettings struct {
	// Flags field of PeerNotifySettings.
	Flags bin.Fields
	// ShowPreviews field of PeerNotifySettings.
	ShowPreviews bool
	// Silent field of PeerNotifySettings.
	Silent bool
	// MuteUntil field of PeerNotifySettings.
	//
	// Use SetMuteUntil and GetMuteUntil helpers.
	MuteUntil int
	// Sound field of PeerNotifySettings.
	//
	// Use SetSound and GetSound helpers.
	Sound string
}

PeerNotifySettings represents TL type `peerNotifySettings#af509d20`.

func (*PeerNotifySettings) Decode ¶

func (p *PeerNotifySettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PeerNotifySettings) Encode ¶

func (p *PeerNotifySettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PeerNotifySettings) GetMuteUntil ¶

func (p *PeerNotifySettings) GetMuteUntil() (value int, ok bool)

GetMuteUntil returns value of MuteUntil conditional field and boolean which is true if field was set.

func (*PeerNotifySettings) GetSound ¶

func (p *PeerNotifySettings) GetSound() (value string, ok bool)

GetSound returns value of Sound conditional field and boolean which is true if field was set.

func (*PeerNotifySettings) SetMuteUntil ¶

func (p *PeerNotifySettings) SetMuteUntil(value int)

SetMuteUntil sets value of MuteUntil conditional field.

func (*PeerNotifySettings) SetShowPreviews ¶

func (p *PeerNotifySettings) SetShowPreviews(value bool)

SetShowPreviews sets value of ShowPreviews conditional field.

func (*PeerNotifySettings) SetSilent ¶

func (p *PeerNotifySettings) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

func (*PeerNotifySettings) SetSound ¶

func (p *PeerNotifySettings) SetSound(value string)

SetSound sets value of Sound conditional field.

type PeerSelfLocated ¶

type PeerSelfLocated struct {
	// Expires field of PeerSelfLocated.
	Expires int
}

PeerSelfLocated represents TL type `peerSelfLocated#f8ec284b`.

func (*PeerSelfLocated) Decode ¶

func (p *PeerSelfLocated) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PeerSelfLocated) Encode ¶

func (p *PeerSelfLocated) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PeerSettings ¶

type PeerSettings struct {
	// Flags field of PeerSettings.
	Flags bin.Fields
	// ReportSpam field of PeerSettings.
	ReportSpam bool
	// AddContact field of PeerSettings.
	AddContact bool
	// BlockContact field of PeerSettings.
	BlockContact bool
	// ShareContact field of PeerSettings.
	ShareContact bool
	// NeedContactsException field of PeerSettings.
	NeedContactsException bool
	// ReportGeo field of PeerSettings.
	ReportGeo bool
	// Autoarchived field of PeerSettings.
	Autoarchived bool
	// GeoDistance field of PeerSettings.
	//
	// Use SetGeoDistance and GetGeoDistance helpers.
	GeoDistance int
}

PeerSettings represents TL type `peerSettings#733f2961`.

func (*PeerSettings) Decode ¶

func (p *PeerSettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PeerSettings) Encode ¶

func (p *PeerSettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PeerSettings) GetGeoDistance ¶

func (p *PeerSettings) GetGeoDistance() (value int, ok bool)

GetGeoDistance returns value of GeoDistance conditional field and boolean which is true if field was set.

func (*PeerSettings) SetAddContact ¶

func (p *PeerSettings) SetAddContact(value bool)

SetAddContact sets value of AddContact conditional field.

func (*PeerSettings) SetAutoarchived ¶

func (p *PeerSettings) SetAutoarchived(value bool)

SetAutoarchived sets value of Autoarchived conditional field.

func (*PeerSettings) SetBlockContact ¶

func (p *PeerSettings) SetBlockContact(value bool)

SetBlockContact sets value of BlockContact conditional field.

func (*PeerSettings) SetGeoDistance ¶

func (p *PeerSettings) SetGeoDistance(value int)

SetGeoDistance sets value of GeoDistance conditional field.

func (*PeerSettings) SetNeedContactsException ¶

func (p *PeerSettings) SetNeedContactsException(value bool)

SetNeedContactsException sets value of NeedContactsException conditional field.

func (*PeerSettings) SetReportGeo ¶

func (p *PeerSettings) SetReportGeo(value bool)

SetReportGeo sets value of ReportGeo conditional field.

func (*PeerSettings) SetReportSpam ¶

func (p *PeerSettings) SetReportSpam(value bool)

SetReportSpam sets value of ReportSpam conditional field.

func (*PeerSettings) SetShareContact ¶

func (p *PeerSettings) SetShareContact(value bool)

SetShareContact sets value of ShareContact conditional field.

type PeerUser ¶

type PeerUser struct {
	// UserID field of PeerUser.
	UserID int
}

PeerUser represents TL type `peerUser#9db1bc6d`.

func (*PeerUser) Decode ¶

func (p *PeerUser) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PeerUser) Encode ¶

func (p *PeerUser) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhoneAcceptCallRequest ¶

type PhoneAcceptCallRequest struct {
	// Peer field of PhoneAcceptCallRequest.
	Peer InputPhoneCall
	// GB field of PhoneAcceptCallRequest.
	GB []byte
	// Protocol field of PhoneAcceptCallRequest.
	Protocol PhoneCallProtocol
}

PhoneAcceptCallRequest represents TL type `phone.acceptCall#3bd2b4a0`.

func (*PhoneAcceptCallRequest) Decode ¶

func (a *PhoneAcceptCallRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneAcceptCallRequest) Encode ¶

func (a *PhoneAcceptCallRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhoneCall ¶

type PhoneCall struct {
	// Flags field of PhoneCall.
	Flags bin.Fields
	// P2PAllowed field of PhoneCall.
	P2PAllowed bool
	// Video field of PhoneCall.
	Video bool
	// ID field of PhoneCall.
	ID int64
	// AccessHash field of PhoneCall.
	AccessHash int64
	// Date field of PhoneCall.
	Date int
	// AdminID field of PhoneCall.
	AdminID int
	// ParticipantID field of PhoneCall.
	ParticipantID int
	// GAOrB field of PhoneCall.
	GAOrB []byte
	// KeyFingerprint field of PhoneCall.
	KeyFingerprint int64
	// Protocol field of PhoneCall.
	Protocol PhoneCallProtocol
	// Connections field of PhoneCall.
	Connections []PhoneConnectionClass
	// StartDate field of PhoneCall.
	StartDate int
}

PhoneCall represents TL type `phoneCall#8742ae7f`.

func (*PhoneCall) Decode ¶

func (p *PhoneCall) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneCall) Encode ¶

func (p *PhoneCall) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PhoneCall) SetP2PAllowed ¶

func (p *PhoneCall) SetP2PAllowed(value bool)

SetP2PAllowed sets value of P2PAllowed conditional field.

func (*PhoneCall) SetVideo ¶

func (p *PhoneCall) SetVideo(value bool)

SetVideo sets value of Video conditional field.

type PhoneCallAccepted ¶

type PhoneCallAccepted struct {
	// Flags field of PhoneCallAccepted.
	Flags bin.Fields
	// Video field of PhoneCallAccepted.
	Video bool
	// ID field of PhoneCallAccepted.
	ID int64
	// AccessHash field of PhoneCallAccepted.
	AccessHash int64
	// Date field of PhoneCallAccepted.
	Date int
	// AdminID field of PhoneCallAccepted.
	AdminID int
	// ParticipantID field of PhoneCallAccepted.
	ParticipantID int
	// GB field of PhoneCallAccepted.
	GB []byte
	// Protocol field of PhoneCallAccepted.
	Protocol PhoneCallProtocol
}

PhoneCallAccepted represents TL type `phoneCallAccepted#997c454a`.

func (*PhoneCallAccepted) Decode ¶

func (p *PhoneCallAccepted) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneCallAccepted) Encode ¶

func (p *PhoneCallAccepted) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PhoneCallAccepted) SetVideo ¶

func (p *PhoneCallAccepted) SetVideo(value bool)

SetVideo sets value of Video conditional field.

type PhoneCallBox ¶

type PhoneCallBox struct {
	PhoneCall PhoneCallClass
}

PhoneCall boxes the PhoneCallClass providing a helper.

func (*PhoneCallBox) Decode ¶

func (b *PhoneCallBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PhoneCallBox.

func (*PhoneCallBox) Encode ¶

func (b *PhoneCallBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PhoneCallBox.

type PhoneCallClass ¶

type PhoneCallClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PhoneCallClass represents PhoneCall generic type.

Example:

g, err := DecodePhoneCall(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PhoneCallEmpty: // phoneCallEmpty#5366c915
case *PhoneCallWaiting: // phoneCallWaiting#1b8f4ad1
case *PhoneCallRequested: // phoneCallRequested#87eabb53
case *PhoneCallAccepted: // phoneCallAccepted#997c454a
case *PhoneCall: // phoneCall#8742ae7f
case *PhoneCallDiscarded: // phoneCallDiscarded#50ca4de1
default: panic(v)
}

func DecodePhoneCall ¶

func DecodePhoneCall(buf *bin.Buffer) (PhoneCallClass, error)

DecodePhoneCall implements binary de-serialization for PhoneCallClass.

type PhoneCallDiscardReasonBox ¶

type PhoneCallDiscardReasonBox struct {
	PhoneCallDiscardReason PhoneCallDiscardReasonClass
}

PhoneCallDiscardReason boxes the PhoneCallDiscardReasonClass providing a helper.

func (*PhoneCallDiscardReasonBox) Decode ¶

func (b *PhoneCallDiscardReasonBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PhoneCallDiscardReasonBox.

func (*PhoneCallDiscardReasonBox) Encode ¶

func (b *PhoneCallDiscardReasonBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PhoneCallDiscardReasonBox.

type PhoneCallDiscardReasonBusy ¶

type PhoneCallDiscardReasonBusy struct {
}

PhoneCallDiscardReasonBusy represents TL type `phoneCallDiscardReasonBusy#faf7e8c9`.

func (*PhoneCallDiscardReasonBusy) Decode ¶

Decode implements bin.Decoder.

func (*PhoneCallDiscardReasonBusy) Encode ¶

Encode implements bin.Encoder.

type PhoneCallDiscardReasonClass ¶

type PhoneCallDiscardReasonClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PhoneCallDiscardReasonClass represents PhoneCallDiscardReason generic type.

Example:

g, err := DecodePhoneCallDiscardReason(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PhoneCallDiscardReasonMissed: // phoneCallDiscardReasonMissed#85e42301
case *PhoneCallDiscardReasonDisconnect: // phoneCallDiscardReasonDisconnect#e095c1a0
case *PhoneCallDiscardReasonHangup: // phoneCallDiscardReasonHangup#57adc690
case *PhoneCallDiscardReasonBusy: // phoneCallDiscardReasonBusy#faf7e8c9
default: panic(v)
}

func DecodePhoneCallDiscardReason ¶

func DecodePhoneCallDiscardReason(buf *bin.Buffer) (PhoneCallDiscardReasonClass, error)

DecodePhoneCallDiscardReason implements binary de-serialization for PhoneCallDiscardReasonClass.

type PhoneCallDiscardReasonDisconnect ¶

type PhoneCallDiscardReasonDisconnect struct {
}

PhoneCallDiscardReasonDisconnect represents TL type `phoneCallDiscardReasonDisconnect#e095c1a0`.

func (*PhoneCallDiscardReasonDisconnect) Decode ¶

Decode implements bin.Decoder.

func (*PhoneCallDiscardReasonDisconnect) Encode ¶

Encode implements bin.Encoder.

type PhoneCallDiscardReasonHangup ¶

type PhoneCallDiscardReasonHangup struct {
}

PhoneCallDiscardReasonHangup represents TL type `phoneCallDiscardReasonHangup#57adc690`.

func (*PhoneCallDiscardReasonHangup) Decode ¶

Decode implements bin.Decoder.

func (*PhoneCallDiscardReasonHangup) Encode ¶

Encode implements bin.Encoder.

type PhoneCallDiscardReasonMissed ¶

type PhoneCallDiscardReasonMissed struct {
}

PhoneCallDiscardReasonMissed represents TL type `phoneCallDiscardReasonMissed#85e42301`.

func (*PhoneCallDiscardReasonMissed) Decode ¶

Decode implements bin.Decoder.

func (*PhoneCallDiscardReasonMissed) Encode ¶

Encode implements bin.Encoder.

type PhoneCallDiscarded ¶

type PhoneCallDiscarded struct {
	// Flags field of PhoneCallDiscarded.
	Flags bin.Fields
	// NeedRating field of PhoneCallDiscarded.
	NeedRating bool
	// NeedDebug field of PhoneCallDiscarded.
	NeedDebug bool
	// Video field of PhoneCallDiscarded.
	Video bool
	// ID field of PhoneCallDiscarded.
	ID int64
	// Reason field of PhoneCallDiscarded.
	//
	// Use SetReason and GetReason helpers.
	Reason PhoneCallDiscardReasonClass
	// Duration field of PhoneCallDiscarded.
	//
	// Use SetDuration and GetDuration helpers.
	Duration int
}

PhoneCallDiscarded represents TL type `phoneCallDiscarded#50ca4de1`.

func (*PhoneCallDiscarded) Decode ¶

func (p *PhoneCallDiscarded) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneCallDiscarded) Encode ¶

func (p *PhoneCallDiscarded) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PhoneCallDiscarded) GetDuration ¶

func (p *PhoneCallDiscarded) GetDuration() (value int, ok bool)

GetDuration returns value of Duration conditional field and boolean which is true if field was set.

func (*PhoneCallDiscarded) GetReason ¶

func (p *PhoneCallDiscarded) GetReason() (value PhoneCallDiscardReasonClass, ok bool)

GetReason returns value of Reason conditional field and boolean which is true if field was set.

func (*PhoneCallDiscarded) SetDuration ¶

func (p *PhoneCallDiscarded) SetDuration(value int)

SetDuration sets value of Duration conditional field.

func (*PhoneCallDiscarded) SetNeedDebug ¶

func (p *PhoneCallDiscarded) SetNeedDebug(value bool)

SetNeedDebug sets value of NeedDebug conditional field.

func (*PhoneCallDiscarded) SetNeedRating ¶

func (p *PhoneCallDiscarded) SetNeedRating(value bool)

SetNeedRating sets value of NeedRating conditional field.

func (*PhoneCallDiscarded) SetReason ¶

func (p *PhoneCallDiscarded) SetReason(value PhoneCallDiscardReasonClass)

SetReason sets value of Reason conditional field.

func (*PhoneCallDiscarded) SetVideo ¶

func (p *PhoneCallDiscarded) SetVideo(value bool)

SetVideo sets value of Video conditional field.

type PhoneCallEmpty ¶

type PhoneCallEmpty struct {
	// ID field of PhoneCallEmpty.
	ID int64
}

PhoneCallEmpty represents TL type `phoneCallEmpty#5366c915`.

func (*PhoneCallEmpty) Decode ¶

func (p *PhoneCallEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneCallEmpty) Encode ¶

func (p *PhoneCallEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhoneCallProtocol ¶

type PhoneCallProtocol struct {
	// Flags field of PhoneCallProtocol.
	Flags bin.Fields
	// UDPP2P field of PhoneCallProtocol.
	UDPP2P bool
	// UDPReflector field of PhoneCallProtocol.
	UDPReflector bool
	// MinLayer field of PhoneCallProtocol.
	MinLayer int
	// MaxLayer field of PhoneCallProtocol.
	MaxLayer int
	// LibraryVersions field of PhoneCallProtocol.
	LibraryVersions []string
}

PhoneCallProtocol represents TL type `phoneCallProtocol#fc878fc8`.

func (*PhoneCallProtocol) Decode ¶

func (p *PhoneCallProtocol) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneCallProtocol) Encode ¶

func (p *PhoneCallProtocol) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PhoneCallProtocol) SetUDPP2P ¶

func (p *PhoneCallProtocol) SetUDPP2P(value bool)

SetUDPP2P sets value of UDPP2P conditional field.

func (*PhoneCallProtocol) SetUDPReflector ¶

func (p *PhoneCallProtocol) SetUDPReflector(value bool)

SetUDPReflector sets value of UDPReflector conditional field.

type PhoneCallRequested ¶

type PhoneCallRequested struct {
	// Flags field of PhoneCallRequested.
	Flags bin.Fields
	// Video field of PhoneCallRequested.
	Video bool
	// ID field of PhoneCallRequested.
	ID int64
	// AccessHash field of PhoneCallRequested.
	AccessHash int64
	// Date field of PhoneCallRequested.
	Date int
	// AdminID field of PhoneCallRequested.
	AdminID int
	// ParticipantID field of PhoneCallRequested.
	ParticipantID int
	// GAHash field of PhoneCallRequested.
	GAHash []byte
	// Protocol field of PhoneCallRequested.
	Protocol PhoneCallProtocol
}

PhoneCallRequested represents TL type `phoneCallRequested#87eabb53`.

func (*PhoneCallRequested) Decode ¶

func (p *PhoneCallRequested) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneCallRequested) Encode ¶

func (p *PhoneCallRequested) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PhoneCallRequested) SetVideo ¶

func (p *PhoneCallRequested) SetVideo(value bool)

SetVideo sets value of Video conditional field.

type PhoneCallWaiting ¶

type PhoneCallWaiting struct {
	// Flags field of PhoneCallWaiting.
	Flags bin.Fields
	// Video field of PhoneCallWaiting.
	Video bool
	// ID field of PhoneCallWaiting.
	ID int64
	// AccessHash field of PhoneCallWaiting.
	AccessHash int64
	// Date field of PhoneCallWaiting.
	Date int
	// AdminID field of PhoneCallWaiting.
	AdminID int
	// ParticipantID field of PhoneCallWaiting.
	ParticipantID int
	// Protocol field of PhoneCallWaiting.
	Protocol PhoneCallProtocol
	// ReceiveDate field of PhoneCallWaiting.
	//
	// Use SetReceiveDate and GetReceiveDate helpers.
	ReceiveDate int
}

PhoneCallWaiting represents TL type `phoneCallWaiting#1b8f4ad1`.

func (*PhoneCallWaiting) Decode ¶

func (p *PhoneCallWaiting) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneCallWaiting) Encode ¶

func (p *PhoneCallWaiting) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PhoneCallWaiting) GetReceiveDate ¶

func (p *PhoneCallWaiting) GetReceiveDate() (value int, ok bool)

GetReceiveDate returns value of ReceiveDate conditional field and boolean which is true if field was set.

func (*PhoneCallWaiting) SetReceiveDate ¶

func (p *PhoneCallWaiting) SetReceiveDate(value int)

SetReceiveDate sets value of ReceiveDate conditional field.

func (*PhoneCallWaiting) SetVideo ¶

func (p *PhoneCallWaiting) SetVideo(value bool)

SetVideo sets value of Video conditional field.

type PhoneConfirmCallRequest ¶

type PhoneConfirmCallRequest struct {
	// Peer field of PhoneConfirmCallRequest.
	Peer InputPhoneCall
	// GA field of PhoneConfirmCallRequest.
	GA []byte
	// KeyFingerprint field of PhoneConfirmCallRequest.
	KeyFingerprint int64
	// Protocol field of PhoneConfirmCallRequest.
	Protocol PhoneCallProtocol
}

PhoneConfirmCallRequest represents TL type `phone.confirmCall#2efe1722`.

func (*PhoneConfirmCallRequest) Decode ¶

func (c *PhoneConfirmCallRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneConfirmCallRequest) Encode ¶

func (c *PhoneConfirmCallRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhoneConnection ¶

type PhoneConnection struct {
	// ID field of PhoneConnection.
	ID int64
	// IP field of PhoneConnection.
	IP string
	// Ipv6 field of PhoneConnection.
	Ipv6 string
	// Port field of PhoneConnection.
	Port int
	// PeerTag field of PhoneConnection.
	PeerTag []byte
}

PhoneConnection represents TL type `phoneConnection#9d4c17c0`.

func (*PhoneConnection) Decode ¶

func (p *PhoneConnection) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneConnection) Encode ¶

func (p *PhoneConnection) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhoneConnectionBox ¶

type PhoneConnectionBox struct {
	PhoneConnection PhoneConnectionClass
}

PhoneConnection boxes the PhoneConnectionClass providing a helper.

func (*PhoneConnectionBox) Decode ¶

func (b *PhoneConnectionBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PhoneConnectionBox.

func (*PhoneConnectionBox) Encode ¶

func (b *PhoneConnectionBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PhoneConnectionBox.

type PhoneConnectionClass ¶

type PhoneConnectionClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PhoneConnectionClass represents PhoneConnection generic type.

Example:

g, err := DecodePhoneConnection(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PhoneConnection: // phoneConnection#9d4c17c0
case *PhoneConnectionWebrtc: // phoneConnectionWebrtc#635fe375
default: panic(v)
}

func DecodePhoneConnection ¶

func DecodePhoneConnection(buf *bin.Buffer) (PhoneConnectionClass, error)

DecodePhoneConnection implements binary de-serialization for PhoneConnectionClass.

type PhoneConnectionWebrtc ¶

type PhoneConnectionWebrtc struct {
	// Flags field of PhoneConnectionWebrtc.
	Flags bin.Fields
	// Turn field of PhoneConnectionWebrtc.
	Turn bool
	// Stun field of PhoneConnectionWebrtc.
	Stun bool
	// ID field of PhoneConnectionWebrtc.
	ID int64
	// IP field of PhoneConnectionWebrtc.
	IP string
	// Ipv6 field of PhoneConnectionWebrtc.
	Ipv6 string
	// Port field of PhoneConnectionWebrtc.
	Port int
	// Username field of PhoneConnectionWebrtc.
	Username string
	// Password field of PhoneConnectionWebrtc.
	Password string
}

PhoneConnectionWebrtc represents TL type `phoneConnectionWebrtc#635fe375`.

func (*PhoneConnectionWebrtc) Decode ¶

func (p *PhoneConnectionWebrtc) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneConnectionWebrtc) Encode ¶

func (p *PhoneConnectionWebrtc) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PhoneConnectionWebrtc) SetStun ¶

func (p *PhoneConnectionWebrtc) SetStun(value bool)

SetStun sets value of Stun conditional field.

func (*PhoneConnectionWebrtc) SetTurn ¶

func (p *PhoneConnectionWebrtc) SetTurn(value bool)

SetTurn sets value of Turn conditional field.

type PhoneDiscardCallRequest ¶

type PhoneDiscardCallRequest struct {
	// Flags field of PhoneDiscardCallRequest.
	Flags bin.Fields
	// Video field of PhoneDiscardCallRequest.
	Video bool
	// Peer field of PhoneDiscardCallRequest.
	Peer InputPhoneCall
	// Duration field of PhoneDiscardCallRequest.
	Duration int
	// Reason field of PhoneDiscardCallRequest.
	Reason PhoneCallDiscardReasonClass
	// ConnectionID field of PhoneDiscardCallRequest.
	ConnectionID int64
}

PhoneDiscardCallRequest represents TL type `phone.discardCall#b2cbc1c0`.

func (*PhoneDiscardCallRequest) Decode ¶

func (d *PhoneDiscardCallRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneDiscardCallRequest) Encode ¶

func (d *PhoneDiscardCallRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PhoneDiscardCallRequest) SetVideo ¶

func (d *PhoneDiscardCallRequest) SetVideo(value bool)

SetVideo sets value of Video conditional field.

type PhoneGetCallConfigRequest ¶

type PhoneGetCallConfigRequest struct {
}

PhoneGetCallConfigRequest represents TL type `phone.getCallConfig#55451fa9`.

func (*PhoneGetCallConfigRequest) Decode ¶

func (g *PhoneGetCallConfigRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneGetCallConfigRequest) Encode ¶

func (g *PhoneGetCallConfigRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhonePhoneCall ¶

type PhonePhoneCall struct {
	// PhoneCall field of PhonePhoneCall.
	PhoneCall PhoneCallClass
	// Users field of PhonePhoneCall.
	Users []UserClass
}

PhonePhoneCall represents TL type `phone.phoneCall#ec82e140`.

func (*PhonePhoneCall) Decode ¶

func (p *PhonePhoneCall) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhonePhoneCall) Encode ¶

func (p *PhonePhoneCall) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhoneReceivedCallRequest ¶

type PhoneReceivedCallRequest struct {
	// Peer field of PhoneReceivedCallRequest.
	Peer InputPhoneCall
}

PhoneReceivedCallRequest represents TL type `phone.receivedCall#17d54f61`.

func (*PhoneReceivedCallRequest) Decode ¶

func (r *PhoneReceivedCallRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneReceivedCallRequest) Encode ¶

func (r *PhoneReceivedCallRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhoneRequestCallRequest ¶

type PhoneRequestCallRequest struct {
	// Flags field of PhoneRequestCallRequest.
	Flags bin.Fields
	// Video field of PhoneRequestCallRequest.
	Video bool
	// UserID field of PhoneRequestCallRequest.
	UserID InputUserClass
	// RandomID field of PhoneRequestCallRequest.
	RandomID int
	// GAHash field of PhoneRequestCallRequest.
	GAHash []byte
	// Protocol field of PhoneRequestCallRequest.
	Protocol PhoneCallProtocol
}

PhoneRequestCallRequest represents TL type `phone.requestCall#42ff96ed`.

func (*PhoneRequestCallRequest) Decode ¶

func (r *PhoneRequestCallRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneRequestCallRequest) Encode ¶

func (r *PhoneRequestCallRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PhoneRequestCallRequest) SetVideo ¶

func (r *PhoneRequestCallRequest) SetVideo(value bool)

SetVideo sets value of Video conditional field.

type PhoneSaveCallDebugRequest ¶

type PhoneSaveCallDebugRequest struct {
	// Peer field of PhoneSaveCallDebugRequest.
	Peer InputPhoneCall
	// Debug field of PhoneSaveCallDebugRequest.
	Debug DataJSON
}

PhoneSaveCallDebugRequest represents TL type `phone.saveCallDebug#277add7e`.

func (*PhoneSaveCallDebugRequest) Decode ¶

func (s *PhoneSaveCallDebugRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneSaveCallDebugRequest) Encode ¶

func (s *PhoneSaveCallDebugRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhoneSendSignalingDataRequest ¶

type PhoneSendSignalingDataRequest struct {
	// Peer field of PhoneSendSignalingDataRequest.
	Peer InputPhoneCall
	// Data field of PhoneSendSignalingDataRequest.
	Data []byte
}

PhoneSendSignalingDataRequest represents TL type `phone.sendSignalingData#ff7a9383`.

func (*PhoneSendSignalingDataRequest) Decode ¶

Decode implements bin.Decoder.

func (*PhoneSendSignalingDataRequest) Encode ¶

Encode implements bin.Encoder.

type PhoneSetCallRatingRequest ¶

type PhoneSetCallRatingRequest struct {
	// Flags field of PhoneSetCallRatingRequest.
	Flags bin.Fields
	// UserInitiative field of PhoneSetCallRatingRequest.
	UserInitiative bool
	// Peer field of PhoneSetCallRatingRequest.
	Peer InputPhoneCall
	// Rating field of PhoneSetCallRatingRequest.
	Rating int
	// Comment field of PhoneSetCallRatingRequest.
	Comment string
}

PhoneSetCallRatingRequest represents TL type `phone.setCallRating#59ead627`.

func (*PhoneSetCallRatingRequest) Decode ¶

func (s *PhoneSetCallRatingRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhoneSetCallRatingRequest) Encode ¶

func (s *PhoneSetCallRatingRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PhoneSetCallRatingRequest) SetUserInitiative ¶

func (s *PhoneSetCallRatingRequest) SetUserInitiative(value bool)

SetUserInitiative sets value of UserInitiative conditional field.

type Photo ¶

type Photo struct {
	// Flags field of Photo.
	Flags bin.Fields
	// HasStickers field of Photo.
	HasStickers bool
	// ID field of Photo.
	ID int64
	// AccessHash field of Photo.
	AccessHash int64
	// FileReference field of Photo.
	FileReference []byte
	// Date field of Photo.
	Date int
	// Sizes field of Photo.
	Sizes []PhotoSizeClass
	// VideoSizes field of Photo.
	//
	// Use SetVideoSizes and GetVideoSizes helpers.
	VideoSizes []VideoSize
	// DCID field of Photo.
	DCID int
}

Photo represents TL type `photo#fb197a65`.

func (*Photo) Decode ¶

func (p *Photo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Photo) Encode ¶

func (p *Photo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Photo) GetVideoSizes ¶

func (p *Photo) GetVideoSizes() (value []VideoSize, ok bool)

GetVideoSizes returns value of VideoSizes conditional field and boolean which is true if field was set.

func (*Photo) SetHasStickers ¶

func (p *Photo) SetHasStickers(value bool)

SetHasStickers sets value of HasStickers conditional field.

func (*Photo) SetVideoSizes ¶

func (p *Photo) SetVideoSizes(value []VideoSize)

SetVideoSizes sets value of VideoSizes conditional field.

type PhotoBox ¶

type PhotoBox struct {
	Photo PhotoClass
}

Photo boxes the PhotoClass providing a helper.

func (*PhotoBox) Decode ¶

func (b *PhotoBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PhotoBox.

func (*PhotoBox) Encode ¶

func (b *PhotoBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PhotoBox.

type PhotoCachedSize ¶

type PhotoCachedSize struct {
	// Type field of PhotoCachedSize.
	Type string
	// Location field of PhotoCachedSize.
	Location FileLocationToBeDeprecated
	// W field of PhotoCachedSize.
	W int
	// H field of PhotoCachedSize.
	H int
	// Bytes field of PhotoCachedSize.
	Bytes []byte
}

PhotoCachedSize represents TL type `photoCachedSize#e9a734fa`.

func (*PhotoCachedSize) Decode ¶

func (p *PhotoCachedSize) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhotoCachedSize) Encode ¶

func (p *PhotoCachedSize) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhotoClass ¶

type PhotoClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PhotoClass represents Photo generic type.

Example:

g, err := DecodePhoto(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PhotoEmpty: // photoEmpty#2331b22d
case *Photo: // photo#fb197a65
default: panic(v)
}

func DecodePhoto ¶

func DecodePhoto(buf *bin.Buffer) (PhotoClass, error)

DecodePhoto implements binary de-serialization for PhotoClass.

type PhotoEmpty ¶

type PhotoEmpty struct {
	// ID field of PhotoEmpty.
	ID int64
}

PhotoEmpty represents TL type `photoEmpty#2331b22d`.

func (*PhotoEmpty) Decode ¶

func (p *PhotoEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhotoEmpty) Encode ¶

func (p *PhotoEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhotoPathSize ¶

type PhotoPathSize struct {
	// Type field of PhotoPathSize.
	Type string
	// Bytes field of PhotoPathSize.
	Bytes []byte
}

PhotoPathSize represents TL type `photoPathSize#d8214d41`.

func (*PhotoPathSize) Decode ¶

func (p *PhotoPathSize) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhotoPathSize) Encode ¶

func (p *PhotoPathSize) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhotoSize ¶

type PhotoSize struct {
	// Type field of PhotoSize.
	Type string
	// Location field of PhotoSize.
	Location FileLocationToBeDeprecated
	// W field of PhotoSize.
	W int
	// H field of PhotoSize.
	H int
	// Size field of PhotoSize.
	Size int
}

PhotoSize represents TL type `photoSize#77bfb61b`.

func (*PhotoSize) Decode ¶

func (p *PhotoSize) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhotoSize) Encode ¶

func (p *PhotoSize) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhotoSizeBox ¶

type PhotoSizeBox struct {
	PhotoSize PhotoSizeClass
}

PhotoSize boxes the PhotoSizeClass providing a helper.

func (*PhotoSizeBox) Decode ¶

func (b *PhotoSizeBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PhotoSizeBox.

func (*PhotoSizeBox) Encode ¶

func (b *PhotoSizeBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PhotoSizeBox.

type PhotoSizeClass ¶

type PhotoSizeClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PhotoSizeClass represents PhotoSize generic type.

Example:

g, err := DecodePhotoSize(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PhotoSizeEmpty: // photoSizeEmpty#e17e23c
case *PhotoSize: // photoSize#77bfb61b
case *PhotoCachedSize: // photoCachedSize#e9a734fa
case *PhotoStrippedSize: // photoStrippedSize#e0b0bc2e
case *PhotoSizeProgressive: // photoSizeProgressive#5aa86a51
case *PhotoPathSize: // photoPathSize#d8214d41
default: panic(v)
}

func DecodePhotoSize ¶

func DecodePhotoSize(buf *bin.Buffer) (PhotoSizeClass, error)

DecodePhotoSize implements binary de-serialization for PhotoSizeClass.

type PhotoSizeEmpty ¶

type PhotoSizeEmpty struct {
	// Type field of PhotoSizeEmpty.
	Type string
}

PhotoSizeEmpty represents TL type `photoSizeEmpty#e17e23c`.

func (*PhotoSizeEmpty) Decode ¶

func (p *PhotoSizeEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhotoSizeEmpty) Encode ¶

func (p *PhotoSizeEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhotoSizeProgressive ¶

type PhotoSizeProgressive struct {
	// Type field of PhotoSizeProgressive.
	Type string
	// Location field of PhotoSizeProgressive.
	Location FileLocationToBeDeprecated
	// W field of PhotoSizeProgressive.
	W int
	// H field of PhotoSizeProgressive.
	H int
	// Sizes field of PhotoSizeProgressive.
	Sizes []int
}

PhotoSizeProgressive represents TL type `photoSizeProgressive#5aa86a51`.

func (*PhotoSizeProgressive) Decode ¶

func (p *PhotoSizeProgressive) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhotoSizeProgressive) Encode ¶

func (p *PhotoSizeProgressive) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhotoStrippedSize ¶

type PhotoStrippedSize struct {
	// Type field of PhotoStrippedSize.
	Type string
	// Bytes field of PhotoStrippedSize.
	Bytes []byte
}

PhotoStrippedSize represents TL type `photoStrippedSize#e0b0bc2e`.

func (*PhotoStrippedSize) Decode ¶

func (p *PhotoStrippedSize) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhotoStrippedSize) Encode ¶

func (p *PhotoStrippedSize) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhotosDeletePhotosRequest ¶

type PhotosDeletePhotosRequest struct {
	// ID field of PhotosDeletePhotosRequest.
	ID []InputPhotoClass
}

PhotosDeletePhotosRequest represents TL type `photos.deletePhotos#87cf7f2f`.

func (*PhotosDeletePhotosRequest) Decode ¶

func (d *PhotosDeletePhotosRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhotosDeletePhotosRequest) Encode ¶

func (d *PhotosDeletePhotosRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhotosGetUserPhotosRequest ¶

type PhotosGetUserPhotosRequest struct {
	// UserID field of PhotosGetUserPhotosRequest.
	UserID InputUserClass
	// Offset field of PhotosGetUserPhotosRequest.
	Offset int
	// MaxID field of PhotosGetUserPhotosRequest.
	MaxID int64
	// Limit field of PhotosGetUserPhotosRequest.
	Limit int
}

PhotosGetUserPhotosRequest represents TL type `photos.getUserPhotos#91cd32a8`.

func (*PhotosGetUserPhotosRequest) Decode ¶

Decode implements bin.Decoder.

func (*PhotosGetUserPhotosRequest) Encode ¶

Encode implements bin.Encoder.

type PhotosPhoto ¶

type PhotosPhoto struct {
	// Photo field of PhotosPhoto.
	Photo PhotoClass
	// Users field of PhotosPhoto.
	Users []UserClass
}

PhotosPhoto represents TL type `photos.photo#20212ca8`.

func (*PhotosPhoto) Decode ¶

func (p *PhotosPhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhotosPhoto) Encode ¶

func (p *PhotosPhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhotosPhotos ¶

type PhotosPhotos struct {
	// Photos field of PhotosPhotos.
	Photos []PhotoClass
	// Users field of PhotosPhotos.
	Users []UserClass
}

PhotosPhotos represents TL type `photos.photos#8dca6aa5`.

func (*PhotosPhotos) Decode ¶

func (p *PhotosPhotos) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhotosPhotos) Encode ¶

func (p *PhotosPhotos) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhotosPhotosBox ¶

type PhotosPhotosBox struct {
	Photos PhotosPhotosClass
}

PhotosPhotos boxes the PhotosPhotosClass providing a helper.

func (*PhotosPhotosBox) Decode ¶

func (b *PhotosPhotosBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PhotosPhotosBox.

func (*PhotosPhotosBox) Encode ¶

func (b *PhotosPhotosBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PhotosPhotosBox.

type PhotosPhotosClass ¶

type PhotosPhotosClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PhotosPhotosClass represents photos.Photos generic type.

Example:

g, err := DecodePhotosPhotos(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PhotosPhotos: // photos.photos#8dca6aa5
case *PhotosPhotosSlice: // photos.photosSlice#15051f54
default: panic(v)
}

func DecodePhotosPhotos ¶

func DecodePhotosPhotos(buf *bin.Buffer) (PhotosPhotosClass, error)

DecodePhotosPhotos implements binary de-serialization for PhotosPhotosClass.

type PhotosPhotosSlice ¶

type PhotosPhotosSlice struct {
	// Count field of PhotosPhotosSlice.
	Count int
	// Photos field of PhotosPhotosSlice.
	Photos []PhotoClass
	// Users field of PhotosPhotosSlice.
	Users []UserClass
}

PhotosPhotosSlice represents TL type `photos.photosSlice#15051f54`.

func (*PhotosPhotosSlice) Decode ¶

func (p *PhotosPhotosSlice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PhotosPhotosSlice) Encode ¶

func (p *PhotosPhotosSlice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PhotosUpdateProfilePhotoRequest ¶

type PhotosUpdateProfilePhotoRequest struct {
	// ID field of PhotosUpdateProfilePhotoRequest.
	ID InputPhotoClass
}

PhotosUpdateProfilePhotoRequest represents TL type `photos.updateProfilePhoto#72d4742c`.

func (*PhotosUpdateProfilePhotoRequest) Decode ¶

Decode implements bin.Decoder.

func (*PhotosUpdateProfilePhotoRequest) Encode ¶

Encode implements bin.Encoder.

type PhotosUploadProfilePhotoRequest ¶

type PhotosUploadProfilePhotoRequest struct {
	// Flags field of PhotosUploadProfilePhotoRequest.
	Flags bin.Fields
	// File field of PhotosUploadProfilePhotoRequest.
	//
	// Use SetFile and GetFile helpers.
	File InputFileClass
	// Video field of PhotosUploadProfilePhotoRequest.
	//
	// Use SetVideo and GetVideo helpers.
	Video InputFileClass
	// VideoStartTs field of PhotosUploadProfilePhotoRequest.
	//
	// Use SetVideoStartTs and GetVideoStartTs helpers.
	VideoStartTs float64
}

PhotosUploadProfilePhotoRequest represents TL type `photos.uploadProfilePhoto#89f30f69`.

func (*PhotosUploadProfilePhotoRequest) Decode ¶

Decode implements bin.Decoder.

func (*PhotosUploadProfilePhotoRequest) Encode ¶

Encode implements bin.Encoder.

func (*PhotosUploadProfilePhotoRequest) GetFile ¶

func (u *PhotosUploadProfilePhotoRequest) GetFile() (value InputFileClass, ok bool)

GetFile returns value of File conditional field and boolean which is true if field was set.

func (*PhotosUploadProfilePhotoRequest) GetVideo ¶

func (u *PhotosUploadProfilePhotoRequest) GetVideo() (value InputFileClass, ok bool)

GetVideo returns value of Video conditional field and boolean which is true if field was set.

func (*PhotosUploadProfilePhotoRequest) GetVideoStartTs ¶

func (u *PhotosUploadProfilePhotoRequest) GetVideoStartTs() (value float64, ok bool)

GetVideoStartTs returns value of VideoStartTs conditional field and boolean which is true if field was set.

func (*PhotosUploadProfilePhotoRequest) SetFile ¶

SetFile sets value of File conditional field.

func (*PhotosUploadProfilePhotoRequest) SetVideo ¶

SetVideo sets value of Video conditional field.

func (*PhotosUploadProfilePhotoRequest) SetVideoStartTs ¶

func (u *PhotosUploadProfilePhotoRequest) SetVideoStartTs(value float64)

SetVideoStartTs sets value of VideoStartTs conditional field.

type Poll ¶

type Poll struct {
	// ID field of Poll.
	ID int64
	// Flags field of Poll.
	Flags bin.Fields
	// Closed field of Poll.
	Closed bool
	// PublicVoters field of Poll.
	PublicVoters bool
	// MultipleChoice field of Poll.
	MultipleChoice bool
	// Quiz field of Poll.
	Quiz bool
	// Question field of Poll.
	Question string
	// Answers field of Poll.
	Answers []PollAnswer
	// ClosePeriod field of Poll.
	//
	// Use SetClosePeriod and GetClosePeriod helpers.
	ClosePeriod int
	// CloseDate field of Poll.
	//
	// Use SetCloseDate and GetCloseDate helpers.
	CloseDate int
}

Poll represents TL type `poll#86e18161`.

func (*Poll) Decode ¶

func (p *Poll) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Poll) Encode ¶

func (p *Poll) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Poll) GetCloseDate ¶

func (p *Poll) GetCloseDate() (value int, ok bool)

GetCloseDate returns value of CloseDate conditional field and boolean which is true if field was set.

func (*Poll) GetClosePeriod ¶

func (p *Poll) GetClosePeriod() (value int, ok bool)

GetClosePeriod returns value of ClosePeriod conditional field and boolean which is true if field was set.

func (*Poll) SetCloseDate ¶

func (p *Poll) SetCloseDate(value int)

SetCloseDate sets value of CloseDate conditional field.

func (*Poll) SetClosePeriod ¶

func (p *Poll) SetClosePeriod(value int)

SetClosePeriod sets value of ClosePeriod conditional field.

func (*Poll) SetClosed ¶

func (p *Poll) SetClosed(value bool)

SetClosed sets value of Closed conditional field.

func (*Poll) SetMultipleChoice ¶

func (p *Poll) SetMultipleChoice(value bool)

SetMultipleChoice sets value of MultipleChoice conditional field.

func (*Poll) SetPublicVoters ¶

func (p *Poll) SetPublicVoters(value bool)

SetPublicVoters sets value of PublicVoters conditional field.

func (*Poll) SetQuiz ¶

func (p *Poll) SetQuiz(value bool)

SetQuiz sets value of Quiz conditional field.

type PollAnswer ¶

type PollAnswer struct {
	// Text field of PollAnswer.
	Text string
	// Option field of PollAnswer.
	Option []byte
}

PollAnswer represents TL type `pollAnswer#6ca9c2e9`.

func (*PollAnswer) Decode ¶

func (p *PollAnswer) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PollAnswer) Encode ¶

func (p *PollAnswer) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PollAnswerVoters ¶

type PollAnswerVoters struct {
	// Flags field of PollAnswerVoters.
	Flags bin.Fields
	// Chosen field of PollAnswerVoters.
	Chosen bool
	// Correct field of PollAnswerVoters.
	Correct bool
	// Option field of PollAnswerVoters.
	Option []byte
	// Voters field of PollAnswerVoters.
	Voters int
}

PollAnswerVoters represents TL type `pollAnswerVoters#3b6ddad2`.

func (*PollAnswerVoters) Decode ¶

func (p *PollAnswerVoters) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PollAnswerVoters) Encode ¶

func (p *PollAnswerVoters) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PollAnswerVoters) SetChosen ¶

func (p *PollAnswerVoters) SetChosen(value bool)

SetChosen sets value of Chosen conditional field.

func (*PollAnswerVoters) SetCorrect ¶

func (p *PollAnswerVoters) SetCorrect(value bool)

SetCorrect sets value of Correct conditional field.

type PollResults ¶

type PollResults struct {
	// Flags field of PollResults.
	Flags bin.Fields
	// Min field of PollResults.
	Min bool
	// Results field of PollResults.
	//
	// Use SetResults and GetResults helpers.
	Results []PollAnswerVoters
	// TotalVoters field of PollResults.
	//
	// Use SetTotalVoters and GetTotalVoters helpers.
	TotalVoters int
	// RecentVoters field of PollResults.
	//
	// Use SetRecentVoters and GetRecentVoters helpers.
	RecentVoters []int
	// Solution field of PollResults.
	//
	// Use SetSolution and GetSolution helpers.
	Solution string
	// SolutionEntities field of PollResults.
	//
	// Use SetSolutionEntities and GetSolutionEntities helpers.
	SolutionEntities []MessageEntityClass
}

PollResults represents TL type `pollResults#badcc1a3`.

func (*PollResults) Decode ¶

func (p *PollResults) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PollResults) Encode ¶

func (p *PollResults) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PollResults) GetRecentVoters ¶

func (p *PollResults) GetRecentVoters() (value []int, ok bool)

GetRecentVoters returns value of RecentVoters conditional field and boolean which is true if field was set.

func (*PollResults) GetResults ¶

func (p *PollResults) GetResults() (value []PollAnswerVoters, ok bool)

GetResults returns value of Results conditional field and boolean which is true if field was set.

func (*PollResults) GetSolution ¶

func (p *PollResults) GetSolution() (value string, ok bool)

GetSolution returns value of Solution conditional field and boolean which is true if field was set.

func (*PollResults) GetSolutionEntities ¶

func (p *PollResults) GetSolutionEntities() (value []MessageEntityClass, ok bool)

GetSolutionEntities returns value of SolutionEntities conditional field and boolean which is true if field was set.

func (*PollResults) GetTotalVoters ¶

func (p *PollResults) GetTotalVoters() (value int, ok bool)

GetTotalVoters returns value of TotalVoters conditional field and boolean which is true if field was set.

func (*PollResults) SetMin ¶

func (p *PollResults) SetMin(value bool)

SetMin sets value of Min conditional field.

func (*PollResults) SetRecentVoters ¶

func (p *PollResults) SetRecentVoters(value []int)

SetRecentVoters sets value of RecentVoters conditional field.

func (*PollResults) SetResults ¶

func (p *PollResults) SetResults(value []PollAnswerVoters)

SetResults sets value of Results conditional field.

func (*PollResults) SetSolution ¶

func (p *PollResults) SetSolution(value string)

SetSolution sets value of Solution conditional field.

func (*PollResults) SetSolutionEntities ¶

func (p *PollResults) SetSolutionEntities(value []MessageEntityClass)

SetSolutionEntities sets value of SolutionEntities conditional field.

func (*PollResults) SetTotalVoters ¶

func (p *PollResults) SetTotalVoters(value int)

SetTotalVoters sets value of TotalVoters conditional field.

type PopularContact ¶

type PopularContact struct {
	// ClientID field of PopularContact.
	ClientID int64
	// Importers field of PopularContact.
	Importers int
}

PopularContact represents TL type `popularContact#5ce14175`.

func (*PopularContact) Decode ¶

func (p *PopularContact) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PopularContact) Encode ¶

func (p *PopularContact) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PostAddress ¶

type PostAddress struct {
	// StreetLine1 field of PostAddress.
	StreetLine1 string
	// StreetLine2 field of PostAddress.
	StreetLine2 string
	// City field of PostAddress.
	City string
	// State field of PostAddress.
	State string
	// CountryIso2 field of PostAddress.
	CountryIso2 string
	// PostCode field of PostAddress.
	PostCode string
}

PostAddress represents TL type `postAddress#1e8caaeb`.

func (*PostAddress) Decode ¶

func (p *PostAddress) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PostAddress) Encode ¶

func (p *PostAddress) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyKeyAddedByPhone ¶

type PrivacyKeyAddedByPhone struct {
}

PrivacyKeyAddedByPhone represents TL type `privacyKeyAddedByPhone#42ffd42b`.

func (*PrivacyKeyAddedByPhone) Decode ¶

func (p *PrivacyKeyAddedByPhone) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyKeyAddedByPhone) Encode ¶

func (p *PrivacyKeyAddedByPhone) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyKeyBox ¶

type PrivacyKeyBox struct {
	PrivacyKey PrivacyKeyClass
}

PrivacyKey boxes the PrivacyKeyClass providing a helper.

func (*PrivacyKeyBox) Decode ¶

func (b *PrivacyKeyBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PrivacyKeyBox.

func (*PrivacyKeyBox) Encode ¶

func (b *PrivacyKeyBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PrivacyKeyBox.

type PrivacyKeyChatInvite ¶

type PrivacyKeyChatInvite struct {
}

PrivacyKeyChatInvite represents TL type `privacyKeyChatInvite#500e6dfa`.

func (*PrivacyKeyChatInvite) Decode ¶

func (p *PrivacyKeyChatInvite) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyKeyChatInvite) Encode ¶

func (p *PrivacyKeyChatInvite) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyKeyClass ¶

type PrivacyKeyClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PrivacyKeyClass represents PrivacyKey generic type.

Example:

g, err := DecodePrivacyKey(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PrivacyKeyStatusTimestamp: // privacyKeyStatusTimestamp#bc2eab30
case *PrivacyKeyChatInvite: // privacyKeyChatInvite#500e6dfa
case *PrivacyKeyPhoneCall: // privacyKeyPhoneCall#3d662b7b
case *PrivacyKeyPhoneP2P: // privacyKeyPhoneP2P#39491cc8
case *PrivacyKeyForwards: // privacyKeyForwards#69ec56a3
case *PrivacyKeyProfilePhoto: // privacyKeyProfilePhoto#96151fed
case *PrivacyKeyPhoneNumber: // privacyKeyPhoneNumber#d19ae46d
case *PrivacyKeyAddedByPhone: // privacyKeyAddedByPhone#42ffd42b
default: panic(v)
}

func DecodePrivacyKey ¶

func DecodePrivacyKey(buf *bin.Buffer) (PrivacyKeyClass, error)

DecodePrivacyKey implements binary de-serialization for PrivacyKeyClass.

type PrivacyKeyForwards ¶

type PrivacyKeyForwards struct {
}

PrivacyKeyForwards represents TL type `privacyKeyForwards#69ec56a3`.

func (*PrivacyKeyForwards) Decode ¶

func (p *PrivacyKeyForwards) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyKeyForwards) Encode ¶

func (p *PrivacyKeyForwards) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyKeyPhoneCall ¶

type PrivacyKeyPhoneCall struct {
}

PrivacyKeyPhoneCall represents TL type `privacyKeyPhoneCall#3d662b7b`.

func (*PrivacyKeyPhoneCall) Decode ¶

func (p *PrivacyKeyPhoneCall) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyKeyPhoneCall) Encode ¶

func (p *PrivacyKeyPhoneCall) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyKeyPhoneNumber ¶

type PrivacyKeyPhoneNumber struct {
}

PrivacyKeyPhoneNumber represents TL type `privacyKeyPhoneNumber#d19ae46d`.

func (*PrivacyKeyPhoneNumber) Decode ¶

func (p *PrivacyKeyPhoneNumber) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyKeyPhoneNumber) Encode ¶

func (p *PrivacyKeyPhoneNumber) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyKeyPhoneP2P ¶

type PrivacyKeyPhoneP2P struct {
}

PrivacyKeyPhoneP2P represents TL type `privacyKeyPhoneP2P#39491cc8`.

func (*PrivacyKeyPhoneP2P) Decode ¶

func (p *PrivacyKeyPhoneP2P) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyKeyPhoneP2P) Encode ¶

func (p *PrivacyKeyPhoneP2P) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyKeyProfilePhoto ¶

type PrivacyKeyProfilePhoto struct {
}

PrivacyKeyProfilePhoto represents TL type `privacyKeyProfilePhoto#96151fed`.

func (*PrivacyKeyProfilePhoto) Decode ¶

func (p *PrivacyKeyProfilePhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyKeyProfilePhoto) Encode ¶

func (p *PrivacyKeyProfilePhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyKeyStatusTimestamp ¶

type PrivacyKeyStatusTimestamp struct {
}

PrivacyKeyStatusTimestamp represents TL type `privacyKeyStatusTimestamp#bc2eab30`.

func (*PrivacyKeyStatusTimestamp) Decode ¶

func (p *PrivacyKeyStatusTimestamp) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyKeyStatusTimestamp) Encode ¶

func (p *PrivacyKeyStatusTimestamp) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyRuleBox ¶

type PrivacyRuleBox struct {
	PrivacyRule PrivacyRuleClass
}

PrivacyRule boxes the PrivacyRuleClass providing a helper.

func (*PrivacyRuleBox) Decode ¶

func (b *PrivacyRuleBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PrivacyRuleBox.

func (*PrivacyRuleBox) Encode ¶

func (b *PrivacyRuleBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PrivacyRuleBox.

type PrivacyRuleClass ¶

type PrivacyRuleClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

PrivacyRuleClass represents PrivacyRule generic type.

Example:

g, err := DecodePrivacyRule(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *PrivacyValueAllowContacts: // privacyValueAllowContacts#fffe1bac
case *PrivacyValueAllowAll: // privacyValueAllowAll#65427b82
case *PrivacyValueAllowUsers: // privacyValueAllowUsers#4d5bbe0c
case *PrivacyValueDisallowContacts: // privacyValueDisallowContacts#f888fa1a
case *PrivacyValueDisallowAll: // privacyValueDisallowAll#8b73e763
case *PrivacyValueDisallowUsers: // privacyValueDisallowUsers#c7f49b7
case *PrivacyValueAllowChatParticipants: // privacyValueAllowChatParticipants#18be796b
case *PrivacyValueDisallowChatParticipants: // privacyValueDisallowChatParticipants#acae0690
default: panic(v)
}

func DecodePrivacyRule ¶

func DecodePrivacyRule(buf *bin.Buffer) (PrivacyRuleClass, error)

DecodePrivacyRule implements binary de-serialization for PrivacyRuleClass.

type PrivacyValueAllowAll ¶

type PrivacyValueAllowAll struct {
}

PrivacyValueAllowAll represents TL type `privacyValueAllowAll#65427b82`.

func (*PrivacyValueAllowAll) Decode ¶

func (p *PrivacyValueAllowAll) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyValueAllowAll) Encode ¶

func (p *PrivacyValueAllowAll) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyValueAllowChatParticipants ¶

type PrivacyValueAllowChatParticipants struct {
	// Chats field of PrivacyValueAllowChatParticipants.
	Chats []int
}

PrivacyValueAllowChatParticipants represents TL type `privacyValueAllowChatParticipants#18be796b`.

func (*PrivacyValueAllowChatParticipants) Decode ¶

Decode implements bin.Decoder.

func (*PrivacyValueAllowChatParticipants) Encode ¶

Encode implements bin.Encoder.

type PrivacyValueAllowContacts ¶

type PrivacyValueAllowContacts struct {
}

PrivacyValueAllowContacts represents TL type `privacyValueAllowContacts#fffe1bac`.

func (*PrivacyValueAllowContacts) Decode ¶

func (p *PrivacyValueAllowContacts) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyValueAllowContacts) Encode ¶

func (p *PrivacyValueAllowContacts) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyValueAllowUsers ¶

type PrivacyValueAllowUsers struct {
	// Users field of PrivacyValueAllowUsers.
	Users []int
}

PrivacyValueAllowUsers represents TL type `privacyValueAllowUsers#4d5bbe0c`.

func (*PrivacyValueAllowUsers) Decode ¶

func (p *PrivacyValueAllowUsers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyValueAllowUsers) Encode ¶

func (p *PrivacyValueAllowUsers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyValueDisallowAll ¶

type PrivacyValueDisallowAll struct {
}

PrivacyValueDisallowAll represents TL type `privacyValueDisallowAll#8b73e763`.

func (*PrivacyValueDisallowAll) Decode ¶

func (p *PrivacyValueDisallowAll) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyValueDisallowAll) Encode ¶

func (p *PrivacyValueDisallowAll) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type PrivacyValueDisallowChatParticipants ¶

type PrivacyValueDisallowChatParticipants struct {
	// Chats field of PrivacyValueDisallowChatParticipants.
	Chats []int
}

PrivacyValueDisallowChatParticipants represents TL type `privacyValueDisallowChatParticipants#acae0690`.

func (*PrivacyValueDisallowChatParticipants) Decode ¶

Decode implements bin.Decoder.

func (*PrivacyValueDisallowChatParticipants) Encode ¶

Encode implements bin.Encoder.

type PrivacyValueDisallowContacts ¶

type PrivacyValueDisallowContacts struct {
}

PrivacyValueDisallowContacts represents TL type `privacyValueDisallowContacts#f888fa1a`.

func (*PrivacyValueDisallowContacts) Decode ¶

Decode implements bin.Decoder.

func (*PrivacyValueDisallowContacts) Encode ¶

Encode implements bin.Encoder.

type PrivacyValueDisallowUsers ¶

type PrivacyValueDisallowUsers struct {
	// Users field of PrivacyValueDisallowUsers.
	Users []int
}

PrivacyValueDisallowUsers represents TL type `privacyValueDisallowUsers#c7f49b7`.

func (*PrivacyValueDisallowUsers) Decode ¶

func (p *PrivacyValueDisallowUsers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PrivacyValueDisallowUsers) Encode ¶

func (p *PrivacyValueDisallowUsers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ReceivedNotifyMessage ¶

type ReceivedNotifyMessage struct {
	// ID field of ReceivedNotifyMessage.
	ID int
	// Flags field of ReceivedNotifyMessage.
	Flags int
}

ReceivedNotifyMessage represents TL type `receivedNotifyMessage#a384b779`.

func (*ReceivedNotifyMessage) Decode ¶

func (r *ReceivedNotifyMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ReceivedNotifyMessage) Encode ¶

func (r *ReceivedNotifyMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type RecentMeUrlBox ¶

type RecentMeUrlBox struct {
	RecentMeUrl RecentMeUrlClass
}

RecentMeUrl boxes the RecentMeUrlClass providing a helper.

func (*RecentMeUrlBox) Decode ¶

func (b *RecentMeUrlBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for RecentMeUrlBox.

func (*RecentMeUrlBox) Encode ¶

func (b *RecentMeUrlBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for RecentMeUrlBox.

type RecentMeUrlChat ¶

type RecentMeUrlChat struct {
	// URL field of RecentMeUrlChat.
	URL string
	// ChatID field of RecentMeUrlChat.
	ChatID int
}

RecentMeUrlChat represents TL type `recentMeUrlChat#a01b22f9`.

func (*RecentMeUrlChat) Decode ¶

func (r *RecentMeUrlChat) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*RecentMeUrlChat) Encode ¶

func (r *RecentMeUrlChat) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type RecentMeUrlChatInvite ¶

type RecentMeUrlChatInvite struct {
	// URL field of RecentMeUrlChatInvite.
	URL string
	// ChatInvite field of RecentMeUrlChatInvite.
	ChatInvite ChatInviteClass
}

RecentMeUrlChatInvite represents TL type `recentMeUrlChatInvite#eb49081d`.

func (*RecentMeUrlChatInvite) Decode ¶

func (r *RecentMeUrlChatInvite) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*RecentMeUrlChatInvite) Encode ¶

func (r *RecentMeUrlChatInvite) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type RecentMeUrlClass ¶

type RecentMeUrlClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

RecentMeUrlClass represents RecentMeUrl generic type.

Example:

g, err := DecodeRecentMeUrl(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *RecentMeUrlUnknown: // recentMeUrlUnknown#46e1d13d
case *RecentMeUrlUser: // recentMeUrlUser#8dbc3336
case *RecentMeUrlChat: // recentMeUrlChat#a01b22f9
case *RecentMeUrlChatInvite: // recentMeUrlChatInvite#eb49081d
case *RecentMeUrlStickerSet: // recentMeUrlStickerSet#bc0a57dc
default: panic(v)
}

func DecodeRecentMeUrl ¶

func DecodeRecentMeUrl(buf *bin.Buffer) (RecentMeUrlClass, error)

DecodeRecentMeUrl implements binary de-serialization for RecentMeUrlClass.

type RecentMeUrlStickerSet ¶

type RecentMeUrlStickerSet struct {
	// URL field of RecentMeUrlStickerSet.
	URL string
	// Set field of RecentMeUrlStickerSet.
	Set StickerSetCoveredClass
}

RecentMeUrlStickerSet represents TL type `recentMeUrlStickerSet#bc0a57dc`.

func (*RecentMeUrlStickerSet) Decode ¶

func (r *RecentMeUrlStickerSet) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*RecentMeUrlStickerSet) Encode ¶

func (r *RecentMeUrlStickerSet) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type RecentMeUrlUnknown ¶

type RecentMeUrlUnknown struct {
	// URL field of RecentMeUrlUnknown.
	URL string
}

RecentMeUrlUnknown represents TL type `recentMeUrlUnknown#46e1d13d`.

func (*RecentMeUrlUnknown) Decode ¶

func (r *RecentMeUrlUnknown) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*RecentMeUrlUnknown) Encode ¶

func (r *RecentMeUrlUnknown) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type RecentMeUrlUser ¶

type RecentMeUrlUser struct {
	// URL field of RecentMeUrlUser.
	URL string
	// UserID field of RecentMeUrlUser.
	UserID int
}

RecentMeUrlUser represents TL type `recentMeUrlUser#8dbc3336`.

func (*RecentMeUrlUser) Decode ¶

func (r *RecentMeUrlUser) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*RecentMeUrlUser) Encode ¶

func (r *RecentMeUrlUser) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ReplyInlineMarkup ¶

type ReplyInlineMarkup struct {
	// Rows field of ReplyInlineMarkup.
	Rows []KeyboardButtonRow
}

ReplyInlineMarkup represents TL type `replyInlineMarkup#48a30254`.

func (*ReplyInlineMarkup) Decode ¶

func (r *ReplyInlineMarkup) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ReplyInlineMarkup) Encode ¶

func (r *ReplyInlineMarkup) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type ReplyKeyboardForceReply ¶

type ReplyKeyboardForceReply struct {
	// Flags field of ReplyKeyboardForceReply.
	Flags bin.Fields
	// SingleUse field of ReplyKeyboardForceReply.
	SingleUse bool
	// Selective field of ReplyKeyboardForceReply.
	Selective bool
}

ReplyKeyboardForceReply represents TL type `replyKeyboardForceReply#f4108aa0`.

func (*ReplyKeyboardForceReply) Decode ¶

func (r *ReplyKeyboardForceReply) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ReplyKeyboardForceReply) Encode ¶

func (r *ReplyKeyboardForceReply) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ReplyKeyboardForceReply) SetSelective ¶

func (r *ReplyKeyboardForceReply) SetSelective(value bool)

SetSelective sets value of Selective conditional field.

func (*ReplyKeyboardForceReply) SetSingleUse ¶

func (r *ReplyKeyboardForceReply) SetSingleUse(value bool)

SetSingleUse sets value of SingleUse conditional field.

type ReplyKeyboardHide ¶

type ReplyKeyboardHide struct {
	// Flags field of ReplyKeyboardHide.
	Flags bin.Fields
	// Selective field of ReplyKeyboardHide.
	Selective bool
}

ReplyKeyboardHide represents TL type `replyKeyboardHide#a03e5b85`.

func (*ReplyKeyboardHide) Decode ¶

func (r *ReplyKeyboardHide) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ReplyKeyboardHide) Encode ¶

func (r *ReplyKeyboardHide) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ReplyKeyboardHide) SetSelective ¶

func (r *ReplyKeyboardHide) SetSelective(value bool)

SetSelective sets value of Selective conditional field.

type ReplyKeyboardMarkup ¶

type ReplyKeyboardMarkup struct {
	// Flags field of ReplyKeyboardMarkup.
	Flags bin.Fields
	// Resize field of ReplyKeyboardMarkup.
	Resize bool
	// SingleUse field of ReplyKeyboardMarkup.
	SingleUse bool
	// Selective field of ReplyKeyboardMarkup.
	Selective bool
	// Rows field of ReplyKeyboardMarkup.
	Rows []KeyboardButtonRow
}

ReplyKeyboardMarkup represents TL type `replyKeyboardMarkup#3502758c`.

func (*ReplyKeyboardMarkup) Decode ¶

func (r *ReplyKeyboardMarkup) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ReplyKeyboardMarkup) Encode ¶

func (r *ReplyKeyboardMarkup) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ReplyKeyboardMarkup) SetResize ¶

func (r *ReplyKeyboardMarkup) SetResize(value bool)

SetResize sets value of Resize conditional field.

func (*ReplyKeyboardMarkup) SetSelective ¶

func (r *ReplyKeyboardMarkup) SetSelective(value bool)

SetSelective sets value of Selective conditional field.

func (*ReplyKeyboardMarkup) SetSingleUse ¶

func (r *ReplyKeyboardMarkup) SetSingleUse(value bool)

SetSingleUse sets value of SingleUse conditional field.

type ReplyMarkupBox ¶

type ReplyMarkupBox struct {
	ReplyMarkup ReplyMarkupClass
}

ReplyMarkup boxes the ReplyMarkupClass providing a helper.

func (*ReplyMarkupBox) Decode ¶

func (b *ReplyMarkupBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ReplyMarkupBox.

func (*ReplyMarkupBox) Encode ¶

func (b *ReplyMarkupBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ReplyMarkupBox.

type ReplyMarkupClass ¶

type ReplyMarkupClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ReplyMarkupClass represents ReplyMarkup generic type.

Example:

g, err := DecodeReplyMarkup(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *ReplyKeyboardHide: // replyKeyboardHide#a03e5b85
case *ReplyKeyboardForceReply: // replyKeyboardForceReply#f4108aa0
case *ReplyKeyboardMarkup: // replyKeyboardMarkup#3502758c
case *ReplyInlineMarkup: // replyInlineMarkup#48a30254
default: panic(v)
}

func DecodeReplyMarkup ¶

func DecodeReplyMarkup(buf *bin.Buffer) (ReplyMarkupClass, error)

DecodeReplyMarkup implements binary de-serialization for ReplyMarkupClass.

type ReportReasonBox ¶

type ReportReasonBox struct {
	ReportReason ReportReasonClass
}

ReportReason boxes the ReportReasonClass providing a helper.

func (*ReportReasonBox) Decode ¶

func (b *ReportReasonBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ReportReasonBox.

func (*ReportReasonBox) Encode ¶

func (b *ReportReasonBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ReportReasonBox.

type ReportReasonClass ¶

type ReportReasonClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

ReportReasonClass represents ReportReason generic type.

Example:

g, err := DecodeReportReason(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *InputReportReasonSpam: // inputReportReasonSpam#58dbcab8
case *InputReportReasonViolence: // inputReportReasonViolence#1e22c78d
case *InputReportReasonPornography: // inputReportReasonPornography#2e59d922
case *InputReportReasonChildAbuse: // inputReportReasonChildAbuse#adf44ee3
case *InputReportReasonOther: // inputReportReasonOther#e1746d0a
case *InputReportReasonCopyright: // inputReportReasonCopyright#9b89f93a
case *InputReportReasonGeoIrrelevant: // inputReportReasonGeoIrrelevant#dbd4feed
default: panic(v)
}

func DecodeReportReason ¶

func DecodeReportReason(buf *bin.Buffer) (ReportReasonClass, error)

DecodeReportReason implements binary de-serialization for ReportReasonClass.

type RestrictionReason ¶

type RestrictionReason struct {
	// Platform field of RestrictionReason.
	Platform string
	// Reason field of RestrictionReason.
	Reason string
	// Text field of RestrictionReason.
	Text string
}

RestrictionReason represents TL type `restrictionReason#d072acb4`.

func (*RestrictionReason) Decode ¶

func (r *RestrictionReason) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*RestrictionReason) Encode ¶

func (r *RestrictionReason) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type RichTextBox ¶

type RichTextBox struct {
	RichText RichTextClass
}

RichText boxes the RichTextClass providing a helper.

func (*RichTextBox) Decode ¶

func (b *RichTextBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for RichTextBox.

func (*RichTextBox) Encode ¶

func (b *RichTextBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for RichTextBox.

type RichTextClass ¶

type RichTextClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

RichTextClass represents RichText generic type.

Example:

g, err := DecodeRichText(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *TextEmpty: // textEmpty#dc3d824f
case *TextPlain: // textPlain#744694e0
case *TextBold: // textBold#6724abc4
case *TextItalic: // textItalic#d912a59c
case *TextUnderline: // textUnderline#c12622c4
case *TextStrike: // textStrike#9bf8bb95
case *TextFixed: // textFixed#6c3f19b9
case *TextUrl: // textUrl#3c2884c1
case *TextEmail: // textEmail#de5a0dd6
case *TextConcat: // textConcat#7e6260d7
case *TextSubscript: // textSubscript#ed6a8504
case *TextSuperscript: // textSuperscript#c7fb5e01
case *TextMarked: // textMarked#34b8621
case *TextPhone: // textPhone#1ccb966a
case *TextImage: // textImage#81ccf4f
case *TextAnchor: // textAnchor#35553762
default: panic(v)
}

func DecodeRichText ¶

func DecodeRichText(buf *bin.Buffer) (RichTextClass, error)

DecodeRichText implements binary de-serialization for RichTextClass.

type SavedPhoneContact ¶

type SavedPhoneContact struct {
	// Phone field of SavedPhoneContact.
	Phone string
	// FirstName field of SavedPhoneContact.
	FirstName string
	// LastName field of SavedPhoneContact.
	LastName string
	// Date field of SavedPhoneContact.
	Date int
}

SavedPhoneContact represents TL type `savedPhoneContact#1142bd56`.

func (*SavedPhoneContact) Decode ¶

func (s *SavedPhoneContact) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SavedPhoneContact) Encode ¶

func (s *SavedPhoneContact) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureCredentialsEncrypted ¶

type SecureCredentialsEncrypted struct {
	// Data field of SecureCredentialsEncrypted.
	Data []byte
	// Hash field of SecureCredentialsEncrypted.
	Hash []byte
	// Secret field of SecureCredentialsEncrypted.
	Secret []byte
}

SecureCredentialsEncrypted represents TL type `secureCredentialsEncrypted#33f0ea47`.

func (*SecureCredentialsEncrypted) Decode ¶

Decode implements bin.Decoder.

func (*SecureCredentialsEncrypted) Encode ¶

Encode implements bin.Encoder.

type SecureData ¶

type SecureData struct {
	// Data field of SecureData.
	Data []byte
	// DataHash field of SecureData.
	DataHash []byte
	// Secret field of SecureData.
	Secret []byte
}

SecureData represents TL type `secureData#8aeabec3`.

func (*SecureData) Decode ¶

func (s *SecureData) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureData) Encode ¶

func (s *SecureData) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureFile ¶

type SecureFile struct {
	// ID field of SecureFile.
	ID int64
	// AccessHash field of SecureFile.
	AccessHash int64
	// Size field of SecureFile.
	Size int
	// DCID field of SecureFile.
	DCID int
	// Date field of SecureFile.
	Date int
	// FileHash field of SecureFile.
	FileHash []byte
	// Secret field of SecureFile.
	Secret []byte
}

SecureFile represents TL type `secureFile#e0277a62`.

func (*SecureFile) Decode ¶

func (s *SecureFile) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureFile) Encode ¶

func (s *SecureFile) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureFileBox ¶

type SecureFileBox struct {
	SecureFile SecureFileClass
}

SecureFile boxes the SecureFileClass providing a helper.

func (*SecureFileBox) Decode ¶

func (b *SecureFileBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for SecureFileBox.

func (*SecureFileBox) Encode ¶

func (b *SecureFileBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for SecureFileBox.

type SecureFileClass ¶

type SecureFileClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

SecureFileClass represents SecureFile generic type.

Example:

g, err := DecodeSecureFile(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *SecureFileEmpty: // secureFileEmpty#64199744
case *SecureFile: // secureFile#e0277a62
default: panic(v)
}

func DecodeSecureFile ¶

func DecodeSecureFile(buf *bin.Buffer) (SecureFileClass, error)

DecodeSecureFile implements binary de-serialization for SecureFileClass.

type SecureFileEmpty ¶

type SecureFileEmpty struct {
}

SecureFileEmpty represents TL type `secureFileEmpty#64199744`.

func (*SecureFileEmpty) Decode ¶

func (s *SecureFileEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureFileEmpty) Encode ¶

func (s *SecureFileEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecurePasswordKdfAlgoBox ¶

type SecurePasswordKdfAlgoBox struct {
	SecurePasswordKdfAlgo SecurePasswordKdfAlgoClass
}

SecurePasswordKdfAlgo boxes the SecurePasswordKdfAlgoClass providing a helper.

func (*SecurePasswordKdfAlgoBox) Decode ¶

func (b *SecurePasswordKdfAlgoBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for SecurePasswordKdfAlgoBox.

func (*SecurePasswordKdfAlgoBox) Encode ¶

func (b *SecurePasswordKdfAlgoBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for SecurePasswordKdfAlgoBox.

type SecurePasswordKdfAlgoClass ¶

type SecurePasswordKdfAlgoClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

SecurePasswordKdfAlgoClass represents SecurePasswordKdfAlgo generic type.

Example:

g, err := DecodeSecurePasswordKdfAlgo(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *SecurePasswordKdfAlgoUnknown: // securePasswordKdfAlgoUnknown#4a8537
case *SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000: // securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0
case *SecurePasswordKdfAlgoSHA512: // securePasswordKdfAlgoSHA512#86471d92
default: panic(v)
}

func DecodeSecurePasswordKdfAlgo ¶

func DecodeSecurePasswordKdfAlgo(buf *bin.Buffer) (SecurePasswordKdfAlgoClass, error)

DecodeSecurePasswordKdfAlgo implements binary de-serialization for SecurePasswordKdfAlgoClass.

type SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 ¶

type SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 struct {
	// Salt field of SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000.
	Salt []byte
}

SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 represents TL type `securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0`.

func (*SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000) Decode ¶

Decode implements bin.Decoder.

func (*SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000) Encode ¶

Encode implements bin.Encoder.

type SecurePasswordKdfAlgoSHA512 ¶

type SecurePasswordKdfAlgoSHA512 struct {
	// Salt field of SecurePasswordKdfAlgoSHA512.
	Salt []byte
}

SecurePasswordKdfAlgoSHA512 represents TL type `securePasswordKdfAlgoSHA512#86471d92`.

func (*SecurePasswordKdfAlgoSHA512) Decode ¶

Decode implements bin.Decoder.

func (*SecurePasswordKdfAlgoSHA512) Encode ¶

Encode implements bin.Encoder.

type SecurePasswordKdfAlgoUnknown ¶

type SecurePasswordKdfAlgoUnknown struct {
}

SecurePasswordKdfAlgoUnknown represents TL type `securePasswordKdfAlgoUnknown#4a8537`.

func (*SecurePasswordKdfAlgoUnknown) Decode ¶

Decode implements bin.Decoder.

func (*SecurePasswordKdfAlgoUnknown) Encode ¶

Encode implements bin.Encoder.

type SecurePlainDataBox ¶

type SecurePlainDataBox struct {
	SecurePlainData SecurePlainDataClass
}

SecurePlainData boxes the SecurePlainDataClass providing a helper.

func (*SecurePlainDataBox) Decode ¶

func (b *SecurePlainDataBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for SecurePlainDataBox.

func (*SecurePlainDataBox) Encode ¶

func (b *SecurePlainDataBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for SecurePlainDataBox.

type SecurePlainDataClass ¶

type SecurePlainDataClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

SecurePlainDataClass represents SecurePlainData generic type.

Example:

g, err := DecodeSecurePlainData(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *SecurePlainPhone: // securePlainPhone#7d6099dd
case *SecurePlainEmail: // securePlainEmail#21ec5a5f
default: panic(v)
}

func DecodeSecurePlainData ¶

func DecodeSecurePlainData(buf *bin.Buffer) (SecurePlainDataClass, error)

DecodeSecurePlainData implements binary de-serialization for SecurePlainDataClass.

type SecurePlainEmail ¶

type SecurePlainEmail struct {
	// Email field of SecurePlainEmail.
	Email string
}

SecurePlainEmail represents TL type `securePlainEmail#21ec5a5f`.

func (*SecurePlainEmail) Decode ¶

func (s *SecurePlainEmail) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecurePlainEmail) Encode ¶

func (s *SecurePlainEmail) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecurePlainPhone ¶

type SecurePlainPhone struct {
	// Phone field of SecurePlainPhone.
	Phone string
}

SecurePlainPhone represents TL type `securePlainPhone#7d6099dd`.

func (*SecurePlainPhone) Decode ¶

func (s *SecurePlainPhone) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecurePlainPhone) Encode ¶

func (s *SecurePlainPhone) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureRequiredType ¶

type SecureRequiredType struct {
	// Flags field of SecureRequiredType.
	Flags bin.Fields
	// NativeNames field of SecureRequiredType.
	NativeNames bool
	// SelfieRequired field of SecureRequiredType.
	SelfieRequired bool
	// TranslationRequired field of SecureRequiredType.
	TranslationRequired bool
	// Type field of SecureRequiredType.
	Type SecureValueTypeClass
}

SecureRequiredType represents TL type `secureRequiredType#829d99da`.

func (*SecureRequiredType) Decode ¶

func (s *SecureRequiredType) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureRequiredType) Encode ¶

func (s *SecureRequiredType) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*SecureRequiredType) SetNativeNames ¶

func (s *SecureRequiredType) SetNativeNames(value bool)

SetNativeNames sets value of NativeNames conditional field.

func (*SecureRequiredType) SetSelfieRequired ¶

func (s *SecureRequiredType) SetSelfieRequired(value bool)

SetSelfieRequired sets value of SelfieRequired conditional field.

func (*SecureRequiredType) SetTranslationRequired ¶

func (s *SecureRequiredType) SetTranslationRequired(value bool)

SetTranslationRequired sets value of TranslationRequired conditional field.

type SecureRequiredTypeBox ¶

type SecureRequiredTypeBox struct {
	SecureRequiredType SecureRequiredTypeClass
}

SecureRequiredType boxes the SecureRequiredTypeClass providing a helper.

func (*SecureRequiredTypeBox) Decode ¶

func (b *SecureRequiredTypeBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for SecureRequiredTypeBox.

func (*SecureRequiredTypeBox) Encode ¶

func (b *SecureRequiredTypeBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for SecureRequiredTypeBox.

type SecureRequiredTypeClass ¶

type SecureRequiredTypeClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

SecureRequiredTypeClass represents SecureRequiredType generic type.

Example:

g, err := DecodeSecureRequiredType(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *SecureRequiredType: // secureRequiredType#829d99da
case *SecureRequiredTypeOneOf: // secureRequiredTypeOneOf#27477b4
default: panic(v)
}

func DecodeSecureRequiredType ¶

func DecodeSecureRequiredType(buf *bin.Buffer) (SecureRequiredTypeClass, error)

DecodeSecureRequiredType implements binary de-serialization for SecureRequiredTypeClass.

type SecureRequiredTypeOneOf ¶

type SecureRequiredTypeOneOf struct {
	// Types field of SecureRequiredTypeOneOf.
	Types []SecureRequiredTypeClass
}

SecureRequiredTypeOneOf represents TL type `secureRequiredTypeOneOf#27477b4`.

func (*SecureRequiredTypeOneOf) Decode ¶

func (s *SecureRequiredTypeOneOf) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureRequiredTypeOneOf) Encode ¶

func (s *SecureRequiredTypeOneOf) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureSecretSettings ¶

type SecureSecretSettings struct {
	// SecureAlgo field of SecureSecretSettings.
	SecureAlgo SecurePasswordKdfAlgoClass
	// SecureSecret field of SecureSecretSettings.
	SecureSecret []byte
	// SecureSecretID field of SecureSecretSettings.
	SecureSecretID int64
}

SecureSecretSettings represents TL type `secureSecretSettings#1527bcac`.

func (*SecureSecretSettings) Decode ¶

func (s *SecureSecretSettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureSecretSettings) Encode ¶

func (s *SecureSecretSettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureValue ¶

type SecureValue struct {
	// Flags field of SecureValue.
	Flags bin.Fields
	// Type field of SecureValue.
	Type SecureValueTypeClass
	// Data field of SecureValue.
	//
	// Use SetData and GetData helpers.
	Data SecureData
	// FrontSide field of SecureValue.
	//
	// Use SetFrontSide and GetFrontSide helpers.
	FrontSide SecureFileClass
	// ReverseSide field of SecureValue.
	//
	// Use SetReverseSide and GetReverseSide helpers.
	ReverseSide SecureFileClass
	// Selfie field of SecureValue.
	//
	// Use SetSelfie and GetSelfie helpers.
	Selfie SecureFileClass
	// Translation field of SecureValue.
	//
	// Use SetTranslation and GetTranslation helpers.
	Translation []SecureFileClass
	// Files field of SecureValue.
	//
	// Use SetFiles and GetFiles helpers.
	Files []SecureFileClass
	// PlainData field of SecureValue.
	//
	// Use SetPlainData and GetPlainData helpers.
	PlainData SecurePlainDataClass
	// Hash field of SecureValue.
	Hash []byte
}

SecureValue represents TL type `secureValue#187fa0ca`.

func (*SecureValue) Decode ¶

func (s *SecureValue) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureValue) Encode ¶

func (s *SecureValue) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*SecureValue) GetData ¶

func (s *SecureValue) GetData() (value SecureData, ok bool)

GetData returns value of Data conditional field and boolean which is true if field was set.

func (*SecureValue) GetFiles ¶

func (s *SecureValue) GetFiles() (value []SecureFileClass, ok bool)

GetFiles returns value of Files conditional field and boolean which is true if field was set.

func (*SecureValue) GetFrontSide ¶

func (s *SecureValue) GetFrontSide() (value SecureFileClass, ok bool)

GetFrontSide returns value of FrontSide conditional field and boolean which is true if field was set.

func (*SecureValue) GetPlainData ¶

func (s *SecureValue) GetPlainData() (value SecurePlainDataClass, ok bool)

GetPlainData returns value of PlainData conditional field and boolean which is true if field was set.

func (*SecureValue) GetReverseSide ¶

func (s *SecureValue) GetReverseSide() (value SecureFileClass, ok bool)

GetReverseSide returns value of ReverseSide conditional field and boolean which is true if field was set.

func (*SecureValue) GetSelfie ¶

func (s *SecureValue) GetSelfie() (value SecureFileClass, ok bool)

GetSelfie returns value of Selfie conditional field and boolean which is true if field was set.

func (*SecureValue) GetTranslation ¶

func (s *SecureValue) GetTranslation() (value []SecureFileClass, ok bool)

GetTranslation returns value of Translation conditional field and boolean which is true if field was set.

func (*SecureValue) SetData ¶

func (s *SecureValue) SetData(value SecureData)

SetData sets value of Data conditional field.

func (*SecureValue) SetFiles ¶

func (s *SecureValue) SetFiles(value []SecureFileClass)

SetFiles sets value of Files conditional field.

func (*SecureValue) SetFrontSide ¶

func (s *SecureValue) SetFrontSide(value SecureFileClass)

SetFrontSide sets value of FrontSide conditional field.

func (*SecureValue) SetPlainData ¶

func (s *SecureValue) SetPlainData(value SecurePlainDataClass)

SetPlainData sets value of PlainData conditional field.

func (*SecureValue) SetReverseSide ¶

func (s *SecureValue) SetReverseSide(value SecureFileClass)

SetReverseSide sets value of ReverseSide conditional field.

func (*SecureValue) SetSelfie ¶

func (s *SecureValue) SetSelfie(value SecureFileClass)

SetSelfie sets value of Selfie conditional field.

func (*SecureValue) SetTranslation ¶

func (s *SecureValue) SetTranslation(value []SecureFileClass)

SetTranslation sets value of Translation conditional field.

type SecureValueError ¶

type SecureValueError struct {
	// Type field of SecureValueError.
	Type SecureValueTypeClass
	// Hash field of SecureValueError.
	Hash []byte
	// Text field of SecureValueError.
	Text string
}

SecureValueError represents TL type `secureValueError#869d758f`.

func (*SecureValueError) Decode ¶

func (s *SecureValueError) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureValueError) Encode ¶

func (s *SecureValueError) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureValueErrorBox ¶

type SecureValueErrorBox struct {
	SecureValueError SecureValueErrorClass
}

SecureValueError boxes the SecureValueErrorClass providing a helper.

func (*SecureValueErrorBox) Decode ¶

func (b *SecureValueErrorBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for SecureValueErrorBox.

func (*SecureValueErrorBox) Encode ¶

func (b *SecureValueErrorBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for SecureValueErrorBox.

type SecureValueErrorClass ¶

type SecureValueErrorClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

SecureValueErrorClass represents SecureValueError generic type.

Example:

g, err := DecodeSecureValueError(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *SecureValueErrorData: // secureValueErrorData#e8a40bd9
case *SecureValueErrorFrontSide: // secureValueErrorFrontSide#be3dfa
case *SecureValueErrorReverseSide: // secureValueErrorReverseSide#868a2aa5
case *SecureValueErrorSelfie: // secureValueErrorSelfie#e537ced6
case *SecureValueErrorFile: // secureValueErrorFile#7a700873
case *SecureValueErrorFiles: // secureValueErrorFiles#666220e9
case *SecureValueError: // secureValueError#869d758f
case *SecureValueErrorTranslationFile: // secureValueErrorTranslationFile#a1144770
case *SecureValueErrorTranslationFiles: // secureValueErrorTranslationFiles#34636dd8
default: panic(v)
}

func DecodeSecureValueError ¶

func DecodeSecureValueError(buf *bin.Buffer) (SecureValueErrorClass, error)

DecodeSecureValueError implements binary de-serialization for SecureValueErrorClass.

type SecureValueErrorData ¶

type SecureValueErrorData struct {
	// Type field of SecureValueErrorData.
	Type SecureValueTypeClass
	// DataHash field of SecureValueErrorData.
	DataHash []byte
	// Field field of SecureValueErrorData.
	Field string
	// Text field of SecureValueErrorData.
	Text string
}

SecureValueErrorData represents TL type `secureValueErrorData#e8a40bd9`.

func (*SecureValueErrorData) Decode ¶

func (s *SecureValueErrorData) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureValueErrorData) Encode ¶

func (s *SecureValueErrorData) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureValueErrorFile ¶

type SecureValueErrorFile struct {
	// Type field of SecureValueErrorFile.
	Type SecureValueTypeClass
	// FileHash field of SecureValueErrorFile.
	FileHash []byte
	// Text field of SecureValueErrorFile.
	Text string
}

SecureValueErrorFile represents TL type `secureValueErrorFile#7a700873`.

func (*SecureValueErrorFile) Decode ¶

func (s *SecureValueErrorFile) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureValueErrorFile) Encode ¶

func (s *SecureValueErrorFile) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureValueErrorFiles ¶

type SecureValueErrorFiles struct {
	// Type field of SecureValueErrorFiles.
	Type SecureValueTypeClass
	// FileHash field of SecureValueErrorFiles.
	FileHash [][]byte
	// Text field of SecureValueErrorFiles.
	Text string
}

SecureValueErrorFiles represents TL type `secureValueErrorFiles#666220e9`.

func (*SecureValueErrorFiles) Decode ¶

func (s *SecureValueErrorFiles) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureValueErrorFiles) Encode ¶

func (s *SecureValueErrorFiles) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureValueErrorFrontSide ¶

type SecureValueErrorFrontSide struct {
	// Type field of SecureValueErrorFrontSide.
	Type SecureValueTypeClass
	// FileHash field of SecureValueErrorFrontSide.
	FileHash []byte
	// Text field of SecureValueErrorFrontSide.
	Text string
}

SecureValueErrorFrontSide represents TL type `secureValueErrorFrontSide#be3dfa`.

func (*SecureValueErrorFrontSide) Decode ¶

func (s *SecureValueErrorFrontSide) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureValueErrorFrontSide) Encode ¶

func (s *SecureValueErrorFrontSide) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureValueErrorReverseSide ¶

type SecureValueErrorReverseSide struct {
	// Type field of SecureValueErrorReverseSide.
	Type SecureValueTypeClass
	// FileHash field of SecureValueErrorReverseSide.
	FileHash []byte
	// Text field of SecureValueErrorReverseSide.
	Text string
}

SecureValueErrorReverseSide represents TL type `secureValueErrorReverseSide#868a2aa5`.

func (*SecureValueErrorReverseSide) Decode ¶

Decode implements bin.Decoder.

func (*SecureValueErrorReverseSide) Encode ¶

Encode implements bin.Encoder.

type SecureValueErrorSelfie ¶

type SecureValueErrorSelfie struct {
	// Type field of SecureValueErrorSelfie.
	Type SecureValueTypeClass
	// FileHash field of SecureValueErrorSelfie.
	FileHash []byte
	// Text field of SecureValueErrorSelfie.
	Text string
}

SecureValueErrorSelfie represents TL type `secureValueErrorSelfie#e537ced6`.

func (*SecureValueErrorSelfie) Decode ¶

func (s *SecureValueErrorSelfie) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureValueErrorSelfie) Encode ¶

func (s *SecureValueErrorSelfie) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureValueErrorTranslationFile ¶

type SecureValueErrorTranslationFile struct {
	// Type field of SecureValueErrorTranslationFile.
	Type SecureValueTypeClass
	// FileHash field of SecureValueErrorTranslationFile.
	FileHash []byte
	// Text field of SecureValueErrorTranslationFile.
	Text string
}

SecureValueErrorTranslationFile represents TL type `secureValueErrorTranslationFile#a1144770`.

func (*SecureValueErrorTranslationFile) Decode ¶

Decode implements bin.Decoder.

func (*SecureValueErrorTranslationFile) Encode ¶

Encode implements bin.Encoder.

type SecureValueErrorTranslationFiles ¶

type SecureValueErrorTranslationFiles struct {
	// Type field of SecureValueErrorTranslationFiles.
	Type SecureValueTypeClass
	// FileHash field of SecureValueErrorTranslationFiles.
	FileHash [][]byte
	// Text field of SecureValueErrorTranslationFiles.
	Text string
}

SecureValueErrorTranslationFiles represents TL type `secureValueErrorTranslationFiles#34636dd8`.

func (*SecureValueErrorTranslationFiles) Decode ¶

Decode implements bin.Decoder.

func (*SecureValueErrorTranslationFiles) Encode ¶

Encode implements bin.Encoder.

type SecureValueHash ¶

type SecureValueHash struct {
	// Type field of SecureValueHash.
	Type SecureValueTypeClass
	// Hash field of SecureValueHash.
	Hash []byte
}

SecureValueHash represents TL type `secureValueHash#ed1ecdb0`.

func (*SecureValueHash) Decode ¶

func (s *SecureValueHash) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureValueHash) Encode ¶

func (s *SecureValueHash) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureValueTypeAddress ¶

type SecureValueTypeAddress struct {
}

SecureValueTypeAddress represents TL type `secureValueTypeAddress#cbe31e26`.

func (*SecureValueTypeAddress) Decode ¶

func (s *SecureValueTypeAddress) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureValueTypeAddress) Encode ¶

func (s *SecureValueTypeAddress) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureValueTypeBankStatement ¶

type SecureValueTypeBankStatement struct {
}

SecureValueTypeBankStatement represents TL type `secureValueTypeBankStatement#89137c0d`.

func (*SecureValueTypeBankStatement) Decode ¶

Decode implements bin.Decoder.

func (*SecureValueTypeBankStatement) Encode ¶

Encode implements bin.Encoder.

type SecureValueTypeBox ¶

type SecureValueTypeBox struct {
	SecureValueType SecureValueTypeClass
}

SecureValueType boxes the SecureValueTypeClass providing a helper.

func (*SecureValueTypeBox) Decode ¶

func (b *SecureValueTypeBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for SecureValueTypeBox.

func (*SecureValueTypeBox) Encode ¶

func (b *SecureValueTypeBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for SecureValueTypeBox.

type SecureValueTypeClass ¶

type SecureValueTypeClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

SecureValueTypeClass represents SecureValueType generic type.

Example:

g, err := DecodeSecureValueType(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *SecureValueTypePersonalDetails: // secureValueTypePersonalDetails#9d2a81e3
case *SecureValueTypePassport: // secureValueTypePassport#3dac6a00
case *SecureValueTypeDriverLicense: // secureValueTypeDriverLicense#6e425c4
case *SecureValueTypeIdentityCard: // secureValueTypeIdentityCard#a0d0744b
case *SecureValueTypeInternalPassport: // secureValueTypeInternalPassport#99a48f23
case *SecureValueTypeAddress: // secureValueTypeAddress#cbe31e26
case *SecureValueTypeUtilityBill: // secureValueTypeUtilityBill#fc36954e
case *SecureValueTypeBankStatement: // secureValueTypeBankStatement#89137c0d
case *SecureValueTypeRentalAgreement: // secureValueTypeRentalAgreement#8b883488
case *SecureValueTypePassportRegistration: // secureValueTypePassportRegistration#99e3806a
case *SecureValueTypeTemporaryRegistration: // secureValueTypeTemporaryRegistration#ea02ec33
case *SecureValueTypePhone: // secureValueTypePhone#b320aadb
case *SecureValueTypeEmail: // secureValueTypeEmail#8e3ca7ee
default: panic(v)
}

func DecodeSecureValueType ¶

func DecodeSecureValueType(buf *bin.Buffer) (SecureValueTypeClass, error)

DecodeSecureValueType implements binary de-serialization for SecureValueTypeClass.

type SecureValueTypeDriverLicense ¶

type SecureValueTypeDriverLicense struct {
}

SecureValueTypeDriverLicense represents TL type `secureValueTypeDriverLicense#6e425c4`.

func (*SecureValueTypeDriverLicense) Decode ¶

Decode implements bin.Decoder.

func (*SecureValueTypeDriverLicense) Encode ¶

Encode implements bin.Encoder.

type SecureValueTypeEmail ¶

type SecureValueTypeEmail struct {
}

SecureValueTypeEmail represents TL type `secureValueTypeEmail#8e3ca7ee`.

func (*SecureValueTypeEmail) Decode ¶

func (s *SecureValueTypeEmail) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureValueTypeEmail) Encode ¶

func (s *SecureValueTypeEmail) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureValueTypeIdentityCard ¶

type SecureValueTypeIdentityCard struct {
}

SecureValueTypeIdentityCard represents TL type `secureValueTypeIdentityCard#a0d0744b`.

func (*SecureValueTypeIdentityCard) Decode ¶

Decode implements bin.Decoder.

func (*SecureValueTypeIdentityCard) Encode ¶

Encode implements bin.Encoder.

type SecureValueTypeInternalPassport ¶

type SecureValueTypeInternalPassport struct {
}

SecureValueTypeInternalPassport represents TL type `secureValueTypeInternalPassport#99a48f23`.

func (*SecureValueTypeInternalPassport) Decode ¶

Decode implements bin.Decoder.

func (*SecureValueTypeInternalPassport) Encode ¶

Encode implements bin.Encoder.

type SecureValueTypePassport ¶

type SecureValueTypePassport struct {
}

SecureValueTypePassport represents TL type `secureValueTypePassport#3dac6a00`.

func (*SecureValueTypePassport) Decode ¶

func (s *SecureValueTypePassport) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureValueTypePassport) Encode ¶

func (s *SecureValueTypePassport) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureValueTypePassportRegistration ¶

type SecureValueTypePassportRegistration struct {
}

SecureValueTypePassportRegistration represents TL type `secureValueTypePassportRegistration#99e3806a`.

func (*SecureValueTypePassportRegistration) Decode ¶

Decode implements bin.Decoder.

func (*SecureValueTypePassportRegistration) Encode ¶

Encode implements bin.Encoder.

type SecureValueTypePersonalDetails ¶

type SecureValueTypePersonalDetails struct {
}

SecureValueTypePersonalDetails represents TL type `secureValueTypePersonalDetails#9d2a81e3`.

func (*SecureValueTypePersonalDetails) Decode ¶

Decode implements bin.Decoder.

func (*SecureValueTypePersonalDetails) Encode ¶

Encode implements bin.Encoder.

type SecureValueTypePhone ¶

type SecureValueTypePhone struct {
}

SecureValueTypePhone represents TL type `secureValueTypePhone#b320aadb`.

func (*SecureValueTypePhone) Decode ¶

func (s *SecureValueTypePhone) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SecureValueTypePhone) Encode ¶

func (s *SecureValueTypePhone) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SecureValueTypeRentalAgreement ¶

type SecureValueTypeRentalAgreement struct {
}

SecureValueTypeRentalAgreement represents TL type `secureValueTypeRentalAgreement#8b883488`.

func (*SecureValueTypeRentalAgreement) Decode ¶

Decode implements bin.Decoder.

func (*SecureValueTypeRentalAgreement) Encode ¶

Encode implements bin.Encoder.

type SecureValueTypeTemporaryRegistration ¶

type SecureValueTypeTemporaryRegistration struct {
}

SecureValueTypeTemporaryRegistration represents TL type `secureValueTypeTemporaryRegistration#ea02ec33`.

func (*SecureValueTypeTemporaryRegistration) Decode ¶

Decode implements bin.Decoder.

func (*SecureValueTypeTemporaryRegistration) Encode ¶

Encode implements bin.Encoder.

type SecureValueTypeUtilityBill ¶

type SecureValueTypeUtilityBill struct {
}

SecureValueTypeUtilityBill represents TL type `secureValueTypeUtilityBill#fc36954e`.

func (*SecureValueTypeUtilityBill) Decode ¶

Decode implements bin.Decoder.

func (*SecureValueTypeUtilityBill) Encode ¶

Encode implements bin.Encoder.

type SendMessageActionBox ¶

type SendMessageActionBox struct {
	SendMessageAction SendMessageActionClass
}

SendMessageAction boxes the SendMessageActionClass providing a helper.

func (*SendMessageActionBox) Decode ¶

func (b *SendMessageActionBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for SendMessageActionBox.

func (*SendMessageActionBox) Encode ¶

func (b *SendMessageActionBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for SendMessageActionBox.

type SendMessageActionClass ¶

type SendMessageActionClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

SendMessageActionClass represents SendMessageAction generic type.

Example:

g, err := DecodeSendMessageAction(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *SendMessageTypingAction: // sendMessageTypingAction#16bf744e
case *SendMessageCancelAction: // sendMessageCancelAction#fd5ec8f5
case *SendMessageRecordVideoAction: // sendMessageRecordVideoAction#a187d66f
case *SendMessageUploadVideoAction: // sendMessageUploadVideoAction#e9763aec
case *SendMessageRecordAudioAction: // sendMessageRecordAudioAction#d52f73f7
case *SendMessageUploadAudioAction: // sendMessageUploadAudioAction#f351d7ab
case *SendMessageUploadPhotoAction: // sendMessageUploadPhotoAction#d1d34a26
case *SendMessageUploadDocumentAction: // sendMessageUploadDocumentAction#aa0cd9e4
case *SendMessageGeoLocationAction: // sendMessageGeoLocationAction#176f8ba1
case *SendMessageChooseContactAction: // sendMessageChooseContactAction#628cbc6f
case *SendMessageGamePlayAction: // sendMessageGamePlayAction#dd6a8f48
case *SendMessageRecordRoundAction: // sendMessageRecordRoundAction#88f27fbc
case *SendMessageUploadRoundAction: // sendMessageUploadRoundAction#243e1c66
default: panic(v)
}

func DecodeSendMessageAction ¶

func DecodeSendMessageAction(buf *bin.Buffer) (SendMessageActionClass, error)

DecodeSendMessageAction implements binary de-serialization for SendMessageActionClass.

type SendMessageCancelAction ¶

type SendMessageCancelAction struct {
}

SendMessageCancelAction represents TL type `sendMessageCancelAction#fd5ec8f5`.

func (*SendMessageCancelAction) Decode ¶

func (s *SendMessageCancelAction) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SendMessageCancelAction) Encode ¶

func (s *SendMessageCancelAction) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SendMessageChooseContactAction ¶

type SendMessageChooseContactAction struct {
}

SendMessageChooseContactAction represents TL type `sendMessageChooseContactAction#628cbc6f`.

func (*SendMessageChooseContactAction) Decode ¶

Decode implements bin.Decoder.

func (*SendMessageChooseContactAction) Encode ¶

Encode implements bin.Encoder.

type SendMessageGamePlayAction ¶

type SendMessageGamePlayAction struct {
}

SendMessageGamePlayAction represents TL type `sendMessageGamePlayAction#dd6a8f48`.

func (*SendMessageGamePlayAction) Decode ¶

func (s *SendMessageGamePlayAction) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SendMessageGamePlayAction) Encode ¶

func (s *SendMessageGamePlayAction) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SendMessageGeoLocationAction ¶

type SendMessageGeoLocationAction struct {
}

SendMessageGeoLocationAction represents TL type `sendMessageGeoLocationAction#176f8ba1`.

func (*SendMessageGeoLocationAction) Decode ¶

Decode implements bin.Decoder.

func (*SendMessageGeoLocationAction) Encode ¶

Encode implements bin.Encoder.

type SendMessageRecordAudioAction ¶

type SendMessageRecordAudioAction struct {
}

SendMessageRecordAudioAction represents TL type `sendMessageRecordAudioAction#d52f73f7`.

func (*SendMessageRecordAudioAction) Decode ¶

Decode implements bin.Decoder.

func (*SendMessageRecordAudioAction) Encode ¶

Encode implements bin.Encoder.

type SendMessageRecordRoundAction ¶

type SendMessageRecordRoundAction struct {
}

SendMessageRecordRoundAction represents TL type `sendMessageRecordRoundAction#88f27fbc`.

func (*SendMessageRecordRoundAction) Decode ¶

Decode implements bin.Decoder.

func (*SendMessageRecordRoundAction) Encode ¶

Encode implements bin.Encoder.

type SendMessageRecordVideoAction ¶

type SendMessageRecordVideoAction struct {
}

SendMessageRecordVideoAction represents TL type `sendMessageRecordVideoAction#a187d66f`.

func (*SendMessageRecordVideoAction) Decode ¶

Decode implements bin.Decoder.

func (*SendMessageRecordVideoAction) Encode ¶

Encode implements bin.Encoder.

type SendMessageTypingAction ¶

type SendMessageTypingAction struct {
}

SendMessageTypingAction represents TL type `sendMessageTypingAction#16bf744e`.

func (*SendMessageTypingAction) Decode ¶

func (s *SendMessageTypingAction) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SendMessageTypingAction) Encode ¶

func (s *SendMessageTypingAction) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type SendMessageUploadAudioAction ¶

type SendMessageUploadAudioAction struct {
	// Progress field of SendMessageUploadAudioAction.
	Progress int
}

SendMessageUploadAudioAction represents TL type `sendMessageUploadAudioAction#f351d7ab`.

func (*SendMessageUploadAudioAction) Decode ¶

Decode implements bin.Decoder.

func (*SendMessageUploadAudioAction) Encode ¶

Encode implements bin.Encoder.

type SendMessageUploadDocumentAction ¶

type SendMessageUploadDocumentAction struct {
	// Progress field of SendMessageUploadDocumentAction.
	Progress int
}

SendMessageUploadDocumentAction represents TL type `sendMessageUploadDocumentAction#aa0cd9e4`.

func (*SendMessageUploadDocumentAction) Decode ¶

Decode implements bin.Decoder.

func (*SendMessageUploadDocumentAction) Encode ¶

Encode implements bin.Encoder.

type SendMessageUploadPhotoAction ¶

type SendMessageUploadPhotoAction struct {
	// Progress field of SendMessageUploadPhotoAction.
	Progress int
}

SendMessageUploadPhotoAction represents TL type `sendMessageUploadPhotoAction#d1d34a26`.

func (*SendMessageUploadPhotoAction) Decode ¶

Decode implements bin.Decoder.

func (*SendMessageUploadPhotoAction) Encode ¶

Encode implements bin.Encoder.

type SendMessageUploadRoundAction ¶

type SendMessageUploadRoundAction struct {
	// Progress field of SendMessageUploadRoundAction.
	Progress int
}

SendMessageUploadRoundAction represents TL type `sendMessageUploadRoundAction#243e1c66`.

func (*SendMessageUploadRoundAction) Decode ¶

Decode implements bin.Decoder.

func (*SendMessageUploadRoundAction) Encode ¶

Encode implements bin.Encoder.

type SendMessageUploadVideoAction ¶

type SendMessageUploadVideoAction struct {
	// Progress field of SendMessageUploadVideoAction.
	Progress int
}

SendMessageUploadVideoAction represents TL type `sendMessageUploadVideoAction#e9763aec`.

func (*SendMessageUploadVideoAction) Decode ¶

Decode implements bin.Decoder.

func (*SendMessageUploadVideoAction) Encode ¶

Encode implements bin.Encoder.

type ShippingOption ¶

type ShippingOption struct {
	// ID field of ShippingOption.
	ID string
	// Title field of ShippingOption.
	Title string
	// Prices field of ShippingOption.
	Prices []LabeledPrice
}

ShippingOption represents TL type `shippingOption#b6213cdf`.

func (*ShippingOption) Decode ¶

func (s *ShippingOption) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ShippingOption) Encode ¶

func (s *ShippingOption) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StatsAbsValueAndPrev ¶

type StatsAbsValueAndPrev struct {
	// Current field of StatsAbsValueAndPrev.
	Current float64
	// Previous field of StatsAbsValueAndPrev.
	Previous float64
}

StatsAbsValueAndPrev represents TL type `statsAbsValueAndPrev#cb43acde`.

func (*StatsAbsValueAndPrev) Decode ¶

func (s *StatsAbsValueAndPrev) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsAbsValueAndPrev) Encode ¶

func (s *StatsAbsValueAndPrev) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StatsBroadcastStats ¶

type StatsBroadcastStats struct {
	// Period field of StatsBroadcastStats.
	Period StatsDateRangeDays
	// Followers field of StatsBroadcastStats.
	Followers StatsAbsValueAndPrev
	// ViewsPerPost field of StatsBroadcastStats.
	ViewsPerPost StatsAbsValueAndPrev
	// SharesPerPost field of StatsBroadcastStats.
	SharesPerPost StatsAbsValueAndPrev
	// EnabledNotifications field of StatsBroadcastStats.
	EnabledNotifications StatsPercentValue
	// GrowthGraph field of StatsBroadcastStats.
	GrowthGraph StatsGraphClass
	// FollowersGraph field of StatsBroadcastStats.
	FollowersGraph StatsGraphClass
	// MuteGraph field of StatsBroadcastStats.
	MuteGraph StatsGraphClass
	// TopHoursGraph field of StatsBroadcastStats.
	TopHoursGraph StatsGraphClass
	// InteractionsGraph field of StatsBroadcastStats.
	InteractionsGraph StatsGraphClass
	// IvInteractionsGraph field of StatsBroadcastStats.
	IvInteractionsGraph StatsGraphClass
	// ViewsBySourceGraph field of StatsBroadcastStats.
	ViewsBySourceGraph StatsGraphClass
	// NewFollowersBySourceGraph field of StatsBroadcastStats.
	NewFollowersBySourceGraph StatsGraphClass
	// LanguagesGraph field of StatsBroadcastStats.
	LanguagesGraph StatsGraphClass
	// RecentMessageInteractions field of StatsBroadcastStats.
	RecentMessageInteractions []MessageInteractionCounters
}

StatsBroadcastStats represents TL type `stats.broadcastStats#bdf78394`.

func (*StatsBroadcastStats) Decode ¶

func (b *StatsBroadcastStats) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsBroadcastStats) Encode ¶

func (b *StatsBroadcastStats) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

type StatsDateRangeDays ¶

type StatsDateRangeDays struct {
	// MinDate field of StatsDateRangeDays.
	MinDate int
	// MaxDate field of StatsDateRangeDays.
	MaxDate int
}

StatsDateRangeDays represents TL type `statsDateRangeDays#b637edaf`.

func (*StatsDateRangeDays) Decode ¶

func (s *StatsDateRangeDays) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsDateRangeDays) Encode ¶

func (s *StatsDateRangeDays) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StatsGetBroadcastStatsRequest ¶

type StatsGetBroadcastStatsRequest struct {
	// Flags field of StatsGetBroadcastStatsRequest.
	Flags bin.Fields
	// Dark field of StatsGetBroadcastStatsRequest.
	Dark bool
	// Channel field of StatsGetBroadcastStatsRequest.
	Channel InputChannelClass
}

StatsGetBroadcastStatsRequest represents TL type `stats.getBroadcastStats#ab42441a`.

func (*StatsGetBroadcastStatsRequest) Decode ¶

Decode implements bin.Decoder.

func (*StatsGetBroadcastStatsRequest) Encode ¶

Encode implements bin.Encoder.

func (*StatsGetBroadcastStatsRequest) SetDark ¶

func (g *StatsGetBroadcastStatsRequest) SetDark(value bool)

SetDark sets value of Dark conditional field.

type StatsGetMegagroupStatsRequest ¶

type StatsGetMegagroupStatsRequest struct {
	// Flags field of StatsGetMegagroupStatsRequest.
	Flags bin.Fields
	// Dark field of StatsGetMegagroupStatsRequest.
	Dark bool
	// Channel field of StatsGetMegagroupStatsRequest.
	Channel InputChannelClass
}

StatsGetMegagroupStatsRequest represents TL type `stats.getMegagroupStats#dcdf8607`.

func (*StatsGetMegagroupStatsRequest) Decode ¶

Decode implements bin.Decoder.

func (*StatsGetMegagroupStatsRequest) Encode ¶

Encode implements bin.Encoder.

func (*StatsGetMegagroupStatsRequest) SetDark ¶

func (g *StatsGetMegagroupStatsRequest) SetDark(value bool)

SetDark sets value of Dark conditional field.

type StatsGetMessagePublicForwardsRequest ¶

type StatsGetMessagePublicForwardsRequest struct {
	// Channel field of StatsGetMessagePublicForwardsRequest.
	Channel InputChannelClass
	// MsgID field of StatsGetMessagePublicForwardsRequest.
	MsgID int
	// OffsetRate field of StatsGetMessagePublicForwardsRequest.
	OffsetRate int
	// OffsetPeer field of StatsGetMessagePublicForwardsRequest.
	OffsetPeer InputPeerClass
	// OffsetID field of StatsGetMessagePublicForwardsRequest.
	OffsetID int
	// Limit field of StatsGetMessagePublicForwardsRequest.
	Limit int
}

StatsGetMessagePublicForwardsRequest represents TL type `stats.getMessagePublicForwards#5630281b`.

func (*StatsGetMessagePublicForwardsRequest) Decode ¶

Decode implements bin.Decoder.

func (*StatsGetMessagePublicForwardsRequest) Encode ¶

Encode implements bin.Encoder.

type StatsGetMessageStatsRequest ¶

type StatsGetMessageStatsRequest struct {
	// Flags field of StatsGetMessageStatsRequest.
	Flags bin.Fields
	// Dark field of StatsGetMessageStatsRequest.
	Dark bool
	// Channel field of StatsGetMessageStatsRequest.
	Channel InputChannelClass
	// MsgID field of StatsGetMessageStatsRequest.
	MsgID int
}

StatsGetMessageStatsRequest represents TL type `stats.getMessageStats#b6e0a3f5`.

func (*StatsGetMessageStatsRequest) Decode ¶

Decode implements bin.Decoder.

func (*StatsGetMessageStatsRequest) Encode ¶

Encode implements bin.Encoder.

func (*StatsGetMessageStatsRequest) SetDark ¶

func (g *StatsGetMessageStatsRequest) SetDark(value bool)

SetDark sets value of Dark conditional field.

type StatsGraph ¶

type StatsGraph struct {
	// Flags field of StatsGraph.
	Flags bin.Fields
	// JSON field of StatsGraph.
	JSON DataJSON
	// ZoomToken field of StatsGraph.
	//
	// Use SetZoomToken and GetZoomToken helpers.
	ZoomToken string
}

StatsGraph represents TL type `statsGraph#8ea464b6`.

func (*StatsGraph) Decode ¶

func (s *StatsGraph) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsGraph) Encode ¶

func (s *StatsGraph) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*StatsGraph) GetZoomToken ¶

func (s *StatsGraph) GetZoomToken() (value string, ok bool)

GetZoomToken returns value of ZoomToken conditional field and boolean which is true if field was set.

func (*StatsGraph) SetZoomToken ¶

func (s *StatsGraph) SetZoomToken(value string)

SetZoomToken sets value of ZoomToken conditional field.

type StatsGraphAsync ¶

type StatsGraphAsync struct {
	// Token field of StatsGraphAsync.
	Token string
}

StatsGraphAsync represents TL type `statsGraphAsync#4a27eb2d`.

func (*StatsGraphAsync) Decode ¶

func (s *StatsGraphAsync) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsGraphAsync) Encode ¶

func (s *StatsGraphAsync) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StatsGraphBox ¶

type StatsGraphBox struct {
	StatsGraph StatsGraphClass
}

StatsGraph boxes the StatsGraphClass providing a helper.

func (*StatsGraphBox) Decode ¶

func (b *StatsGraphBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for StatsGraphBox.

func (*StatsGraphBox) Encode ¶

func (b *StatsGraphBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for StatsGraphBox.

type StatsGraphClass ¶

type StatsGraphClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

StatsGraphClass represents StatsGraph generic type.

Example:

g, err := DecodeStatsGraph(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *StatsGraphAsync: // statsGraphAsync#4a27eb2d
case *StatsGraphError: // statsGraphError#bedc9822
case *StatsGraph: // statsGraph#8ea464b6
default: panic(v)
}

func DecodeStatsGraph ¶

func DecodeStatsGraph(buf *bin.Buffer) (StatsGraphClass, error)

DecodeStatsGraph implements binary de-serialization for StatsGraphClass.

type StatsGraphError ¶

type StatsGraphError struct {
	// Error field of StatsGraphError.
	Error string
}

StatsGraphError represents TL type `statsGraphError#bedc9822`.

func (*StatsGraphError) Decode ¶

func (s *StatsGraphError) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsGraphError) Encode ¶

func (s *StatsGraphError) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StatsGroupTopAdmin ¶

type StatsGroupTopAdmin struct {
	// UserID field of StatsGroupTopAdmin.
	UserID int
	// Deleted field of StatsGroupTopAdmin.
	Deleted int
	// Kicked field of StatsGroupTopAdmin.
	Kicked int
	// Banned field of StatsGroupTopAdmin.
	Banned int
}

StatsGroupTopAdmin represents TL type `statsGroupTopAdmin#6014f412`.

func (*StatsGroupTopAdmin) Decode ¶

func (s *StatsGroupTopAdmin) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsGroupTopAdmin) Encode ¶

func (s *StatsGroupTopAdmin) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StatsGroupTopInviter ¶

type StatsGroupTopInviter struct {
	// UserID field of StatsGroupTopInviter.
	UserID int
	// Invitations field of StatsGroupTopInviter.
	Invitations int
}

StatsGroupTopInviter represents TL type `statsGroupTopInviter#31962a4c`.

func (*StatsGroupTopInviter) Decode ¶

func (s *StatsGroupTopInviter) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsGroupTopInviter) Encode ¶

func (s *StatsGroupTopInviter) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StatsGroupTopPoster ¶

type StatsGroupTopPoster struct {
	// UserID field of StatsGroupTopPoster.
	UserID int
	// Messages field of StatsGroupTopPoster.
	Messages int
	// AvgChars field of StatsGroupTopPoster.
	AvgChars int
}

StatsGroupTopPoster represents TL type `statsGroupTopPoster#18f3d0f7`.

func (*StatsGroupTopPoster) Decode ¶

func (s *StatsGroupTopPoster) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsGroupTopPoster) Encode ¶

func (s *StatsGroupTopPoster) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StatsLoadAsyncGraphRequest ¶

type StatsLoadAsyncGraphRequest struct {
	// Flags field of StatsLoadAsyncGraphRequest.
	Flags bin.Fields
	// Token field of StatsLoadAsyncGraphRequest.
	Token string
	// X field of StatsLoadAsyncGraphRequest.
	//
	// Use SetX and GetX helpers.
	X int64
}

StatsLoadAsyncGraphRequest represents TL type `stats.loadAsyncGraph#621d5fa0`.

func (*StatsLoadAsyncGraphRequest) Decode ¶

Decode implements bin.Decoder.

func (*StatsLoadAsyncGraphRequest) Encode ¶

Encode implements bin.Encoder.

func (*StatsLoadAsyncGraphRequest) GetX ¶

func (l *StatsLoadAsyncGraphRequest) GetX() (value int64, ok bool)

GetX returns value of X conditional field and boolean which is true if field was set.

func (*StatsLoadAsyncGraphRequest) SetX ¶

func (l *StatsLoadAsyncGraphRequest) SetX(value int64)

SetX sets value of X conditional field.

type StatsMegagroupStats ¶

type StatsMegagroupStats struct {
	// Period field of StatsMegagroupStats.
	Period StatsDateRangeDays
	// Members field of StatsMegagroupStats.
	Members StatsAbsValueAndPrev
	// Messages field of StatsMegagroupStats.
	Messages StatsAbsValueAndPrev
	// Viewers field of StatsMegagroupStats.
	Viewers StatsAbsValueAndPrev
	// Posters field of StatsMegagroupStats.
	Posters StatsAbsValueAndPrev
	// GrowthGraph field of StatsMegagroupStats.
	GrowthGraph StatsGraphClass
	// MembersGraph field of StatsMegagroupStats.
	MembersGraph StatsGraphClass
	// NewMembersBySourceGraph field of StatsMegagroupStats.
	NewMembersBySourceGraph StatsGraphClass
	// LanguagesGraph field of StatsMegagroupStats.
	LanguagesGraph StatsGraphClass
	// MessagesGraph field of StatsMegagroupStats.
	MessagesGraph StatsGraphClass
	// ActionsGraph field of StatsMegagroupStats.
	ActionsGraph StatsGraphClass
	// TopHoursGraph field of StatsMegagroupStats.
	TopHoursGraph StatsGraphClass
	// WeekdaysGraph field of StatsMegagroupStats.
	WeekdaysGraph StatsGraphClass
	// TopPosters field of StatsMegagroupStats.
	TopPosters []StatsGroupTopPoster
	// TopAdmins field of StatsMegagroupStats.
	TopAdmins []StatsGroupTopAdmin
	// TopInviters field of StatsMegagroupStats.
	TopInviters []StatsGroupTopInviter
	// Users field of StatsMegagroupStats.
	Users []UserClass
}

StatsMegagroupStats represents TL type `stats.megagroupStats#ef7ff916`.

func (*StatsMegagroupStats) Decode ¶

func (m *StatsMegagroupStats) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsMegagroupStats) Encode ¶

func (m *StatsMegagroupStats) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StatsMessageStats ¶

type StatsMessageStats struct {
	// ViewsGraph field of StatsMessageStats.
	ViewsGraph StatsGraphClass
}

StatsMessageStats represents TL type `stats.messageStats#8999f295`.

func (*StatsMessageStats) Decode ¶

func (m *StatsMessageStats) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsMessageStats) Encode ¶

func (m *StatsMessageStats) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StatsPercentValue ¶

type StatsPercentValue struct {
	// Part field of StatsPercentValue.
	Part float64
	// Total field of StatsPercentValue.
	Total float64
}

StatsPercentValue represents TL type `statsPercentValue#cbce2fe0`.

func (*StatsPercentValue) Decode ¶

func (s *StatsPercentValue) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsPercentValue) Encode ¶

func (s *StatsPercentValue) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StatsURL ¶

type StatsURL struct {
	// URL field of StatsURL.
	URL string
}

StatsURL represents TL type `statsURL#47a971e0`.

func (*StatsURL) Decode ¶

func (s *StatsURL) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StatsURL) Encode ¶

func (s *StatsURL) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StickerPack ¶

type StickerPack struct {
	// Emoticon field of StickerPack.
	Emoticon string
	// Documents field of StickerPack.
	Documents []int64
}

StickerPack represents TL type `stickerPack#12b299d4`.

func (*StickerPack) Decode ¶

func (s *StickerPack) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StickerPack) Encode ¶

func (s *StickerPack) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StickerSet ¶

type StickerSet struct {
	// Flags field of StickerSet.
	Flags bin.Fields
	// Archived field of StickerSet.
	Archived bool
	// Official field of StickerSet.
	Official bool
	// Masks field of StickerSet.
	Masks bool
	// Animated field of StickerSet.
	Animated bool
	// InstalledDate field of StickerSet.
	//
	// Use SetInstalledDate and GetInstalledDate helpers.
	InstalledDate int
	// ID field of StickerSet.
	ID int64
	// AccessHash field of StickerSet.
	AccessHash int64
	// Title field of StickerSet.
	Title string
	// ShortName field of StickerSet.
	ShortName string
	// Thumb field of StickerSet.
	//
	// Use SetThumb and GetThumb helpers.
	Thumb PhotoSizeClass
	// ThumbDCID field of StickerSet.
	//
	// Use SetThumbDCID and GetThumbDCID helpers.
	ThumbDCID int
	// Count field of StickerSet.
	Count int
	// Hash field of StickerSet.
	Hash int
}

StickerSet represents TL type `stickerSet#eeb46f27`.

func (*StickerSet) Decode ¶

func (s *StickerSet) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StickerSet) Encode ¶

func (s *StickerSet) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*StickerSet) GetInstalledDate ¶

func (s *StickerSet) GetInstalledDate() (value int, ok bool)

GetInstalledDate returns value of InstalledDate conditional field and boolean which is true if field was set.

func (*StickerSet) GetThumb ¶

func (s *StickerSet) GetThumb() (value PhotoSizeClass, ok bool)

GetThumb returns value of Thumb conditional field and boolean which is true if field was set.

func (*StickerSet) GetThumbDCID ¶

func (s *StickerSet) GetThumbDCID() (value int, ok bool)

GetThumbDCID returns value of ThumbDCID conditional field and boolean which is true if field was set.

func (*StickerSet) SetAnimated ¶

func (s *StickerSet) SetAnimated(value bool)

SetAnimated sets value of Animated conditional field.

func (*StickerSet) SetArchived ¶

func (s *StickerSet) SetArchived(value bool)

SetArchived sets value of Archived conditional field.

func (*StickerSet) SetInstalledDate ¶

func (s *StickerSet) SetInstalledDate(value int)

SetInstalledDate sets value of InstalledDate conditional field.

func (*StickerSet) SetMasks ¶

func (s *StickerSet) SetMasks(value bool)

SetMasks sets value of Masks conditional field.

func (*StickerSet) SetOfficial ¶

func (s *StickerSet) SetOfficial(value bool)

SetOfficial sets value of Official conditional field.

func (*StickerSet) SetThumb ¶

func (s *StickerSet) SetThumb(value PhotoSizeClass)

SetThumb sets value of Thumb conditional field.

func (*StickerSet) SetThumbDCID ¶

func (s *StickerSet) SetThumbDCID(value int)

SetThumbDCID sets value of ThumbDCID conditional field.

type StickerSetCovered ¶

type StickerSetCovered struct {
	// Set field of StickerSetCovered.
	Set StickerSet
	// Cover field of StickerSetCovered.
	Cover DocumentClass
}

StickerSetCovered represents TL type `stickerSetCovered#6410a5d2`.

func (*StickerSetCovered) Decode ¶

func (s *StickerSetCovered) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StickerSetCovered) Encode ¶

func (s *StickerSetCovered) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StickerSetCoveredBox ¶

type StickerSetCoveredBox struct {
	StickerSetCovered StickerSetCoveredClass
}

StickerSetCovered boxes the StickerSetCoveredClass providing a helper.

func (*StickerSetCoveredBox) Decode ¶

func (b *StickerSetCoveredBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for StickerSetCoveredBox.

func (*StickerSetCoveredBox) Encode ¶

func (b *StickerSetCoveredBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for StickerSetCoveredBox.

type StickerSetCoveredClass ¶

type StickerSetCoveredClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

StickerSetCoveredClass represents StickerSetCovered generic type.

Example:

g, err := DecodeStickerSetCovered(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *StickerSetCovered: // stickerSetCovered#6410a5d2
case *StickerSetMultiCovered: // stickerSetMultiCovered#3407e51b
default: panic(v)
}

func DecodeStickerSetCovered ¶

func DecodeStickerSetCovered(buf *bin.Buffer) (StickerSetCoveredClass, error)

DecodeStickerSetCovered implements binary de-serialization for StickerSetCoveredClass.

type StickerSetMultiCovered ¶

type StickerSetMultiCovered struct {
	// Set field of StickerSetMultiCovered.
	Set StickerSet
	// Covers field of StickerSetMultiCovered.
	Covers []DocumentClass
}

StickerSetMultiCovered represents TL type `stickerSetMultiCovered#3407e51b`.

func (*StickerSetMultiCovered) Decode ¶

func (s *StickerSetMultiCovered) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StickerSetMultiCovered) Encode ¶

func (s *StickerSetMultiCovered) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StickersAddStickerToSetRequest ¶

type StickersAddStickerToSetRequest struct {
	// Stickerset field of StickersAddStickerToSetRequest.
	Stickerset InputStickerSetClass
	// Sticker field of StickersAddStickerToSetRequest.
	Sticker InputStickerSetItem
}

StickersAddStickerToSetRequest represents TL type `stickers.addStickerToSet#8653febe`.

func (*StickersAddStickerToSetRequest) Decode ¶

Decode implements bin.Decoder.

func (*StickersAddStickerToSetRequest) Encode ¶

Encode implements bin.Encoder.

type StickersChangeStickerPositionRequest ¶

type StickersChangeStickerPositionRequest struct {
	// Sticker field of StickersChangeStickerPositionRequest.
	Sticker InputDocumentClass
	// Position field of StickersChangeStickerPositionRequest.
	Position int
}

StickersChangeStickerPositionRequest represents TL type `stickers.changeStickerPosition#ffb6d4ca`.

func (*StickersChangeStickerPositionRequest) Decode ¶

Decode implements bin.Decoder.

func (*StickersChangeStickerPositionRequest) Encode ¶

Encode implements bin.Encoder.

type StickersCreateStickerSetRequest ¶

type StickersCreateStickerSetRequest struct {
	// Flags field of StickersCreateStickerSetRequest.
	Flags bin.Fields
	// Masks field of StickersCreateStickerSetRequest.
	Masks bool
	// Animated field of StickersCreateStickerSetRequest.
	Animated bool
	// UserID field of StickersCreateStickerSetRequest.
	UserID InputUserClass
	// Title field of StickersCreateStickerSetRequest.
	Title string
	// ShortName field of StickersCreateStickerSetRequest.
	ShortName string
	// Thumb field of StickersCreateStickerSetRequest.
	//
	// Use SetThumb and GetThumb helpers.
	Thumb InputDocumentClass
	// Stickers field of StickersCreateStickerSetRequest.
	Stickers []InputStickerSetItem
}

StickersCreateStickerSetRequest represents TL type `stickers.createStickerSet#f1036780`.

func (*StickersCreateStickerSetRequest) Decode ¶

Decode implements bin.Decoder.

func (*StickersCreateStickerSetRequest) Encode ¶

Encode implements bin.Encoder.

func (*StickersCreateStickerSetRequest) GetThumb ¶

func (c *StickersCreateStickerSetRequest) GetThumb() (value InputDocumentClass, ok bool)

GetThumb returns value of Thumb conditional field and boolean which is true if field was set.

func (*StickersCreateStickerSetRequest) SetAnimated ¶

func (c *StickersCreateStickerSetRequest) SetAnimated(value bool)

SetAnimated sets value of Animated conditional field.

func (*StickersCreateStickerSetRequest) SetMasks ¶

func (c *StickersCreateStickerSetRequest) SetMasks(value bool)

SetMasks sets value of Masks conditional field.

func (*StickersCreateStickerSetRequest) SetThumb ¶

SetThumb sets value of Thumb conditional field.

type StickersRemoveStickerFromSetRequest ¶

type StickersRemoveStickerFromSetRequest struct {
	// Sticker field of StickersRemoveStickerFromSetRequest.
	Sticker InputDocumentClass
}

StickersRemoveStickerFromSetRequest represents TL type `stickers.removeStickerFromSet#f7760f51`.

func (*StickersRemoveStickerFromSetRequest) Decode ¶

Decode implements bin.Decoder.

func (*StickersRemoveStickerFromSetRequest) Encode ¶

Encode implements bin.Encoder.

type StickersSetStickerSetThumbRequest ¶

type StickersSetStickerSetThumbRequest struct {
	// Stickerset field of StickersSetStickerSetThumbRequest.
	Stickerset InputStickerSetClass
	// Thumb field of StickersSetStickerSetThumbRequest.
	Thumb InputDocumentClass
}

StickersSetStickerSetThumbRequest represents TL type `stickers.setStickerSetThumb#9a364e30`.

func (*StickersSetStickerSetThumbRequest) Decode ¶

Decode implements bin.Decoder.

func (*StickersSetStickerSetThumbRequest) Encode ¶

Encode implements bin.Encoder.

type StorageFileGif ¶

type StorageFileGif struct {
}

StorageFileGif represents TL type `storage.fileGif#cae1aadf`.

func (*StorageFileGif) Decode ¶

func (f *StorageFileGif) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StorageFileGif) Encode ¶

func (f *StorageFileGif) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StorageFileJpeg ¶

type StorageFileJpeg struct {
}

StorageFileJpeg represents TL type `storage.fileJpeg#7efe0e`.

func (*StorageFileJpeg) Decode ¶

func (f *StorageFileJpeg) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StorageFileJpeg) Encode ¶

func (f *StorageFileJpeg) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StorageFileMov ¶

type StorageFileMov struct {
}

StorageFileMov represents TL type `storage.fileMov#4b09ebbc`.

func (*StorageFileMov) Decode ¶

func (f *StorageFileMov) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StorageFileMov) Encode ¶

func (f *StorageFileMov) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StorageFileMp3 ¶

type StorageFileMp3 struct {
}

StorageFileMp3 represents TL type `storage.fileMp3#528a0677`.

func (*StorageFileMp3) Decode ¶

func (f *StorageFileMp3) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StorageFileMp3) Encode ¶

func (f *StorageFileMp3) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StorageFileMp4 ¶

type StorageFileMp4 struct {
}

StorageFileMp4 represents TL type `storage.fileMp4#b3cea0e4`.

func (*StorageFileMp4) Decode ¶

func (f *StorageFileMp4) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StorageFileMp4) Encode ¶

func (f *StorageFileMp4) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StorageFilePartial ¶

type StorageFilePartial struct {
}

StorageFilePartial represents TL type `storage.filePartial#40bc6f52`.

func (*StorageFilePartial) Decode ¶

func (f *StorageFilePartial) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StorageFilePartial) Encode ¶

func (f *StorageFilePartial) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StorageFilePdf ¶

type StorageFilePdf struct {
}

StorageFilePdf represents TL type `storage.filePdf#ae1e508d`.

func (*StorageFilePdf) Decode ¶

func (f *StorageFilePdf) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StorageFilePdf) Encode ¶

func (f *StorageFilePdf) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StorageFilePng ¶

type StorageFilePng struct {
}

StorageFilePng represents TL type `storage.filePng#a4f63c0`.

func (*StorageFilePng) Decode ¶

func (f *StorageFilePng) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StorageFilePng) Encode ¶

func (f *StorageFilePng) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StorageFileTypeBox ¶

type StorageFileTypeBox struct {
	FileType StorageFileTypeClass
}

StorageFileType boxes the StorageFileTypeClass providing a helper.

func (*StorageFileTypeBox) Decode ¶

func (b *StorageFileTypeBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for StorageFileTypeBox.

func (*StorageFileTypeBox) Encode ¶

func (b *StorageFileTypeBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for StorageFileTypeBox.

type StorageFileTypeClass ¶

type StorageFileTypeClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

StorageFileTypeClass represents storage.FileType generic type.

Example:

g, err := DecodeStorageFileType(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *StorageFileUnknown: // storage.fileUnknown#aa963b05
case *StorageFilePartial: // storage.filePartial#40bc6f52
case *StorageFileJpeg: // storage.fileJpeg#7efe0e
case *StorageFileGif: // storage.fileGif#cae1aadf
case *StorageFilePng: // storage.filePng#a4f63c0
case *StorageFilePdf: // storage.filePdf#ae1e508d
case *StorageFileMp3: // storage.fileMp3#528a0677
case *StorageFileMov: // storage.fileMov#4b09ebbc
case *StorageFileMp4: // storage.fileMp4#b3cea0e4
case *StorageFileWebp: // storage.fileWebp#1081464c
default: panic(v)
}

func DecodeStorageFileType ¶

func DecodeStorageFileType(buf *bin.Buffer) (StorageFileTypeClass, error)

DecodeStorageFileType implements binary de-serialization for StorageFileTypeClass.

type StorageFileUnknown ¶

type StorageFileUnknown struct {
}

StorageFileUnknown represents TL type `storage.fileUnknown#aa963b05`.

func (*StorageFileUnknown) Decode ¶

func (f *StorageFileUnknown) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StorageFileUnknown) Encode ¶

func (f *StorageFileUnknown) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type StorageFileWebp ¶

type StorageFileWebp struct {
}

StorageFileWebp represents TL type `storage.fileWebp#1081464c`.

func (*StorageFileWebp) Decode ¶

func (f *StorageFileWebp) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*StorageFileWebp) Encode ¶

func (f *StorageFileWebp) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextAnchor ¶

type TextAnchor struct {
	// Text field of TextAnchor.
	Text RichTextClass
	// Name field of TextAnchor.
	Name string
}

TextAnchor represents TL type `textAnchor#35553762`.

func (*TextAnchor) Decode ¶

func (t *TextAnchor) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextAnchor) Encode ¶

func (t *TextAnchor) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextBold ¶

type TextBold struct {
	// Text field of TextBold.
	Text RichTextClass
}

TextBold represents TL type `textBold#6724abc4`.

func (*TextBold) Decode ¶

func (t *TextBold) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextBold) Encode ¶

func (t *TextBold) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextConcat ¶

type TextConcat struct {
	// Texts field of TextConcat.
	Texts []RichTextClass
}

TextConcat represents TL type `textConcat#7e6260d7`.

func (*TextConcat) Decode ¶

func (t *TextConcat) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextConcat) Encode ¶

func (t *TextConcat) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextEmail ¶

type TextEmail struct {
	// Text field of TextEmail.
	Text RichTextClass
	// Email field of TextEmail.
	Email string
}

TextEmail represents TL type `textEmail#de5a0dd6`.

func (*TextEmail) Decode ¶

func (t *TextEmail) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextEmail) Encode ¶

func (t *TextEmail) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextEmpty ¶

type TextEmpty struct {
}

TextEmpty represents TL type `textEmpty#dc3d824f`.

func (*TextEmpty) Decode ¶

func (t *TextEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextEmpty) Encode ¶

func (t *TextEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextFixed ¶

type TextFixed struct {
	// Text field of TextFixed.
	Text RichTextClass
}

TextFixed represents TL type `textFixed#6c3f19b9`.

func (*TextFixed) Decode ¶

func (t *TextFixed) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextFixed) Encode ¶

func (t *TextFixed) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextImage ¶

type TextImage struct {
	// DocumentID field of TextImage.
	DocumentID int64
	// W field of TextImage.
	W int
	// H field of TextImage.
	H int
}

TextImage represents TL type `textImage#81ccf4f`.

func (*TextImage) Decode ¶

func (t *TextImage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextImage) Encode ¶

func (t *TextImage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextItalic ¶

type TextItalic struct {
	// Text field of TextItalic.
	Text RichTextClass
}

TextItalic represents TL type `textItalic#d912a59c`.

func (*TextItalic) Decode ¶

func (t *TextItalic) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextItalic) Encode ¶

func (t *TextItalic) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextMarked ¶

type TextMarked struct {
	// Text field of TextMarked.
	Text RichTextClass
}

TextMarked represents TL type `textMarked#34b8621`.

func (*TextMarked) Decode ¶

func (t *TextMarked) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextMarked) Encode ¶

func (t *TextMarked) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextPhone ¶

type TextPhone struct {
	// Text field of TextPhone.
	Text RichTextClass
	// Phone field of TextPhone.
	Phone string
}

TextPhone represents TL type `textPhone#1ccb966a`.

func (*TextPhone) Decode ¶

func (t *TextPhone) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextPhone) Encode ¶

func (t *TextPhone) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextPlain ¶

type TextPlain struct {
	// Text field of TextPlain.
	Text string
}

TextPlain represents TL type `textPlain#744694e0`.

func (*TextPlain) Decode ¶

func (t *TextPlain) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextPlain) Encode ¶

func (t *TextPlain) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextStrike ¶

type TextStrike struct {
	// Text field of TextStrike.
	Text RichTextClass
}

TextStrike represents TL type `textStrike#9bf8bb95`.

func (*TextStrike) Decode ¶

func (t *TextStrike) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextStrike) Encode ¶

func (t *TextStrike) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextSubscript ¶

type TextSubscript struct {
	// Text field of TextSubscript.
	Text RichTextClass
}

TextSubscript represents TL type `textSubscript#ed6a8504`.

func (*TextSubscript) Decode ¶

func (t *TextSubscript) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextSubscript) Encode ¶

func (t *TextSubscript) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextSuperscript ¶

type TextSuperscript struct {
	// Text field of TextSuperscript.
	Text RichTextClass
}

TextSuperscript represents TL type `textSuperscript#c7fb5e01`.

func (*TextSuperscript) Decode ¶

func (t *TextSuperscript) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextSuperscript) Encode ¶

func (t *TextSuperscript) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextUnderline ¶

type TextUnderline struct {
	// Text field of TextUnderline.
	Text RichTextClass
}

TextUnderline represents TL type `textUnderline#c12622c4`.

func (*TextUnderline) Decode ¶

func (t *TextUnderline) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextUnderline) Encode ¶

func (t *TextUnderline) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TextUrl ¶

type TextUrl struct {
	// Text field of TextUrl.
	Text RichTextClass
	// URL field of TextUrl.
	URL string
	// WebpageID field of TextUrl.
	WebpageID int64
}

TextUrl represents TL type `textUrl#3c2884c1`.

func (*TextUrl) Decode ¶

func (t *TextUrl) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TextUrl) Encode ¶

func (t *TextUrl) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type Theme ¶

type Theme struct {
	// Flags field of Theme.
	Flags bin.Fields
	// Creator field of Theme.
	Creator bool
	// Default field of Theme.
	Default bool
	// ID field of Theme.
	ID int64
	// AccessHash field of Theme.
	AccessHash int64
	// Slug field of Theme.
	Slug string
	// Title field of Theme.
	Title string
	// Document field of Theme.
	//
	// Use SetDocument and GetDocument helpers.
	Document DocumentClass
	// Settings field of Theme.
	//
	// Use SetSettings and GetSettings helpers.
	Settings ThemeSettings
	// InstallsCount field of Theme.
	InstallsCount int
}

Theme represents TL type `theme#28f1114`.

func (*Theme) Decode ¶

func (t *Theme) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Theme) Encode ¶

func (t *Theme) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Theme) GetDocument ¶

func (t *Theme) GetDocument() (value DocumentClass, ok bool)

GetDocument returns value of Document conditional field and boolean which is true if field was set.

func (*Theme) GetSettings ¶

func (t *Theme) GetSettings() (value ThemeSettings, ok bool)

GetSettings returns value of Settings conditional field and boolean which is true if field was set.

func (*Theme) SetCreator ¶

func (t *Theme) SetCreator(value bool)

SetCreator sets value of Creator conditional field.

func (*Theme) SetDefault ¶

func (t *Theme) SetDefault(value bool)

SetDefault sets value of Default conditional field.

func (*Theme) SetDocument ¶

func (t *Theme) SetDocument(value DocumentClass)

SetDocument sets value of Document conditional field.

func (*Theme) SetSettings ¶

func (t *Theme) SetSettings(value ThemeSettings)

SetSettings sets value of Settings conditional field.

type ThemeSettings ¶

type ThemeSettings struct {
	// Flags field of ThemeSettings.
	Flags bin.Fields
	// BaseTheme field of ThemeSettings.
	BaseTheme BaseThemeClass
	// AccentColor field of ThemeSettings.
	AccentColor int
	// MessageTopColor field of ThemeSettings.
	//
	// Use SetMessageTopColor and GetMessageTopColor helpers.
	MessageTopColor int
	// MessageBottomColor field of ThemeSettings.
	//
	// Use SetMessageBottomColor and GetMessageBottomColor helpers.
	MessageBottomColor int
	// Wallpaper field of ThemeSettings.
	//
	// Use SetWallpaper and GetWallpaper helpers.
	Wallpaper WallPaperClass
}

ThemeSettings represents TL type `themeSettings#9c14984a`.

func (*ThemeSettings) Decode ¶

func (t *ThemeSettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ThemeSettings) Encode ¶

func (t *ThemeSettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ThemeSettings) GetMessageBottomColor ¶

func (t *ThemeSettings) GetMessageBottomColor() (value int, ok bool)

GetMessageBottomColor returns value of MessageBottomColor conditional field and boolean which is true if field was set.

func (*ThemeSettings) GetMessageTopColor ¶

func (t *ThemeSettings) GetMessageTopColor() (value int, ok bool)

GetMessageTopColor returns value of MessageTopColor conditional field and boolean which is true if field was set.

func (*ThemeSettings) GetWallpaper ¶

func (t *ThemeSettings) GetWallpaper() (value WallPaperClass, ok bool)

GetWallpaper returns value of Wallpaper conditional field and boolean which is true if field was set.

func (*ThemeSettings) SetMessageBottomColor ¶

func (t *ThemeSettings) SetMessageBottomColor(value int)

SetMessageBottomColor sets value of MessageBottomColor conditional field.

func (*ThemeSettings) SetMessageTopColor ¶

func (t *ThemeSettings) SetMessageTopColor(value int)

SetMessageTopColor sets value of MessageTopColor conditional field.

func (*ThemeSettings) SetWallpaper ¶

func (t *ThemeSettings) SetWallpaper(value WallPaperClass)

SetWallpaper sets value of Wallpaper conditional field.

type TopPeer ¶

type TopPeer struct {
	// Peer field of TopPeer.
	Peer PeerClass
	// Rating field of TopPeer.
	Rating float64
}

TopPeer represents TL type `topPeer#edcdc05b`.

func (*TopPeer) Decode ¶

func (t *TopPeer) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TopPeer) Encode ¶

func (t *TopPeer) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TopPeerCategoryBotsInline ¶

type TopPeerCategoryBotsInline struct {
}

TopPeerCategoryBotsInline represents TL type `topPeerCategoryBotsInline#148677e2`.

func (*TopPeerCategoryBotsInline) Decode ¶

func (t *TopPeerCategoryBotsInline) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TopPeerCategoryBotsInline) Encode ¶

func (t *TopPeerCategoryBotsInline) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TopPeerCategoryBotsPM ¶

type TopPeerCategoryBotsPM struct {
}

TopPeerCategoryBotsPM represents TL type `topPeerCategoryBotsPM#ab661b5b`.

func (*TopPeerCategoryBotsPM) Decode ¶

func (t *TopPeerCategoryBotsPM) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TopPeerCategoryBotsPM) Encode ¶

func (t *TopPeerCategoryBotsPM) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TopPeerCategoryBox ¶

type TopPeerCategoryBox struct {
	TopPeerCategory TopPeerCategoryClass
}

TopPeerCategory boxes the TopPeerCategoryClass providing a helper.

func (*TopPeerCategoryBox) Decode ¶

func (b *TopPeerCategoryBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for TopPeerCategoryBox.

func (*TopPeerCategoryBox) Encode ¶

func (b *TopPeerCategoryBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for TopPeerCategoryBox.

type TopPeerCategoryChannels ¶

type TopPeerCategoryChannels struct {
}

TopPeerCategoryChannels represents TL type `topPeerCategoryChannels#161d9628`.

func (*TopPeerCategoryChannels) Decode ¶

func (t *TopPeerCategoryChannels) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TopPeerCategoryChannels) Encode ¶

func (t *TopPeerCategoryChannels) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TopPeerCategoryClass ¶

type TopPeerCategoryClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

TopPeerCategoryClass represents TopPeerCategory generic type.

Example:

g, err := DecodeTopPeerCategory(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *TopPeerCategoryBotsPM: // topPeerCategoryBotsPM#ab661b5b
case *TopPeerCategoryBotsInline: // topPeerCategoryBotsInline#148677e2
case *TopPeerCategoryCorrespondents: // topPeerCategoryCorrespondents#637b7ed
case *TopPeerCategoryGroups: // topPeerCategoryGroups#bd17a14a
case *TopPeerCategoryChannels: // topPeerCategoryChannels#161d9628
case *TopPeerCategoryPhoneCalls: // topPeerCategoryPhoneCalls#1e76a78c
case *TopPeerCategoryForwardUsers: // topPeerCategoryForwardUsers#a8406ca9
case *TopPeerCategoryForwardChats: // topPeerCategoryForwardChats#fbeec0f0
default: panic(v)
}

func DecodeTopPeerCategory ¶

func DecodeTopPeerCategory(buf *bin.Buffer) (TopPeerCategoryClass, error)

DecodeTopPeerCategory implements binary de-serialization for TopPeerCategoryClass.

type TopPeerCategoryCorrespondents ¶

type TopPeerCategoryCorrespondents struct {
}

TopPeerCategoryCorrespondents represents TL type `topPeerCategoryCorrespondents#637b7ed`.

func (*TopPeerCategoryCorrespondents) Decode ¶

Decode implements bin.Decoder.

func (*TopPeerCategoryCorrespondents) Encode ¶

Encode implements bin.Encoder.

type TopPeerCategoryForwardChats ¶

type TopPeerCategoryForwardChats struct {
}

TopPeerCategoryForwardChats represents TL type `topPeerCategoryForwardChats#fbeec0f0`.

func (*TopPeerCategoryForwardChats) Decode ¶

Decode implements bin.Decoder.

func (*TopPeerCategoryForwardChats) Encode ¶

Encode implements bin.Encoder.

type TopPeerCategoryForwardUsers ¶

type TopPeerCategoryForwardUsers struct {
}

TopPeerCategoryForwardUsers represents TL type `topPeerCategoryForwardUsers#a8406ca9`.

func (*TopPeerCategoryForwardUsers) Decode ¶

Decode implements bin.Decoder.

func (*TopPeerCategoryForwardUsers) Encode ¶

Encode implements bin.Encoder.

type TopPeerCategoryGroups ¶

type TopPeerCategoryGroups struct {
}

TopPeerCategoryGroups represents TL type `topPeerCategoryGroups#bd17a14a`.

func (*TopPeerCategoryGroups) Decode ¶

func (t *TopPeerCategoryGroups) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TopPeerCategoryGroups) Encode ¶

func (t *TopPeerCategoryGroups) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TopPeerCategoryPeers ¶

type TopPeerCategoryPeers struct {
	// Category field of TopPeerCategoryPeers.
	Category TopPeerCategoryClass
	// Count field of TopPeerCategoryPeers.
	Count int
	// Peers field of TopPeerCategoryPeers.
	Peers []TopPeer
}

TopPeerCategoryPeers represents TL type `topPeerCategoryPeers#fb834291`.

func (*TopPeerCategoryPeers) Decode ¶

func (t *TopPeerCategoryPeers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TopPeerCategoryPeers) Encode ¶

func (t *TopPeerCategoryPeers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type TopPeerCategoryPhoneCalls ¶

type TopPeerCategoryPhoneCalls struct {
}

TopPeerCategoryPhoneCalls represents TL type `topPeerCategoryPhoneCalls#1e76a78c`.

func (*TopPeerCategoryPhoneCalls) Decode ¶

func (t *TopPeerCategoryPhoneCalls) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*TopPeerCategoryPhoneCalls) Encode ¶

func (t *TopPeerCategoryPhoneCalls) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type True ¶

type True struct {
}

True represents TL type `true#3fedd339`.

func (*True) Decode ¶

func (t *True) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*True) Encode ¶

func (t *True) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateBotCallbackQuery ¶

type UpdateBotCallbackQuery struct {
	// Flags field of UpdateBotCallbackQuery.
	Flags bin.Fields
	// QueryID field of UpdateBotCallbackQuery.
	QueryID int64
	// UserID field of UpdateBotCallbackQuery.
	UserID int
	// Peer field of UpdateBotCallbackQuery.
	Peer PeerClass
	// MsgID field of UpdateBotCallbackQuery.
	MsgID int
	// ChatInstance field of UpdateBotCallbackQuery.
	ChatInstance int64
	// Data field of UpdateBotCallbackQuery.
	//
	// Use SetData and GetData helpers.
	Data []byte
	// GameShortName field of UpdateBotCallbackQuery.
	//
	// Use SetGameShortName and GetGameShortName helpers.
	GameShortName string
}

UpdateBotCallbackQuery represents TL type `updateBotCallbackQuery#e73547e1`.

func (*UpdateBotCallbackQuery) Decode ¶

func (u *UpdateBotCallbackQuery) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateBotCallbackQuery) Encode ¶

func (u *UpdateBotCallbackQuery) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateBotCallbackQuery) GetData ¶

func (u *UpdateBotCallbackQuery) GetData() (value []byte, ok bool)

GetData returns value of Data conditional field and boolean which is true if field was set.

func (*UpdateBotCallbackQuery) GetGameShortName ¶

func (u *UpdateBotCallbackQuery) GetGameShortName() (value string, ok bool)

GetGameShortName returns value of GameShortName conditional field and boolean which is true if field was set.

func (*UpdateBotCallbackQuery) SetData ¶

func (u *UpdateBotCallbackQuery) SetData(value []byte)

SetData sets value of Data conditional field.

func (*UpdateBotCallbackQuery) SetGameShortName ¶

func (u *UpdateBotCallbackQuery) SetGameShortName(value string)

SetGameShortName sets value of GameShortName conditional field.

type UpdateBotInlineQuery ¶

type UpdateBotInlineQuery struct {
	// Flags field of UpdateBotInlineQuery.
	Flags bin.Fields
	// QueryID field of UpdateBotInlineQuery.
	QueryID int64
	// UserID field of UpdateBotInlineQuery.
	UserID int
	// Query field of UpdateBotInlineQuery.
	Query string
	// Geo field of UpdateBotInlineQuery.
	//
	// Use SetGeo and GetGeo helpers.
	Geo GeoPointClass
	// Offset field of UpdateBotInlineQuery.
	Offset string
}

UpdateBotInlineQuery represents TL type `updateBotInlineQuery#54826690`.

func (*UpdateBotInlineQuery) Decode ¶

func (u *UpdateBotInlineQuery) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateBotInlineQuery) Encode ¶

func (u *UpdateBotInlineQuery) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateBotInlineQuery) GetGeo ¶

func (u *UpdateBotInlineQuery) GetGeo() (value GeoPointClass, ok bool)

GetGeo returns value of Geo conditional field and boolean which is true if field was set.

func (*UpdateBotInlineQuery) SetGeo ¶

func (u *UpdateBotInlineQuery) SetGeo(value GeoPointClass)

SetGeo sets value of Geo conditional field.

type UpdateBotInlineSend ¶

type UpdateBotInlineSend struct {
	// Flags field of UpdateBotInlineSend.
	Flags bin.Fields
	// UserID field of UpdateBotInlineSend.
	UserID int
	// Query field of UpdateBotInlineSend.
	Query string
	// Geo field of UpdateBotInlineSend.
	//
	// Use SetGeo and GetGeo helpers.
	Geo GeoPointClass
	// ID field of UpdateBotInlineSend.
	ID string
	// MsgID field of UpdateBotInlineSend.
	//
	// Use SetMsgID and GetMsgID helpers.
	MsgID InputBotInlineMessageID
}

UpdateBotInlineSend represents TL type `updateBotInlineSend#e48f964`.

func (*UpdateBotInlineSend) Decode ¶

func (u *UpdateBotInlineSend) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateBotInlineSend) Encode ¶

func (u *UpdateBotInlineSend) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateBotInlineSend) GetGeo ¶

func (u *UpdateBotInlineSend) GetGeo() (value GeoPointClass, ok bool)

GetGeo returns value of Geo conditional field and boolean which is true if field was set.

func (*UpdateBotInlineSend) GetMsgID ¶

func (u *UpdateBotInlineSend) GetMsgID() (value InputBotInlineMessageID, ok bool)

GetMsgID returns value of MsgID conditional field and boolean which is true if field was set.

func (*UpdateBotInlineSend) SetGeo ¶

func (u *UpdateBotInlineSend) SetGeo(value GeoPointClass)

SetGeo sets value of Geo conditional field.

func (*UpdateBotInlineSend) SetMsgID ¶

func (u *UpdateBotInlineSend) SetMsgID(value InputBotInlineMessageID)

SetMsgID sets value of MsgID conditional field.

type UpdateBotPrecheckoutQuery ¶

type UpdateBotPrecheckoutQuery struct {
	// Flags field of UpdateBotPrecheckoutQuery.
	Flags bin.Fields
	// QueryID field of UpdateBotPrecheckoutQuery.
	QueryID int64
	// UserID field of UpdateBotPrecheckoutQuery.
	UserID int
	// Payload field of UpdateBotPrecheckoutQuery.
	Payload []byte
	// Info field of UpdateBotPrecheckoutQuery.
	//
	// Use SetInfo and GetInfo helpers.
	Info PaymentRequestedInfo
	// ShippingOptionID field of UpdateBotPrecheckoutQuery.
	//
	// Use SetShippingOptionID and GetShippingOptionID helpers.
	ShippingOptionID string
	// Currency field of UpdateBotPrecheckoutQuery.
	Currency string
	// TotalAmount field of UpdateBotPrecheckoutQuery.
	TotalAmount int64
}

UpdateBotPrecheckoutQuery represents TL type `updateBotPrecheckoutQuery#5d2f3aa9`.

func (*UpdateBotPrecheckoutQuery) Decode ¶

func (u *UpdateBotPrecheckoutQuery) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateBotPrecheckoutQuery) Encode ¶

func (u *UpdateBotPrecheckoutQuery) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateBotPrecheckoutQuery) GetInfo ¶

func (u *UpdateBotPrecheckoutQuery) GetInfo() (value PaymentRequestedInfo, ok bool)

GetInfo returns value of Info conditional field and boolean which is true if field was set.

func (*UpdateBotPrecheckoutQuery) GetShippingOptionID ¶

func (u *UpdateBotPrecheckoutQuery) GetShippingOptionID() (value string, ok bool)

GetShippingOptionID returns value of ShippingOptionID conditional field and boolean which is true if field was set.

func (*UpdateBotPrecheckoutQuery) SetInfo ¶

SetInfo sets value of Info conditional field.

func (*UpdateBotPrecheckoutQuery) SetShippingOptionID ¶

func (u *UpdateBotPrecheckoutQuery) SetShippingOptionID(value string)

SetShippingOptionID sets value of ShippingOptionID conditional field.

type UpdateBotShippingQuery ¶

type UpdateBotShippingQuery struct {
	// QueryID field of UpdateBotShippingQuery.
	QueryID int64
	// UserID field of UpdateBotShippingQuery.
	UserID int
	// Payload field of UpdateBotShippingQuery.
	Payload []byte
	// ShippingAddress field of UpdateBotShippingQuery.
	ShippingAddress PostAddress
}

UpdateBotShippingQuery represents TL type `updateBotShippingQuery#e0cdc940`.

func (*UpdateBotShippingQuery) Decode ¶

func (u *UpdateBotShippingQuery) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateBotShippingQuery) Encode ¶

func (u *UpdateBotShippingQuery) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateBotWebhookJSON ¶

type UpdateBotWebhookJSON struct {
	// Data field of UpdateBotWebhookJSON.
	Data DataJSON
}

UpdateBotWebhookJSON represents TL type `updateBotWebhookJSON#8317c0c3`.

func (*UpdateBotWebhookJSON) Decode ¶

func (u *UpdateBotWebhookJSON) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateBotWebhookJSON) Encode ¶

func (u *UpdateBotWebhookJSON) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateBotWebhookJSONQuery ¶

type UpdateBotWebhookJSONQuery struct {
	// QueryID field of UpdateBotWebhookJSONQuery.
	QueryID int64
	// Data field of UpdateBotWebhookJSONQuery.
	Data DataJSON
	// Timeout field of UpdateBotWebhookJSONQuery.
	Timeout int
}

UpdateBotWebhookJSONQuery represents TL type `updateBotWebhookJSONQuery#9b9240a6`.

func (*UpdateBotWebhookJSONQuery) Decode ¶

func (u *UpdateBotWebhookJSONQuery) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateBotWebhookJSONQuery) Encode ¶

func (u *UpdateBotWebhookJSONQuery) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateBox ¶

type UpdateBox struct {
	Update UpdateClass
}

Update boxes the UpdateClass providing a helper.

func (*UpdateBox) Decode ¶

func (b *UpdateBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for UpdateBox.

func (*UpdateBox) Encode ¶

func (b *UpdateBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for UpdateBox.

type UpdateChannel ¶

type UpdateChannel struct {
	// ChannelID field of UpdateChannel.
	ChannelID int
}

UpdateChannel represents TL type `updateChannel#b6d45656`.

func (*UpdateChannel) Decode ¶

func (u *UpdateChannel) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateChannel) Encode ¶

func (u *UpdateChannel) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateChannelAvailableMessages ¶

type UpdateChannelAvailableMessages struct {
	// ChannelID field of UpdateChannelAvailableMessages.
	ChannelID int
	// AvailableMinID field of UpdateChannelAvailableMessages.
	AvailableMinID int
}

UpdateChannelAvailableMessages represents TL type `updateChannelAvailableMessages#70db6837`.

func (*UpdateChannelAvailableMessages) Decode ¶

Decode implements bin.Decoder.

func (*UpdateChannelAvailableMessages) Encode ¶

Encode implements bin.Encoder.

type UpdateChannelMessageForwards ¶

type UpdateChannelMessageForwards struct {
	// ChannelID field of UpdateChannelMessageForwards.
	ChannelID int
	// ID field of UpdateChannelMessageForwards.
	ID int
	// Forwards field of UpdateChannelMessageForwards.
	Forwards int
}

UpdateChannelMessageForwards represents TL type `updateChannelMessageForwards#6e8a84df`.

func (*UpdateChannelMessageForwards) Decode ¶

Decode implements bin.Decoder.

func (*UpdateChannelMessageForwards) Encode ¶

Encode implements bin.Encoder.

type UpdateChannelMessageViews ¶

type UpdateChannelMessageViews struct {
	// ChannelID field of UpdateChannelMessageViews.
	ChannelID int
	// ID field of UpdateChannelMessageViews.
	ID int
	// Views field of UpdateChannelMessageViews.
	Views int
}

UpdateChannelMessageViews represents TL type `updateChannelMessageViews#98a12b4b`.

func (*UpdateChannelMessageViews) Decode ¶

func (u *UpdateChannelMessageViews) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateChannelMessageViews) Encode ¶

func (u *UpdateChannelMessageViews) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateChannelParticipant ¶

type UpdateChannelParticipant struct {
	// Flags field of UpdateChannelParticipant.
	Flags bin.Fields
	// ChannelID field of UpdateChannelParticipant.
	ChannelID int
	// Date field of UpdateChannelParticipant.
	Date int
	// UserID field of UpdateChannelParticipant.
	UserID int
	// PrevParticipant field of UpdateChannelParticipant.
	//
	// Use SetPrevParticipant and GetPrevParticipant helpers.
	PrevParticipant ChannelParticipantClass
	// NewParticipant field of UpdateChannelParticipant.
	//
	// Use SetNewParticipant and GetNewParticipant helpers.
	NewParticipant ChannelParticipantClass
	// Qts field of UpdateChannelParticipant.
	Qts int
}

UpdateChannelParticipant represents TL type `updateChannelParticipant#65d2b464`.

func (*UpdateChannelParticipant) Decode ¶

func (u *UpdateChannelParticipant) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateChannelParticipant) Encode ¶

func (u *UpdateChannelParticipant) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateChannelParticipant) GetNewParticipant ¶

func (u *UpdateChannelParticipant) GetNewParticipant() (value ChannelParticipantClass, ok bool)

GetNewParticipant returns value of NewParticipant conditional field and boolean which is true if field was set.

func (*UpdateChannelParticipant) GetPrevParticipant ¶

func (u *UpdateChannelParticipant) GetPrevParticipant() (value ChannelParticipantClass, ok bool)

GetPrevParticipant returns value of PrevParticipant conditional field and boolean which is true if field was set.

func (*UpdateChannelParticipant) SetNewParticipant ¶

func (u *UpdateChannelParticipant) SetNewParticipant(value ChannelParticipantClass)

SetNewParticipant sets value of NewParticipant conditional field.

func (*UpdateChannelParticipant) SetPrevParticipant ¶

func (u *UpdateChannelParticipant) SetPrevParticipant(value ChannelParticipantClass)

SetPrevParticipant sets value of PrevParticipant conditional field.

type UpdateChannelReadMessagesContents ¶

type UpdateChannelReadMessagesContents struct {
	// ChannelID field of UpdateChannelReadMessagesContents.
	ChannelID int
	// Messages field of UpdateChannelReadMessagesContents.
	Messages []int
}

UpdateChannelReadMessagesContents represents TL type `updateChannelReadMessagesContents#89893b45`.

func (*UpdateChannelReadMessagesContents) Decode ¶

Decode implements bin.Decoder.

func (*UpdateChannelReadMessagesContents) Encode ¶

Encode implements bin.Encoder.

type UpdateChannelTooLong ¶

type UpdateChannelTooLong struct {
	// Flags field of UpdateChannelTooLong.
	Flags bin.Fields
	// ChannelID field of UpdateChannelTooLong.
	ChannelID int
	// Pts field of UpdateChannelTooLong.
	//
	// Use SetPts and GetPts helpers.
	Pts int
}

UpdateChannelTooLong represents TL type `updateChannelTooLong#eb0467fb`.

func (*UpdateChannelTooLong) Decode ¶

func (u *UpdateChannelTooLong) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateChannelTooLong) Encode ¶

func (u *UpdateChannelTooLong) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateChannelTooLong) GetPts ¶

func (u *UpdateChannelTooLong) GetPts() (value int, ok bool)

GetPts returns value of Pts conditional field and boolean which is true if field was set.

func (*UpdateChannelTooLong) SetPts ¶

func (u *UpdateChannelTooLong) SetPts(value int)

SetPts sets value of Pts conditional field.

type UpdateChannelUserTyping ¶

type UpdateChannelUserTyping struct {
	// Flags field of UpdateChannelUserTyping.
	Flags bin.Fields
	// ChannelID field of UpdateChannelUserTyping.
	ChannelID int
	// TopMsgID field of UpdateChannelUserTyping.
	//
	// Use SetTopMsgID and GetTopMsgID helpers.
	TopMsgID int
	// UserID field of UpdateChannelUserTyping.
	UserID int
	// Action field of UpdateChannelUserTyping.
	Action SendMessageActionClass
}

UpdateChannelUserTyping represents TL type `updateChannelUserTyping#ff2abe9f`.

func (*UpdateChannelUserTyping) Decode ¶

func (u *UpdateChannelUserTyping) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateChannelUserTyping) Encode ¶

func (u *UpdateChannelUserTyping) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateChannelUserTyping) GetTopMsgID ¶

func (u *UpdateChannelUserTyping) GetTopMsgID() (value int, ok bool)

GetTopMsgID returns value of TopMsgID conditional field and boolean which is true if field was set.

func (*UpdateChannelUserTyping) SetTopMsgID ¶

func (u *UpdateChannelUserTyping) SetTopMsgID(value int)

SetTopMsgID sets value of TopMsgID conditional field.

type UpdateChannelWebPage ¶

type UpdateChannelWebPage struct {
	// ChannelID field of UpdateChannelWebPage.
	ChannelID int
	// Webpage field of UpdateChannelWebPage.
	Webpage WebPageClass
	// Pts field of UpdateChannelWebPage.
	Pts int
	// PtsCount field of UpdateChannelWebPage.
	PtsCount int
}

UpdateChannelWebPage represents TL type `updateChannelWebPage#40771900`.

func (*UpdateChannelWebPage) Decode ¶

func (u *UpdateChannelWebPage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateChannelWebPage) Encode ¶

func (u *UpdateChannelWebPage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateChatDefaultBannedRights ¶

type UpdateChatDefaultBannedRights struct {
	// Peer field of UpdateChatDefaultBannedRights.
	Peer PeerClass
	// DefaultBannedRights field of UpdateChatDefaultBannedRights.
	DefaultBannedRights ChatBannedRights
	// Version field of UpdateChatDefaultBannedRights.
	Version int
}

UpdateChatDefaultBannedRights represents TL type `updateChatDefaultBannedRights#54c01850`.

func (*UpdateChatDefaultBannedRights) Decode ¶

Decode implements bin.Decoder.

func (*UpdateChatDefaultBannedRights) Encode ¶

Encode implements bin.Encoder.

type UpdateChatParticipantAdd ¶

type UpdateChatParticipantAdd struct {
	// ChatID field of UpdateChatParticipantAdd.
	ChatID int
	// UserID field of UpdateChatParticipantAdd.
	UserID int
	// InviterID field of UpdateChatParticipantAdd.
	InviterID int
	// Date field of UpdateChatParticipantAdd.
	Date int
	// Version field of UpdateChatParticipantAdd.
	Version int
}

UpdateChatParticipantAdd represents TL type `updateChatParticipantAdd#ea4b0e5c`.

func (*UpdateChatParticipantAdd) Decode ¶

func (u *UpdateChatParticipantAdd) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateChatParticipantAdd) Encode ¶

func (u *UpdateChatParticipantAdd) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateChatParticipantAdmin ¶

type UpdateChatParticipantAdmin struct {
	// ChatID field of UpdateChatParticipantAdmin.
	ChatID int
	// UserID field of UpdateChatParticipantAdmin.
	UserID int
	// IsAdmin field of UpdateChatParticipantAdmin.
	IsAdmin bool
	// Version field of UpdateChatParticipantAdmin.
	Version int
}

UpdateChatParticipantAdmin represents TL type `updateChatParticipantAdmin#b6901959`.

func (*UpdateChatParticipantAdmin) Decode ¶

Decode implements bin.Decoder.

func (*UpdateChatParticipantAdmin) Encode ¶

Encode implements bin.Encoder.

type UpdateChatParticipantDelete ¶

type UpdateChatParticipantDelete struct {
	// ChatID field of UpdateChatParticipantDelete.
	ChatID int
	// UserID field of UpdateChatParticipantDelete.
	UserID int
	// Version field of UpdateChatParticipantDelete.
	Version int
}

UpdateChatParticipantDelete represents TL type `updateChatParticipantDelete#6e5f8c22`.

func (*UpdateChatParticipantDelete) Decode ¶

Decode implements bin.Decoder.

func (*UpdateChatParticipantDelete) Encode ¶

Encode implements bin.Encoder.

type UpdateChatParticipants ¶

type UpdateChatParticipants struct {
	// Participants field of UpdateChatParticipants.
	Participants ChatParticipantsClass
}

UpdateChatParticipants represents TL type `updateChatParticipants#7761198`.

func (*UpdateChatParticipants) Decode ¶

func (u *UpdateChatParticipants) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateChatParticipants) Encode ¶

func (u *UpdateChatParticipants) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateChatUserTyping ¶

type UpdateChatUserTyping struct {
	// ChatID field of UpdateChatUserTyping.
	ChatID int
	// UserID field of UpdateChatUserTyping.
	UserID int
	// Action field of UpdateChatUserTyping.
	Action SendMessageActionClass
}

UpdateChatUserTyping represents TL type `updateChatUserTyping#9a65ea1f`.

func (*UpdateChatUserTyping) Decode ¶

func (u *UpdateChatUserTyping) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateChatUserTyping) Encode ¶

func (u *UpdateChatUserTyping) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateClass ¶

type UpdateClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

UpdateClass represents Update generic type.

Example:

g, err := DecodeUpdate(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *UpdateNewMessage: // updateNewMessage#1f2b0afd
case *UpdateMessageID: // updateMessageID#4e90bfd6
case *UpdateDeleteMessages: // updateDeleteMessages#a20db0e5
case *UpdateUserTyping: // updateUserTyping#5c486927
case *UpdateChatUserTyping: // updateChatUserTyping#9a65ea1f
case *UpdateChatParticipants: // updateChatParticipants#7761198
case *UpdateUserStatus: // updateUserStatus#1bfbd823
case *UpdateUserName: // updateUserName#a7332b73
case *UpdateUserPhoto: // updateUserPhoto#95313b0c
case *UpdateNewEncryptedMessage: // updateNewEncryptedMessage#12bcbd9a
case *UpdateEncryptedChatTyping: // updateEncryptedChatTyping#1710f156
case *UpdateEncryption: // updateEncryption#b4a2e88d
case *UpdateEncryptedMessagesRead: // updateEncryptedMessagesRead#38fe25b7
case *UpdateChatParticipantAdd: // updateChatParticipantAdd#ea4b0e5c
case *UpdateChatParticipantDelete: // updateChatParticipantDelete#6e5f8c22
case *UpdateDcOptions: // updateDcOptions#8e5e9873
case *UpdateNotifySettings: // updateNotifySettings#bec268ef
case *UpdateServiceNotification: // updateServiceNotification#ebe46819
case *UpdatePrivacy: // updatePrivacy#ee3b272a
case *UpdateUserPhone: // updateUserPhone#12b9417b
case *UpdateReadHistoryInbox: // updateReadHistoryInbox#9c974fdf
case *UpdateReadHistoryOutbox: // updateReadHistoryOutbox#2f2f21bf
case *UpdateWebPage: // updateWebPage#7f891213
case *UpdateReadMessagesContents: // updateReadMessagesContents#68c13933
case *UpdateChannelTooLong: // updateChannelTooLong#eb0467fb
case *UpdateChannel: // updateChannel#b6d45656
case *UpdateNewChannelMessage: // updateNewChannelMessage#62ba04d9
case *UpdateReadChannelInbox: // updateReadChannelInbox#330b5424
case *UpdateDeleteChannelMessages: // updateDeleteChannelMessages#c37521c9
case *UpdateChannelMessageViews: // updateChannelMessageViews#98a12b4b
case *UpdateChatParticipantAdmin: // updateChatParticipantAdmin#b6901959
case *UpdateNewStickerSet: // updateNewStickerSet#688a30aa
case *UpdateStickerSetsOrder: // updateStickerSetsOrder#bb2d201
case *UpdateStickerSets: // updateStickerSets#43ae3dec
case *UpdateSavedGifs: // updateSavedGifs#9375341e
case *UpdateBotInlineQuery: // updateBotInlineQuery#54826690
case *UpdateBotInlineSend: // updateBotInlineSend#e48f964
case *UpdateEditChannelMessage: // updateEditChannelMessage#1b3f4df7
case *UpdateBotCallbackQuery: // updateBotCallbackQuery#e73547e1
case *UpdateEditMessage: // updateEditMessage#e40370a3
case *UpdateInlineBotCallbackQuery: // updateInlineBotCallbackQuery#f9d27a5a
case *UpdateReadChannelOutbox: // updateReadChannelOutbox#25d6c9c7
case *UpdateDraftMessage: // updateDraftMessage#ee2bb969
case *UpdateReadFeaturedStickers: // updateReadFeaturedStickers#571d2742
case *UpdateRecentStickers: // updateRecentStickers#9a422c20
case *UpdateConfig: // updateConfig#a229dd06
case *UpdatePtsChanged: // updatePtsChanged#3354678f
case *UpdateChannelWebPage: // updateChannelWebPage#40771900
case *UpdateDialogPinned: // updateDialogPinned#6e6fe51c
case *UpdatePinnedDialogs: // updatePinnedDialogs#fa0f3ca2
case *UpdateBotWebhookJSON: // updateBotWebhookJSON#8317c0c3
case *UpdateBotWebhookJSONQuery: // updateBotWebhookJSONQuery#9b9240a6
case *UpdateBotShippingQuery: // updateBotShippingQuery#e0cdc940
case *UpdateBotPrecheckoutQuery: // updateBotPrecheckoutQuery#5d2f3aa9
case *UpdatePhoneCall: // updatePhoneCall#ab0f6b1e
case *UpdateLangPackTooLong: // updateLangPackTooLong#46560264
case *UpdateLangPack: // updateLangPack#56022f4d
case *UpdateFavedStickers: // updateFavedStickers#e511996d
case *UpdateChannelReadMessagesContents: // updateChannelReadMessagesContents#89893b45
case *UpdateContactsReset: // updateContactsReset#7084a7be
case *UpdateChannelAvailableMessages: // updateChannelAvailableMessages#70db6837
case *UpdateDialogUnreadMark: // updateDialogUnreadMark#e16459c3
case *UpdateMessagePoll: // updateMessagePoll#aca1657b
case *UpdateChatDefaultBannedRights: // updateChatDefaultBannedRights#54c01850
case *UpdateFolderPeers: // updateFolderPeers#19360dc0
case *UpdatePeerSettings: // updatePeerSettings#6a7e7366
case *UpdatePeerLocated: // updatePeerLocated#b4afcfb0
case *UpdateNewScheduledMessage: // updateNewScheduledMessage#39a51dfb
case *UpdateDeleteScheduledMessages: // updateDeleteScheduledMessages#90866cee
case *UpdateTheme: // updateTheme#8216fba3
case *UpdateGeoLiveViewed: // updateGeoLiveViewed#871fb939
case *UpdateLoginToken: // updateLoginToken#564fe691
case *UpdateMessagePollVote: // updateMessagePollVote#42f88f2c
case *UpdateDialogFilter: // updateDialogFilter#26ffde7d
case *UpdateDialogFilterOrder: // updateDialogFilterOrder#a5d72105
case *UpdateDialogFilters: // updateDialogFilters#3504914f
case *UpdatePhoneCallSignalingData: // updatePhoneCallSignalingData#2661bf09
case *UpdateChannelParticipant: // updateChannelParticipant#65d2b464
case *UpdateChannelMessageForwards: // updateChannelMessageForwards#6e8a84df
case *UpdateReadChannelDiscussionInbox: // updateReadChannelDiscussionInbox#1cc7de54
case *UpdateReadChannelDiscussionOutbox: // updateReadChannelDiscussionOutbox#4638a26c
case *UpdatePeerBlocked: // updatePeerBlocked#246a4b22
case *UpdateChannelUserTyping: // updateChannelUserTyping#ff2abe9f
case *UpdatePinnedMessages: // updatePinnedMessages#ed85eab5
case *UpdatePinnedChannelMessages: // updatePinnedChannelMessages#8588878b
default: panic(v)
}

func DecodeUpdate ¶

func DecodeUpdate(buf *bin.Buffer) (UpdateClass, error)

DecodeUpdate implements binary de-serialization for UpdateClass.

type UpdateConfig ¶

type UpdateConfig struct {
}

UpdateConfig represents TL type `updateConfig#a229dd06`.

func (*UpdateConfig) Decode ¶

func (u *UpdateConfig) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateConfig) Encode ¶

func (u *UpdateConfig) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateContactsReset ¶

type UpdateContactsReset struct {
}

UpdateContactsReset represents TL type `updateContactsReset#7084a7be`.

func (*UpdateContactsReset) Decode ¶

func (u *UpdateContactsReset) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateContactsReset) Encode ¶

func (u *UpdateContactsReset) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateDcOptions ¶

type UpdateDcOptions struct {
	// DCOptions field of UpdateDcOptions.
	DCOptions []DcOption
}

UpdateDcOptions represents TL type `updateDcOptions#8e5e9873`.

func (*UpdateDcOptions) Decode ¶

func (u *UpdateDcOptions) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateDcOptions) Encode ¶

func (u *UpdateDcOptions) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateDeleteChannelMessages ¶

type UpdateDeleteChannelMessages struct {
	// ChannelID field of UpdateDeleteChannelMessages.
	ChannelID int
	// Messages field of UpdateDeleteChannelMessages.
	Messages []int
	// Pts field of UpdateDeleteChannelMessages.
	Pts int
	// PtsCount field of UpdateDeleteChannelMessages.
	PtsCount int
}

UpdateDeleteChannelMessages represents TL type `updateDeleteChannelMessages#c37521c9`.

func (*UpdateDeleteChannelMessages) Decode ¶

Decode implements bin.Decoder.

func (*UpdateDeleteChannelMessages) Encode ¶

Encode implements bin.Encoder.

type UpdateDeleteMessages ¶

type UpdateDeleteMessages struct {
	// Messages field of UpdateDeleteMessages.
	Messages []int
	// Pts field of UpdateDeleteMessages.
	Pts int
	// PtsCount field of UpdateDeleteMessages.
	PtsCount int
}

UpdateDeleteMessages represents TL type `updateDeleteMessages#a20db0e5`.

func (*UpdateDeleteMessages) Decode ¶

func (u *UpdateDeleteMessages) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateDeleteMessages) Encode ¶

func (u *UpdateDeleteMessages) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateDeleteScheduledMessages ¶

type UpdateDeleteScheduledMessages struct {
	// Peer field of UpdateDeleteScheduledMessages.
	Peer PeerClass
	// Messages field of UpdateDeleteScheduledMessages.
	Messages []int
}

UpdateDeleteScheduledMessages represents TL type `updateDeleteScheduledMessages#90866cee`.

func (*UpdateDeleteScheduledMessages) Decode ¶

Decode implements bin.Decoder.

func (*UpdateDeleteScheduledMessages) Encode ¶

Encode implements bin.Encoder.

type UpdateDialogFilter ¶

type UpdateDialogFilter struct {
	// Flags field of UpdateDialogFilter.
	Flags bin.Fields
	// ID field of UpdateDialogFilter.
	ID int
	// Filter field of UpdateDialogFilter.
	//
	// Use SetFilter and GetFilter helpers.
	Filter DialogFilter
}

UpdateDialogFilter represents TL type `updateDialogFilter#26ffde7d`.

func (*UpdateDialogFilter) Decode ¶

func (u *UpdateDialogFilter) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateDialogFilter) Encode ¶

func (u *UpdateDialogFilter) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateDialogFilter) GetFilter ¶

func (u *UpdateDialogFilter) GetFilter() (value DialogFilter, ok bool)

GetFilter returns value of Filter conditional field and boolean which is true if field was set.

func (*UpdateDialogFilter) SetFilter ¶

func (u *UpdateDialogFilter) SetFilter(value DialogFilter)

SetFilter sets value of Filter conditional field.

type UpdateDialogFilterOrder ¶

type UpdateDialogFilterOrder struct {
	// Order field of UpdateDialogFilterOrder.
	Order []int
}

UpdateDialogFilterOrder represents TL type `updateDialogFilterOrder#a5d72105`.

func (*UpdateDialogFilterOrder) Decode ¶

func (u *UpdateDialogFilterOrder) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateDialogFilterOrder) Encode ¶

func (u *UpdateDialogFilterOrder) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateDialogFilters ¶

type UpdateDialogFilters struct {
}

UpdateDialogFilters represents TL type `updateDialogFilters#3504914f`.

func (*UpdateDialogFilters) Decode ¶

func (u *UpdateDialogFilters) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateDialogFilters) Encode ¶

func (u *UpdateDialogFilters) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateDialogPinned ¶

type UpdateDialogPinned struct {
	// Flags field of UpdateDialogPinned.
	Flags bin.Fields
	// Pinned field of UpdateDialogPinned.
	Pinned bool
	// FolderID field of UpdateDialogPinned.
	//
	// Use SetFolderID and GetFolderID helpers.
	FolderID int
	// Peer field of UpdateDialogPinned.
	Peer DialogPeerClass
}

UpdateDialogPinned represents TL type `updateDialogPinned#6e6fe51c`.

func (*UpdateDialogPinned) Decode ¶

func (u *UpdateDialogPinned) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateDialogPinned) Encode ¶

func (u *UpdateDialogPinned) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateDialogPinned) GetFolderID ¶

func (u *UpdateDialogPinned) GetFolderID() (value int, ok bool)

GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.

func (*UpdateDialogPinned) SetFolderID ¶

func (u *UpdateDialogPinned) SetFolderID(value int)

SetFolderID sets value of FolderID conditional field.

func (*UpdateDialogPinned) SetPinned ¶

func (u *UpdateDialogPinned) SetPinned(value bool)

SetPinned sets value of Pinned conditional field.

type UpdateDialogUnreadMark ¶

type UpdateDialogUnreadMark struct {
	// Flags field of UpdateDialogUnreadMark.
	Flags bin.Fields
	// Unread field of UpdateDialogUnreadMark.
	Unread bool
	// Peer field of UpdateDialogUnreadMark.
	Peer DialogPeerClass
}

UpdateDialogUnreadMark represents TL type `updateDialogUnreadMark#e16459c3`.

func (*UpdateDialogUnreadMark) Decode ¶

func (u *UpdateDialogUnreadMark) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateDialogUnreadMark) Encode ¶

func (u *UpdateDialogUnreadMark) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateDialogUnreadMark) SetUnread ¶

func (u *UpdateDialogUnreadMark) SetUnread(value bool)

SetUnread sets value of Unread conditional field.

type UpdateDraftMessage ¶

type UpdateDraftMessage struct {
	// Peer field of UpdateDraftMessage.
	Peer PeerClass
	// Draft field of UpdateDraftMessage.
	Draft DraftMessageClass
}

UpdateDraftMessage represents TL type `updateDraftMessage#ee2bb969`.

func (*UpdateDraftMessage) Decode ¶

func (u *UpdateDraftMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateDraftMessage) Encode ¶

func (u *UpdateDraftMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateEditChannelMessage ¶

type UpdateEditChannelMessage struct {
	// Message field of UpdateEditChannelMessage.
	Message MessageClass
	// Pts field of UpdateEditChannelMessage.
	Pts int
	// PtsCount field of UpdateEditChannelMessage.
	PtsCount int
}

UpdateEditChannelMessage represents TL type `updateEditChannelMessage#1b3f4df7`.

func (*UpdateEditChannelMessage) Decode ¶

func (u *UpdateEditChannelMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateEditChannelMessage) Encode ¶

func (u *UpdateEditChannelMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateEditMessage ¶

type UpdateEditMessage struct {
	// Message field of UpdateEditMessage.
	Message MessageClass
	// Pts field of UpdateEditMessage.
	Pts int
	// PtsCount field of UpdateEditMessage.
	PtsCount int
}

UpdateEditMessage represents TL type `updateEditMessage#e40370a3`.

func (*UpdateEditMessage) Decode ¶

func (u *UpdateEditMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateEditMessage) Encode ¶

func (u *UpdateEditMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateEncryptedChatTyping ¶

type UpdateEncryptedChatTyping struct {
	// ChatID field of UpdateEncryptedChatTyping.
	ChatID int
}

UpdateEncryptedChatTyping represents TL type `updateEncryptedChatTyping#1710f156`.

func (*UpdateEncryptedChatTyping) Decode ¶

func (u *UpdateEncryptedChatTyping) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateEncryptedChatTyping) Encode ¶

func (u *UpdateEncryptedChatTyping) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateEncryptedMessagesRead ¶

type UpdateEncryptedMessagesRead struct {
	// ChatID field of UpdateEncryptedMessagesRead.
	ChatID int
	// MaxDate field of UpdateEncryptedMessagesRead.
	MaxDate int
	// Date field of UpdateEncryptedMessagesRead.
	Date int
}

UpdateEncryptedMessagesRead represents TL type `updateEncryptedMessagesRead#38fe25b7`.

func (*UpdateEncryptedMessagesRead) Decode ¶

Decode implements bin.Decoder.

func (*UpdateEncryptedMessagesRead) Encode ¶

Encode implements bin.Encoder.

type UpdateEncryption ¶

type UpdateEncryption struct {
	// Chat field of UpdateEncryption.
	Chat EncryptedChatClass
	// Date field of UpdateEncryption.
	Date int
}

UpdateEncryption represents TL type `updateEncryption#b4a2e88d`.

func (*UpdateEncryption) Decode ¶

func (u *UpdateEncryption) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateEncryption) Encode ¶

func (u *UpdateEncryption) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateFavedStickers ¶

type UpdateFavedStickers struct {
}

UpdateFavedStickers represents TL type `updateFavedStickers#e511996d`.

func (*UpdateFavedStickers) Decode ¶

func (u *UpdateFavedStickers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateFavedStickers) Encode ¶

func (u *UpdateFavedStickers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateFolderPeers ¶

type UpdateFolderPeers struct {
	// FolderPeers field of UpdateFolderPeers.
	FolderPeers []FolderPeer
	// Pts field of UpdateFolderPeers.
	Pts int
	// PtsCount field of UpdateFolderPeers.
	PtsCount int
}

UpdateFolderPeers represents TL type `updateFolderPeers#19360dc0`.

func (*UpdateFolderPeers) Decode ¶

func (u *UpdateFolderPeers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateFolderPeers) Encode ¶

func (u *UpdateFolderPeers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateGeoLiveViewed ¶

type UpdateGeoLiveViewed struct {
	// Peer field of UpdateGeoLiveViewed.
	Peer PeerClass
	// MsgID field of UpdateGeoLiveViewed.
	MsgID int
}

UpdateGeoLiveViewed represents TL type `updateGeoLiveViewed#871fb939`.

func (*UpdateGeoLiveViewed) Decode ¶

func (u *UpdateGeoLiveViewed) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateGeoLiveViewed) Encode ¶

func (u *UpdateGeoLiveViewed) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateInlineBotCallbackQuery ¶

type UpdateInlineBotCallbackQuery struct {
	// Flags field of UpdateInlineBotCallbackQuery.
	Flags bin.Fields
	// QueryID field of UpdateInlineBotCallbackQuery.
	QueryID int64
	// UserID field of UpdateInlineBotCallbackQuery.
	UserID int
	// MsgID field of UpdateInlineBotCallbackQuery.
	MsgID InputBotInlineMessageID
	// ChatInstance field of UpdateInlineBotCallbackQuery.
	ChatInstance int64
	// Data field of UpdateInlineBotCallbackQuery.
	//
	// Use SetData and GetData helpers.
	Data []byte
	// GameShortName field of UpdateInlineBotCallbackQuery.
	//
	// Use SetGameShortName and GetGameShortName helpers.
	GameShortName string
}

UpdateInlineBotCallbackQuery represents TL type `updateInlineBotCallbackQuery#f9d27a5a`.

func (*UpdateInlineBotCallbackQuery) Decode ¶

Decode implements bin.Decoder.

func (*UpdateInlineBotCallbackQuery) Encode ¶

Encode implements bin.Encoder.

func (*UpdateInlineBotCallbackQuery) GetData ¶

func (u *UpdateInlineBotCallbackQuery) GetData() (value []byte, ok bool)

GetData returns value of Data conditional field and boolean which is true if field was set.

func (*UpdateInlineBotCallbackQuery) GetGameShortName ¶

func (u *UpdateInlineBotCallbackQuery) GetGameShortName() (value string, ok bool)

GetGameShortName returns value of GameShortName conditional field and boolean which is true if field was set.

func (*UpdateInlineBotCallbackQuery) SetData ¶

func (u *UpdateInlineBotCallbackQuery) SetData(value []byte)

SetData sets value of Data conditional field.

func (*UpdateInlineBotCallbackQuery) SetGameShortName ¶

func (u *UpdateInlineBotCallbackQuery) SetGameShortName(value string)

SetGameShortName sets value of GameShortName conditional field.

type UpdateLangPack ¶

type UpdateLangPack struct {
	// Difference field of UpdateLangPack.
	Difference LangPackDifference
}

UpdateLangPack represents TL type `updateLangPack#56022f4d`.

func (*UpdateLangPack) Decode ¶

func (u *UpdateLangPack) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateLangPack) Encode ¶

func (u *UpdateLangPack) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateLangPackTooLong ¶

type UpdateLangPackTooLong struct {
	// LangCode field of UpdateLangPackTooLong.
	LangCode string
}

UpdateLangPackTooLong represents TL type `updateLangPackTooLong#46560264`.

func (*UpdateLangPackTooLong) Decode ¶

func (u *UpdateLangPackTooLong) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateLangPackTooLong) Encode ¶

func (u *UpdateLangPackTooLong) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateLoginToken ¶

type UpdateLoginToken struct {
}

UpdateLoginToken represents TL type `updateLoginToken#564fe691`.

func (*UpdateLoginToken) Decode ¶

func (u *UpdateLoginToken) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateLoginToken) Encode ¶

func (u *UpdateLoginToken) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateMessageID ¶

type UpdateMessageID struct {
	// ID field of UpdateMessageID.
	ID int
	// RandomID field of UpdateMessageID.
	RandomID int64
}

UpdateMessageID represents TL type `updateMessageID#4e90bfd6`.

func (*UpdateMessageID) Decode ¶

func (u *UpdateMessageID) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateMessageID) Encode ¶

func (u *UpdateMessageID) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateMessagePoll ¶

type UpdateMessagePoll struct {
	// Flags field of UpdateMessagePoll.
	Flags bin.Fields
	// PollID field of UpdateMessagePoll.
	PollID int64
	// Poll field of UpdateMessagePoll.
	//
	// Use SetPoll and GetPoll helpers.
	Poll Poll
	// Results field of UpdateMessagePoll.
	Results PollResults
}

UpdateMessagePoll represents TL type `updateMessagePoll#aca1657b`.

func (*UpdateMessagePoll) Decode ¶

func (u *UpdateMessagePoll) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateMessagePoll) Encode ¶

func (u *UpdateMessagePoll) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateMessagePoll) GetPoll ¶

func (u *UpdateMessagePoll) GetPoll() (value Poll, ok bool)

GetPoll returns value of Poll conditional field and boolean which is true if field was set.

func (*UpdateMessagePoll) SetPoll ¶

func (u *UpdateMessagePoll) SetPoll(value Poll)

SetPoll sets value of Poll conditional field.

type UpdateMessagePollVote ¶

type UpdateMessagePollVote struct {
	// PollID field of UpdateMessagePollVote.
	PollID int64
	// UserID field of UpdateMessagePollVote.
	UserID int
	// Options field of UpdateMessagePollVote.
	Options [][]byte
}

UpdateMessagePollVote represents TL type `updateMessagePollVote#42f88f2c`.

func (*UpdateMessagePollVote) Decode ¶

func (u *UpdateMessagePollVote) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateMessagePollVote) Encode ¶

func (u *UpdateMessagePollVote) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateNewChannelMessage ¶

type UpdateNewChannelMessage struct {
	// Message field of UpdateNewChannelMessage.
	Message MessageClass
	// Pts field of UpdateNewChannelMessage.
	Pts int
	// PtsCount field of UpdateNewChannelMessage.
	PtsCount int
}

UpdateNewChannelMessage represents TL type `updateNewChannelMessage#62ba04d9`.

func (*UpdateNewChannelMessage) Decode ¶

func (u *UpdateNewChannelMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateNewChannelMessage) Encode ¶

func (u *UpdateNewChannelMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateNewEncryptedMessage ¶

type UpdateNewEncryptedMessage struct {
	// Message field of UpdateNewEncryptedMessage.
	Message EncryptedMessageClass
	// Qts field of UpdateNewEncryptedMessage.
	Qts int
}

UpdateNewEncryptedMessage represents TL type `updateNewEncryptedMessage#12bcbd9a`.

func (*UpdateNewEncryptedMessage) Decode ¶

func (u *UpdateNewEncryptedMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateNewEncryptedMessage) Encode ¶

func (u *UpdateNewEncryptedMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateNewMessage ¶

type UpdateNewMessage struct {
	// Message field of UpdateNewMessage.
	Message MessageClass
	// Pts field of UpdateNewMessage.
	Pts int
	// PtsCount field of UpdateNewMessage.
	PtsCount int
}

UpdateNewMessage represents TL type `updateNewMessage#1f2b0afd`.

func (*UpdateNewMessage) Decode ¶

func (u *UpdateNewMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateNewMessage) Encode ¶

func (u *UpdateNewMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateNewScheduledMessage ¶

type UpdateNewScheduledMessage struct {
	// Message field of UpdateNewScheduledMessage.
	Message MessageClass
}

UpdateNewScheduledMessage represents TL type `updateNewScheduledMessage#39a51dfb`.

func (*UpdateNewScheduledMessage) Decode ¶

func (u *UpdateNewScheduledMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateNewScheduledMessage) Encode ¶

func (u *UpdateNewScheduledMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateNewStickerSet ¶

type UpdateNewStickerSet struct {
	// Stickerset field of UpdateNewStickerSet.
	Stickerset MessagesStickerSet
}

UpdateNewStickerSet represents TL type `updateNewStickerSet#688a30aa`.

func (*UpdateNewStickerSet) Decode ¶

func (u *UpdateNewStickerSet) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateNewStickerSet) Encode ¶

func (u *UpdateNewStickerSet) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateNotifySettings ¶

type UpdateNotifySettings struct {
	// Peer field of UpdateNotifySettings.
	Peer NotifyPeerClass
	// NotifySettings field of UpdateNotifySettings.
	NotifySettings PeerNotifySettings
}

UpdateNotifySettings represents TL type `updateNotifySettings#bec268ef`.

func (*UpdateNotifySettings) Decode ¶

func (u *UpdateNotifySettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateNotifySettings) Encode ¶

func (u *UpdateNotifySettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatePeerBlocked ¶

type UpdatePeerBlocked struct {
	// PeerID field of UpdatePeerBlocked.
	PeerID PeerClass
	// Blocked field of UpdatePeerBlocked.
	Blocked bool
}

UpdatePeerBlocked represents TL type `updatePeerBlocked#246a4b22`.

func (*UpdatePeerBlocked) Decode ¶

func (u *UpdatePeerBlocked) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatePeerBlocked) Encode ¶

func (u *UpdatePeerBlocked) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatePeerLocated ¶

type UpdatePeerLocated struct {
	// Peers field of UpdatePeerLocated.
	Peers []PeerLocatedClass
}

UpdatePeerLocated represents TL type `updatePeerLocated#b4afcfb0`.

func (*UpdatePeerLocated) Decode ¶

func (u *UpdatePeerLocated) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatePeerLocated) Encode ¶

func (u *UpdatePeerLocated) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatePeerSettings ¶

type UpdatePeerSettings struct {
	// Peer field of UpdatePeerSettings.
	Peer PeerClass
	// Settings field of UpdatePeerSettings.
	Settings PeerSettings
}

UpdatePeerSettings represents TL type `updatePeerSettings#6a7e7366`.

func (*UpdatePeerSettings) Decode ¶

func (u *UpdatePeerSettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatePeerSettings) Encode ¶

func (u *UpdatePeerSettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatePhoneCall ¶

type UpdatePhoneCall struct {
	// PhoneCall field of UpdatePhoneCall.
	PhoneCall PhoneCallClass
}

UpdatePhoneCall represents TL type `updatePhoneCall#ab0f6b1e`.

func (*UpdatePhoneCall) Decode ¶

func (u *UpdatePhoneCall) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatePhoneCall) Encode ¶

func (u *UpdatePhoneCall) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatePhoneCallSignalingData ¶

type UpdatePhoneCallSignalingData struct {
	// PhoneCallID field of UpdatePhoneCallSignalingData.
	PhoneCallID int64
	// Data field of UpdatePhoneCallSignalingData.
	Data []byte
}

UpdatePhoneCallSignalingData represents TL type `updatePhoneCallSignalingData#2661bf09`.

func (*UpdatePhoneCallSignalingData) Decode ¶

Decode implements bin.Decoder.

func (*UpdatePhoneCallSignalingData) Encode ¶

Encode implements bin.Encoder.

type UpdatePinnedChannelMessages ¶

type UpdatePinnedChannelMessages struct {
	// Flags field of UpdatePinnedChannelMessages.
	Flags bin.Fields
	// Pinned field of UpdatePinnedChannelMessages.
	Pinned bool
	// ChannelID field of UpdatePinnedChannelMessages.
	ChannelID int
	// Messages field of UpdatePinnedChannelMessages.
	Messages []int
	// Pts field of UpdatePinnedChannelMessages.
	Pts int
	// PtsCount field of UpdatePinnedChannelMessages.
	PtsCount int
}

UpdatePinnedChannelMessages represents TL type `updatePinnedChannelMessages#8588878b`.

func (*UpdatePinnedChannelMessages) Decode ¶

Decode implements bin.Decoder.

func (*UpdatePinnedChannelMessages) Encode ¶

Encode implements bin.Encoder.

func (*UpdatePinnedChannelMessages) SetPinned ¶

func (u *UpdatePinnedChannelMessages) SetPinned(value bool)

SetPinned sets value of Pinned conditional field.

type UpdatePinnedDialogs ¶

type UpdatePinnedDialogs struct {
	// Flags field of UpdatePinnedDialogs.
	Flags bin.Fields
	// FolderID field of UpdatePinnedDialogs.
	//
	// Use SetFolderID and GetFolderID helpers.
	FolderID int
	// Order field of UpdatePinnedDialogs.
	//
	// Use SetOrder and GetOrder helpers.
	Order []DialogPeerClass
}

UpdatePinnedDialogs represents TL type `updatePinnedDialogs#fa0f3ca2`.

func (*UpdatePinnedDialogs) Decode ¶

func (u *UpdatePinnedDialogs) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatePinnedDialogs) Encode ¶

func (u *UpdatePinnedDialogs) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdatePinnedDialogs) GetFolderID ¶

func (u *UpdatePinnedDialogs) GetFolderID() (value int, ok bool)

GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.

func (*UpdatePinnedDialogs) GetOrder ¶

func (u *UpdatePinnedDialogs) GetOrder() (value []DialogPeerClass, ok bool)

GetOrder returns value of Order conditional field and boolean which is true if field was set.

func (*UpdatePinnedDialogs) SetFolderID ¶

func (u *UpdatePinnedDialogs) SetFolderID(value int)

SetFolderID sets value of FolderID conditional field.

func (*UpdatePinnedDialogs) SetOrder ¶

func (u *UpdatePinnedDialogs) SetOrder(value []DialogPeerClass)

SetOrder sets value of Order conditional field.

type UpdatePinnedMessages ¶

type UpdatePinnedMessages struct {
	// Flags field of UpdatePinnedMessages.
	Flags bin.Fields
	// Pinned field of UpdatePinnedMessages.
	Pinned bool
	// Peer field of UpdatePinnedMessages.
	Peer PeerClass
	// Messages field of UpdatePinnedMessages.
	Messages []int
	// Pts field of UpdatePinnedMessages.
	Pts int
	// PtsCount field of UpdatePinnedMessages.
	PtsCount int
}

UpdatePinnedMessages represents TL type `updatePinnedMessages#ed85eab5`.

func (*UpdatePinnedMessages) Decode ¶

func (u *UpdatePinnedMessages) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatePinnedMessages) Encode ¶

func (u *UpdatePinnedMessages) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdatePinnedMessages) SetPinned ¶

func (u *UpdatePinnedMessages) SetPinned(value bool)

SetPinned sets value of Pinned conditional field.

type UpdatePrivacy ¶

type UpdatePrivacy struct {
	// Key field of UpdatePrivacy.
	Key PrivacyKeyClass
	// Rules field of UpdatePrivacy.
	Rules []PrivacyRuleClass
}

UpdatePrivacy represents TL type `updatePrivacy#ee3b272a`.

func (*UpdatePrivacy) Decode ¶

func (u *UpdatePrivacy) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatePrivacy) Encode ¶

func (u *UpdatePrivacy) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatePtsChanged ¶

type UpdatePtsChanged struct {
}

UpdatePtsChanged represents TL type `updatePtsChanged#3354678f`.

func (*UpdatePtsChanged) Decode ¶

func (u *UpdatePtsChanged) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatePtsChanged) Encode ¶

func (u *UpdatePtsChanged) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateReadChannelDiscussionInbox ¶

type UpdateReadChannelDiscussionInbox struct {
	// Flags field of UpdateReadChannelDiscussionInbox.
	Flags bin.Fields
	// ChannelID field of UpdateReadChannelDiscussionInbox.
	ChannelID int
	// TopMsgID field of UpdateReadChannelDiscussionInbox.
	TopMsgID int
	// ReadMaxID field of UpdateReadChannelDiscussionInbox.
	ReadMaxID int
	// BroadcastID field of UpdateReadChannelDiscussionInbox.
	//
	// Use SetBroadcastID and GetBroadcastID helpers.
	BroadcastID int
	// BroadcastPost field of UpdateReadChannelDiscussionInbox.
	//
	// Use SetBroadcastPost and GetBroadcastPost helpers.
	BroadcastPost int
}

UpdateReadChannelDiscussionInbox represents TL type `updateReadChannelDiscussionInbox#1cc7de54`.

func (*UpdateReadChannelDiscussionInbox) Decode ¶

Decode implements bin.Decoder.

func (*UpdateReadChannelDiscussionInbox) Encode ¶

Encode implements bin.Encoder.

func (*UpdateReadChannelDiscussionInbox) GetBroadcastID ¶

func (u *UpdateReadChannelDiscussionInbox) GetBroadcastID() (value int, ok bool)

GetBroadcastID returns value of BroadcastID conditional field and boolean which is true if field was set.

func (*UpdateReadChannelDiscussionInbox) GetBroadcastPost ¶

func (u *UpdateReadChannelDiscussionInbox) GetBroadcastPost() (value int, ok bool)

GetBroadcastPost returns value of BroadcastPost conditional field and boolean which is true if field was set.

func (*UpdateReadChannelDiscussionInbox) SetBroadcastID ¶

func (u *UpdateReadChannelDiscussionInbox) SetBroadcastID(value int)

SetBroadcastID sets value of BroadcastID conditional field.

func (*UpdateReadChannelDiscussionInbox) SetBroadcastPost ¶

func (u *UpdateReadChannelDiscussionInbox) SetBroadcastPost(value int)

SetBroadcastPost sets value of BroadcastPost conditional field.

type UpdateReadChannelDiscussionOutbox ¶

type UpdateReadChannelDiscussionOutbox struct {
	// ChannelID field of UpdateReadChannelDiscussionOutbox.
	ChannelID int
	// TopMsgID field of UpdateReadChannelDiscussionOutbox.
	TopMsgID int
	// ReadMaxID field of UpdateReadChannelDiscussionOutbox.
	ReadMaxID int
}

UpdateReadChannelDiscussionOutbox represents TL type `updateReadChannelDiscussionOutbox#4638a26c`.

func (*UpdateReadChannelDiscussionOutbox) Decode ¶

Decode implements bin.Decoder.

func (*UpdateReadChannelDiscussionOutbox) Encode ¶

Encode implements bin.Encoder.

type UpdateReadChannelInbox ¶

type UpdateReadChannelInbox struct {
	// Flags field of UpdateReadChannelInbox.
	Flags bin.Fields
	// FolderID field of UpdateReadChannelInbox.
	//
	// Use SetFolderID and GetFolderID helpers.
	FolderID int
	// ChannelID field of UpdateReadChannelInbox.
	ChannelID int
	// MaxID field of UpdateReadChannelInbox.
	MaxID int
	// StillUnreadCount field of UpdateReadChannelInbox.
	StillUnreadCount int
	// Pts field of UpdateReadChannelInbox.
	Pts int
}

UpdateReadChannelInbox represents TL type `updateReadChannelInbox#330b5424`.

func (*UpdateReadChannelInbox) Decode ¶

func (u *UpdateReadChannelInbox) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateReadChannelInbox) Encode ¶

func (u *UpdateReadChannelInbox) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateReadChannelInbox) GetFolderID ¶

func (u *UpdateReadChannelInbox) GetFolderID() (value int, ok bool)

GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.

func (*UpdateReadChannelInbox) SetFolderID ¶

func (u *UpdateReadChannelInbox) SetFolderID(value int)

SetFolderID sets value of FolderID conditional field.

type UpdateReadChannelOutbox ¶

type UpdateReadChannelOutbox struct {
	// ChannelID field of UpdateReadChannelOutbox.
	ChannelID int
	// MaxID field of UpdateReadChannelOutbox.
	MaxID int
}

UpdateReadChannelOutbox represents TL type `updateReadChannelOutbox#25d6c9c7`.

func (*UpdateReadChannelOutbox) Decode ¶

func (u *UpdateReadChannelOutbox) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateReadChannelOutbox) Encode ¶

func (u *UpdateReadChannelOutbox) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateReadFeaturedStickers ¶

type UpdateReadFeaturedStickers struct {
}

UpdateReadFeaturedStickers represents TL type `updateReadFeaturedStickers#571d2742`.

func (*UpdateReadFeaturedStickers) Decode ¶

Decode implements bin.Decoder.

func (*UpdateReadFeaturedStickers) Encode ¶

Encode implements bin.Encoder.

type UpdateReadHistoryInbox ¶

type UpdateReadHistoryInbox struct {
	// Flags field of UpdateReadHistoryInbox.
	Flags bin.Fields
	// FolderID field of UpdateReadHistoryInbox.
	//
	// Use SetFolderID and GetFolderID helpers.
	FolderID int
	// Peer field of UpdateReadHistoryInbox.
	Peer PeerClass
	// MaxID field of UpdateReadHistoryInbox.
	MaxID int
	// StillUnreadCount field of UpdateReadHistoryInbox.
	StillUnreadCount int
	// Pts field of UpdateReadHistoryInbox.
	Pts int
	// PtsCount field of UpdateReadHistoryInbox.
	PtsCount int
}

UpdateReadHistoryInbox represents TL type `updateReadHistoryInbox#9c974fdf`.

func (*UpdateReadHistoryInbox) Decode ¶

func (u *UpdateReadHistoryInbox) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateReadHistoryInbox) Encode ¶

func (u *UpdateReadHistoryInbox) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateReadHistoryInbox) GetFolderID ¶

func (u *UpdateReadHistoryInbox) GetFolderID() (value int, ok bool)

GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.

func (*UpdateReadHistoryInbox) SetFolderID ¶

func (u *UpdateReadHistoryInbox) SetFolderID(value int)

SetFolderID sets value of FolderID conditional field.

type UpdateReadHistoryOutbox ¶

type UpdateReadHistoryOutbox struct {
	// Peer field of UpdateReadHistoryOutbox.
	Peer PeerClass
	// MaxID field of UpdateReadHistoryOutbox.
	MaxID int
	// Pts field of UpdateReadHistoryOutbox.
	Pts int
	// PtsCount field of UpdateReadHistoryOutbox.
	PtsCount int
}

UpdateReadHistoryOutbox represents TL type `updateReadHistoryOutbox#2f2f21bf`.

func (*UpdateReadHistoryOutbox) Decode ¶

func (u *UpdateReadHistoryOutbox) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateReadHistoryOutbox) Encode ¶

func (u *UpdateReadHistoryOutbox) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateReadMessagesContents ¶

type UpdateReadMessagesContents struct {
	// Messages field of UpdateReadMessagesContents.
	Messages []int
	// Pts field of UpdateReadMessagesContents.
	Pts int
	// PtsCount field of UpdateReadMessagesContents.
	PtsCount int
}

UpdateReadMessagesContents represents TL type `updateReadMessagesContents#68c13933`.

func (*UpdateReadMessagesContents) Decode ¶

Decode implements bin.Decoder.

func (*UpdateReadMessagesContents) Encode ¶

Encode implements bin.Encoder.

type UpdateRecentStickers ¶

type UpdateRecentStickers struct {
}

UpdateRecentStickers represents TL type `updateRecentStickers#9a422c20`.

func (*UpdateRecentStickers) Decode ¶

func (u *UpdateRecentStickers) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateRecentStickers) Encode ¶

func (u *UpdateRecentStickers) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateSavedGifs ¶

type UpdateSavedGifs struct {
}

UpdateSavedGifs represents TL type `updateSavedGifs#9375341e`.

func (*UpdateSavedGifs) Decode ¶

func (u *UpdateSavedGifs) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateSavedGifs) Encode ¶

func (u *UpdateSavedGifs) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateServiceNotification ¶

type UpdateServiceNotification struct {
	// Flags field of UpdateServiceNotification.
	Flags bin.Fields
	// Popup field of UpdateServiceNotification.
	Popup bool
	// InboxDate field of UpdateServiceNotification.
	//
	// Use SetInboxDate and GetInboxDate helpers.
	InboxDate int
	// Type field of UpdateServiceNotification.
	Type string
	// Message field of UpdateServiceNotification.
	Message string
	// Media field of UpdateServiceNotification.
	Media MessageMediaClass
	// Entities field of UpdateServiceNotification.
	Entities []MessageEntityClass
}

UpdateServiceNotification represents TL type `updateServiceNotification#ebe46819`.

func (*UpdateServiceNotification) Decode ¶

func (u *UpdateServiceNotification) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateServiceNotification) Encode ¶

func (u *UpdateServiceNotification) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateServiceNotification) GetInboxDate ¶

func (u *UpdateServiceNotification) GetInboxDate() (value int, ok bool)

GetInboxDate returns value of InboxDate conditional field and boolean which is true if field was set.

func (*UpdateServiceNotification) SetInboxDate ¶

func (u *UpdateServiceNotification) SetInboxDate(value int)

SetInboxDate sets value of InboxDate conditional field.

func (*UpdateServiceNotification) SetPopup ¶

func (u *UpdateServiceNotification) SetPopup(value bool)

SetPopup sets value of Popup conditional field.

type UpdateShort ¶

type UpdateShort struct {
	// Update field of UpdateShort.
	Update UpdateClass
	// Date field of UpdateShort.
	Date int
}

UpdateShort represents TL type `updateShort#78d4dec1`.

func (*UpdateShort) Decode ¶

func (u *UpdateShort) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateShort) Encode ¶

func (u *UpdateShort) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateShortChatMessage ¶

type UpdateShortChatMessage struct {
	// Flags field of UpdateShortChatMessage.
	Flags bin.Fields
	// Out field of UpdateShortChatMessage.
	Out bool
	// Mentioned field of UpdateShortChatMessage.
	Mentioned bool
	// MediaUnread field of UpdateShortChatMessage.
	MediaUnread bool
	// Silent field of UpdateShortChatMessage.
	Silent bool
	// ID field of UpdateShortChatMessage.
	ID int
	// FromID field of UpdateShortChatMessage.
	FromID int
	// ChatID field of UpdateShortChatMessage.
	ChatID int
	// Message field of UpdateShortChatMessage.
	Message string
	// Pts field of UpdateShortChatMessage.
	Pts int
	// PtsCount field of UpdateShortChatMessage.
	PtsCount int
	// Date field of UpdateShortChatMessage.
	Date int
	// FwdFrom field of UpdateShortChatMessage.
	//
	// Use SetFwdFrom and GetFwdFrom helpers.
	FwdFrom MessageFwdHeader
	// ViaBotID field of UpdateShortChatMessage.
	//
	// Use SetViaBotID and GetViaBotID helpers.
	ViaBotID int
	// ReplyTo field of UpdateShortChatMessage.
	//
	// Use SetReplyTo and GetReplyTo helpers.
	ReplyTo MessageReplyHeader
	// Entities field of UpdateShortChatMessage.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
}

UpdateShortChatMessage represents TL type `updateShortChatMessage#402d5dbb`.

func (*UpdateShortChatMessage) Decode ¶

func (u *UpdateShortChatMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateShortChatMessage) Encode ¶

func (u *UpdateShortChatMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateShortChatMessage) GetEntities ¶

func (u *UpdateShortChatMessage) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*UpdateShortChatMessage) GetFwdFrom ¶

func (u *UpdateShortChatMessage) GetFwdFrom() (value MessageFwdHeader, ok bool)

GetFwdFrom returns value of FwdFrom conditional field and boolean which is true if field was set.

func (*UpdateShortChatMessage) GetReplyTo ¶

func (u *UpdateShortChatMessage) GetReplyTo() (value MessageReplyHeader, ok bool)

GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set.

func (*UpdateShortChatMessage) GetViaBotID ¶

func (u *UpdateShortChatMessage) GetViaBotID() (value int, ok bool)

GetViaBotID returns value of ViaBotID conditional field and boolean which is true if field was set.

func (*UpdateShortChatMessage) SetEntities ¶

func (u *UpdateShortChatMessage) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*UpdateShortChatMessage) SetFwdFrom ¶

func (u *UpdateShortChatMessage) SetFwdFrom(value MessageFwdHeader)

SetFwdFrom sets value of FwdFrom conditional field.

func (*UpdateShortChatMessage) SetMediaUnread ¶

func (u *UpdateShortChatMessage) SetMediaUnread(value bool)

SetMediaUnread sets value of MediaUnread conditional field.

func (*UpdateShortChatMessage) SetMentioned ¶

func (u *UpdateShortChatMessage) SetMentioned(value bool)

SetMentioned sets value of Mentioned conditional field.

func (*UpdateShortChatMessage) SetOut ¶

func (u *UpdateShortChatMessage) SetOut(value bool)

SetOut sets value of Out conditional field.

func (*UpdateShortChatMessage) SetReplyTo ¶

func (u *UpdateShortChatMessage) SetReplyTo(value MessageReplyHeader)

SetReplyTo sets value of ReplyTo conditional field.

func (*UpdateShortChatMessage) SetSilent ¶

func (u *UpdateShortChatMessage) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

func (*UpdateShortChatMessage) SetViaBotID ¶

func (u *UpdateShortChatMessage) SetViaBotID(value int)

SetViaBotID sets value of ViaBotID conditional field.

type UpdateShortMessage ¶

type UpdateShortMessage struct {
	// Flags field of UpdateShortMessage.
	Flags bin.Fields
	// Out field of UpdateShortMessage.
	Out bool
	// Mentioned field of UpdateShortMessage.
	Mentioned bool
	// MediaUnread field of UpdateShortMessage.
	MediaUnread bool
	// Silent field of UpdateShortMessage.
	Silent bool
	// ID field of UpdateShortMessage.
	ID int
	// UserID field of UpdateShortMessage.
	UserID int
	// Message field of UpdateShortMessage.
	Message string
	// Pts field of UpdateShortMessage.
	Pts int
	// PtsCount field of UpdateShortMessage.
	PtsCount int
	// Date field of UpdateShortMessage.
	Date int
	// FwdFrom field of UpdateShortMessage.
	//
	// Use SetFwdFrom and GetFwdFrom helpers.
	FwdFrom MessageFwdHeader
	// ViaBotID field of UpdateShortMessage.
	//
	// Use SetViaBotID and GetViaBotID helpers.
	ViaBotID int
	// ReplyTo field of UpdateShortMessage.
	//
	// Use SetReplyTo and GetReplyTo helpers.
	ReplyTo MessageReplyHeader
	// Entities field of UpdateShortMessage.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
}

UpdateShortMessage represents TL type `updateShortMessage#2296d2c8`.

func (*UpdateShortMessage) Decode ¶

func (u *UpdateShortMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateShortMessage) Encode ¶

func (u *UpdateShortMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateShortMessage) GetEntities ¶

func (u *UpdateShortMessage) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*UpdateShortMessage) GetFwdFrom ¶

func (u *UpdateShortMessage) GetFwdFrom() (value MessageFwdHeader, ok bool)

GetFwdFrom returns value of FwdFrom conditional field and boolean which is true if field was set.

func (*UpdateShortMessage) GetReplyTo ¶

func (u *UpdateShortMessage) GetReplyTo() (value MessageReplyHeader, ok bool)

GetReplyTo returns value of ReplyTo conditional field and boolean which is true if field was set.

func (*UpdateShortMessage) GetViaBotID ¶

func (u *UpdateShortMessage) GetViaBotID() (value int, ok bool)

GetViaBotID returns value of ViaBotID conditional field and boolean which is true if field was set.

func (*UpdateShortMessage) SetEntities ¶

func (u *UpdateShortMessage) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*UpdateShortMessage) SetFwdFrom ¶

func (u *UpdateShortMessage) SetFwdFrom(value MessageFwdHeader)

SetFwdFrom sets value of FwdFrom conditional field.

func (*UpdateShortMessage) SetMediaUnread ¶

func (u *UpdateShortMessage) SetMediaUnread(value bool)

SetMediaUnread sets value of MediaUnread conditional field.

func (*UpdateShortMessage) SetMentioned ¶

func (u *UpdateShortMessage) SetMentioned(value bool)

SetMentioned sets value of Mentioned conditional field.

func (*UpdateShortMessage) SetOut ¶

func (u *UpdateShortMessage) SetOut(value bool)

SetOut sets value of Out conditional field.

func (*UpdateShortMessage) SetReplyTo ¶

func (u *UpdateShortMessage) SetReplyTo(value MessageReplyHeader)

SetReplyTo sets value of ReplyTo conditional field.

func (*UpdateShortMessage) SetSilent ¶

func (u *UpdateShortMessage) SetSilent(value bool)

SetSilent sets value of Silent conditional field.

func (*UpdateShortMessage) SetViaBotID ¶

func (u *UpdateShortMessage) SetViaBotID(value int)

SetViaBotID sets value of ViaBotID conditional field.

type UpdateShortSentMessage ¶

type UpdateShortSentMessage struct {
	// Flags field of UpdateShortSentMessage.
	Flags bin.Fields
	// Out field of UpdateShortSentMessage.
	Out bool
	// ID field of UpdateShortSentMessage.
	ID int
	// Pts field of UpdateShortSentMessage.
	Pts int
	// PtsCount field of UpdateShortSentMessage.
	PtsCount int
	// Date field of UpdateShortSentMessage.
	Date int
	// Media field of UpdateShortSentMessage.
	//
	// Use SetMedia and GetMedia helpers.
	Media MessageMediaClass
	// Entities field of UpdateShortSentMessage.
	//
	// Use SetEntities and GetEntities helpers.
	Entities []MessageEntityClass
}

UpdateShortSentMessage represents TL type `updateShortSentMessage#11f1331c`.

func (*UpdateShortSentMessage) Decode ¶

func (u *UpdateShortSentMessage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateShortSentMessage) Encode ¶

func (u *UpdateShortSentMessage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateShortSentMessage) GetEntities ¶

func (u *UpdateShortSentMessage) GetEntities() (value []MessageEntityClass, ok bool)

GetEntities returns value of Entities conditional field and boolean which is true if field was set.

func (*UpdateShortSentMessage) GetMedia ¶

func (u *UpdateShortSentMessage) GetMedia() (value MessageMediaClass, ok bool)

GetMedia returns value of Media conditional field and boolean which is true if field was set.

func (*UpdateShortSentMessage) SetEntities ¶

func (u *UpdateShortSentMessage) SetEntities(value []MessageEntityClass)

SetEntities sets value of Entities conditional field.

func (*UpdateShortSentMessage) SetMedia ¶

func (u *UpdateShortSentMessage) SetMedia(value MessageMediaClass)

SetMedia sets value of Media conditional field.

func (*UpdateShortSentMessage) SetOut ¶

func (u *UpdateShortSentMessage) SetOut(value bool)

SetOut sets value of Out conditional field.

type UpdateStickerSets ¶

type UpdateStickerSets struct {
}

UpdateStickerSets represents TL type `updateStickerSets#43ae3dec`.

func (*UpdateStickerSets) Decode ¶

func (u *UpdateStickerSets) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateStickerSets) Encode ¶

func (u *UpdateStickerSets) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateStickerSetsOrder ¶

type UpdateStickerSetsOrder struct {
	// Flags field of UpdateStickerSetsOrder.
	Flags bin.Fields
	// Masks field of UpdateStickerSetsOrder.
	Masks bool
	// Order field of UpdateStickerSetsOrder.
	Order []int64
}

UpdateStickerSetsOrder represents TL type `updateStickerSetsOrder#bb2d201`.

func (*UpdateStickerSetsOrder) Decode ¶

func (u *UpdateStickerSetsOrder) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateStickerSetsOrder) Encode ¶

func (u *UpdateStickerSetsOrder) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdateStickerSetsOrder) SetMasks ¶

func (u *UpdateStickerSetsOrder) SetMasks(value bool)

SetMasks sets value of Masks conditional field.

type UpdateTheme ¶

type UpdateTheme struct {
	// Theme field of UpdateTheme.
	Theme Theme
}

UpdateTheme represents TL type `updateTheme#8216fba3`.

func (*UpdateTheme) Decode ¶

func (u *UpdateTheme) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateTheme) Encode ¶

func (u *UpdateTheme) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateUserName ¶

type UpdateUserName struct {
	// UserID field of UpdateUserName.
	UserID int
	// FirstName field of UpdateUserName.
	FirstName string
	// LastName field of UpdateUserName.
	LastName string
	// Username field of UpdateUserName.
	Username string
}

UpdateUserName represents TL type `updateUserName#a7332b73`.

func (*UpdateUserName) Decode ¶

func (u *UpdateUserName) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateUserName) Encode ¶

func (u *UpdateUserName) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateUserPhone ¶

type UpdateUserPhone struct {
	// UserID field of UpdateUserPhone.
	UserID int
	// Phone field of UpdateUserPhone.
	Phone string
}

UpdateUserPhone represents TL type `updateUserPhone#12b9417b`.

func (*UpdateUserPhone) Decode ¶

func (u *UpdateUserPhone) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateUserPhone) Encode ¶

func (u *UpdateUserPhone) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateUserPhoto ¶

type UpdateUserPhoto struct {
	// UserID field of UpdateUserPhoto.
	UserID int
	// Date field of UpdateUserPhoto.
	Date int
	// Photo field of UpdateUserPhoto.
	Photo UserProfilePhotoClass
	// Previous field of UpdateUserPhoto.
	Previous bool
}

UpdateUserPhoto represents TL type `updateUserPhoto#95313b0c`.

func (*UpdateUserPhoto) Decode ¶

func (u *UpdateUserPhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateUserPhoto) Encode ¶

func (u *UpdateUserPhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateUserStatus ¶

type UpdateUserStatus struct {
	// UserID field of UpdateUserStatus.
	UserID int
	// Status field of UpdateUserStatus.
	Status UserStatusClass
}

UpdateUserStatus represents TL type `updateUserStatus#1bfbd823`.

func (*UpdateUserStatus) Decode ¶

func (u *UpdateUserStatus) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateUserStatus) Encode ¶

func (u *UpdateUserStatus) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateUserTyping ¶

type UpdateUserTyping struct {
	// UserID field of UpdateUserTyping.
	UserID int
	// Action field of UpdateUserTyping.
	Action SendMessageActionClass
}

UpdateUserTyping represents TL type `updateUserTyping#5c486927`.

func (*UpdateUserTyping) Decode ¶

func (u *UpdateUserTyping) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateUserTyping) Encode ¶

func (u *UpdateUserTyping) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdateWebPage ¶

type UpdateWebPage struct {
	// Webpage field of UpdateWebPage.
	Webpage WebPageClass
	// Pts field of UpdateWebPage.
	Pts int
	// PtsCount field of UpdateWebPage.
	PtsCount int
}

UpdateWebPage represents TL type `updateWebPage#7f891213`.

func (*UpdateWebPage) Decode ¶

func (u *UpdateWebPage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdateWebPage) Encode ¶

func (u *UpdateWebPage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type Updates ¶

type Updates struct {
	// Updates field of Updates.
	Updates []UpdateClass
	// Users field of Updates.
	Users []UserClass
	// Chats field of Updates.
	Chats []ChatClass
	// Date field of Updates.
	Date int
	// Seq field of Updates.
	Seq int
}

Updates represents TL type `updates#74ae4240`.

func (*Updates) Decode ¶

func (u *Updates) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Updates) Encode ¶

func (u *Updates) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatesBox ¶

type UpdatesBox struct {
	Updates UpdatesClass
}

Updates boxes the UpdatesClass providing a helper.

func (*UpdatesBox) Decode ¶

func (b *UpdatesBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for UpdatesBox.

func (*UpdatesBox) Encode ¶

func (b *UpdatesBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for UpdatesBox.

type UpdatesChannelDifference ¶

type UpdatesChannelDifference struct {
	// Flags field of UpdatesChannelDifference.
	Flags bin.Fields
	// Final field of UpdatesChannelDifference.
	Final bool
	// Pts field of UpdatesChannelDifference.
	Pts int
	// Timeout field of UpdatesChannelDifference.
	//
	// Use SetTimeout and GetTimeout helpers.
	Timeout int
	// NewMessages field of UpdatesChannelDifference.
	NewMessages []MessageClass
	// OtherUpdates field of UpdatesChannelDifference.
	OtherUpdates []UpdateClass
	// Chats field of UpdatesChannelDifference.
	Chats []ChatClass
	// Users field of UpdatesChannelDifference.
	Users []UserClass
}

UpdatesChannelDifference represents TL type `updates.channelDifference#2064674e`.

func (*UpdatesChannelDifference) Decode ¶

func (c *UpdatesChannelDifference) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatesChannelDifference) Encode ¶

func (c *UpdatesChannelDifference) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UpdatesChannelDifference) GetTimeout ¶

func (c *UpdatesChannelDifference) GetTimeout() (value int, ok bool)

GetTimeout returns value of Timeout conditional field and boolean which is true if field was set.

func (*UpdatesChannelDifference) SetFinal ¶

func (c *UpdatesChannelDifference) SetFinal(value bool)

SetFinal sets value of Final conditional field.

func (*UpdatesChannelDifference) SetTimeout ¶

func (c *UpdatesChannelDifference) SetTimeout(value int)

SetTimeout sets value of Timeout conditional field.

type UpdatesChannelDifferenceBox ¶

type UpdatesChannelDifferenceBox struct {
	ChannelDifference UpdatesChannelDifferenceClass
}

UpdatesChannelDifference boxes the UpdatesChannelDifferenceClass providing a helper.

func (*UpdatesChannelDifferenceBox) Decode ¶

func (b *UpdatesChannelDifferenceBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for UpdatesChannelDifferenceBox.

func (*UpdatesChannelDifferenceBox) Encode ¶

func (b *UpdatesChannelDifferenceBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for UpdatesChannelDifferenceBox.

type UpdatesChannelDifferenceClass ¶

type UpdatesChannelDifferenceClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

UpdatesChannelDifferenceClass represents updates.ChannelDifference generic type.

Example:

g, err := DecodeUpdatesChannelDifference(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *UpdatesChannelDifferenceEmpty: // updates.channelDifferenceEmpty#3e11affb
case *UpdatesChannelDifferenceTooLong: // updates.channelDifferenceTooLong#a4bcc6fe
case *UpdatesChannelDifference: // updates.channelDifference#2064674e
default: panic(v)
}

func DecodeUpdatesChannelDifference ¶

func DecodeUpdatesChannelDifference(buf *bin.Buffer) (UpdatesChannelDifferenceClass, error)

DecodeUpdatesChannelDifference implements binary de-serialization for UpdatesChannelDifferenceClass.

type UpdatesChannelDifferenceEmpty ¶

type UpdatesChannelDifferenceEmpty struct {
	// Flags field of UpdatesChannelDifferenceEmpty.
	Flags bin.Fields
	// Final field of UpdatesChannelDifferenceEmpty.
	Final bool
	// Pts field of UpdatesChannelDifferenceEmpty.
	Pts int
	// Timeout field of UpdatesChannelDifferenceEmpty.
	//
	// Use SetTimeout and GetTimeout helpers.
	Timeout int
}

UpdatesChannelDifferenceEmpty represents TL type `updates.channelDifferenceEmpty#3e11affb`.

func (*UpdatesChannelDifferenceEmpty) Decode ¶

Decode implements bin.Decoder.

func (*UpdatesChannelDifferenceEmpty) Encode ¶

Encode implements bin.Encoder.

func (*UpdatesChannelDifferenceEmpty) GetTimeout ¶

func (c *UpdatesChannelDifferenceEmpty) GetTimeout() (value int, ok bool)

GetTimeout returns value of Timeout conditional field and boolean which is true if field was set.

func (*UpdatesChannelDifferenceEmpty) SetFinal ¶

func (c *UpdatesChannelDifferenceEmpty) SetFinal(value bool)

SetFinal sets value of Final conditional field.

func (*UpdatesChannelDifferenceEmpty) SetTimeout ¶

func (c *UpdatesChannelDifferenceEmpty) SetTimeout(value int)

SetTimeout sets value of Timeout conditional field.

type UpdatesChannelDifferenceTooLong ¶

type UpdatesChannelDifferenceTooLong struct {
	// Flags field of UpdatesChannelDifferenceTooLong.
	Flags bin.Fields
	// Final field of UpdatesChannelDifferenceTooLong.
	Final bool
	// Timeout field of UpdatesChannelDifferenceTooLong.
	//
	// Use SetTimeout and GetTimeout helpers.
	Timeout int
	// Dialog field of UpdatesChannelDifferenceTooLong.
	Dialog DialogClass
	// Messages field of UpdatesChannelDifferenceTooLong.
	Messages []MessageClass
	// Chats field of UpdatesChannelDifferenceTooLong.
	Chats []ChatClass
	// Users field of UpdatesChannelDifferenceTooLong.
	Users []UserClass
}

UpdatesChannelDifferenceTooLong represents TL type `updates.channelDifferenceTooLong#a4bcc6fe`.

func (*UpdatesChannelDifferenceTooLong) Decode ¶

Decode implements bin.Decoder.

func (*UpdatesChannelDifferenceTooLong) Encode ¶

Encode implements bin.Encoder.

func (*UpdatesChannelDifferenceTooLong) GetTimeout ¶

func (c *UpdatesChannelDifferenceTooLong) GetTimeout() (value int, ok bool)

GetTimeout returns value of Timeout conditional field and boolean which is true if field was set.

func (*UpdatesChannelDifferenceTooLong) SetFinal ¶

func (c *UpdatesChannelDifferenceTooLong) SetFinal(value bool)

SetFinal sets value of Final conditional field.

func (*UpdatesChannelDifferenceTooLong) SetTimeout ¶

func (c *UpdatesChannelDifferenceTooLong) SetTimeout(value int)

SetTimeout sets value of Timeout conditional field.

type UpdatesClass ¶

type UpdatesClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

UpdatesClass represents Updates generic type.

Example:

g, err := DecodeUpdates(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *UpdatesTooLong: // updatesTooLong#e317af7e
case *UpdateShortMessage: // updateShortMessage#2296d2c8
case *UpdateShortChatMessage: // updateShortChatMessage#402d5dbb
case *UpdateShort: // updateShort#78d4dec1
case *UpdatesCombined: // updatesCombined#725b04c3
case *Updates: // updates#74ae4240
case *UpdateShortSentMessage: // updateShortSentMessage#11f1331c
default: panic(v)
}

func DecodeUpdates ¶

func DecodeUpdates(buf *bin.Buffer) (UpdatesClass, error)

DecodeUpdates implements binary de-serialization for UpdatesClass.

type UpdatesCombined ¶

type UpdatesCombined struct {
	// Updates field of UpdatesCombined.
	Updates []UpdateClass
	// Users field of UpdatesCombined.
	Users []UserClass
	// Chats field of UpdatesCombined.
	Chats []ChatClass
	// Date field of UpdatesCombined.
	Date int
	// SeqStart field of UpdatesCombined.
	SeqStart int
	// Seq field of UpdatesCombined.
	Seq int
}

UpdatesCombined represents TL type `updatesCombined#725b04c3`.

func (*UpdatesCombined) Decode ¶

func (u *UpdatesCombined) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatesCombined) Encode ¶

func (u *UpdatesCombined) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatesDifference ¶

type UpdatesDifference struct {
	// NewMessages field of UpdatesDifference.
	NewMessages []MessageClass
	// NewEncryptedMessages field of UpdatesDifference.
	NewEncryptedMessages []EncryptedMessageClass
	// OtherUpdates field of UpdatesDifference.
	OtherUpdates []UpdateClass
	// Chats field of UpdatesDifference.
	Chats []ChatClass
	// Users field of UpdatesDifference.
	Users []UserClass
	// State field of UpdatesDifference.
	State UpdatesState
}

UpdatesDifference represents TL type `updates.difference#f49ca0`.

func (*UpdatesDifference) Decode ¶

func (d *UpdatesDifference) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatesDifference) Encode ¶

func (d *UpdatesDifference) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatesDifferenceBox ¶

type UpdatesDifferenceBox struct {
	Difference UpdatesDifferenceClass
}

UpdatesDifference boxes the UpdatesDifferenceClass providing a helper.

func (*UpdatesDifferenceBox) Decode ¶

func (b *UpdatesDifferenceBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for UpdatesDifferenceBox.

func (*UpdatesDifferenceBox) Encode ¶

func (b *UpdatesDifferenceBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for UpdatesDifferenceBox.

type UpdatesDifferenceClass ¶

type UpdatesDifferenceClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

UpdatesDifferenceClass represents updates.Difference generic type.

Example:

g, err := DecodeUpdatesDifference(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *UpdatesDifferenceEmpty: // updates.differenceEmpty#5d75a138
case *UpdatesDifference: // updates.difference#f49ca0
case *UpdatesDifferenceSlice: // updates.differenceSlice#a8fb1981
case *UpdatesDifferenceTooLong: // updates.differenceTooLong#4afe8f6d
default: panic(v)
}

func DecodeUpdatesDifference ¶

func DecodeUpdatesDifference(buf *bin.Buffer) (UpdatesDifferenceClass, error)

DecodeUpdatesDifference implements binary de-serialization for UpdatesDifferenceClass.

type UpdatesDifferenceEmpty ¶

type UpdatesDifferenceEmpty struct {
	// Date field of UpdatesDifferenceEmpty.
	Date int
	// Seq field of UpdatesDifferenceEmpty.
	Seq int
}

UpdatesDifferenceEmpty represents TL type `updates.differenceEmpty#5d75a138`.

func (*UpdatesDifferenceEmpty) Decode ¶

func (d *UpdatesDifferenceEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatesDifferenceEmpty) Encode ¶

func (d *UpdatesDifferenceEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatesDifferenceSlice ¶

type UpdatesDifferenceSlice struct {
	// NewMessages field of UpdatesDifferenceSlice.
	NewMessages []MessageClass
	// NewEncryptedMessages field of UpdatesDifferenceSlice.
	NewEncryptedMessages []EncryptedMessageClass
	// OtherUpdates field of UpdatesDifferenceSlice.
	OtherUpdates []UpdateClass
	// Chats field of UpdatesDifferenceSlice.
	Chats []ChatClass
	// Users field of UpdatesDifferenceSlice.
	Users []UserClass
	// IntermediateState field of UpdatesDifferenceSlice.
	IntermediateState UpdatesState
}

UpdatesDifferenceSlice represents TL type `updates.differenceSlice#a8fb1981`.

func (*UpdatesDifferenceSlice) Decode ¶

func (d *UpdatesDifferenceSlice) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatesDifferenceSlice) Encode ¶

func (d *UpdatesDifferenceSlice) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatesDifferenceTooLong ¶

type UpdatesDifferenceTooLong struct {
	// Pts field of UpdatesDifferenceTooLong.
	Pts int
}

UpdatesDifferenceTooLong represents TL type `updates.differenceTooLong#4afe8f6d`.

func (*UpdatesDifferenceTooLong) Decode ¶

func (d *UpdatesDifferenceTooLong) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatesDifferenceTooLong) Encode ¶

func (d *UpdatesDifferenceTooLong) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatesGetChannelDifferenceRequest ¶

type UpdatesGetChannelDifferenceRequest struct {
	// Flags field of UpdatesGetChannelDifferenceRequest.
	Flags bin.Fields
	// Force field of UpdatesGetChannelDifferenceRequest.
	Force bool
	// Channel field of UpdatesGetChannelDifferenceRequest.
	Channel InputChannelClass
	// Filter field of UpdatesGetChannelDifferenceRequest.
	Filter ChannelMessagesFilterClass
	// Pts field of UpdatesGetChannelDifferenceRequest.
	Pts int
	// Limit field of UpdatesGetChannelDifferenceRequest.
	Limit int
}

UpdatesGetChannelDifferenceRequest represents TL type `updates.getChannelDifference#3173d78`.

func (*UpdatesGetChannelDifferenceRequest) Decode ¶

Decode implements bin.Decoder.

func (*UpdatesGetChannelDifferenceRequest) Encode ¶

Encode implements bin.Encoder.

func (*UpdatesGetChannelDifferenceRequest) SetForce ¶

func (g *UpdatesGetChannelDifferenceRequest) SetForce(value bool)

SetForce sets value of Force conditional field.

type UpdatesGetDifferenceRequest ¶

type UpdatesGetDifferenceRequest struct {
	// Flags field of UpdatesGetDifferenceRequest.
	Flags bin.Fields
	// Pts field of UpdatesGetDifferenceRequest.
	Pts int
	// PtsTotalLimit field of UpdatesGetDifferenceRequest.
	//
	// Use SetPtsTotalLimit and GetPtsTotalLimit helpers.
	PtsTotalLimit int
	// Date field of UpdatesGetDifferenceRequest.
	Date int
	// Qts field of UpdatesGetDifferenceRequest.
	Qts int
}

UpdatesGetDifferenceRequest represents TL type `updates.getDifference#25939651`.

func (*UpdatesGetDifferenceRequest) Decode ¶

Decode implements bin.Decoder.

func (*UpdatesGetDifferenceRequest) Encode ¶

Encode implements bin.Encoder.

func (*UpdatesGetDifferenceRequest) GetPtsTotalLimit ¶

func (g *UpdatesGetDifferenceRequest) GetPtsTotalLimit() (value int, ok bool)

GetPtsTotalLimit returns value of PtsTotalLimit conditional field and boolean which is true if field was set.

func (*UpdatesGetDifferenceRequest) SetPtsTotalLimit ¶

func (g *UpdatesGetDifferenceRequest) SetPtsTotalLimit(value int)

SetPtsTotalLimit sets value of PtsTotalLimit conditional field.

type UpdatesGetStateRequest ¶

type UpdatesGetStateRequest struct {
}

UpdatesGetStateRequest represents TL type `updates.getState#edd4882a`.

func (*UpdatesGetStateRequest) Decode ¶

func (g *UpdatesGetStateRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatesGetStateRequest) Encode ¶

func (g *UpdatesGetStateRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatesState ¶

type UpdatesState struct {
	// Pts field of UpdatesState.
	Pts int
	// Qts field of UpdatesState.
	Qts int
	// Date field of UpdatesState.
	Date int
	// Seq field of UpdatesState.
	Seq int
	// UnreadCount field of UpdatesState.
	UnreadCount int
}

UpdatesState represents TL type `updates.state#a56c2a3e`.

func (*UpdatesState) Decode ¶

func (s *UpdatesState) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatesState) Encode ¶

func (s *UpdatesState) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UpdatesTooLong ¶

type UpdatesTooLong struct {
}

UpdatesTooLong represents TL type `updatesTooLong#e317af7e`.

func (*UpdatesTooLong) Decode ¶

func (u *UpdatesTooLong) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UpdatesTooLong) Encode ¶

func (u *UpdatesTooLong) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UploadCdnFile ¶

type UploadCdnFile struct {
	// Bytes field of UploadCdnFile.
	Bytes []byte
}

UploadCdnFile represents TL type `upload.cdnFile#a99fca4f`.

func (*UploadCdnFile) Decode ¶

func (c *UploadCdnFile) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UploadCdnFile) Encode ¶

func (c *UploadCdnFile) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UploadCdnFileBox ¶

type UploadCdnFileBox struct {
	CdnFile UploadCdnFileClass
}

UploadCdnFile boxes the UploadCdnFileClass providing a helper.

func (*UploadCdnFileBox) Decode ¶

func (b *UploadCdnFileBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for UploadCdnFileBox.

func (*UploadCdnFileBox) Encode ¶

func (b *UploadCdnFileBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for UploadCdnFileBox.

type UploadCdnFileClass ¶

type UploadCdnFileClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

UploadCdnFileClass represents upload.CdnFile generic type.

Example:

g, err := DecodeUploadCdnFile(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *UploadCdnFileReuploadNeeded: // upload.cdnFileReuploadNeeded#eea8e46e
case *UploadCdnFile: // upload.cdnFile#a99fca4f
default: panic(v)
}

func DecodeUploadCdnFile ¶

func DecodeUploadCdnFile(buf *bin.Buffer) (UploadCdnFileClass, error)

DecodeUploadCdnFile implements binary de-serialization for UploadCdnFileClass.

type UploadCdnFileReuploadNeeded ¶

type UploadCdnFileReuploadNeeded struct {
	// RequestToken field of UploadCdnFileReuploadNeeded.
	RequestToken []byte
}

UploadCdnFileReuploadNeeded represents TL type `upload.cdnFileReuploadNeeded#eea8e46e`.

func (*UploadCdnFileReuploadNeeded) Decode ¶

Decode implements bin.Decoder.

func (*UploadCdnFileReuploadNeeded) Encode ¶

Encode implements bin.Encoder.

type UploadFile ¶

type UploadFile struct {
	// Type field of UploadFile.
	Type StorageFileTypeClass
	// Mtime field of UploadFile.
	Mtime int
	// Bytes field of UploadFile.
	Bytes []byte
}

UploadFile represents TL type `upload.file#96a18d5`.

func (*UploadFile) Decode ¶

func (f *UploadFile) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UploadFile) Encode ¶

func (f *UploadFile) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UploadFileBox ¶

type UploadFileBox struct {
	File UploadFileClass
}

UploadFile boxes the UploadFileClass providing a helper.

func (*UploadFileBox) Decode ¶

func (b *UploadFileBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for UploadFileBox.

func (*UploadFileBox) Encode ¶

func (b *UploadFileBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for UploadFileBox.

type UploadFileCdnRedirect ¶

type UploadFileCdnRedirect struct {
	// DCID field of UploadFileCdnRedirect.
	DCID int
	// FileToken field of UploadFileCdnRedirect.
	FileToken []byte
	// EncryptionKey field of UploadFileCdnRedirect.
	EncryptionKey []byte
	// EncryptionIv field of UploadFileCdnRedirect.
	EncryptionIv []byte
	// FileHashes field of UploadFileCdnRedirect.
	FileHashes []FileHash
}

UploadFileCdnRedirect represents TL type `upload.fileCdnRedirect#f18cda44`.

func (*UploadFileCdnRedirect) Decode ¶

func (f *UploadFileCdnRedirect) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UploadFileCdnRedirect) Encode ¶

func (f *UploadFileCdnRedirect) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UploadFileClass ¶

type UploadFileClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

UploadFileClass represents upload.File generic type.

Example:

g, err := DecodeUploadFile(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *UploadFile: // upload.file#96a18d5
case *UploadFileCdnRedirect: // upload.fileCdnRedirect#f18cda44
default: panic(v)
}

func DecodeUploadFile ¶

func DecodeUploadFile(buf *bin.Buffer) (UploadFileClass, error)

DecodeUploadFile implements binary de-serialization for UploadFileClass.

type UploadGetCdnFileHashesRequest ¶

type UploadGetCdnFileHashesRequest struct {
	// FileToken field of UploadGetCdnFileHashesRequest.
	FileToken []byte
	// Offset field of UploadGetCdnFileHashesRequest.
	Offset int
}

UploadGetCdnFileHashesRequest represents TL type `upload.getCdnFileHashes#4da54231`.

func (*UploadGetCdnFileHashesRequest) Decode ¶

Decode implements bin.Decoder.

func (*UploadGetCdnFileHashesRequest) Encode ¶

Encode implements bin.Encoder.

type UploadGetCdnFileRequest ¶

type UploadGetCdnFileRequest struct {
	// FileToken field of UploadGetCdnFileRequest.
	FileToken []byte
	// Offset field of UploadGetCdnFileRequest.
	Offset int
	// Limit field of UploadGetCdnFileRequest.
	Limit int
}

UploadGetCdnFileRequest represents TL type `upload.getCdnFile#2000bcc3`.

func (*UploadGetCdnFileRequest) Decode ¶

func (g *UploadGetCdnFileRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UploadGetCdnFileRequest) Encode ¶

func (g *UploadGetCdnFileRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UploadGetFileHashesRequest ¶

type UploadGetFileHashesRequest struct {
	// Location field of UploadGetFileHashesRequest.
	Location InputFileLocationClass
	// Offset field of UploadGetFileHashesRequest.
	Offset int
}

UploadGetFileHashesRequest represents TL type `upload.getFileHashes#c7025931`.

func (*UploadGetFileHashesRequest) Decode ¶

Decode implements bin.Decoder.

func (*UploadGetFileHashesRequest) Encode ¶

Encode implements bin.Encoder.

type UploadGetFileRequest ¶

type UploadGetFileRequest struct {
	// Flags field of UploadGetFileRequest.
	Flags bin.Fields
	// Precise field of UploadGetFileRequest.
	Precise bool
	// CDNSupported field of UploadGetFileRequest.
	CDNSupported bool
	// Location field of UploadGetFileRequest.
	Location InputFileLocationClass
	// Offset field of UploadGetFileRequest.
	Offset int
	// Limit field of UploadGetFileRequest.
	Limit int
}

UploadGetFileRequest represents TL type `upload.getFile#b15a9afc`.

func (*UploadGetFileRequest) Decode ¶

func (g *UploadGetFileRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UploadGetFileRequest) Encode ¶

func (g *UploadGetFileRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UploadGetFileRequest) SetCDNSupported ¶

func (g *UploadGetFileRequest) SetCDNSupported(value bool)

SetCDNSupported sets value of CDNSupported conditional field.

func (*UploadGetFileRequest) SetPrecise ¶

func (g *UploadGetFileRequest) SetPrecise(value bool)

SetPrecise sets value of Precise conditional field.

type UploadGetWebFileRequest ¶

type UploadGetWebFileRequest struct {
	// Location field of UploadGetWebFileRequest.
	Location InputWebFileLocationClass
	// Offset field of UploadGetWebFileRequest.
	Offset int
	// Limit field of UploadGetWebFileRequest.
	Limit int
}

UploadGetWebFileRequest represents TL type `upload.getWebFile#24e6818d`.

func (*UploadGetWebFileRequest) Decode ¶

func (g *UploadGetWebFileRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UploadGetWebFileRequest) Encode ¶

func (g *UploadGetWebFileRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UploadReuploadCdnFileRequest ¶

type UploadReuploadCdnFileRequest struct {
	// FileToken field of UploadReuploadCdnFileRequest.
	FileToken []byte
	// RequestToken field of UploadReuploadCdnFileRequest.
	RequestToken []byte
}

UploadReuploadCdnFileRequest represents TL type `upload.reuploadCdnFile#9b2754a8`.

func (*UploadReuploadCdnFileRequest) Decode ¶

Decode implements bin.Decoder.

func (*UploadReuploadCdnFileRequest) Encode ¶

Encode implements bin.Encoder.

type UploadSaveBigFilePartRequest ¶

type UploadSaveBigFilePartRequest struct {
	// FileID field of UploadSaveBigFilePartRequest.
	FileID int64
	// FilePart field of UploadSaveBigFilePartRequest.
	FilePart int
	// FileTotalParts field of UploadSaveBigFilePartRequest.
	FileTotalParts int
	// Bytes field of UploadSaveBigFilePartRequest.
	Bytes []byte
}

UploadSaveBigFilePartRequest represents TL type `upload.saveBigFilePart#de7b673d`.

func (*UploadSaveBigFilePartRequest) Decode ¶

Decode implements bin.Decoder.

func (*UploadSaveBigFilePartRequest) Encode ¶

Encode implements bin.Encoder.

type UploadSaveFilePartRequest ¶

type UploadSaveFilePartRequest struct {
	// FileID field of UploadSaveFilePartRequest.
	FileID int64
	// FilePart field of UploadSaveFilePartRequest.
	FilePart int
	// Bytes field of UploadSaveFilePartRequest.
	Bytes []byte
}

UploadSaveFilePartRequest represents TL type `upload.saveFilePart#b304a621`.

func (*UploadSaveFilePartRequest) Decode ¶

func (s *UploadSaveFilePartRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UploadSaveFilePartRequest) Encode ¶

func (s *UploadSaveFilePartRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UploadWebFile ¶

type UploadWebFile struct {
	// Size field of UploadWebFile.
	Size int
	// MimeType field of UploadWebFile.
	MimeType string
	// FileType field of UploadWebFile.
	FileType StorageFileTypeClass
	// Mtime field of UploadWebFile.
	Mtime int
	// Bytes field of UploadWebFile.
	Bytes []byte
}

UploadWebFile represents TL type `upload.webFile#21e753bc`.

func (*UploadWebFile) Decode ¶

func (w *UploadWebFile) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UploadWebFile) Encode ¶

func (w *UploadWebFile) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UrlAuthResultAccepted ¶

type UrlAuthResultAccepted struct {
	// URL field of UrlAuthResultAccepted.
	URL string
}

UrlAuthResultAccepted represents TL type `urlAuthResultAccepted#8f8c0e4e`.

func (*UrlAuthResultAccepted) Decode ¶

func (u *UrlAuthResultAccepted) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UrlAuthResultAccepted) Encode ¶

func (u *UrlAuthResultAccepted) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UrlAuthResultBox ¶

type UrlAuthResultBox struct {
	UrlAuthResult UrlAuthResultClass
}

UrlAuthResult boxes the UrlAuthResultClass providing a helper.

func (*UrlAuthResultBox) Decode ¶

func (b *UrlAuthResultBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for UrlAuthResultBox.

func (*UrlAuthResultBox) Encode ¶

func (b *UrlAuthResultBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for UrlAuthResultBox.

type UrlAuthResultClass ¶

type UrlAuthResultClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

UrlAuthResultClass represents UrlAuthResult generic type.

Example:

g, err := DecodeUrlAuthResult(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *UrlAuthResultRequest: // urlAuthResultRequest#92d33a0e
case *UrlAuthResultAccepted: // urlAuthResultAccepted#8f8c0e4e
case *UrlAuthResultDefault: // urlAuthResultDefault#a9d6db1f
default: panic(v)
}

func DecodeUrlAuthResult ¶

func DecodeUrlAuthResult(buf *bin.Buffer) (UrlAuthResultClass, error)

DecodeUrlAuthResult implements binary de-serialization for UrlAuthResultClass.

type UrlAuthResultDefault ¶

type UrlAuthResultDefault struct {
}

UrlAuthResultDefault represents TL type `urlAuthResultDefault#a9d6db1f`.

func (*UrlAuthResultDefault) Decode ¶

func (u *UrlAuthResultDefault) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UrlAuthResultDefault) Encode ¶

func (u *UrlAuthResultDefault) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UrlAuthResultRequest ¶

type UrlAuthResultRequest struct {
	// Flags field of UrlAuthResultRequest.
	Flags bin.Fields
	// RequestWriteAccess field of UrlAuthResultRequest.
	RequestWriteAccess bool
	// Bot field of UrlAuthResultRequest.
	Bot UserClass
	// Domain field of UrlAuthResultRequest.
	Domain string
}

UrlAuthResultRequest represents TL type `urlAuthResultRequest#92d33a0e`.

func (*UrlAuthResultRequest) Decode ¶

func (u *UrlAuthResultRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UrlAuthResultRequest) Encode ¶

func (u *UrlAuthResultRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UrlAuthResultRequest) SetRequestWriteAccess ¶

func (u *UrlAuthResultRequest) SetRequestWriteAccess(value bool)

SetRequestWriteAccess sets value of RequestWriteAccess conditional field.

type User ¶

type User struct {
	// Flags field of User.
	Flags bin.Fields
	// Self field of User.
	Self bool
	// Contact field of User.
	Contact bool
	// MutualContact field of User.
	MutualContact bool
	// Deleted field of User.
	Deleted bool
	// Bot field of User.
	Bot bool
	// BotChatHistory field of User.
	BotChatHistory bool
	// BotNochats field of User.
	BotNochats bool
	// Verified field of User.
	Verified bool
	// Restricted field of User.
	Restricted bool
	// Min field of User.
	Min bool
	// BotInlineGeo field of User.
	BotInlineGeo bool
	// Support field of User.
	Support bool
	// Scam field of User.
	Scam bool
	// ApplyMinPhoto field of User.
	ApplyMinPhoto bool
	// ID field of User.
	ID int
	// AccessHash field of User.
	//
	// Use SetAccessHash and GetAccessHash helpers.
	AccessHash int64
	// FirstName field of User.
	//
	// Use SetFirstName and GetFirstName helpers.
	FirstName string
	// LastName field of User.
	//
	// Use SetLastName and GetLastName helpers.
	LastName string
	// Username field of User.
	//
	// Use SetUsername and GetUsername helpers.
	Username string
	// Phone field of User.
	//
	// Use SetPhone and GetPhone helpers.
	Phone string
	// Photo field of User.
	//
	// Use SetPhoto and GetPhoto helpers.
	Photo UserProfilePhotoClass
	// Status field of User.
	//
	// Use SetStatus and GetStatus helpers.
	Status UserStatusClass
	// BotInfoVersion field of User.
	//
	// Use SetBotInfoVersion and GetBotInfoVersion helpers.
	BotInfoVersion int
	// RestrictionReason field of User.
	//
	// Use SetRestrictionReason and GetRestrictionReason helpers.
	RestrictionReason []RestrictionReason
	// BotInlinePlaceholder field of User.
	//
	// Use SetBotInlinePlaceholder and GetBotInlinePlaceholder helpers.
	BotInlinePlaceholder string
	// LangCode field of User.
	//
	// Use SetLangCode and GetLangCode helpers.
	LangCode string
}

User represents TL type `user#938458c1`.

func (*User) Decode ¶

func (u *User) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*User) Encode ¶

func (u *User) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*User) GetAccessHash ¶

func (u *User) GetAccessHash() (value int64, ok bool)

GetAccessHash returns value of AccessHash conditional field and boolean which is true if field was set.

func (*User) GetBotInfoVersion ¶

func (u *User) GetBotInfoVersion() (value int, ok bool)

GetBotInfoVersion returns value of BotInfoVersion conditional field and boolean which is true if field was set.

func (*User) GetBotInlinePlaceholder ¶

func (u *User) GetBotInlinePlaceholder() (value string, ok bool)

GetBotInlinePlaceholder returns value of BotInlinePlaceholder conditional field and boolean which is true if field was set.

func (*User) GetFirstName ¶

func (u *User) GetFirstName() (value string, ok bool)

GetFirstName returns value of FirstName conditional field and boolean which is true if field was set.

func (*User) GetLangCode ¶

func (u *User) GetLangCode() (value string, ok bool)

GetLangCode returns value of LangCode conditional field and boolean which is true if field was set.

func (*User) GetLastName ¶

func (u *User) GetLastName() (value string, ok bool)

GetLastName returns value of LastName conditional field and boolean which is true if field was set.

func (*User) GetPhone ¶

func (u *User) GetPhone() (value string, ok bool)

GetPhone returns value of Phone conditional field and boolean which is true if field was set.

func (*User) GetPhoto ¶

func (u *User) GetPhoto() (value UserProfilePhotoClass, ok bool)

GetPhoto returns value of Photo conditional field and boolean which is true if field was set.

func (*User) GetRestrictionReason ¶

func (u *User) GetRestrictionReason() (value []RestrictionReason, ok bool)

GetRestrictionReason returns value of RestrictionReason conditional field and boolean which is true if field was set.

func (*User) GetStatus ¶

func (u *User) GetStatus() (value UserStatusClass, ok bool)

GetStatus returns value of Status conditional field and boolean which is true if field was set.

func (*User) GetUsername ¶

func (u *User) GetUsername() (value string, ok bool)

GetUsername returns value of Username conditional field and boolean which is true if field was set.

func (*User) SetAccessHash ¶

func (u *User) SetAccessHash(value int64)

SetAccessHash sets value of AccessHash conditional field.

func (*User) SetApplyMinPhoto ¶

func (u *User) SetApplyMinPhoto(value bool)

SetApplyMinPhoto sets value of ApplyMinPhoto conditional field.

func (*User) SetBot ¶

func (u *User) SetBot(value bool)

SetBot sets value of Bot conditional field.

func (*User) SetBotChatHistory ¶

func (u *User) SetBotChatHistory(value bool)

SetBotChatHistory sets value of BotChatHistory conditional field.

func (*User) SetBotInfoVersion ¶

func (u *User) SetBotInfoVersion(value int)

SetBotInfoVersion sets value of BotInfoVersion conditional field.

func (*User) SetBotInlineGeo ¶

func (u *User) SetBotInlineGeo(value bool)

SetBotInlineGeo sets value of BotInlineGeo conditional field.

func (*User) SetBotInlinePlaceholder ¶

func (u *User) SetBotInlinePlaceholder(value string)

SetBotInlinePlaceholder sets value of BotInlinePlaceholder conditional field.

func (*User) SetBotNochats ¶

func (u *User) SetBotNochats(value bool)

SetBotNochats sets value of BotNochats conditional field.

func (*User) SetContact ¶

func (u *User) SetContact(value bool)

SetContact sets value of Contact conditional field.

func (*User) SetDeleted ¶

func (u *User) SetDeleted(value bool)

SetDeleted sets value of Deleted conditional field.

func (*User) SetFirstName ¶

func (u *User) SetFirstName(value string)

SetFirstName sets value of FirstName conditional field.

func (*User) SetLangCode ¶

func (u *User) SetLangCode(value string)

SetLangCode sets value of LangCode conditional field.

func (*User) SetLastName ¶

func (u *User) SetLastName(value string)

SetLastName sets value of LastName conditional field.

func (*User) SetMin ¶

func (u *User) SetMin(value bool)

SetMin sets value of Min conditional field.

func (*User) SetMutualContact ¶

func (u *User) SetMutualContact(value bool)

SetMutualContact sets value of MutualContact conditional field.

func (*User) SetPhone ¶

func (u *User) SetPhone(value string)

SetPhone sets value of Phone conditional field.

func (*User) SetPhoto ¶

func (u *User) SetPhoto(value UserProfilePhotoClass)

SetPhoto sets value of Photo conditional field.

func (*User) SetRestricted ¶

func (u *User) SetRestricted(value bool)

SetRestricted sets value of Restricted conditional field.

func (*User) SetRestrictionReason ¶

func (u *User) SetRestrictionReason(value []RestrictionReason)

SetRestrictionReason sets value of RestrictionReason conditional field.

func (*User) SetScam ¶

func (u *User) SetScam(value bool)

SetScam sets value of Scam conditional field.

func (*User) SetSelf ¶

func (u *User) SetSelf(value bool)

SetSelf sets value of Self conditional field.

func (*User) SetStatus ¶

func (u *User) SetStatus(value UserStatusClass)

SetStatus sets value of Status conditional field.

func (*User) SetSupport ¶

func (u *User) SetSupport(value bool)

SetSupport sets value of Support conditional field.

func (*User) SetUsername ¶

func (u *User) SetUsername(value string)

SetUsername sets value of Username conditional field.

func (*User) SetVerified ¶

func (u *User) SetVerified(value bool)

SetVerified sets value of Verified conditional field.

type UserBox ¶

type UserBox struct {
	User UserClass
}

User boxes the UserClass providing a helper.

func (*UserBox) Decode ¶

func (b *UserBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for UserBox.

func (*UserBox) Encode ¶

func (b *UserBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for UserBox.

type UserClass ¶

type UserClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

UserClass represents User generic type.

Example:

g, err := DecodeUser(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *UserEmpty: // userEmpty#200250ba
case *User: // user#938458c1
default: panic(v)
}

func DecodeUser ¶

func DecodeUser(buf *bin.Buffer) (UserClass, error)

DecodeUser implements binary de-serialization for UserClass.

type UserEmpty ¶

type UserEmpty struct {
	// ID field of UserEmpty.
	ID int
}

UserEmpty represents TL type `userEmpty#200250ba`.

func (*UserEmpty) Decode ¶

func (u *UserEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UserEmpty) Encode ¶

func (u *UserEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UserFull ¶

type UserFull struct {
	// Flags field of UserFull.
	Flags bin.Fields
	// Blocked field of UserFull.
	Blocked bool
	// PhoneCallsAvailable field of UserFull.
	PhoneCallsAvailable bool
	// PhoneCallsPrivate field of UserFull.
	PhoneCallsPrivate bool
	// CanPinMessage field of UserFull.
	CanPinMessage bool
	// HasScheduled field of UserFull.
	HasScheduled bool
	// VideoCallsAvailable field of UserFull.
	VideoCallsAvailable bool
	// User field of UserFull.
	User UserClass
	// About field of UserFull.
	//
	// Use SetAbout and GetAbout helpers.
	About string
	// Settings field of UserFull.
	Settings PeerSettings
	// ProfilePhoto field of UserFull.
	//
	// Use SetProfilePhoto and GetProfilePhoto helpers.
	ProfilePhoto PhotoClass
	// NotifySettings field of UserFull.
	NotifySettings PeerNotifySettings
	// BotInfo field of UserFull.
	//
	// Use SetBotInfo and GetBotInfo helpers.
	BotInfo BotInfo
	// PinnedMsgID field of UserFull.
	//
	// Use SetPinnedMsgID and GetPinnedMsgID helpers.
	PinnedMsgID int
	// CommonChatsCount field of UserFull.
	CommonChatsCount int
	// FolderID field of UserFull.
	//
	// Use SetFolderID and GetFolderID helpers.
	FolderID int
}

UserFull represents TL type `userFull#edf17c12`.

func (*UserFull) Decode ¶

func (u *UserFull) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UserFull) Encode ¶

func (u *UserFull) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UserFull) GetAbout ¶

func (u *UserFull) GetAbout() (value string, ok bool)

GetAbout returns value of About conditional field and boolean which is true if field was set.

func (*UserFull) GetBotInfo ¶

func (u *UserFull) GetBotInfo() (value BotInfo, ok bool)

GetBotInfo returns value of BotInfo conditional field and boolean which is true if field was set.

func (*UserFull) GetFolderID ¶

func (u *UserFull) GetFolderID() (value int, ok bool)

GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.

func (*UserFull) GetPinnedMsgID ¶

func (u *UserFull) GetPinnedMsgID() (value int, ok bool)

GetPinnedMsgID returns value of PinnedMsgID conditional field and boolean which is true if field was set.

func (*UserFull) GetProfilePhoto ¶

func (u *UserFull) GetProfilePhoto() (value PhotoClass, ok bool)

GetProfilePhoto returns value of ProfilePhoto conditional field and boolean which is true if field was set.

func (*UserFull) SetAbout ¶

func (u *UserFull) SetAbout(value string)

SetAbout sets value of About conditional field.

func (*UserFull) SetBlocked ¶

func (u *UserFull) SetBlocked(value bool)

SetBlocked sets value of Blocked conditional field.

func (*UserFull) SetBotInfo ¶

func (u *UserFull) SetBotInfo(value BotInfo)

SetBotInfo sets value of BotInfo conditional field.

func (*UserFull) SetCanPinMessage ¶

func (u *UserFull) SetCanPinMessage(value bool)

SetCanPinMessage sets value of CanPinMessage conditional field.

func (*UserFull) SetFolderID ¶

func (u *UserFull) SetFolderID(value int)

SetFolderID sets value of FolderID conditional field.

func (*UserFull) SetHasScheduled ¶

func (u *UserFull) SetHasScheduled(value bool)

SetHasScheduled sets value of HasScheduled conditional field.

func (*UserFull) SetPhoneCallsAvailable ¶

func (u *UserFull) SetPhoneCallsAvailable(value bool)

SetPhoneCallsAvailable sets value of PhoneCallsAvailable conditional field.

func (*UserFull) SetPhoneCallsPrivate ¶

func (u *UserFull) SetPhoneCallsPrivate(value bool)

SetPhoneCallsPrivate sets value of PhoneCallsPrivate conditional field.

func (*UserFull) SetPinnedMsgID ¶

func (u *UserFull) SetPinnedMsgID(value int)

SetPinnedMsgID sets value of PinnedMsgID conditional field.

func (*UserFull) SetProfilePhoto ¶

func (u *UserFull) SetProfilePhoto(value PhotoClass)

SetProfilePhoto sets value of ProfilePhoto conditional field.

func (*UserFull) SetVideoCallsAvailable ¶

func (u *UserFull) SetVideoCallsAvailable(value bool)

SetVideoCallsAvailable sets value of VideoCallsAvailable conditional field.

type UserProfilePhoto ¶

type UserProfilePhoto struct {
	// Flags field of UserProfilePhoto.
	Flags bin.Fields
	// HasVideo field of UserProfilePhoto.
	HasVideo bool
	// PhotoID field of UserProfilePhoto.
	PhotoID int64
	// PhotoSmall field of UserProfilePhoto.
	PhotoSmall FileLocationToBeDeprecated
	// PhotoBig field of UserProfilePhoto.
	PhotoBig FileLocationToBeDeprecated
	// DCID field of UserProfilePhoto.
	DCID int
}

UserProfilePhoto represents TL type `userProfilePhoto#69d3ab26`.

func (*UserProfilePhoto) Decode ¶

func (u *UserProfilePhoto) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UserProfilePhoto) Encode ¶

func (u *UserProfilePhoto) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*UserProfilePhoto) SetHasVideo ¶

func (u *UserProfilePhoto) SetHasVideo(value bool)

SetHasVideo sets value of HasVideo conditional field.

type UserProfilePhotoBox ¶

type UserProfilePhotoBox struct {
	UserProfilePhoto UserProfilePhotoClass
}

UserProfilePhoto boxes the UserProfilePhotoClass providing a helper.

func (*UserProfilePhotoBox) Decode ¶

func (b *UserProfilePhotoBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for UserProfilePhotoBox.

func (*UserProfilePhotoBox) Encode ¶

func (b *UserProfilePhotoBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for UserProfilePhotoBox.

type UserProfilePhotoClass ¶

type UserProfilePhotoClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

UserProfilePhotoClass represents UserProfilePhoto generic type.

Example:

g, err := DecodeUserProfilePhoto(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *UserProfilePhotoEmpty: // userProfilePhotoEmpty#4f11bae1
case *UserProfilePhoto: // userProfilePhoto#69d3ab26
default: panic(v)
}

func DecodeUserProfilePhoto ¶

func DecodeUserProfilePhoto(buf *bin.Buffer) (UserProfilePhotoClass, error)

DecodeUserProfilePhoto implements binary de-serialization for UserProfilePhotoClass.

type UserProfilePhotoEmpty ¶

type UserProfilePhotoEmpty struct {
}

UserProfilePhotoEmpty represents TL type `userProfilePhotoEmpty#4f11bae1`.

func (*UserProfilePhotoEmpty) Decode ¶

func (u *UserProfilePhotoEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UserProfilePhotoEmpty) Encode ¶

func (u *UserProfilePhotoEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UserStatusBox ¶

type UserStatusBox struct {
	UserStatus UserStatusClass
}

UserStatus boxes the UserStatusClass providing a helper.

func (*UserStatusBox) Decode ¶

func (b *UserStatusBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for UserStatusBox.

func (*UserStatusBox) Encode ¶

func (b *UserStatusBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for UserStatusBox.

type UserStatusClass ¶

type UserStatusClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

UserStatusClass represents UserStatus generic type.

Example:

g, err := DecodeUserStatus(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *UserStatusEmpty: // userStatusEmpty#9d05049
case *UserStatusOnline: // userStatusOnline#edb93949
case *UserStatusOffline: // userStatusOffline#8c703f
case *UserStatusRecently: // userStatusRecently#e26f42f1
case *UserStatusLastWeek: // userStatusLastWeek#7bf09fc
case *UserStatusLastMonth: // userStatusLastMonth#77ebc742
default: panic(v)
}

func DecodeUserStatus ¶

func DecodeUserStatus(buf *bin.Buffer) (UserStatusClass, error)

DecodeUserStatus implements binary de-serialization for UserStatusClass.

type UserStatusEmpty ¶

type UserStatusEmpty struct {
}

UserStatusEmpty represents TL type `userStatusEmpty#9d05049`.

func (*UserStatusEmpty) Decode ¶

func (u *UserStatusEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UserStatusEmpty) Encode ¶

func (u *UserStatusEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UserStatusLastMonth ¶

type UserStatusLastMonth struct {
}

UserStatusLastMonth represents TL type `userStatusLastMonth#77ebc742`.

func (*UserStatusLastMonth) Decode ¶

func (u *UserStatusLastMonth) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UserStatusLastMonth) Encode ¶

func (u *UserStatusLastMonth) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UserStatusLastWeek ¶

type UserStatusLastWeek struct {
}

UserStatusLastWeek represents TL type `userStatusLastWeek#7bf09fc`.

func (*UserStatusLastWeek) Decode ¶

func (u *UserStatusLastWeek) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UserStatusLastWeek) Encode ¶

func (u *UserStatusLastWeek) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UserStatusOffline ¶

type UserStatusOffline struct {
	// WasOnline field of UserStatusOffline.
	WasOnline int
}

UserStatusOffline represents TL type `userStatusOffline#8c703f`.

func (*UserStatusOffline) Decode ¶

func (u *UserStatusOffline) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UserStatusOffline) Encode ¶

func (u *UserStatusOffline) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UserStatusOnline ¶

type UserStatusOnline struct {
	// Expires field of UserStatusOnline.
	Expires int
}

UserStatusOnline represents TL type `userStatusOnline#edb93949`.

func (*UserStatusOnline) Decode ¶

func (u *UserStatusOnline) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UserStatusOnline) Encode ¶

func (u *UserStatusOnline) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UserStatusRecently ¶

type UserStatusRecently struct {
}

UserStatusRecently represents TL type `userStatusRecently#e26f42f1`.

func (*UserStatusRecently) Decode ¶

func (u *UserStatusRecently) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UserStatusRecently) Encode ¶

func (u *UserStatusRecently) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UsersGetFullUserRequest ¶

type UsersGetFullUserRequest struct {
	// ID field of UsersGetFullUserRequest.
	ID InputUserClass
}

UsersGetFullUserRequest represents TL type `users.getFullUser#ca30a5b1`.

func (*UsersGetFullUserRequest) Decode ¶

func (g *UsersGetFullUserRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UsersGetFullUserRequest) Encode ¶

func (g *UsersGetFullUserRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UsersGetUsersRequest ¶

type UsersGetUsersRequest struct {
	// ID field of UsersGetUsersRequest.
	ID []InputUserClass
}

UsersGetUsersRequest represents TL type `users.getUsers#d91a548`.

func (*UsersGetUsersRequest) Decode ¶

func (g *UsersGetUsersRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*UsersGetUsersRequest) Encode ¶

func (g *UsersGetUsersRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type UsersSetSecureValueErrorsRequest ¶

type UsersSetSecureValueErrorsRequest struct {
	// ID field of UsersSetSecureValueErrorsRequest.
	ID InputUserClass
	// Errors field of UsersSetSecureValueErrorsRequest.
	Errors []SecureValueErrorClass
}

UsersSetSecureValueErrorsRequest represents TL type `users.setSecureValueErrors#90c894b5`.

func (*UsersSetSecureValueErrorsRequest) Decode ¶

Decode implements bin.Decoder.

func (*UsersSetSecureValueErrorsRequest) Encode ¶

Encode implements bin.Encoder.

type VideoSize ¶

type VideoSize struct {
	// Flags field of VideoSize.
	Flags bin.Fields
	// Type field of VideoSize.
	Type string
	// Location field of VideoSize.
	Location FileLocationToBeDeprecated
	// W field of VideoSize.
	W int
	// H field of VideoSize.
	H int
	// Size field of VideoSize.
	Size int
	// VideoStartTs field of VideoSize.
	//
	// Use SetVideoStartTs and GetVideoStartTs helpers.
	VideoStartTs float64
}

VideoSize represents TL type `videoSize#e831c556`.

func (*VideoSize) Decode ¶

func (v *VideoSize) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*VideoSize) Encode ¶

func (v *VideoSize) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*VideoSize) GetVideoStartTs ¶

func (v *VideoSize) GetVideoStartTs() (value float64, ok bool)

GetVideoStartTs returns value of VideoStartTs conditional field and boolean which is true if field was set.

func (*VideoSize) SetVideoStartTs ¶

func (v *VideoSize) SetVideoStartTs(value float64)

SetVideoStartTs sets value of VideoStartTs conditional field.

type WallPaper ¶

type WallPaper struct {
	// ID field of WallPaper.
	ID int64
	// Flags field of WallPaper.
	Flags bin.Fields
	// Creator field of WallPaper.
	Creator bool
	// Default field of WallPaper.
	Default bool
	// Pattern field of WallPaper.
	Pattern bool
	// Dark field of WallPaper.
	Dark bool
	// AccessHash field of WallPaper.
	AccessHash int64
	// Slug field of WallPaper.
	Slug string
	// Document field of WallPaper.
	Document DocumentClass
	// Settings field of WallPaper.
	//
	// Use SetSettings and GetSettings helpers.
	Settings WallPaperSettings
}

WallPaper represents TL type `wallPaper#a437c3ed`.

func (*WallPaper) Decode ¶

func (w *WallPaper) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*WallPaper) Encode ¶

func (w *WallPaper) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*WallPaper) GetSettings ¶

func (w *WallPaper) GetSettings() (value WallPaperSettings, ok bool)

GetSettings returns value of Settings conditional field and boolean which is true if field was set.

func (*WallPaper) SetCreator ¶

func (w *WallPaper) SetCreator(value bool)

SetCreator sets value of Creator conditional field.

func (*WallPaper) SetDark ¶

func (w *WallPaper) SetDark(value bool)

SetDark sets value of Dark conditional field.

func (*WallPaper) SetDefault ¶

func (w *WallPaper) SetDefault(value bool)

SetDefault sets value of Default conditional field.

func (*WallPaper) SetPattern ¶

func (w *WallPaper) SetPattern(value bool)

SetPattern sets value of Pattern conditional field.

func (*WallPaper) SetSettings ¶

func (w *WallPaper) SetSettings(value WallPaperSettings)

SetSettings sets value of Settings conditional field.

type WallPaperBox ¶

type WallPaperBox struct {
	WallPaper WallPaperClass
}

WallPaper boxes the WallPaperClass providing a helper.

func (*WallPaperBox) Decode ¶

func (b *WallPaperBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for WallPaperBox.

func (*WallPaperBox) Encode ¶

func (b *WallPaperBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for WallPaperBox.

type WallPaperClass ¶

type WallPaperClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

WallPaperClass represents WallPaper generic type.

Example:

g, err := DecodeWallPaper(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *WallPaper: // wallPaper#a437c3ed
case *WallPaperNoFile: // wallPaperNoFile#8af40b25
default: panic(v)
}

func DecodeWallPaper ¶

func DecodeWallPaper(buf *bin.Buffer) (WallPaperClass, error)

DecodeWallPaper implements binary de-serialization for WallPaperClass.

type WallPaperNoFile ¶

type WallPaperNoFile struct {
	// Flags field of WallPaperNoFile.
	Flags bin.Fields
	// Default field of WallPaperNoFile.
	Default bool
	// Dark field of WallPaperNoFile.
	Dark bool
	// Settings field of WallPaperNoFile.
	//
	// Use SetSettings and GetSettings helpers.
	Settings WallPaperSettings
}

WallPaperNoFile represents TL type `wallPaperNoFile#8af40b25`.

func (*WallPaperNoFile) Decode ¶

func (w *WallPaperNoFile) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*WallPaperNoFile) Encode ¶

func (w *WallPaperNoFile) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*WallPaperNoFile) GetSettings ¶

func (w *WallPaperNoFile) GetSettings() (value WallPaperSettings, ok bool)

GetSettings returns value of Settings conditional field and boolean which is true if field was set.

func (*WallPaperNoFile) SetDark ¶

func (w *WallPaperNoFile) SetDark(value bool)

SetDark sets value of Dark conditional field.

func (*WallPaperNoFile) SetDefault ¶

func (w *WallPaperNoFile) SetDefault(value bool)

SetDefault sets value of Default conditional field.

func (*WallPaperNoFile) SetSettings ¶

func (w *WallPaperNoFile) SetSettings(value WallPaperSettings)

SetSettings sets value of Settings conditional field.

type WallPaperSettings ¶

type WallPaperSettings struct {
	// Flags field of WallPaperSettings.
	Flags bin.Fields
	// Blur field of WallPaperSettings.
	Blur bool
	// Motion field of WallPaperSettings.
	Motion bool
	// BackgroundColor field of WallPaperSettings.
	//
	// Use SetBackgroundColor and GetBackgroundColor helpers.
	BackgroundColor int
	// SecondBackgroundColor field of WallPaperSettings.
	//
	// Use SetSecondBackgroundColor and GetSecondBackgroundColor helpers.
	SecondBackgroundColor int
	// Intensity field of WallPaperSettings.
	//
	// Use SetIntensity and GetIntensity helpers.
	Intensity int
	// Rotation field of WallPaperSettings.
	//
	// Use SetRotation and GetRotation helpers.
	Rotation int
}

WallPaperSettings represents TL type `wallPaperSettings#5086cf8`.

func (*WallPaperSettings) Decode ¶

func (w *WallPaperSettings) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*WallPaperSettings) Encode ¶

func (w *WallPaperSettings) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*WallPaperSettings) GetBackgroundColor ¶

func (w *WallPaperSettings) GetBackgroundColor() (value int, ok bool)

GetBackgroundColor returns value of BackgroundColor conditional field and boolean which is true if field was set.

func (*WallPaperSettings) GetIntensity ¶

func (w *WallPaperSettings) GetIntensity() (value int, ok bool)

GetIntensity returns value of Intensity conditional field and boolean which is true if field was set.

func (*WallPaperSettings) GetRotation ¶

func (w *WallPaperSettings) GetRotation() (value int, ok bool)

GetRotation returns value of Rotation conditional field and boolean which is true if field was set.

func (*WallPaperSettings) GetSecondBackgroundColor ¶

func (w *WallPaperSettings) GetSecondBackgroundColor() (value int, ok bool)

GetSecondBackgroundColor returns value of SecondBackgroundColor conditional field and boolean which is true if field was set.

func (*WallPaperSettings) SetBackgroundColor ¶

func (w *WallPaperSettings) SetBackgroundColor(value int)

SetBackgroundColor sets value of BackgroundColor conditional field.

func (*WallPaperSettings) SetBlur ¶

func (w *WallPaperSettings) SetBlur(value bool)

SetBlur sets value of Blur conditional field.

func (*WallPaperSettings) SetIntensity ¶

func (w *WallPaperSettings) SetIntensity(value int)

SetIntensity sets value of Intensity conditional field.

func (*WallPaperSettings) SetMotion ¶

func (w *WallPaperSettings) SetMotion(value bool)

SetMotion sets value of Motion conditional field.

func (*WallPaperSettings) SetRotation ¶

func (w *WallPaperSettings) SetRotation(value int)

SetRotation sets value of Rotation conditional field.

func (*WallPaperSettings) SetSecondBackgroundColor ¶

func (w *WallPaperSettings) SetSecondBackgroundColor(value int)

SetSecondBackgroundColor sets value of SecondBackgroundColor conditional field.

type WebAuthorization ¶

type WebAuthorization struct {
	// Hash field of WebAuthorization.
	Hash int64
	// BotID field of WebAuthorization.
	BotID int
	// Domain field of WebAuthorization.
	Domain string
	// Browser field of WebAuthorization.
	Browser string
	// Platform field of WebAuthorization.
	Platform string
	// DateCreated field of WebAuthorization.
	DateCreated int
	// DateActive field of WebAuthorization.
	DateActive int
	// IP field of WebAuthorization.
	IP string
	// Region field of WebAuthorization.
	Region string
}

WebAuthorization represents TL type `webAuthorization#cac943f2`.

func (*WebAuthorization) Decode ¶

func (w *WebAuthorization) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*WebAuthorization) Encode ¶

func (w *WebAuthorization) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type WebDocument ¶

type WebDocument struct {
	// URL field of WebDocument.
	URL string
	// AccessHash field of WebDocument.
	AccessHash int64
	// Size field of WebDocument.
	Size int
	// MimeType field of WebDocument.
	MimeType string
	// Attributes field of WebDocument.
	Attributes []DocumentAttributeClass
}

WebDocument represents TL type `webDocument#1c570ed1`.

func (*WebDocument) Decode ¶

func (w *WebDocument) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*WebDocument) Encode ¶

func (w *WebDocument) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type WebDocumentBox ¶

type WebDocumentBox struct {
	WebDocument WebDocumentClass
}

WebDocument boxes the WebDocumentClass providing a helper.

func (*WebDocumentBox) Decode ¶

func (b *WebDocumentBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for WebDocumentBox.

func (*WebDocumentBox) Encode ¶

func (b *WebDocumentBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for WebDocumentBox.

type WebDocumentClass ¶

type WebDocumentClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

WebDocumentClass represents WebDocument generic type.

Example:

g, err := DecodeWebDocument(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *WebDocument: // webDocument#1c570ed1
case *WebDocumentNoProxy: // webDocumentNoProxy#f9c8bcc6
default: panic(v)
}

func DecodeWebDocument ¶

func DecodeWebDocument(buf *bin.Buffer) (WebDocumentClass, error)

DecodeWebDocument implements binary de-serialization for WebDocumentClass.

type WebDocumentNoProxy ¶

type WebDocumentNoProxy struct {
	// URL field of WebDocumentNoProxy.
	URL string
	// Size field of WebDocumentNoProxy.
	Size int
	// MimeType field of WebDocumentNoProxy.
	MimeType string
	// Attributes field of WebDocumentNoProxy.
	Attributes []DocumentAttributeClass
}

WebDocumentNoProxy represents TL type `webDocumentNoProxy#f9c8bcc6`.

func (*WebDocumentNoProxy) Decode ¶

func (w *WebDocumentNoProxy) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*WebDocumentNoProxy) Encode ¶

func (w *WebDocumentNoProxy) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type WebPage ¶

type WebPage struct {
	// Flags field of WebPage.
	Flags bin.Fields
	// ID field of WebPage.
	ID int64
	// URL field of WebPage.
	URL string
	// DisplayURL field of WebPage.
	DisplayURL string
	// Hash field of WebPage.
	Hash int
	// Type field of WebPage.
	//
	// Use SetType and GetType helpers.
	Type string
	// SiteName field of WebPage.
	//
	// Use SetSiteName and GetSiteName helpers.
	SiteName string
	// Title field of WebPage.
	//
	// Use SetTitle and GetTitle helpers.
	Title string
	// Description field of WebPage.
	//
	// Use SetDescription and GetDescription helpers.
	Description string
	// Photo field of WebPage.
	//
	// Use SetPhoto and GetPhoto helpers.
	Photo PhotoClass
	// EmbedURL field of WebPage.
	//
	// Use SetEmbedURL and GetEmbedURL helpers.
	EmbedURL string
	// EmbedType field of WebPage.
	//
	// Use SetEmbedType and GetEmbedType helpers.
	EmbedType string
	// EmbedWidth field of WebPage.
	//
	// Use SetEmbedWidth and GetEmbedWidth helpers.
	EmbedWidth int
	// EmbedHeight field of WebPage.
	//
	// Use SetEmbedHeight and GetEmbedHeight helpers.
	EmbedHeight int
	// Duration field of WebPage.
	//
	// Use SetDuration and GetDuration helpers.
	Duration int
	// Author field of WebPage.
	//
	// Use SetAuthor and GetAuthor helpers.
	Author string
	// Document field of WebPage.
	//
	// Use SetDocument and GetDocument helpers.
	Document DocumentClass
	// CachedPage field of WebPage.
	//
	// Use SetCachedPage and GetCachedPage helpers.
	CachedPage Page
	// Attributes field of WebPage.
	//
	// Use SetAttributes and GetAttributes helpers.
	Attributes []WebPageAttributeTheme
}

WebPage represents TL type `webPage#e89c45b2`.

func (*WebPage) Decode ¶

func (w *WebPage) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*WebPage) Encode ¶

func (w *WebPage) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*WebPage) GetAttributes ¶

func (w *WebPage) GetAttributes() (value []WebPageAttributeTheme, ok bool)

GetAttributes returns value of Attributes conditional field and boolean which is true if field was set.

func (*WebPage) GetAuthor ¶

func (w *WebPage) GetAuthor() (value string, ok bool)

GetAuthor returns value of Author conditional field and boolean which is true if field was set.

func (*WebPage) GetCachedPage ¶

func (w *WebPage) GetCachedPage() (value Page, ok bool)

GetCachedPage returns value of CachedPage conditional field and boolean which is true if field was set.

func (*WebPage) GetDescription ¶

func (w *WebPage) GetDescription() (value string, ok bool)

GetDescription returns value of Description conditional field and boolean which is true if field was set.

func (*WebPage) GetDocument ¶

func (w *WebPage) GetDocument() (value DocumentClass, ok bool)

GetDocument returns value of Document conditional field and boolean which is true if field was set.

func (*WebPage) GetDuration ¶

func (w *WebPage) GetDuration() (value int, ok bool)

GetDuration returns value of Duration conditional field and boolean which is true if field was set.

func (*WebPage) GetEmbedHeight ¶

func (w *WebPage) GetEmbedHeight() (value int, ok bool)

GetEmbedHeight returns value of EmbedHeight conditional field and boolean which is true if field was set.

func (*WebPage) GetEmbedType ¶

func (w *WebPage) GetEmbedType() (value string, ok bool)

GetEmbedType returns value of EmbedType conditional field and boolean which is true if field was set.

func (*WebPage) GetEmbedURL ¶

func (w *WebPage) GetEmbedURL() (value string, ok bool)

GetEmbedURL returns value of EmbedURL conditional field and boolean which is true if field was set.

func (*WebPage) GetEmbedWidth ¶

func (w *WebPage) GetEmbedWidth() (value int, ok bool)

GetEmbedWidth returns value of EmbedWidth conditional field and boolean which is true if field was set.

func (*WebPage) GetPhoto ¶

func (w *WebPage) GetPhoto() (value PhotoClass, ok bool)

GetPhoto returns value of Photo conditional field and boolean which is true if field was set.

func (*WebPage) GetSiteName ¶

func (w *WebPage) GetSiteName() (value string, ok bool)

GetSiteName returns value of SiteName conditional field and boolean which is true if field was set.

func (*WebPage) GetTitle ¶

func (w *WebPage) GetTitle() (value string, ok bool)

GetTitle returns value of Title conditional field and boolean which is true if field was set.

func (*WebPage) GetType ¶

func (w *WebPage) GetType() (value string, ok bool)

GetType returns value of Type conditional field and boolean which is true if field was set.

func (*WebPage) SetAttributes ¶

func (w *WebPage) SetAttributes(value []WebPageAttributeTheme)

SetAttributes sets value of Attributes conditional field.

func (*WebPage) SetAuthor ¶

func (w *WebPage) SetAuthor(value string)

SetAuthor sets value of Author conditional field.

func (*WebPage) SetCachedPage ¶

func (w *WebPage) SetCachedPage(value Page)

SetCachedPage sets value of CachedPage conditional field.

func (*WebPage) SetDescription ¶

func (w *WebPage) SetDescription(value string)

SetDescription sets value of Description conditional field.

func (*WebPage) SetDocument ¶

func (w *WebPage) SetDocument(value DocumentClass)

SetDocument sets value of Document conditional field.

func (*WebPage) SetDuration ¶

func (w *WebPage) SetDuration(value int)

SetDuration sets value of Duration conditional field.

func (*WebPage) SetEmbedHeight ¶

func (w *WebPage) SetEmbedHeight(value int)

SetEmbedHeight sets value of EmbedHeight conditional field.

func (*WebPage) SetEmbedType ¶

func (w *WebPage) SetEmbedType(value string)

SetEmbedType sets value of EmbedType conditional field.

func (*WebPage) SetEmbedURL ¶

func (w *WebPage) SetEmbedURL(value string)

SetEmbedURL sets value of EmbedURL conditional field.

func (*WebPage) SetEmbedWidth ¶

func (w *WebPage) SetEmbedWidth(value int)

SetEmbedWidth sets value of EmbedWidth conditional field.

func (*WebPage) SetPhoto ¶

func (w *WebPage) SetPhoto(value PhotoClass)

SetPhoto sets value of Photo conditional field.

func (*WebPage) SetSiteName ¶

func (w *WebPage) SetSiteName(value string)

SetSiteName sets value of SiteName conditional field.

func (*WebPage) SetTitle ¶

func (w *WebPage) SetTitle(value string)

SetTitle sets value of Title conditional field.

func (*WebPage) SetType ¶

func (w *WebPage) SetType(value string)

SetType sets value of Type conditional field.

type WebPageAttributeTheme ¶

type WebPageAttributeTheme struct {
	// Flags field of WebPageAttributeTheme.
	Flags bin.Fields
	// Documents field of WebPageAttributeTheme.
	//
	// Use SetDocuments and GetDocuments helpers.
	Documents []DocumentClass
	// Settings field of WebPageAttributeTheme.
	//
	// Use SetSettings and GetSettings helpers.
	Settings ThemeSettings
}

WebPageAttributeTheme represents TL type `webPageAttributeTheme#54b56617`.

func (*WebPageAttributeTheme) Decode ¶

func (w *WebPageAttributeTheme) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*WebPageAttributeTheme) Encode ¶

func (w *WebPageAttributeTheme) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*WebPageAttributeTheme) GetDocuments ¶

func (w *WebPageAttributeTheme) GetDocuments() (value []DocumentClass, ok bool)

GetDocuments returns value of Documents conditional field and boolean which is true if field was set.

func (*WebPageAttributeTheme) GetSettings ¶

func (w *WebPageAttributeTheme) GetSettings() (value ThemeSettings, ok bool)

GetSettings returns value of Settings conditional field and boolean which is true if field was set.

func (*WebPageAttributeTheme) SetDocuments ¶

func (w *WebPageAttributeTheme) SetDocuments(value []DocumentClass)

SetDocuments sets value of Documents conditional field.

func (*WebPageAttributeTheme) SetSettings ¶

func (w *WebPageAttributeTheme) SetSettings(value ThemeSettings)

SetSettings sets value of Settings conditional field.

type WebPageBox ¶

type WebPageBox struct {
	WebPage WebPageClass
}

WebPage boxes the WebPageClass providing a helper.

func (*WebPageBox) Decode ¶

func (b *WebPageBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for WebPageBox.

func (*WebPageBox) Encode ¶

func (b *WebPageBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for WebPageBox.

type WebPageClass ¶

type WebPageClass interface {
	bin.Encoder
	bin.Decoder
	// contains filtered or unexported methods
}

WebPageClass represents WebPage generic type.

Example:

g, err := DecodeWebPage(buf)
if err != nil {
    panic(err)
}
switch v := g.(type) {
case *WebPageEmpty: // webPageEmpty#eb1477e8
case *WebPagePending: // webPagePending#c586da1c
case *WebPage: // webPage#e89c45b2
case *WebPageNotModified: // webPageNotModified#7311ca11
default: panic(v)
}

func DecodeWebPage ¶

func DecodeWebPage(buf *bin.Buffer) (WebPageClass, error)

DecodeWebPage implements binary de-serialization for WebPageClass.

type WebPageEmpty ¶

type WebPageEmpty struct {
	// ID field of WebPageEmpty.
	ID int64
}

WebPageEmpty represents TL type `webPageEmpty#eb1477e8`.

func (*WebPageEmpty) Decode ¶

func (w *WebPageEmpty) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*WebPageEmpty) Encode ¶

func (w *WebPageEmpty) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

type WebPageNotModified ¶

type WebPageNotModified struct {
	// Flags field of WebPageNotModified.
	Flags bin.Fields
	// CachedPageViews field of WebPageNotModified.
	//
	// Use SetCachedPageViews and GetCachedPageViews helpers.
	CachedPageViews int
}

WebPageNotModified represents TL type `webPageNotModified#7311ca11`.

func (*WebPageNotModified) Decode ¶

func (w *WebPageNotModified) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*WebPageNotModified) Encode ¶

func (w *WebPageNotModified) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*WebPageNotModified) GetCachedPageViews ¶

func (w *WebPageNotModified) GetCachedPageViews() (value int, ok bool)

GetCachedPageViews returns value of CachedPageViews conditional field and boolean which is true if field was set.

func (*WebPageNotModified) SetCachedPageViews ¶

func (w *WebPageNotModified) SetCachedPageViews(value int)

SetCachedPageViews sets value of CachedPageViews conditional field.

type WebPagePending ¶

type WebPagePending struct {
	// ID field of WebPagePending.
	ID int64
	// Date field of WebPagePending.
	Date int
}

WebPagePending represents TL type `webPagePending#c586da1c`.

func (*WebPagePending) Decode ¶

func (w *WebPagePending) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*WebPagePending) Encode ¶

func (w *WebPagePending) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

Source Files ¶

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL