Documentation
¶
Overview ¶
Package tg contains generated types from MTProto Telegram API.
Index ¶
- Constants
- func TypesMap() map[uint32]string
- type AccountAcceptAuthorizationRequest
- type AccountAuthorizationForm
- type AccountAuthorizations
- type AccountAutoDownloadSettings
- type AccountCancelPasswordEmailRequest
- type AccountChangePhoneRequest
- type AccountCheckUsernameRequest
- type AccountConfirmPasswordEmailRequest
- type AccountConfirmPhoneRequest
- type AccountContentSettings
- type AccountCreateThemeRequest
- func (c *AccountCreateThemeRequest) Decode(b *bin.Buffer) error
- func (c *AccountCreateThemeRequest) Encode(b *bin.Buffer) error
- func (c *AccountCreateThemeRequest) GetDocument() (value InputDocumentClass, ok bool)
- func (c *AccountCreateThemeRequest) GetSettings() (value InputThemeSettings, ok bool)
- func (c *AccountCreateThemeRequest) SetDocument(value InputDocumentClass)
- func (c *AccountCreateThemeRequest) SetSettings(value InputThemeSettings)
- type AccountDaysTTL
- type AccountDeleteAccountRequest
- type AccountDeleteSecureValueRequest
- type AccountFinishTakeoutSessionRequest
- type AccountGetAccountTTLRequest
- type AccountGetAllSecureValuesRequest
- type AccountGetAuthorizationFormRequest
- type AccountGetAuthorizationsRequest
- type AccountGetAutoDownloadSettingsRequest
- type AccountGetContactSignUpNotificationRequest
- type AccountGetContentSettingsRequest
- type AccountGetGlobalPrivacySettingsRequest
- type AccountGetMultiWallPapersRequest
- type AccountGetNotifyExceptionsRequest
- func (g *AccountGetNotifyExceptionsRequest) Decode(b *bin.Buffer) error
- func (g *AccountGetNotifyExceptionsRequest) Encode(b *bin.Buffer) error
- func (g *AccountGetNotifyExceptionsRequest) GetPeer() (value InputNotifyPeerClass, ok bool)
- func (g *AccountGetNotifyExceptionsRequest) SetCompareSound(value bool)
- func (g *AccountGetNotifyExceptionsRequest) SetPeer(value InputNotifyPeerClass)
- type AccountGetNotifySettingsRequest
- type AccountGetPasswordRequest
- type AccountGetPasswordSettingsRequest
- type AccountGetPrivacyRequest
- type AccountGetSecureValueRequest
- type AccountGetThemeRequest
- type AccountGetThemesRequest
- type AccountGetTmpPasswordRequest
- type AccountGetWallPaperRequest
- type AccountGetWallPapersRequest
- type AccountGetWebAuthorizationsRequest
- type AccountInitTakeoutSessionRequest
- func (i *AccountInitTakeoutSessionRequest) Decode(b *bin.Buffer) error
- func (i *AccountInitTakeoutSessionRequest) Encode(b *bin.Buffer) error
- func (i *AccountInitTakeoutSessionRequest) GetFileMaxSize() (value int, ok bool)
- func (i *AccountInitTakeoutSessionRequest) SetContacts(value bool)
- func (i *AccountInitTakeoutSessionRequest) SetFileMaxSize(value int)
- func (i *AccountInitTakeoutSessionRequest) SetFiles(value bool)
- func (i *AccountInitTakeoutSessionRequest) SetMessageChannels(value bool)
- func (i *AccountInitTakeoutSessionRequest) SetMessageChats(value bool)
- func (i *AccountInitTakeoutSessionRequest) SetMessageMegagroups(value bool)
- func (i *AccountInitTakeoutSessionRequest) SetMessageUsers(value bool)
- type AccountInstallThemeRequest
- func (i *AccountInstallThemeRequest) Decode(b *bin.Buffer) error
- func (i *AccountInstallThemeRequest) Encode(b *bin.Buffer) error
- func (i *AccountInstallThemeRequest) GetFormat() (value string, ok bool)
- func (i *AccountInstallThemeRequest) GetTheme() (value InputThemeClass, ok bool)
- func (i *AccountInstallThemeRequest) SetDark(value bool)
- func (i *AccountInstallThemeRequest) SetFormat(value string)
- func (i *AccountInstallThemeRequest) SetTheme(value InputThemeClass)
- type AccountInstallWallPaperRequest
- type AccountPassword
- func (p *AccountPassword) Decode(b *bin.Buffer) error
- func (p *AccountPassword) Encode(b *bin.Buffer) error
- func (p *AccountPassword) GetCurrentAlgo() (value PasswordKdfAlgoClass, ok bool)
- func (p *AccountPassword) GetEmailUnconfirmedPattern() (value string, ok bool)
- func (p *AccountPassword) GetHint() (value string, ok bool)
- func (p *AccountPassword) GetSrpB() (value []byte, ok bool)
- func (p *AccountPassword) GetSrpID() (value int64, ok bool)
- func (p *AccountPassword) SetCurrentAlgo(value PasswordKdfAlgoClass)
- func (p *AccountPassword) SetEmailUnconfirmedPattern(value string)
- func (p *AccountPassword) SetHasPassword(value bool)
- func (p *AccountPassword) SetHasRecovery(value bool)
- func (p *AccountPassword) SetHasSecureValues(value bool)
- func (p *AccountPassword) SetHint(value string)
- func (p *AccountPassword) SetSrpB(value []byte)
- func (p *AccountPassword) SetSrpID(value int64)
- type AccountPasswordInputSettings
- func (p *AccountPasswordInputSettings) Decode(b *bin.Buffer) error
- func (p *AccountPasswordInputSettings) Encode(b *bin.Buffer) error
- func (p *AccountPasswordInputSettings) GetEmail() (value string, ok bool)
- func (p *AccountPasswordInputSettings) GetHint() (value string, ok bool)
- func (p *AccountPasswordInputSettings) GetNewAlgo() (value PasswordKdfAlgoClass, ok bool)
- func (p *AccountPasswordInputSettings) GetNewPasswordHash() (value []byte, ok bool)
- func (p *AccountPasswordInputSettings) GetNewSecureSettings() (value SecureSecretSettings, ok bool)
- func (p *AccountPasswordInputSettings) SetEmail(value string)
- func (p *AccountPasswordInputSettings) SetHint(value string)
- func (p *AccountPasswordInputSettings) SetNewAlgo(value PasswordKdfAlgoClass)
- func (p *AccountPasswordInputSettings) SetNewPasswordHash(value []byte)
- func (p *AccountPasswordInputSettings) SetNewSecureSettings(value SecureSecretSettings)
- type AccountPasswordSettings
- func (p *AccountPasswordSettings) Decode(b *bin.Buffer) error
- func (p *AccountPasswordSettings) Encode(b *bin.Buffer) error
- func (p *AccountPasswordSettings) GetEmail() (value string, ok bool)
- func (p *AccountPasswordSettings) GetSecureSettings() (value SecureSecretSettings, ok bool)
- func (p *AccountPasswordSettings) SetEmail(value string)
- func (p *AccountPasswordSettings) SetSecureSettings(value SecureSecretSettings)
- type AccountPrivacyRules
- type AccountRegisterDeviceRequest
- type AccountReportPeerRequest
- type AccountResendPasswordEmailRequest
- type AccountResetAuthorizationRequest
- type AccountResetNotifySettingsRequest
- type AccountResetWallPapersRequest
- type AccountResetWebAuthorizationRequest
- type AccountResetWebAuthorizationsRequest
- type AccountSaveAutoDownloadSettingsRequest
- type AccountSaveSecureValueRequest
- type AccountSaveThemeRequest
- type AccountSaveWallPaperRequest
- type AccountSendChangePhoneCodeRequest
- type AccountSendConfirmPhoneCodeRequest
- type AccountSendVerifyEmailCodeRequest
- type AccountSendVerifyPhoneCodeRequest
- type AccountSentEmailCode
- type AccountSetAccountTTLRequest
- type AccountSetContactSignUpNotificationRequest
- type AccountSetContentSettingsRequest
- type AccountSetGlobalPrivacySettingsRequest
- type AccountSetPrivacyRequest
- type AccountTakeout
- type AccountThemes
- type AccountThemesBox
- type AccountThemesClass
- type AccountThemesNotModified
- type AccountTmpPassword
- type AccountUnregisterDeviceRequest
- type AccountUpdateDeviceLockedRequest
- type AccountUpdateNotifySettingsRequest
- type AccountUpdatePasswordSettingsRequest
- type AccountUpdateProfileRequest
- func (u *AccountUpdateProfileRequest) Decode(b *bin.Buffer) error
- func (u *AccountUpdateProfileRequest) Encode(b *bin.Buffer) error
- func (u *AccountUpdateProfileRequest) GetAbout() (value string, ok bool)
- func (u *AccountUpdateProfileRequest) GetFirstName() (value string, ok bool)
- func (u *AccountUpdateProfileRequest) GetLastName() (value string, ok bool)
- func (u *AccountUpdateProfileRequest) SetAbout(value string)
- func (u *AccountUpdateProfileRequest) SetFirstName(value string)
- func (u *AccountUpdateProfileRequest) SetLastName(value string)
- type AccountUpdateStatusRequest
- type AccountUpdateThemeRequest
- func (u *AccountUpdateThemeRequest) Decode(b *bin.Buffer) error
- func (u *AccountUpdateThemeRequest) Encode(b *bin.Buffer) error
- func (u *AccountUpdateThemeRequest) GetDocument() (value InputDocumentClass, ok bool)
- func (u *AccountUpdateThemeRequest) GetSettings() (value InputThemeSettings, ok bool)
- func (u *AccountUpdateThemeRequest) GetSlug() (value string, ok bool)
- func (u *AccountUpdateThemeRequest) GetTitle() (value string, ok bool)
- func (u *AccountUpdateThemeRequest) SetDocument(value InputDocumentClass)
- func (u *AccountUpdateThemeRequest) SetSettings(value InputThemeSettings)
- func (u *AccountUpdateThemeRequest) SetSlug(value string)
- func (u *AccountUpdateThemeRequest) SetTitle(value string)
- type AccountUpdateUsernameRequest
- type AccountUploadThemeRequest
- type AccountUploadWallPaperRequest
- type AccountVerifyEmailRequest
- type AccountVerifyPhoneRequest
- type AccountWallPapers
- type AccountWallPapersBox
- type AccountWallPapersClass
- type AccountWallPapersNotModified
- type AccountWebAuthorizations
- type AuthAcceptLoginTokenRequest
- type AuthAuthorization
- type AuthAuthorizationBox
- type AuthAuthorizationClass
- type AuthAuthorizationSignUpRequired
- func (a *AuthAuthorizationSignUpRequired) Decode(b *bin.Buffer) error
- func (a *AuthAuthorizationSignUpRequired) Encode(b *bin.Buffer) error
- func (a *AuthAuthorizationSignUpRequired) GetTermsOfService() (value HelpTermsOfService, ok bool)
- func (a *AuthAuthorizationSignUpRequired) SetTermsOfService(value HelpTermsOfService)
- type AuthBindTempAuthKeyRequest
- type AuthCancelCodeRequest
- type AuthCheckPasswordRequest
- type AuthCodeTypeBox
- type AuthCodeTypeCall
- type AuthCodeTypeClass
- type AuthCodeTypeFlashCall
- type AuthCodeTypeSms
- type AuthDropTempAuthKeysRequest
- type AuthExportAuthorizationRequest
- type AuthExportLoginTokenRequest
- type AuthExportedAuthorization
- type AuthImportAuthorizationRequest
- type AuthImportBotAuthorizationRequest
- type AuthImportLoginTokenRequest
- type AuthLogOutRequest
- type AuthLoginToken
- type AuthLoginTokenBox
- type AuthLoginTokenClass
- type AuthLoginTokenMigrateTo
- type AuthLoginTokenSuccess
- type AuthPasswordRecovery
- type AuthRecoverPasswordRequest
- type AuthRequestPasswordRecoveryRequest
- type AuthResendCodeRequest
- type AuthResetAuthorizationsRequest
- type AuthSendCodeRequest
- type AuthSentCode
- func (s *AuthSentCode) Decode(b *bin.Buffer) error
- func (s *AuthSentCode) Encode(b *bin.Buffer) error
- func (s *AuthSentCode) GetNextType() (value AuthCodeTypeClass, ok bool)
- func (s *AuthSentCode) GetTimeout() (value int, ok bool)
- func (s *AuthSentCode) SetNextType(value AuthCodeTypeClass)
- func (s *AuthSentCode) SetTimeout(value int)
- type AuthSentCodeTypeApp
- type AuthSentCodeTypeBox
- type AuthSentCodeTypeCall
- type AuthSentCodeTypeClass
- type AuthSentCodeTypeFlashCall
- type AuthSentCodeTypeSms
- type AuthSignInRequest
- type AuthSignUpRequest
- type Authorization
- type AutoDownloadSettings
- func (a *AutoDownloadSettings) Decode(b *bin.Buffer) error
- func (a *AutoDownloadSettings) Encode(b *bin.Buffer) error
- func (a *AutoDownloadSettings) SetAudioPreloadNext(value bool)
- func (a *AutoDownloadSettings) SetDisabled(value bool)
- func (a *AutoDownloadSettings) SetPhonecallsLessData(value bool)
- func (a *AutoDownloadSettings) SetVideoPreloadLarge(value bool)
- type BankCardOpenUrl
- type BaseThemeArctic
- type BaseThemeBox
- type BaseThemeClass
- type BaseThemeClassic
- type BaseThemeDay
- type BaseThemeNight
- type BaseThemeTinted
- type BoolBox
- type BoolClass
- type BoolFalse
- type BoolTrue
- type BotCommand
- type BotInfo
- type BotInlineMediaResult
- func (b *BotInlineMediaResult) Decode(buf *bin.Buffer) error
- func (b *BotInlineMediaResult) Encode(buf *bin.Buffer) error
- func (b *BotInlineMediaResult) GetDescription() (value string, ok bool)
- func (b *BotInlineMediaResult) GetDocument() (value DocumentClass, ok bool)
- func (b *BotInlineMediaResult) GetPhoto() (value PhotoClass, ok bool)
- func (b *BotInlineMediaResult) GetTitle() (value string, ok bool)
- func (b *BotInlineMediaResult) SetDescription(value string)
- func (b *BotInlineMediaResult) SetDocument(value DocumentClass)
- func (b *BotInlineMediaResult) SetPhoto(value PhotoClass)
- func (b *BotInlineMediaResult) SetTitle(value string)
- type BotInlineMessageBox
- type BotInlineMessageClass
- type BotInlineMessageMediaAuto
- func (b *BotInlineMessageMediaAuto) Decode(buf *bin.Buffer) error
- func (b *BotInlineMessageMediaAuto) Encode(buf *bin.Buffer) error
- func (b *BotInlineMessageMediaAuto) GetEntities() (value []MessageEntityClass, ok bool)
- func (b *BotInlineMessageMediaAuto) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (b *BotInlineMessageMediaAuto) SetEntities(value []MessageEntityClass)
- func (b *BotInlineMessageMediaAuto) SetReplyMarkup(value ReplyMarkupClass)
- type BotInlineMessageMediaContact
- func (b *BotInlineMessageMediaContact) Decode(buf *bin.Buffer) error
- func (b *BotInlineMessageMediaContact) Encode(buf *bin.Buffer) error
- func (b *BotInlineMessageMediaContact) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (b *BotInlineMessageMediaContact) SetReplyMarkup(value ReplyMarkupClass)
- type BotInlineMessageMediaGeo
- func (b *BotInlineMessageMediaGeo) Decode(buf *bin.Buffer) error
- func (b *BotInlineMessageMediaGeo) Encode(buf *bin.Buffer) error
- func (b *BotInlineMessageMediaGeo) GetHeading() (value int, ok bool)
- func (b *BotInlineMessageMediaGeo) GetPeriod() (value int, ok bool)
- func (b *BotInlineMessageMediaGeo) GetProximityNotificationRadius() (value int, ok bool)
- func (b *BotInlineMessageMediaGeo) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (b *BotInlineMessageMediaGeo) SetHeading(value int)
- func (b *BotInlineMessageMediaGeo) SetPeriod(value int)
- func (b *BotInlineMessageMediaGeo) SetProximityNotificationRadius(value int)
- func (b *BotInlineMessageMediaGeo) SetReplyMarkup(value ReplyMarkupClass)
- type BotInlineMessageMediaVenue
- type BotInlineMessageText
- func (b *BotInlineMessageText) Decode(buf *bin.Buffer) error
- func (b *BotInlineMessageText) Encode(buf *bin.Buffer) error
- func (b *BotInlineMessageText) GetEntities() (value []MessageEntityClass, ok bool)
- func (b *BotInlineMessageText) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (b *BotInlineMessageText) SetEntities(value []MessageEntityClass)
- func (b *BotInlineMessageText) SetNoWebpage(value bool)
- func (b *BotInlineMessageText) SetReplyMarkup(value ReplyMarkupClass)
- type BotInlineResult
- func (b *BotInlineResult) Decode(buf *bin.Buffer) error
- func (b *BotInlineResult) Encode(buf *bin.Buffer) error
- func (b *BotInlineResult) GetContent() (value WebDocumentClass, ok bool)
- func (b *BotInlineResult) GetDescription() (value string, ok bool)
- func (b *BotInlineResult) GetThumb() (value WebDocumentClass, ok bool)
- func (b *BotInlineResult) GetTitle() (value string, ok bool)
- func (b *BotInlineResult) GetURL() (value string, ok bool)
- func (b *BotInlineResult) SetContent(value WebDocumentClass)
- func (b *BotInlineResult) SetDescription(value string)
- func (b *BotInlineResult) SetThumb(value WebDocumentClass)
- func (b *BotInlineResult) SetTitle(value string)
- func (b *BotInlineResult) SetURL(value string)
- type BotInlineResultBox
- type BotInlineResultClass
- type BotsAnswerWebhookJSONQueryRequest
- type BotsSendCustomRequestRequest
- type BotsSetBotCommandsRequest
- type CdnConfig
- type CdnPublicKey
- type Channel
- func (c *Channel) Decode(b *bin.Buffer) error
- func (c *Channel) Encode(b *bin.Buffer) error
- func (c *Channel) GetAccessHash() (value int64, ok bool)
- func (c *Channel) GetAdminRights() (value ChatAdminRights, ok bool)
- func (c *Channel) GetBannedRights() (value ChatBannedRights, ok bool)
- func (c *Channel) GetDefaultBannedRights() (value ChatBannedRights, ok bool)
- func (c *Channel) GetParticipantsCount() (value int, ok bool)
- func (c *Channel) GetRestrictionReason() (value []RestrictionReason, ok bool)
- func (c *Channel) GetUsername() (value string, ok bool)
- func (c *Channel) SetAccessHash(value int64)
- func (c *Channel) SetAdminRights(value ChatAdminRights)
- func (c *Channel) SetBannedRights(value ChatBannedRights)
- func (c *Channel) SetBroadcast(value bool)
- func (c *Channel) SetCallActive(value bool)
- func (c *Channel) SetCreator(value bool)
- func (c *Channel) SetDefaultBannedRights(value ChatBannedRights)
- func (c *Channel) SetHasGeo(value bool)
- func (c *Channel) SetHasLink(value bool)
- func (c *Channel) SetLeft(value bool)
- func (c *Channel) SetMegagroup(value bool)
- func (c *Channel) SetMin(value bool)
- func (c *Channel) SetParticipantsCount(value int)
- func (c *Channel) SetRestricted(value bool)
- func (c *Channel) SetRestrictionReason(value []RestrictionReason)
- func (c *Channel) SetScam(value bool)
- func (c *Channel) SetSignatures(value bool)
- func (c *Channel) SetSlowmodeEnabled(value bool)
- func (c *Channel) SetUsername(value string)
- func (c *Channel) SetVerified(value bool)
- type ChannelAdminLogEvent
- type ChannelAdminLogEventActionBox
- type ChannelAdminLogEventActionChangeAbout
- type ChannelAdminLogEventActionChangeLinkedChat
- type ChannelAdminLogEventActionChangeLocation
- type ChannelAdminLogEventActionChangePhoto
- type ChannelAdminLogEventActionChangeStickerSet
- type ChannelAdminLogEventActionChangeTitle
- type ChannelAdminLogEventActionChangeUsername
- type ChannelAdminLogEventActionClass
- type ChannelAdminLogEventActionDefaultBannedRights
- type ChannelAdminLogEventActionDeleteMessage
- type ChannelAdminLogEventActionEditMessage
- type ChannelAdminLogEventActionParticipantInvite
- type ChannelAdminLogEventActionParticipantJoin
- type ChannelAdminLogEventActionParticipantLeave
- type ChannelAdminLogEventActionParticipantToggleAdmin
- type ChannelAdminLogEventActionParticipantToggleBan
- type ChannelAdminLogEventActionStopPoll
- type ChannelAdminLogEventActionToggleInvites
- type ChannelAdminLogEventActionTogglePreHistoryHidden
- type ChannelAdminLogEventActionToggleSignatures
- type ChannelAdminLogEventActionToggleSlowMode
- type ChannelAdminLogEventActionUpdatePinned
- type ChannelAdminLogEventsFilter
- func (c *ChannelAdminLogEventsFilter) Decode(b *bin.Buffer) error
- func (c *ChannelAdminLogEventsFilter) Encode(b *bin.Buffer) error
- func (c *ChannelAdminLogEventsFilter) SetBan(value bool)
- func (c *ChannelAdminLogEventsFilter) SetDelete(value bool)
- func (c *ChannelAdminLogEventsFilter) SetDemote(value bool)
- func (c *ChannelAdminLogEventsFilter) SetEdit(value bool)
- func (c *ChannelAdminLogEventsFilter) SetInfo(value bool)
- func (c *ChannelAdminLogEventsFilter) SetInvite(value bool)
- func (c *ChannelAdminLogEventsFilter) SetJoin(value bool)
- func (c *ChannelAdminLogEventsFilter) SetKick(value bool)
- func (c *ChannelAdminLogEventsFilter) SetLeave(value bool)
- func (c *ChannelAdminLogEventsFilter) SetPinned(value bool)
- func (c *ChannelAdminLogEventsFilter) SetPromote(value bool)
- func (c *ChannelAdminLogEventsFilter) SetSettings(value bool)
- func (c *ChannelAdminLogEventsFilter) SetUnban(value bool)
- func (c *ChannelAdminLogEventsFilter) SetUnkick(value bool)
- type ChannelForbidden
- func (c *ChannelForbidden) Decode(b *bin.Buffer) error
- func (c *ChannelForbidden) Encode(b *bin.Buffer) error
- func (c *ChannelForbidden) GetUntilDate() (value int, ok bool)
- func (c *ChannelForbidden) SetBroadcast(value bool)
- func (c *ChannelForbidden) SetMegagroup(value bool)
- func (c *ChannelForbidden) SetUntilDate(value int)
- type ChannelFull
- func (c *ChannelFull) Decode(b *bin.Buffer) error
- func (c *ChannelFull) Encode(b *bin.Buffer) error
- func (c *ChannelFull) GetAdminsCount() (value int, ok bool)
- func (c *ChannelFull) GetAvailableMinID() (value int, ok bool)
- func (c *ChannelFull) GetBannedCount() (value int, ok bool)
- func (c *ChannelFull) GetFolderID() (value int, ok bool)
- func (c *ChannelFull) GetKickedCount() (value int, ok bool)
- func (c *ChannelFull) GetLinkedChatID() (value int, ok bool)
- func (c *ChannelFull) GetLocation() (value ChannelLocationClass, ok bool)
- func (c *ChannelFull) GetMigratedFromChatID() (value int, ok bool)
- func (c *ChannelFull) GetMigratedFromMaxID() (value int, ok bool)
- func (c *ChannelFull) GetOnlineCount() (value int, ok bool)
- func (c *ChannelFull) GetParticipantsCount() (value int, ok bool)
- func (c *ChannelFull) GetPinnedMsgID() (value int, ok bool)
- func (c *ChannelFull) GetSlowmodeNextSendDate() (value int, ok bool)
- func (c *ChannelFull) GetSlowmodeSeconds() (value int, ok bool)
- func (c *ChannelFull) GetStatsDC() (value int, ok bool)
- func (c *ChannelFull) GetStickerset() (value StickerSet, ok bool)
- func (c *ChannelFull) SetAdminsCount(value int)
- func (c *ChannelFull) SetAvailableMinID(value int)
- func (c *ChannelFull) SetBannedCount(value int)
- func (c *ChannelFull) SetBlocked(value bool)
- func (c *ChannelFull) SetCanSetLocation(value bool)
- func (c *ChannelFull) SetCanSetStickers(value bool)
- func (c *ChannelFull) SetCanSetUsername(value bool)
- func (c *ChannelFull) SetCanViewParticipants(value bool)
- func (c *ChannelFull) SetCanViewStats(value bool)
- func (c *ChannelFull) SetFolderID(value int)
- func (c *ChannelFull) SetHasScheduled(value bool)
- func (c *ChannelFull) SetHiddenPrehistory(value bool)
- func (c *ChannelFull) SetKickedCount(value int)
- func (c *ChannelFull) SetLinkedChatID(value int)
- func (c *ChannelFull) SetLocation(value ChannelLocationClass)
- func (c *ChannelFull) SetMigratedFromChatID(value int)
- func (c *ChannelFull) SetMigratedFromMaxID(value int)
- func (c *ChannelFull) SetOnlineCount(value int)
- func (c *ChannelFull) SetParticipantsCount(value int)
- func (c *ChannelFull) SetPinnedMsgID(value int)
- func (c *ChannelFull) SetSlowmodeNextSendDate(value int)
- func (c *ChannelFull) SetSlowmodeSeconds(value int)
- func (c *ChannelFull) SetStatsDC(value int)
- func (c *ChannelFull) SetStickerset(value StickerSet)
- type ChannelLocation
- type ChannelLocationBox
- type ChannelLocationClass
- type ChannelLocationEmpty
- type ChannelMessagesFilter
- type ChannelMessagesFilterBox
- type ChannelMessagesFilterClass
- type ChannelMessagesFilterEmpty
- type ChannelParticipant
- type ChannelParticipantAdmin
- func (c *ChannelParticipantAdmin) Decode(b *bin.Buffer) error
- func (c *ChannelParticipantAdmin) Encode(b *bin.Buffer) error
- func (c *ChannelParticipantAdmin) GetInviterID() (value int, ok bool)
- func (c *ChannelParticipantAdmin) GetRank() (value string, ok bool)
- func (c *ChannelParticipantAdmin) SetCanEdit(value bool)
- func (c *ChannelParticipantAdmin) SetInviterID(value int)
- func (c *ChannelParticipantAdmin) SetRank(value string)
- func (c *ChannelParticipantAdmin) SetSelf(value bool)
- type ChannelParticipantBanned
- type ChannelParticipantBox
- type ChannelParticipantClass
- type ChannelParticipantCreator
- type ChannelParticipantLeft
- type ChannelParticipantSelf
- type ChannelParticipantsAdmins
- type ChannelParticipantsBanned
- type ChannelParticipantsBots
- type ChannelParticipantsContacts
- type ChannelParticipantsFilterBox
- type ChannelParticipantsFilterClass
- type ChannelParticipantsKicked
- type ChannelParticipantsMentions
- func (c *ChannelParticipantsMentions) Decode(b *bin.Buffer) error
- func (c *ChannelParticipantsMentions) Encode(b *bin.Buffer) error
- func (c *ChannelParticipantsMentions) GetQ() (value string, ok bool)
- func (c *ChannelParticipantsMentions) GetTopMsgID() (value int, ok bool)
- func (c *ChannelParticipantsMentions) SetQ(value string)
- func (c *ChannelParticipantsMentions) SetTopMsgID(value int)
- type ChannelParticipantsRecent
- type ChannelParticipantsSearch
- type ChannelsAdminLogResults
- type ChannelsChannelParticipant
- type ChannelsChannelParticipants
- type ChannelsChannelParticipantsBox
- type ChannelsChannelParticipantsClass
- type ChannelsChannelParticipantsNotModified
- type ChannelsCheckUsernameRequest
- type ChannelsCreateChannelRequest
- func (c *ChannelsCreateChannelRequest) Decode(b *bin.Buffer) error
- func (c *ChannelsCreateChannelRequest) Encode(b *bin.Buffer) error
- func (c *ChannelsCreateChannelRequest) GetAddress() (value string, ok bool)
- func (c *ChannelsCreateChannelRequest) GetGeoPoint() (value InputGeoPointClass, ok bool)
- func (c *ChannelsCreateChannelRequest) SetAddress(value string)
- func (c *ChannelsCreateChannelRequest) SetBroadcast(value bool)
- func (c *ChannelsCreateChannelRequest) SetGeoPoint(value InputGeoPointClass)
- func (c *ChannelsCreateChannelRequest) SetMegagroup(value bool)
- type ChannelsDeleteChannelRequest
- type ChannelsDeleteHistoryRequest
- type ChannelsDeleteMessagesRequest
- type ChannelsDeleteUserHistoryRequest
- type ChannelsEditAdminRequest
- type ChannelsEditBannedRequest
- type ChannelsEditCreatorRequest
- type ChannelsEditLocationRequest
- type ChannelsEditPhotoRequest
- type ChannelsEditTitleRequest
- type ChannelsExportMessageLinkRequest
- type ChannelsGetAdminLogRequest
- func (g *ChannelsGetAdminLogRequest) Decode(b *bin.Buffer) error
- func (g *ChannelsGetAdminLogRequest) Encode(b *bin.Buffer) error
- func (g *ChannelsGetAdminLogRequest) GetAdmins() (value []InputUserClass, ok bool)
- func (g *ChannelsGetAdminLogRequest) GetEventsFilter() (value ChannelAdminLogEventsFilter, ok bool)
- func (g *ChannelsGetAdminLogRequest) SetAdmins(value []InputUserClass)
- func (g *ChannelsGetAdminLogRequest) SetEventsFilter(value ChannelAdminLogEventsFilter)
- type ChannelsGetAdminedPublicChannelsRequest
- func (g *ChannelsGetAdminedPublicChannelsRequest) Decode(b *bin.Buffer) error
- func (g *ChannelsGetAdminedPublicChannelsRequest) Encode(b *bin.Buffer) error
- func (g *ChannelsGetAdminedPublicChannelsRequest) SetByLocation(value bool)
- func (g *ChannelsGetAdminedPublicChannelsRequest) SetCheckLimit(value bool)
- type ChannelsGetChannelsRequest
- type ChannelsGetFullChannelRequest
- type ChannelsGetGroupsForDiscussionRequest
- type ChannelsGetInactiveChannelsRequest
- type ChannelsGetLeftChannelsRequest
- type ChannelsGetMessagesRequest
- type ChannelsGetParticipantRequest
- type ChannelsGetParticipantsRequest
- type ChannelsInviteToChannelRequest
- type ChannelsJoinChannelRequest
- type ChannelsLeaveChannelRequest
- type ChannelsReadHistoryRequest
- type ChannelsReadMessageContentsRequest
- type ChannelsReportSpamRequest
- type ChannelsSetDiscussionGroupRequest
- type ChannelsSetStickersRequest
- type ChannelsTogglePreHistoryHiddenRequest
- type ChannelsToggleSignaturesRequest
- type ChannelsToggleSlowModeRequest
- type ChannelsUpdateUsernameRequest
- type Chat
- func (c *Chat) Decode(b *bin.Buffer) error
- func (c *Chat) Encode(b *bin.Buffer) error
- func (c *Chat) GetAdminRights() (value ChatAdminRights, ok bool)
- func (c *Chat) GetDefaultBannedRights() (value ChatBannedRights, ok bool)
- func (c *Chat) GetMigratedTo() (value InputChannelClass, ok bool)
- func (c *Chat) SetAdminRights(value ChatAdminRights)
- func (c *Chat) SetCreator(value bool)
- func (c *Chat) SetDeactivated(value bool)
- func (c *Chat) SetDefaultBannedRights(value ChatBannedRights)
- func (c *Chat) SetKicked(value bool)
- func (c *Chat) SetLeft(value bool)
- func (c *Chat) SetMigratedTo(value InputChannelClass)
- type ChatAdminRights
- func (c *ChatAdminRights) Decode(b *bin.Buffer) error
- func (c *ChatAdminRights) Encode(b *bin.Buffer) error
- func (c *ChatAdminRights) SetAddAdmins(value bool)
- func (c *ChatAdminRights) SetAnonymous(value bool)
- func (c *ChatAdminRights) SetBanUsers(value bool)
- func (c *ChatAdminRights) SetChangeInfo(value bool)
- func (c *ChatAdminRights) SetDeleteMessages(value bool)
- func (c *ChatAdminRights) SetEditMessages(value bool)
- func (c *ChatAdminRights) SetInviteUsers(value bool)
- func (c *ChatAdminRights) SetManageCall(value bool)
- func (c *ChatAdminRights) SetPinMessages(value bool)
- func (c *ChatAdminRights) SetPostMessages(value bool)
- type ChatBannedRights
- func (c *ChatBannedRights) Decode(b *bin.Buffer) error
- func (c *ChatBannedRights) Encode(b *bin.Buffer) error
- func (c *ChatBannedRights) SetChangeInfo(value bool)
- func (c *ChatBannedRights) SetEmbedLinks(value bool)
- func (c *ChatBannedRights) SetInviteUsers(value bool)
- func (c *ChatBannedRights) SetPinMessages(value bool)
- func (c *ChatBannedRights) SetSendGames(value bool)
- func (c *ChatBannedRights) SetSendGifs(value bool)
- func (c *ChatBannedRights) SetSendInline(value bool)
- func (c *ChatBannedRights) SetSendMedia(value bool)
- func (c *ChatBannedRights) SetSendMessages(value bool)
- func (c *ChatBannedRights) SetSendPolls(value bool)
- func (c *ChatBannedRights) SetSendStickers(value bool)
- func (c *ChatBannedRights) SetViewMessages(value bool)
- type ChatBox
- type ChatClass
- type ChatEmpty
- type ChatForbidden
- type ChatFull
- func (c *ChatFull) Decode(b *bin.Buffer) error
- func (c *ChatFull) Encode(b *bin.Buffer) error
- func (c *ChatFull) GetBotInfo() (value []BotInfo, ok bool)
- func (c *ChatFull) GetChatPhoto() (value PhotoClass, ok bool)
- func (c *ChatFull) GetFolderID() (value int, ok bool)
- func (c *ChatFull) GetPinnedMsgID() (value int, ok bool)
- func (c *ChatFull) SetBotInfo(value []BotInfo)
- func (c *ChatFull) SetCanSetUsername(value bool)
- func (c *ChatFull) SetChatPhoto(value PhotoClass)
- func (c *ChatFull) SetFolderID(value int)
- func (c *ChatFull) SetHasScheduled(value bool)
- func (c *ChatFull) SetPinnedMsgID(value int)
- type ChatFullBox
- type ChatFullClass
- type ChatInvite
- func (c *ChatInvite) Decode(b *bin.Buffer) error
- func (c *ChatInvite) Encode(b *bin.Buffer) error
- func (c *ChatInvite) GetParticipants() (value []UserClass, ok bool)
- func (c *ChatInvite) SetBroadcast(value bool)
- func (c *ChatInvite) SetChannel(value bool)
- func (c *ChatInvite) SetMegagroup(value bool)
- func (c *ChatInvite) SetParticipants(value []UserClass)
- func (c *ChatInvite) SetPublic(value bool)
- type ChatInviteAlready
- type ChatInviteBox
- type ChatInviteClass
- type ChatInviteEmpty
- type ChatInviteExported
- type ChatInvitePeek
- type ChatOnlines
- type ChatParticipant
- type ChatParticipantAdmin
- type ChatParticipantBox
- type ChatParticipantClass
- type ChatParticipantCreator
- type ChatParticipants
- type ChatParticipantsBox
- type ChatParticipantsClass
- type ChatParticipantsForbidden
- func (c *ChatParticipantsForbidden) Decode(b *bin.Buffer) error
- func (c *ChatParticipantsForbidden) Encode(b *bin.Buffer) error
- func (c *ChatParticipantsForbidden) GetSelfParticipant() (value ChatParticipantClass, ok bool)
- func (c *ChatParticipantsForbidden) SetSelfParticipant(value ChatParticipantClass)
- type ChatPhoto
- type ChatPhotoBox
- type ChatPhotoClass
- type ChatPhotoEmpty
- type Client
- func (c *Client) AccountAcceptAuthorization(ctx context.Context, request *AccountAcceptAuthorizationRequest) (BoolClass, error)
- func (c *Client) AccountCancelPasswordEmail(ctx context.Context, request *AccountCancelPasswordEmailRequest) (BoolClass, error)
- func (c *Client) AccountChangePhone(ctx context.Context, request *AccountChangePhoneRequest) (UserClass, error)
- func (c *Client) AccountCheckUsername(ctx context.Context, request *AccountCheckUsernameRequest) (BoolClass, error)
- func (c *Client) AccountConfirmPasswordEmail(ctx context.Context, request *AccountConfirmPasswordEmailRequest) (BoolClass, error)
- func (c *Client) AccountConfirmPhone(ctx context.Context, request *AccountConfirmPhoneRequest) (BoolClass, error)
- func (c *Client) AccountCreateTheme(ctx context.Context, request *AccountCreateThemeRequest) (*Theme, error)
- func (c *Client) AccountDeleteAccount(ctx context.Context, request *AccountDeleteAccountRequest) (BoolClass, error)
- func (c *Client) AccountDeleteSecureValue(ctx context.Context, request *AccountDeleteSecureValueRequest) (BoolClass, error)
- func (c *Client) AccountFinishTakeoutSession(ctx context.Context, request *AccountFinishTakeoutSessionRequest) (BoolClass, error)
- func (c *Client) AccountGetAccountTTL(ctx context.Context, request *AccountGetAccountTTLRequest) (*AccountDaysTTL, error)
- func (c *Client) AccountGetAuthorizationForm(ctx context.Context, request *AccountGetAuthorizationFormRequest) (*AccountAuthorizationForm, error)
- func (c *Client) AccountGetAuthorizations(ctx context.Context, request *AccountGetAuthorizationsRequest) (*AccountAuthorizations, error)
- func (c *Client) AccountGetAutoDownloadSettings(ctx context.Context, request *AccountGetAutoDownloadSettingsRequest) (*AccountAutoDownloadSettings, error)
- func (c *Client) AccountGetContactSignUpNotification(ctx context.Context, request *AccountGetContactSignUpNotificationRequest) (BoolClass, error)
- func (c *Client) AccountGetContentSettings(ctx context.Context, request *AccountGetContentSettingsRequest) (*AccountContentSettings, error)
- func (c *Client) AccountGetGlobalPrivacySettings(ctx context.Context, request *AccountGetGlobalPrivacySettingsRequest) (*GlobalPrivacySettings, error)
- func (c *Client) AccountGetNotifyExceptions(ctx context.Context, request *AccountGetNotifyExceptionsRequest) (UpdatesClass, error)
- func (c *Client) AccountGetNotifySettings(ctx context.Context, request *AccountGetNotifySettingsRequest) (*PeerNotifySettings, error)
- func (c *Client) AccountGetPassword(ctx context.Context, request *AccountGetPasswordRequest) (*AccountPassword, error)
- func (c *Client) AccountGetPasswordSettings(ctx context.Context, request *AccountGetPasswordSettingsRequest) (*AccountPasswordSettings, error)
- func (c *Client) AccountGetPrivacy(ctx context.Context, request *AccountGetPrivacyRequest) (*AccountPrivacyRules, error)
- func (c *Client) AccountGetTheme(ctx context.Context, request *AccountGetThemeRequest) (*Theme, error)
- func (c *Client) AccountGetThemes(ctx context.Context, request *AccountGetThemesRequest) (AccountThemesClass, error)
- func (c *Client) AccountGetTmpPassword(ctx context.Context, request *AccountGetTmpPasswordRequest) (*AccountTmpPassword, error)
- func (c *Client) AccountGetWallPaper(ctx context.Context, request *AccountGetWallPaperRequest) (WallPaperClass, error)
- func (c *Client) AccountGetWallPapers(ctx context.Context, request *AccountGetWallPapersRequest) (AccountWallPapersClass, error)
- func (c *Client) AccountGetWebAuthorizations(ctx context.Context, request *AccountGetWebAuthorizationsRequest) (*AccountWebAuthorizations, error)
- func (c *Client) AccountInitTakeoutSession(ctx context.Context, request *AccountInitTakeoutSessionRequest) (*AccountTakeout, error)
- func (c *Client) AccountInstallTheme(ctx context.Context, request *AccountInstallThemeRequest) (BoolClass, error)
- func (c *Client) AccountInstallWallPaper(ctx context.Context, request *AccountInstallWallPaperRequest) (BoolClass, error)
- func (c *Client) AccountRegisterDevice(ctx context.Context, request *AccountRegisterDeviceRequest) (BoolClass, error)
- func (c *Client) AccountReportPeer(ctx context.Context, request *AccountReportPeerRequest) (BoolClass, error)
- func (c *Client) AccountResendPasswordEmail(ctx context.Context, request *AccountResendPasswordEmailRequest) (BoolClass, error)
- func (c *Client) AccountResetAuthorization(ctx context.Context, request *AccountResetAuthorizationRequest) (BoolClass, error)
- func (c *Client) AccountResetNotifySettings(ctx context.Context, request *AccountResetNotifySettingsRequest) (BoolClass, error)
- func (c *Client) AccountResetWallPapers(ctx context.Context, request *AccountResetWallPapersRequest) (BoolClass, error)
- func (c *Client) AccountResetWebAuthorization(ctx context.Context, request *AccountResetWebAuthorizationRequest) (BoolClass, error)
- func (c *Client) AccountResetWebAuthorizations(ctx context.Context, request *AccountResetWebAuthorizationsRequest) (BoolClass, error)
- func (c *Client) AccountSaveAutoDownloadSettings(ctx context.Context, request *AccountSaveAutoDownloadSettingsRequest) (BoolClass, error)
- func (c *Client) AccountSaveSecureValue(ctx context.Context, request *AccountSaveSecureValueRequest) (*SecureValue, error)
- func (c *Client) AccountSaveTheme(ctx context.Context, request *AccountSaveThemeRequest) (BoolClass, error)
- func (c *Client) AccountSaveWallPaper(ctx context.Context, request *AccountSaveWallPaperRequest) (BoolClass, error)
- func (c *Client) AccountSendChangePhoneCode(ctx context.Context, request *AccountSendChangePhoneCodeRequest) (*AuthSentCode, error)
- func (c *Client) AccountSendConfirmPhoneCode(ctx context.Context, request *AccountSendConfirmPhoneCodeRequest) (*AuthSentCode, error)
- func (c *Client) AccountSendVerifyEmailCode(ctx context.Context, request *AccountSendVerifyEmailCodeRequest) (*AccountSentEmailCode, error)
- func (c *Client) AccountSendVerifyPhoneCode(ctx context.Context, request *AccountSendVerifyPhoneCodeRequest) (*AuthSentCode, error)
- func (c *Client) AccountSetAccountTTL(ctx context.Context, request *AccountSetAccountTTLRequest) (BoolClass, error)
- func (c *Client) AccountSetContactSignUpNotification(ctx context.Context, request *AccountSetContactSignUpNotificationRequest) (BoolClass, error)
- func (c *Client) AccountSetContentSettings(ctx context.Context, request *AccountSetContentSettingsRequest) (BoolClass, error)
- func (c *Client) AccountSetGlobalPrivacySettings(ctx context.Context, request *AccountSetGlobalPrivacySettingsRequest) (*GlobalPrivacySettings, error)
- func (c *Client) AccountSetPrivacy(ctx context.Context, request *AccountSetPrivacyRequest) (*AccountPrivacyRules, error)
- func (c *Client) AccountUnregisterDevice(ctx context.Context, request *AccountUnregisterDeviceRequest) (BoolClass, error)
- func (c *Client) AccountUpdateDeviceLocked(ctx context.Context, request *AccountUpdateDeviceLockedRequest) (BoolClass, error)
- func (c *Client) AccountUpdateNotifySettings(ctx context.Context, request *AccountUpdateNotifySettingsRequest) (BoolClass, error)
- func (c *Client) AccountUpdatePasswordSettings(ctx context.Context, request *AccountUpdatePasswordSettingsRequest) (BoolClass, error)
- func (c *Client) AccountUpdateProfile(ctx context.Context, request *AccountUpdateProfileRequest) (UserClass, error)
- func (c *Client) AccountUpdateStatus(ctx context.Context, request *AccountUpdateStatusRequest) (BoolClass, error)
- func (c *Client) AccountUpdateTheme(ctx context.Context, request *AccountUpdateThemeRequest) (*Theme, error)
- func (c *Client) AccountUpdateUsername(ctx context.Context, request *AccountUpdateUsernameRequest) (UserClass, error)
- func (c *Client) AccountUploadTheme(ctx context.Context, request *AccountUploadThemeRequest) (DocumentClass, error)
- func (c *Client) AccountUploadWallPaper(ctx context.Context, request *AccountUploadWallPaperRequest) (WallPaperClass, error)
- func (c *Client) AccountVerifyEmail(ctx context.Context, request *AccountVerifyEmailRequest) (BoolClass, error)
- func (c *Client) AccountVerifyPhone(ctx context.Context, request *AccountVerifyPhoneRequest) (BoolClass, error)
- func (c *Client) AuthAcceptLoginToken(ctx context.Context, request *AuthAcceptLoginTokenRequest) (*Authorization, error)
- func (c *Client) AuthBindTempAuthKey(ctx context.Context, request *AuthBindTempAuthKeyRequest) (BoolClass, error)
- func (c *Client) AuthCancelCode(ctx context.Context, request *AuthCancelCodeRequest) (BoolClass, error)
- func (c *Client) AuthCheckPassword(ctx context.Context, request *AuthCheckPasswordRequest) (AuthAuthorizationClass, error)
- func (c *Client) AuthDropTempAuthKeys(ctx context.Context, request *AuthDropTempAuthKeysRequest) (BoolClass, error)
- func (c *Client) AuthExportAuthorization(ctx context.Context, request *AuthExportAuthorizationRequest) (*AuthExportedAuthorization, error)
- func (c *Client) AuthExportLoginToken(ctx context.Context, request *AuthExportLoginTokenRequest) (AuthLoginTokenClass, error)
- func (c *Client) AuthImportAuthorization(ctx context.Context, request *AuthImportAuthorizationRequest) (AuthAuthorizationClass, error)
- func (c *Client) AuthImportBotAuthorization(ctx context.Context, request *AuthImportBotAuthorizationRequest) (AuthAuthorizationClass, error)
- func (c *Client) AuthImportLoginToken(ctx context.Context, request *AuthImportLoginTokenRequest) (AuthLoginTokenClass, error)
- func (c *Client) AuthLogOut(ctx context.Context, request *AuthLogOutRequest) (BoolClass, error)
- func (c *Client) AuthRecoverPassword(ctx context.Context, request *AuthRecoverPasswordRequest) (AuthAuthorizationClass, error)
- func (c *Client) AuthRequestPasswordRecovery(ctx context.Context, request *AuthRequestPasswordRecoveryRequest) (*AuthPasswordRecovery, error)
- func (c *Client) AuthResendCode(ctx context.Context, request *AuthResendCodeRequest) (*AuthSentCode, error)
- func (c *Client) AuthResetAuthorizations(ctx context.Context, request *AuthResetAuthorizationsRequest) (BoolClass, error)
- func (c *Client) AuthSendCode(ctx context.Context, request *AuthSendCodeRequest) (*AuthSentCode, error)
- func (c *Client) AuthSignIn(ctx context.Context, request *AuthSignInRequest) (AuthAuthorizationClass, error)
- func (c *Client) AuthSignUp(ctx context.Context, request *AuthSignUpRequest) (AuthAuthorizationClass, error)
- func (c *Client) BotsAnswerWebhookJSONQuery(ctx context.Context, request *BotsAnswerWebhookJSONQueryRequest) (BoolClass, error)
- func (c *Client) BotsSendCustomRequest(ctx context.Context, request *BotsSendCustomRequestRequest) (*DataJSON, error)
- func (c *Client) BotsSetBotCommands(ctx context.Context, request *BotsSetBotCommandsRequest) (BoolClass, error)
- func (c *Client) ChannelsCheckUsername(ctx context.Context, request *ChannelsCheckUsernameRequest) (BoolClass, error)
- func (c *Client) ChannelsCreateChannel(ctx context.Context, request *ChannelsCreateChannelRequest) (UpdatesClass, error)
- func (c *Client) ChannelsDeleteChannel(ctx context.Context, request *ChannelsDeleteChannelRequest) (UpdatesClass, error)
- func (c *Client) ChannelsDeleteHistory(ctx context.Context, request *ChannelsDeleteHistoryRequest) (BoolClass, error)
- func (c *Client) ChannelsDeleteMessages(ctx context.Context, request *ChannelsDeleteMessagesRequest) (*MessagesAffectedMessages, error)
- func (c *Client) ChannelsDeleteUserHistory(ctx context.Context, request *ChannelsDeleteUserHistoryRequest) (*MessagesAffectedHistory, error)
- func (c *Client) ChannelsEditAdmin(ctx context.Context, request *ChannelsEditAdminRequest) (UpdatesClass, error)
- func (c *Client) ChannelsEditBanned(ctx context.Context, request *ChannelsEditBannedRequest) (UpdatesClass, error)
- func (c *Client) ChannelsEditCreator(ctx context.Context, request *ChannelsEditCreatorRequest) (UpdatesClass, error)
- func (c *Client) ChannelsEditLocation(ctx context.Context, request *ChannelsEditLocationRequest) (BoolClass, error)
- func (c *Client) ChannelsEditPhoto(ctx context.Context, request *ChannelsEditPhotoRequest) (UpdatesClass, error)
- func (c *Client) ChannelsEditTitle(ctx context.Context, request *ChannelsEditTitleRequest) (UpdatesClass, error)
- func (c *Client) ChannelsExportMessageLink(ctx context.Context, request *ChannelsExportMessageLinkRequest) (*ExportedMessageLink, error)
- func (c *Client) ChannelsGetAdminLog(ctx context.Context, request *ChannelsGetAdminLogRequest) (*ChannelsAdminLogResults, error)
- func (c *Client) ChannelsGetAdminedPublicChannels(ctx context.Context, request *ChannelsGetAdminedPublicChannelsRequest) (MessagesChatsClass, error)
- func (c *Client) ChannelsGetChannels(ctx context.Context, request *ChannelsGetChannelsRequest) (MessagesChatsClass, error)
- func (c *Client) ChannelsGetFullChannel(ctx context.Context, request *ChannelsGetFullChannelRequest) (*MessagesChatFull, error)
- func (c *Client) ChannelsGetGroupsForDiscussion(ctx context.Context, request *ChannelsGetGroupsForDiscussionRequest) (MessagesChatsClass, error)
- func (c *Client) ChannelsGetInactiveChannels(ctx context.Context, request *ChannelsGetInactiveChannelsRequest) (*MessagesInactiveChats, error)
- func (c *Client) ChannelsGetLeftChannels(ctx context.Context, request *ChannelsGetLeftChannelsRequest) (MessagesChatsClass, error)
- func (c *Client) ChannelsGetMessages(ctx context.Context, request *ChannelsGetMessagesRequest) (MessagesMessagesClass, error)
- func (c *Client) ChannelsGetParticipant(ctx context.Context, request *ChannelsGetParticipantRequest) (*ChannelsChannelParticipant, error)
- func (c *Client) ChannelsGetParticipants(ctx context.Context, request *ChannelsGetParticipantsRequest) (ChannelsChannelParticipantsClass, error)
- func (c *Client) ChannelsInviteToChannel(ctx context.Context, request *ChannelsInviteToChannelRequest) (UpdatesClass, error)
- func (c *Client) ChannelsJoinChannel(ctx context.Context, request *ChannelsJoinChannelRequest) (UpdatesClass, error)
- func (c *Client) ChannelsLeaveChannel(ctx context.Context, request *ChannelsLeaveChannelRequest) (UpdatesClass, error)
- func (c *Client) ChannelsReadHistory(ctx context.Context, request *ChannelsReadHistoryRequest) (BoolClass, error)
- func (c *Client) ChannelsReadMessageContents(ctx context.Context, request *ChannelsReadMessageContentsRequest) (BoolClass, error)
- func (c *Client) ChannelsReportSpam(ctx context.Context, request *ChannelsReportSpamRequest) (BoolClass, error)
- func (c *Client) ChannelsSetDiscussionGroup(ctx context.Context, request *ChannelsSetDiscussionGroupRequest) (BoolClass, error)
- func (c *Client) ChannelsSetStickers(ctx context.Context, request *ChannelsSetStickersRequest) (BoolClass, error)
- func (c *Client) ChannelsTogglePreHistoryHidden(ctx context.Context, request *ChannelsTogglePreHistoryHiddenRequest) (UpdatesClass, error)
- func (c *Client) ChannelsToggleSignatures(ctx context.Context, request *ChannelsToggleSignaturesRequest) (UpdatesClass, error)
- func (c *Client) ChannelsToggleSlowMode(ctx context.Context, request *ChannelsToggleSlowModeRequest) (UpdatesClass, error)
- func (c *Client) ChannelsUpdateUsername(ctx context.Context, request *ChannelsUpdateUsernameRequest) (BoolClass, error)
- func (c *Client) ContactsAcceptContact(ctx context.Context, request *ContactsAcceptContactRequest) (UpdatesClass, error)
- func (c *Client) ContactsAddContact(ctx context.Context, request *ContactsAddContactRequest) (UpdatesClass, error)
- func (c *Client) ContactsBlock(ctx context.Context, request *ContactsBlockRequest) (BoolClass, error)
- func (c *Client) ContactsBlockFromReplies(ctx context.Context, request *ContactsBlockFromRepliesRequest) (UpdatesClass, error)
- func (c *Client) ContactsDeleteByPhones(ctx context.Context, request *ContactsDeleteByPhonesRequest) (BoolClass, error)
- func (c *Client) ContactsDeleteContacts(ctx context.Context, request *ContactsDeleteContactsRequest) (UpdatesClass, error)
- func (c *Client) ContactsGetBlocked(ctx context.Context, request *ContactsGetBlockedRequest) (ContactsBlockedClass, error)
- func (c *Client) ContactsGetContacts(ctx context.Context, request *ContactsGetContactsRequest) (ContactsContactsClass, error)
- func (c *Client) ContactsGetLocated(ctx context.Context, request *ContactsGetLocatedRequest) (UpdatesClass, error)
- func (c *Client) ContactsGetTopPeers(ctx context.Context, request *ContactsGetTopPeersRequest) (ContactsTopPeersClass, error)
- func (c *Client) ContactsImportContacts(ctx context.Context, request *ContactsImportContactsRequest) (*ContactsImportedContacts, error)
- func (c *Client) ContactsResetSaved(ctx context.Context, request *ContactsResetSavedRequest) (BoolClass, error)
- func (c *Client) ContactsResetTopPeerRating(ctx context.Context, request *ContactsResetTopPeerRatingRequest) (BoolClass, error)
- func (c *Client) ContactsResolveUsername(ctx context.Context, request *ContactsResolveUsernameRequest) (*ContactsResolvedPeer, error)
- func (c *Client) ContactsSearch(ctx context.Context, request *ContactsSearchRequest) (*ContactsFound, error)
- func (c *Client) ContactsToggleTopPeers(ctx context.Context, request *ContactsToggleTopPeersRequest) (BoolClass, error)
- func (c *Client) ContactsUnblock(ctx context.Context, request *ContactsUnblockRequest) (BoolClass, error)
- func (c *Client) FoldersDeleteFolder(ctx context.Context, request *FoldersDeleteFolderRequest) (UpdatesClass, error)
- func (c *Client) FoldersEditPeerFolders(ctx context.Context, request *FoldersEditPeerFoldersRequest) (UpdatesClass, error)
- func (c *Client) HelpAcceptTermsOfService(ctx context.Context, request *HelpAcceptTermsOfServiceRequest) (BoolClass, error)
- func (c *Client) HelpDismissSuggestion(ctx context.Context, request *HelpDismissSuggestionRequest) (BoolClass, error)
- func (c *Client) HelpEditUserInfo(ctx context.Context, request *HelpEditUserInfoRequest) (HelpUserInfoClass, error)
- func (c *Client) HelpGetAppChangelog(ctx context.Context, request *HelpGetAppChangelogRequest) (UpdatesClass, error)
- func (c *Client) HelpGetAppConfig(ctx context.Context, request *HelpGetAppConfigRequest) (JSONValueClass, error)
- func (c *Client) HelpGetAppUpdate(ctx context.Context, request *HelpGetAppUpdateRequest) (HelpAppUpdateClass, error)
- func (c *Client) HelpGetCdnConfig(ctx context.Context, request *HelpGetCdnConfigRequest) (*CdnConfig, error)
- func (c *Client) HelpGetConfig(ctx context.Context, request *HelpGetConfigRequest) (*Config, error)
- func (c *Client) HelpGetCountriesList(ctx context.Context, request *HelpGetCountriesListRequest) (HelpCountriesListClass, error)
- func (c *Client) HelpGetDeepLinkInfo(ctx context.Context, request *HelpGetDeepLinkInfoRequest) (HelpDeepLinkInfoClass, error)
- func (c *Client) HelpGetInviteText(ctx context.Context, request *HelpGetInviteTextRequest) (*HelpInviteText, error)
- func (c *Client) HelpGetNearestDc(ctx context.Context, request *HelpGetNearestDcRequest) (*NearestDc, error)
- func (c *Client) HelpGetPassportConfig(ctx context.Context, request *HelpGetPassportConfigRequest) (HelpPassportConfigClass, error)
- func (c *Client) HelpGetPromoData(ctx context.Context, request *HelpGetPromoDataRequest) (HelpPromoDataClass, error)
- func (c *Client) HelpGetRecentMeUrls(ctx context.Context, request *HelpGetRecentMeUrlsRequest) (*HelpRecentMeUrls, error)
- func (c *Client) HelpGetSupport(ctx context.Context, request *HelpGetSupportRequest) (*HelpSupport, error)
- func (c *Client) HelpGetSupportName(ctx context.Context, request *HelpGetSupportNameRequest) (*HelpSupportName, error)
- func (c *Client) HelpGetTermsOfServiceUpdate(ctx context.Context, request *HelpGetTermsOfServiceUpdateRequest) (HelpTermsOfServiceUpdateClass, error)
- func (c *Client) HelpGetUserInfo(ctx context.Context, request *HelpGetUserInfoRequest) (HelpUserInfoClass, error)
- func (c *Client) HelpHidePromoData(ctx context.Context, request *HelpHidePromoDataRequest) (BoolClass, error)
- func (c *Client) HelpSaveAppLog(ctx context.Context, request *HelpSaveAppLogRequest) (BoolClass, error)
- func (c *Client) HelpSetBotUpdatesStatus(ctx context.Context, request *HelpSetBotUpdatesStatusRequest) (BoolClass, error)
- func (c *Client) LangpackGetDifference(ctx context.Context, request *LangpackGetDifferenceRequest) (*LangPackDifference, error)
- func (c *Client) LangpackGetLangPack(ctx context.Context, request *LangpackGetLangPackRequest) (*LangPackDifference, error)
- func (c *Client) LangpackGetLanguage(ctx context.Context, request *LangpackGetLanguageRequest) (*LangPackLanguage, error)
- func (c *Client) MessagesAcceptEncryption(ctx context.Context, request *MessagesAcceptEncryptionRequest) (EncryptedChatClass, error)
- func (c *Client) MessagesAcceptUrlAuth(ctx context.Context, request *MessagesAcceptUrlAuthRequest) (UrlAuthResultClass, error)
- func (c *Client) MessagesAddChatUser(ctx context.Context, request *MessagesAddChatUserRequest) (UpdatesClass, error)
- func (c *Client) MessagesCheckChatInvite(ctx context.Context, request *MessagesCheckChatInviteRequest) (ChatInviteClass, error)
- func (c *Client) MessagesClearAllDrafts(ctx context.Context, request *MessagesClearAllDraftsRequest) (BoolClass, error)
- func (c *Client) MessagesClearRecentStickers(ctx context.Context, request *MessagesClearRecentStickersRequest) (BoolClass, error)
- func (c *Client) MessagesCreateChat(ctx context.Context, request *MessagesCreateChatRequest) (UpdatesClass, error)
- func (c *Client) MessagesDeleteChatUser(ctx context.Context, request *MessagesDeleteChatUserRequest) (UpdatesClass, error)
- func (c *Client) MessagesDeleteHistory(ctx context.Context, request *MessagesDeleteHistoryRequest) (*MessagesAffectedHistory, error)
- func (c *Client) MessagesDeleteMessages(ctx context.Context, request *MessagesDeleteMessagesRequest) (*MessagesAffectedMessages, error)
- func (c *Client) MessagesDeleteScheduledMessages(ctx context.Context, request *MessagesDeleteScheduledMessagesRequest) (UpdatesClass, error)
- func (c *Client) MessagesDiscardEncryption(ctx context.Context, request *MessagesDiscardEncryptionRequest) (BoolClass, error)
- func (c *Client) MessagesEditChatAbout(ctx context.Context, request *MessagesEditChatAboutRequest) (BoolClass, error)
- func (c *Client) MessagesEditChatAdmin(ctx context.Context, request *MessagesEditChatAdminRequest) (BoolClass, error)
- func (c *Client) MessagesEditChatDefaultBannedRights(ctx context.Context, request *MessagesEditChatDefaultBannedRightsRequest) (UpdatesClass, error)
- func (c *Client) MessagesEditChatPhoto(ctx context.Context, request *MessagesEditChatPhotoRequest) (UpdatesClass, error)
- func (c *Client) MessagesEditChatTitle(ctx context.Context, request *MessagesEditChatTitleRequest) (UpdatesClass, error)
- func (c *Client) MessagesEditInlineBotMessage(ctx context.Context, request *MessagesEditInlineBotMessageRequest) (BoolClass, error)
- func (c *Client) MessagesEditMessage(ctx context.Context, request *MessagesEditMessageRequest) (UpdatesClass, error)
- func (c *Client) MessagesExportChatInvite(ctx context.Context, request *MessagesExportChatInviteRequest) (ExportedChatInviteClass, error)
- func (c *Client) MessagesFaveSticker(ctx context.Context, request *MessagesFaveStickerRequest) (BoolClass, error)
- func (c *Client) MessagesForwardMessages(ctx context.Context, request *MessagesForwardMessagesRequest) (UpdatesClass, error)
- func (c *Client) MessagesGetAllChats(ctx context.Context, request *MessagesGetAllChatsRequest) (MessagesChatsClass, error)
- func (c *Client) MessagesGetAllDrafts(ctx context.Context, request *MessagesGetAllDraftsRequest) (UpdatesClass, error)
- func (c *Client) MessagesGetAllStickers(ctx context.Context, request *MessagesGetAllStickersRequest) (MessagesAllStickersClass, error)
- func (c *Client) MessagesGetArchivedStickers(ctx context.Context, request *MessagesGetArchivedStickersRequest) (*MessagesArchivedStickers, error)
- func (c *Client) MessagesGetBotCallbackAnswer(ctx context.Context, request *MessagesGetBotCallbackAnswerRequest) (*MessagesBotCallbackAnswer, error)
- func (c *Client) MessagesGetChats(ctx context.Context, request *MessagesGetChatsRequest) (MessagesChatsClass, error)
- func (c *Client) MessagesGetCommonChats(ctx context.Context, request *MessagesGetCommonChatsRequest) (MessagesChatsClass, error)
- func (c *Client) MessagesGetDhConfig(ctx context.Context, request *MessagesGetDhConfigRequest) (MessagesDhConfigClass, error)
- func (c *Client) MessagesGetDialogs(ctx context.Context, request *MessagesGetDialogsRequest) (MessagesDialogsClass, error)
- func (c *Client) MessagesGetDiscussionMessage(ctx context.Context, request *MessagesGetDiscussionMessageRequest) (*MessagesDiscussionMessage, error)
- func (c *Client) MessagesGetDocumentByHash(ctx context.Context, request *MessagesGetDocumentByHashRequest) (DocumentClass, error)
- func (c *Client) MessagesGetEmojiKeywords(ctx context.Context, request *MessagesGetEmojiKeywordsRequest) (*EmojiKeywordsDifference, error)
- func (c *Client) MessagesGetEmojiKeywordsDifference(ctx context.Context, request *MessagesGetEmojiKeywordsDifferenceRequest) (*EmojiKeywordsDifference, error)
- func (c *Client) MessagesGetEmojiURL(ctx context.Context, request *MessagesGetEmojiURLRequest) (*EmojiURL, error)
- func (c *Client) MessagesGetFavedStickers(ctx context.Context, request *MessagesGetFavedStickersRequest) (MessagesFavedStickersClass, error)
- func (c *Client) MessagesGetFeaturedStickers(ctx context.Context, request *MessagesGetFeaturedStickersRequest) (MessagesFeaturedStickersClass, error)
- func (c *Client) MessagesGetFullChat(ctx context.Context, request *MessagesGetFullChatRequest) (*MessagesChatFull, error)
- func (c *Client) MessagesGetGameHighScores(ctx context.Context, request *MessagesGetGameHighScoresRequest) (*MessagesHighScores, error)
- func (c *Client) MessagesGetHistory(ctx context.Context, request *MessagesGetHistoryRequest) (MessagesMessagesClass, error)
- func (c *Client) MessagesGetInlineBotResults(ctx context.Context, request *MessagesGetInlineBotResultsRequest) (*MessagesBotResults, error)
- func (c *Client) MessagesGetInlineGameHighScores(ctx context.Context, request *MessagesGetInlineGameHighScoresRequest) (*MessagesHighScores, error)
- func (c *Client) MessagesGetMaskStickers(ctx context.Context, request *MessagesGetMaskStickersRequest) (MessagesAllStickersClass, error)
- func (c *Client) MessagesGetMessageEditData(ctx context.Context, request *MessagesGetMessageEditDataRequest) (*MessagesMessageEditData, error)
- func (c *Client) MessagesGetMessages(ctx context.Context, request *MessagesGetMessagesRequest) (MessagesMessagesClass, error)
- func (c *Client) MessagesGetMessagesViews(ctx context.Context, request *MessagesGetMessagesViewsRequest) (*MessagesMessageViews, error)
- func (c *Client) MessagesGetOldFeaturedStickers(ctx context.Context, request *MessagesGetOldFeaturedStickersRequest) (MessagesFeaturedStickersClass, error)
- func (c *Client) MessagesGetOnlines(ctx context.Context, request *MessagesGetOnlinesRequest) (*ChatOnlines, error)
- func (c *Client) MessagesGetPeerDialogs(ctx context.Context, request *MessagesGetPeerDialogsRequest) (*MessagesPeerDialogs, error)
- func (c *Client) MessagesGetPeerSettings(ctx context.Context, request *MessagesGetPeerSettingsRequest) (*PeerSettings, error)
- func (c *Client) MessagesGetPinnedDialogs(ctx context.Context, request *MessagesGetPinnedDialogsRequest) (*MessagesPeerDialogs, error)
- func (c *Client) MessagesGetPollResults(ctx context.Context, request *MessagesGetPollResultsRequest) (UpdatesClass, error)
- func (c *Client) MessagesGetPollVotes(ctx context.Context, request *MessagesGetPollVotesRequest) (*MessagesVotesList, error)
- func (c *Client) MessagesGetRecentLocations(ctx context.Context, request *MessagesGetRecentLocationsRequest) (MessagesMessagesClass, error)
- func (c *Client) MessagesGetRecentStickers(ctx context.Context, request *MessagesGetRecentStickersRequest) (MessagesRecentStickersClass, error)
- func (c *Client) MessagesGetReplies(ctx context.Context, request *MessagesGetRepliesRequest) (MessagesMessagesClass, error)
- func (c *Client) MessagesGetSavedGifs(ctx context.Context, request *MessagesGetSavedGifsRequest) (MessagesSavedGifsClass, error)
- func (c *Client) MessagesGetScheduledHistory(ctx context.Context, request *MessagesGetScheduledHistoryRequest) (MessagesMessagesClass, error)
- func (c *Client) MessagesGetScheduledMessages(ctx context.Context, request *MessagesGetScheduledMessagesRequest) (MessagesMessagesClass, error)
- func (c *Client) MessagesGetStatsURL(ctx context.Context, request *MessagesGetStatsURLRequest) (*StatsURL, error)
- func (c *Client) MessagesGetStickerSet(ctx context.Context, request *MessagesGetStickerSetRequest) (*MessagesStickerSet, error)
- func (c *Client) MessagesGetStickers(ctx context.Context, request *MessagesGetStickersRequest) (MessagesStickersClass, error)
- func (c *Client) MessagesGetUnreadMentions(ctx context.Context, request *MessagesGetUnreadMentionsRequest) (MessagesMessagesClass, error)
- func (c *Client) MessagesGetWebPage(ctx context.Context, request *MessagesGetWebPageRequest) (WebPageClass, error)
- func (c *Client) MessagesGetWebPagePreview(ctx context.Context, request *MessagesGetWebPagePreviewRequest) (MessageMediaClass, error)
- func (c *Client) MessagesHidePeerSettingsBar(ctx context.Context, request *MessagesHidePeerSettingsBarRequest) (BoolClass, error)
- func (c *Client) MessagesImportChatInvite(ctx context.Context, request *MessagesImportChatInviteRequest) (UpdatesClass, error)
- func (c *Client) MessagesInstallStickerSet(ctx context.Context, request *MessagesInstallStickerSetRequest) (MessagesStickerSetInstallResultClass, error)
- func (c *Client) MessagesMarkDialogUnread(ctx context.Context, request *MessagesMarkDialogUnreadRequest) (BoolClass, error)
- func (c *Client) MessagesMigrateChat(ctx context.Context, request *MessagesMigrateChatRequest) (UpdatesClass, error)
- func (c *Client) MessagesReadDiscussion(ctx context.Context, request *MessagesReadDiscussionRequest) (BoolClass, error)
- func (c *Client) MessagesReadEncryptedHistory(ctx context.Context, request *MessagesReadEncryptedHistoryRequest) (BoolClass, error)
- func (c *Client) MessagesReadFeaturedStickers(ctx context.Context, request *MessagesReadFeaturedStickersRequest) (BoolClass, error)
- func (c *Client) MessagesReadHistory(ctx context.Context, request *MessagesReadHistoryRequest) (*MessagesAffectedMessages, error)
- func (c *Client) MessagesReadMentions(ctx context.Context, request *MessagesReadMentionsRequest) (*MessagesAffectedHistory, error)
- func (c *Client) MessagesReadMessageContents(ctx context.Context, request *MessagesReadMessageContentsRequest) (*MessagesAffectedMessages, error)
- func (c *Client) MessagesReorderPinnedDialogs(ctx context.Context, request *MessagesReorderPinnedDialogsRequest) (BoolClass, error)
- func (c *Client) MessagesReorderStickerSets(ctx context.Context, request *MessagesReorderStickerSetsRequest) (BoolClass, error)
- func (c *Client) MessagesReport(ctx context.Context, request *MessagesReportRequest) (BoolClass, error)
- func (c *Client) MessagesReportEncryptedSpam(ctx context.Context, request *MessagesReportEncryptedSpamRequest) (BoolClass, error)
- func (c *Client) MessagesReportSpam(ctx context.Context, request *MessagesReportSpamRequest) (BoolClass, error)
- func (c *Client) MessagesRequestEncryption(ctx context.Context, request *MessagesRequestEncryptionRequest) (EncryptedChatClass, error)
- func (c *Client) MessagesRequestUrlAuth(ctx context.Context, request *MessagesRequestUrlAuthRequest) (UrlAuthResultClass, error)
- func (c *Client) MessagesSaveDraft(ctx context.Context, request *MessagesSaveDraftRequest) (BoolClass, error)
- func (c *Client) MessagesSaveGif(ctx context.Context, request *MessagesSaveGifRequest) (BoolClass, error)
- func (c *Client) MessagesSaveRecentSticker(ctx context.Context, request *MessagesSaveRecentStickerRequest) (BoolClass, error)
- func (c *Client) MessagesSearch(ctx context.Context, request *MessagesSearchRequest) (MessagesMessagesClass, error)
- func (c *Client) MessagesSearchGlobal(ctx context.Context, request *MessagesSearchGlobalRequest) (MessagesMessagesClass, error)
- func (c *Client) MessagesSearchStickerSets(ctx context.Context, request *MessagesSearchStickerSetsRequest) (MessagesFoundStickerSetsClass, error)
- func (c *Client) MessagesSendEncrypted(ctx context.Context, request *MessagesSendEncryptedRequest) (MessagesSentEncryptedMessageClass, error)
- func (c *Client) MessagesSendEncryptedFile(ctx context.Context, request *MessagesSendEncryptedFileRequest) (MessagesSentEncryptedMessageClass, error)
- func (c *Client) MessagesSendEncryptedService(ctx context.Context, request *MessagesSendEncryptedServiceRequest) (MessagesSentEncryptedMessageClass, error)
- func (c *Client) MessagesSendInlineBotResult(ctx context.Context, request *MessagesSendInlineBotResultRequest) (UpdatesClass, error)
- func (c *Client) MessagesSendMedia(ctx context.Context, request *MessagesSendMediaRequest) (UpdatesClass, error)
- func (c *Client) MessagesSendMessage(ctx context.Context, request *MessagesSendMessageRequest) (UpdatesClass, error)
- func (c *Client) MessagesSendMultiMedia(ctx context.Context, request *MessagesSendMultiMediaRequest) (UpdatesClass, error)
- func (c *Client) MessagesSendScheduledMessages(ctx context.Context, request *MessagesSendScheduledMessagesRequest) (UpdatesClass, error)
- func (c *Client) MessagesSendScreenshotNotification(ctx context.Context, request *MessagesSendScreenshotNotificationRequest) (UpdatesClass, error)
- func (c *Client) MessagesSendVote(ctx context.Context, request *MessagesSendVoteRequest) (UpdatesClass, error)
- func (c *Client) MessagesSetBotCallbackAnswer(ctx context.Context, request *MessagesSetBotCallbackAnswerRequest) (BoolClass, error)
- func (c *Client) MessagesSetBotPrecheckoutResults(ctx context.Context, request *MessagesSetBotPrecheckoutResultsRequest) (BoolClass, error)
- func (c *Client) MessagesSetBotShippingResults(ctx context.Context, request *MessagesSetBotShippingResultsRequest) (BoolClass, error)
- func (c *Client) MessagesSetEncryptedTyping(ctx context.Context, request *MessagesSetEncryptedTypingRequest) (BoolClass, error)
- func (c *Client) MessagesSetGameScore(ctx context.Context, request *MessagesSetGameScoreRequest) (UpdatesClass, error)
- func (c *Client) MessagesSetInlineBotResults(ctx context.Context, request *MessagesSetInlineBotResultsRequest) (BoolClass, error)
- func (c *Client) MessagesSetInlineGameScore(ctx context.Context, request *MessagesSetInlineGameScoreRequest) (BoolClass, error)
- func (c *Client) MessagesSetTyping(ctx context.Context, request *MessagesSetTypingRequest) (BoolClass, error)
- func (c *Client) MessagesStartBot(ctx context.Context, request *MessagesStartBotRequest) (UpdatesClass, error)
- func (c *Client) MessagesToggleDialogPin(ctx context.Context, request *MessagesToggleDialogPinRequest) (BoolClass, error)
- func (c *Client) MessagesToggleStickerSets(ctx context.Context, request *MessagesToggleStickerSetsRequest) (BoolClass, error)
- func (c *Client) MessagesUninstallStickerSet(ctx context.Context, request *MessagesUninstallStickerSetRequest) (BoolClass, error)
- func (c *Client) MessagesUnpinAllMessages(ctx context.Context, request *MessagesUnpinAllMessagesRequest) (*MessagesAffectedHistory, error)
- func (c *Client) MessagesUpdateDialogFilter(ctx context.Context, request *MessagesUpdateDialogFilterRequest) (BoolClass, error)
- func (c *Client) MessagesUpdateDialogFiltersOrder(ctx context.Context, request *MessagesUpdateDialogFiltersOrderRequest) (BoolClass, error)
- func (c *Client) MessagesUpdatePinnedMessage(ctx context.Context, request *MessagesUpdatePinnedMessageRequest) (UpdatesClass, error)
- func (c *Client) MessagesUploadEncryptedFile(ctx context.Context, request *MessagesUploadEncryptedFileRequest) (EncryptedFileClass, error)
- func (c *Client) MessagesUploadMedia(ctx context.Context, request *MessagesUploadMediaRequest) (MessageMediaClass, error)
- func (c *Client) PaymentsClearSavedInfo(ctx context.Context, request *PaymentsClearSavedInfoRequest) (BoolClass, error)
- func (c *Client) PaymentsGetBankCardData(ctx context.Context, request *PaymentsGetBankCardDataRequest) (*PaymentsBankCardData, error)
- func (c *Client) PaymentsGetPaymentForm(ctx context.Context, request *PaymentsGetPaymentFormRequest) (*PaymentsPaymentForm, error)
- func (c *Client) PaymentsGetPaymentReceipt(ctx context.Context, request *PaymentsGetPaymentReceiptRequest) (*PaymentsPaymentReceipt, error)
- func (c *Client) PaymentsGetSavedInfo(ctx context.Context, request *PaymentsGetSavedInfoRequest) (*PaymentsSavedInfo, error)
- func (c *Client) PaymentsSendPaymentForm(ctx context.Context, request *PaymentsSendPaymentFormRequest) (PaymentsPaymentResultClass, error)
- func (c *Client) PaymentsValidateRequestedInfo(ctx context.Context, request *PaymentsValidateRequestedInfoRequest) (*PaymentsValidatedRequestedInfo, error)
- func (c *Client) PhoneAcceptCall(ctx context.Context, request *PhoneAcceptCallRequest) (*PhonePhoneCall, error)
- func (c *Client) PhoneConfirmCall(ctx context.Context, request *PhoneConfirmCallRequest) (*PhonePhoneCall, error)
- func (c *Client) PhoneDiscardCall(ctx context.Context, request *PhoneDiscardCallRequest) (UpdatesClass, error)
- func (c *Client) PhoneGetCallConfig(ctx context.Context, request *PhoneGetCallConfigRequest) (*DataJSON, error)
- func (c *Client) PhoneReceivedCall(ctx context.Context, request *PhoneReceivedCallRequest) (BoolClass, error)
- func (c *Client) PhoneRequestCall(ctx context.Context, request *PhoneRequestCallRequest) (*PhonePhoneCall, error)
- func (c *Client) PhoneSaveCallDebug(ctx context.Context, request *PhoneSaveCallDebugRequest) (BoolClass, error)
- func (c *Client) PhoneSendSignalingData(ctx context.Context, request *PhoneSendSignalingDataRequest) (BoolClass, error)
- func (c *Client) PhoneSetCallRating(ctx context.Context, request *PhoneSetCallRatingRequest) (UpdatesClass, error)
- func (c *Client) PhotosGetUserPhotos(ctx context.Context, request *PhotosGetUserPhotosRequest) (PhotosPhotosClass, error)
- func (c *Client) PhotosUpdateProfilePhoto(ctx context.Context, request *PhotosUpdateProfilePhotoRequest) (*PhotosPhoto, error)
- func (c *Client) PhotosUploadProfilePhoto(ctx context.Context, request *PhotosUploadProfilePhotoRequest) (*PhotosPhoto, error)
- func (c *Client) StatsGetBroadcastStats(ctx context.Context, request *StatsGetBroadcastStatsRequest) (*StatsBroadcastStats, error)
- func (c *Client) StatsGetMegagroupStats(ctx context.Context, request *StatsGetMegagroupStatsRequest) (*StatsMegagroupStats, error)
- func (c *Client) StatsGetMessagePublicForwards(ctx context.Context, request *StatsGetMessagePublicForwardsRequest) (MessagesMessagesClass, error)
- func (c *Client) StatsGetMessageStats(ctx context.Context, request *StatsGetMessageStatsRequest) (*StatsMessageStats, error)
- func (c *Client) StatsLoadAsyncGraph(ctx context.Context, request *StatsLoadAsyncGraphRequest) (StatsGraphClass, error)
- func (c *Client) StickersAddStickerToSet(ctx context.Context, request *StickersAddStickerToSetRequest) (*MessagesStickerSet, error)
- func (c *Client) StickersChangeStickerPosition(ctx context.Context, request *StickersChangeStickerPositionRequest) (*MessagesStickerSet, error)
- func (c *Client) StickersCreateStickerSet(ctx context.Context, request *StickersCreateStickerSetRequest) (*MessagesStickerSet, error)
- func (c *Client) StickersRemoveStickerFromSet(ctx context.Context, request *StickersRemoveStickerFromSetRequest) (*MessagesStickerSet, error)
- func (c *Client) StickersSetStickerSetThumb(ctx context.Context, request *StickersSetStickerSetThumbRequest) (*MessagesStickerSet, error)
- func (c *Client) UpdatesGetChannelDifference(ctx context.Context, request *UpdatesGetChannelDifferenceRequest) (UpdatesChannelDifferenceClass, error)
- func (c *Client) UpdatesGetDifference(ctx context.Context, request *UpdatesGetDifferenceRequest) (UpdatesDifferenceClass, error)
- func (c *Client) UpdatesGetState(ctx context.Context, request *UpdatesGetStateRequest) (*UpdatesState, error)
- func (c *Client) UploadGetCdnFile(ctx context.Context, request *UploadGetCdnFileRequest) (UploadCdnFileClass, error)
- func (c *Client) UploadGetFile(ctx context.Context, request *UploadGetFileRequest) (UploadFileClass, error)
- func (c *Client) UploadGetWebFile(ctx context.Context, request *UploadGetWebFileRequest) (*UploadWebFile, error)
- func (c *Client) UploadSaveBigFilePart(ctx context.Context, request *UploadSaveBigFilePartRequest) (BoolClass, error)
- func (c *Client) UploadSaveFilePart(ctx context.Context, request *UploadSaveFilePartRequest) (BoolClass, error)
- func (c *Client) UsersGetFullUser(ctx context.Context, request *UsersGetFullUserRequest) (*UserFull, error)
- func (c *Client) UsersSetSecureValueErrors(ctx context.Context, request *UsersSetSecureValueErrorsRequest) (BoolClass, error)
- type CodeSettings
- type Config
- func (c *Config) Decode(b *bin.Buffer) error
- func (c *Config) Encode(b *bin.Buffer) error
- func (c *Config) GetAutoupdateURLPrefix() (value string, ok bool)
- func (c *Config) GetBaseLangPackVersion() (value int, ok bool)
- func (c *Config) GetGifSearchUsername() (value string, ok bool)
- func (c *Config) GetImgSearchUsername() (value string, ok bool)
- func (c *Config) GetLangPackVersion() (value int, ok bool)
- func (c *Config) GetStaticMapsProvider() (value string, ok bool)
- func (c *Config) GetSuggestedLangCode() (value string, ok bool)
- func (c *Config) GetTmpSessions() (value int, ok bool)
- func (c *Config) GetVenueSearchUsername() (value string, ok bool)
- func (c *Config) SetAutoupdateURLPrefix(value string)
- func (c *Config) SetBaseLangPackVersion(value int)
- func (c *Config) SetBlockedMode(value bool)
- func (c *Config) SetDefaultP2PContacts(value bool)
- func (c *Config) SetGifSearchUsername(value string)
- func (c *Config) SetIgnorePhoneEntities(value bool)
- func (c *Config) SetImgSearchUsername(value string)
- func (c *Config) SetLangPackVersion(value int)
- func (c *Config) SetPFSEnabled(value bool)
- func (c *Config) SetPhonecallsEnabled(value bool)
- func (c *Config) SetPreloadFeaturedStickers(value bool)
- func (c *Config) SetRevokePmInbox(value bool)
- func (c *Config) SetStaticMapsProvider(value string)
- func (c *Config) SetSuggestedLangCode(value string)
- func (c *Config) SetTmpSessions(value int)
- func (c *Config) SetVenueSearchUsername(value string)
- type Contact
- type ContactStatus
- type ContactsAcceptContactRequest
- type ContactsAddContactRequest
- type ContactsBlockFromRepliesRequest
- func (b *ContactsBlockFromRepliesRequest) Decode(buf *bin.Buffer) error
- func (b *ContactsBlockFromRepliesRequest) Encode(buf *bin.Buffer) error
- func (b *ContactsBlockFromRepliesRequest) SetDeleteHistory(value bool)
- func (b *ContactsBlockFromRepliesRequest) SetDeleteMessage(value bool)
- func (b *ContactsBlockFromRepliesRequest) SetReportSpam(value bool)
- type ContactsBlockRequest
- type ContactsBlocked
- type ContactsBlockedBox
- type ContactsBlockedClass
- type ContactsBlockedSlice
- type ContactsContacts
- type ContactsContactsBox
- type ContactsContactsClass
- type ContactsContactsNotModified
- type ContactsDeleteByPhonesRequest
- type ContactsDeleteContactsRequest
- type ContactsFound
- type ContactsGetBlockedRequest
- type ContactsGetContactIDsRequest
- type ContactsGetContactsRequest
- type ContactsGetLocatedRequest
- func (g *ContactsGetLocatedRequest) Decode(b *bin.Buffer) error
- func (g *ContactsGetLocatedRequest) Encode(b *bin.Buffer) error
- func (g *ContactsGetLocatedRequest) GetSelfExpires() (value int, ok bool)
- func (g *ContactsGetLocatedRequest) SetBackground(value bool)
- func (g *ContactsGetLocatedRequest) SetSelfExpires(value int)
- type ContactsGetSavedRequest
- type ContactsGetStatusesRequest
- type ContactsGetTopPeersRequest
- func (g *ContactsGetTopPeersRequest) Decode(b *bin.Buffer) error
- func (g *ContactsGetTopPeersRequest) Encode(b *bin.Buffer) error
- func (g *ContactsGetTopPeersRequest) SetBotsInline(value bool)
- func (g *ContactsGetTopPeersRequest) SetBotsPm(value bool)
- func (g *ContactsGetTopPeersRequest) SetChannels(value bool)
- func (g *ContactsGetTopPeersRequest) SetCorrespondents(value bool)
- func (g *ContactsGetTopPeersRequest) SetForwardChats(value bool)
- func (g *ContactsGetTopPeersRequest) SetForwardUsers(value bool)
- func (g *ContactsGetTopPeersRequest) SetGroups(value bool)
- func (g *ContactsGetTopPeersRequest) SetPhoneCalls(value bool)
- type ContactsImportContactsRequest
- type ContactsImportedContacts
- type ContactsResetSavedRequest
- type ContactsResetTopPeerRatingRequest
- type ContactsResolveUsernameRequest
- type ContactsResolvedPeer
- type ContactsSearchRequest
- type ContactsToggleTopPeersRequest
- type ContactsTopPeers
- type ContactsTopPeersBox
- type ContactsTopPeersClass
- type ContactsTopPeersDisabled
- type ContactsTopPeersNotModified
- type ContactsUnblockRequest
- type DataJSON
- type DcOption
- func (d *DcOption) Decode(b *bin.Buffer) error
- func (d *DcOption) Encode(b *bin.Buffer) error
- func (d *DcOption) GetSecret() (value []byte, ok bool)
- func (d *DcOption) SetCDN(value bool)
- func (d *DcOption) SetIpv6(value bool)
- func (d *DcOption) SetMediaOnly(value bool)
- func (d *DcOption) SetSecret(value []byte)
- func (d *DcOption) SetStatic(value bool)
- func (d *DcOption) SetTcpoOnly(value bool)
- type Dialog
- func (d *Dialog) Decode(b *bin.Buffer) error
- func (d *Dialog) Encode(b *bin.Buffer) error
- func (d *Dialog) GetDraft() (value DraftMessageClass, ok bool)
- func (d *Dialog) GetFolderID() (value int, ok bool)
- func (d *Dialog) GetPts() (value int, ok bool)
- func (d *Dialog) SetDraft(value DraftMessageClass)
- func (d *Dialog) SetFolderID(value int)
- func (d *Dialog) SetPinned(value bool)
- func (d *Dialog) SetPts(value int)
- func (d *Dialog) SetUnreadMark(value bool)
- type DialogBox
- type DialogClass
- type DialogFilter
- func (d *DialogFilter) Decode(b *bin.Buffer) error
- func (d *DialogFilter) Encode(b *bin.Buffer) error
- func (d *DialogFilter) GetEmoticon() (value string, ok bool)
- func (d *DialogFilter) SetBots(value bool)
- func (d *DialogFilter) SetBroadcasts(value bool)
- func (d *DialogFilter) SetContacts(value bool)
- func (d *DialogFilter) SetEmoticon(value string)
- func (d *DialogFilter) SetExcludeArchived(value bool)
- func (d *DialogFilter) SetExcludeMuted(value bool)
- func (d *DialogFilter) SetExcludeRead(value bool)
- func (d *DialogFilter) SetGroups(value bool)
- func (d *DialogFilter) SetNonContacts(value bool)
- type DialogFilterSuggested
- type DialogFolder
- type DialogPeer
- type DialogPeerBox
- type DialogPeerClass
- type DialogPeerFolder
- type Document
- func (d *Document) Decode(b *bin.Buffer) error
- func (d *Document) Encode(b *bin.Buffer) error
- func (d *Document) GetThumbs() (value []PhotoSizeClass, ok bool)
- func (d *Document) GetVideoThumbs() (value []VideoSize, ok bool)
- func (d *Document) SetThumbs(value []PhotoSizeClass)
- func (d *Document) SetVideoThumbs(value []VideoSize)
- type DocumentAttributeAnimated
- type DocumentAttributeAudio
- func (d *DocumentAttributeAudio) Decode(b *bin.Buffer) error
- func (d *DocumentAttributeAudio) Encode(b *bin.Buffer) error
- func (d *DocumentAttributeAudio) GetPerformer() (value string, ok bool)
- func (d *DocumentAttributeAudio) GetTitle() (value string, ok bool)
- func (d *DocumentAttributeAudio) GetWaveform() (value []byte, ok bool)
- func (d *DocumentAttributeAudio) SetPerformer(value string)
- func (d *DocumentAttributeAudio) SetTitle(value string)
- func (d *DocumentAttributeAudio) SetVoice(value bool)
- func (d *DocumentAttributeAudio) SetWaveform(value []byte)
- type DocumentAttributeBox
- type DocumentAttributeClass
- type DocumentAttributeFilename
- type DocumentAttributeHasStickers
- type DocumentAttributeImageSize
- type DocumentAttributeSticker
- func (d *DocumentAttributeSticker) Decode(b *bin.Buffer) error
- func (d *DocumentAttributeSticker) Encode(b *bin.Buffer) error
- func (d *DocumentAttributeSticker) GetMaskCoords() (value MaskCoords, ok bool)
- func (d *DocumentAttributeSticker) SetMask(value bool)
- func (d *DocumentAttributeSticker) SetMaskCoords(value MaskCoords)
- type DocumentAttributeVideo
- type DocumentBox
- type DocumentClass
- type DocumentEmpty
- type DraftMessage
- func (d *DraftMessage) Decode(b *bin.Buffer) error
- func (d *DraftMessage) Encode(b *bin.Buffer) error
- func (d *DraftMessage) GetEntities() (value []MessageEntityClass, ok bool)
- func (d *DraftMessage) GetReplyToMsgID() (value int, ok bool)
- func (d *DraftMessage) SetEntities(value []MessageEntityClass)
- func (d *DraftMessage) SetNoWebpage(value bool)
- func (d *DraftMessage) SetReplyToMsgID(value int)
- type DraftMessageBox
- type DraftMessageClass
- type DraftMessageEmpty
- type EmojiKeyword
- type EmojiKeywordBox
- type EmojiKeywordClass
- type EmojiKeywordDeleted
- type EmojiKeywordsDifference
- type EmojiLanguage
- type EmojiURL
- type EncryptedChat
- type EncryptedChatBox
- type EncryptedChatClass
- type EncryptedChatDiscarded
- type EncryptedChatEmpty
- type EncryptedChatRequested
- type EncryptedChatWaiting
- type EncryptedFile
- type EncryptedFileBox
- type EncryptedFileClass
- type EncryptedFileEmpty
- type EncryptedMessage
- type EncryptedMessageBox
- type EncryptedMessageClass
- type EncryptedMessageService
- type Error
- type ExportedChatInviteBox
- type ExportedChatInviteClass
- type ExportedMessageLink
- type FileHash
- type FileLocationToBeDeprecated
- type Folder
- func (f *Folder) Decode(b *bin.Buffer) error
- func (f *Folder) Encode(b *bin.Buffer) error
- func (f *Folder) GetPhoto() (value ChatPhotoClass, ok bool)
- func (f *Folder) SetAutofillNewBroadcasts(value bool)
- func (f *Folder) SetAutofillNewCorrespondents(value bool)
- func (f *Folder) SetAutofillPublicGroups(value bool)
- func (f *Folder) SetPhoto(value ChatPhotoClass)
- type FolderPeer
- type FoldersDeleteFolderRequest
- type FoldersEditPeerFoldersRequest
- type Game
- type GeoPoint
- type GeoPointBox
- type GeoPointClass
- type GeoPointEmpty
- type GlobalPrivacySettings
- type HelpAcceptTermsOfServiceRequest
- type HelpAppUpdate
- func (a *HelpAppUpdate) Decode(b *bin.Buffer) error
- func (a *HelpAppUpdate) Encode(b *bin.Buffer) error
- func (a *HelpAppUpdate) GetDocument() (value DocumentClass, ok bool)
- func (a *HelpAppUpdate) GetURL() (value string, ok bool)
- func (a *HelpAppUpdate) SetCanNotSkip(value bool)
- func (a *HelpAppUpdate) SetDocument(value DocumentClass)
- func (a *HelpAppUpdate) SetURL(value string)
- type HelpAppUpdateBox
- type HelpAppUpdateClass
- type HelpCountriesList
- type HelpCountriesListBox
- type HelpCountriesListClass
- type HelpCountriesListNotModified
- type HelpCountry
- type HelpCountryCode
- func (c *HelpCountryCode) Decode(b *bin.Buffer) error
- func (c *HelpCountryCode) Encode(b *bin.Buffer) error
- func (c *HelpCountryCode) GetPatterns() (value []string, ok bool)
- func (c *HelpCountryCode) GetPrefixes() (value []string, ok bool)
- func (c *HelpCountryCode) SetPatterns(value []string)
- func (c *HelpCountryCode) SetPrefixes(value []string)
- type HelpDeepLinkInfo
- func (d *HelpDeepLinkInfo) Decode(b *bin.Buffer) error
- func (d *HelpDeepLinkInfo) Encode(b *bin.Buffer) error
- func (d *HelpDeepLinkInfo) GetEntities() (value []MessageEntityClass, ok bool)
- func (d *HelpDeepLinkInfo) SetEntities(value []MessageEntityClass)
- func (d *HelpDeepLinkInfo) SetUpdateApp(value bool)
- type HelpDeepLinkInfoBox
- type HelpDeepLinkInfoClass
- type HelpDeepLinkInfoEmpty
- type HelpDismissSuggestionRequest
- type HelpEditUserInfoRequest
- type HelpGetAppChangelogRequest
- type HelpGetAppConfigRequest
- type HelpGetAppUpdateRequest
- type HelpGetCdnConfigRequest
- type HelpGetConfigRequest
- type HelpGetCountriesListRequest
- type HelpGetDeepLinkInfoRequest
- type HelpGetInviteTextRequest
- type HelpGetNearestDcRequest
- type HelpGetPassportConfigRequest
- type HelpGetPromoDataRequest
- type HelpGetRecentMeUrlsRequest
- type HelpGetSupportNameRequest
- type HelpGetSupportRequest
- type HelpGetTermsOfServiceUpdateRequest
- type HelpGetUserInfoRequest
- type HelpHidePromoDataRequest
- type HelpInviteText
- type HelpNoAppUpdate
- type HelpPassportConfig
- type HelpPassportConfigBox
- type HelpPassportConfigClass
- type HelpPassportConfigNotModified
- type HelpPromoData
- func (p *HelpPromoData) Decode(b *bin.Buffer) error
- func (p *HelpPromoData) Encode(b *bin.Buffer) error
- func (p *HelpPromoData) GetPsaMessage() (value string, ok bool)
- func (p *HelpPromoData) GetPsaType() (value string, ok bool)
- func (p *HelpPromoData) SetProxy(value bool)
- func (p *HelpPromoData) SetPsaMessage(value string)
- func (p *HelpPromoData) SetPsaType(value string)
- type HelpPromoDataBox
- type HelpPromoDataClass
- type HelpPromoDataEmpty
- type HelpRecentMeUrls
- type HelpSaveAppLogRequest
- type HelpSetBotUpdatesStatusRequest
- type HelpSupport
- type HelpSupportName
- type HelpTermsOfService
- type HelpTermsOfServiceUpdate
- type HelpTermsOfServiceUpdateBox
- type HelpTermsOfServiceUpdateClass
- type HelpTermsOfServiceUpdateEmpty
- type HelpUserInfo
- type HelpUserInfoBox
- type HelpUserInfoClass
- type HelpUserInfoEmpty
- type HighScore
- type ImportedContact
- type InlineBotSwitchPM
- type InputAppEvent
- type InputBotInlineMessageBox
- type InputBotInlineMessageClass
- type InputBotInlineMessageGame
- type InputBotInlineMessageID
- type InputBotInlineMessageMediaAuto
- func (i *InputBotInlineMessageMediaAuto) Decode(b *bin.Buffer) error
- func (i *InputBotInlineMessageMediaAuto) Encode(b *bin.Buffer) error
- func (i *InputBotInlineMessageMediaAuto) GetEntities() (value []MessageEntityClass, ok bool)
- func (i *InputBotInlineMessageMediaAuto) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (i *InputBotInlineMessageMediaAuto) SetEntities(value []MessageEntityClass)
- func (i *InputBotInlineMessageMediaAuto) SetReplyMarkup(value ReplyMarkupClass)
- type InputBotInlineMessageMediaContact
- func (i *InputBotInlineMessageMediaContact) Decode(b *bin.Buffer) error
- func (i *InputBotInlineMessageMediaContact) Encode(b *bin.Buffer) error
- func (i *InputBotInlineMessageMediaContact) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (i *InputBotInlineMessageMediaContact) SetReplyMarkup(value ReplyMarkupClass)
- type InputBotInlineMessageMediaGeo
- func (i *InputBotInlineMessageMediaGeo) Decode(b *bin.Buffer) error
- func (i *InputBotInlineMessageMediaGeo) Encode(b *bin.Buffer) error
- func (i *InputBotInlineMessageMediaGeo) GetHeading() (value int, ok bool)
- func (i *InputBotInlineMessageMediaGeo) GetPeriod() (value int, ok bool)
- func (i *InputBotInlineMessageMediaGeo) GetProximityNotificationRadius() (value int, ok bool)
- func (i *InputBotInlineMessageMediaGeo) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (i *InputBotInlineMessageMediaGeo) SetHeading(value int)
- func (i *InputBotInlineMessageMediaGeo) SetPeriod(value int)
- func (i *InputBotInlineMessageMediaGeo) SetProximityNotificationRadius(value int)
- func (i *InputBotInlineMessageMediaGeo) SetReplyMarkup(value ReplyMarkupClass)
- type InputBotInlineMessageMediaVenue
- func (i *InputBotInlineMessageMediaVenue) Decode(b *bin.Buffer) error
- func (i *InputBotInlineMessageMediaVenue) Encode(b *bin.Buffer) error
- func (i *InputBotInlineMessageMediaVenue) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (i *InputBotInlineMessageMediaVenue) SetReplyMarkup(value ReplyMarkupClass)
- type InputBotInlineMessageText
- func (i *InputBotInlineMessageText) Decode(b *bin.Buffer) error
- func (i *InputBotInlineMessageText) Encode(b *bin.Buffer) error
- func (i *InputBotInlineMessageText) GetEntities() (value []MessageEntityClass, ok bool)
- func (i *InputBotInlineMessageText) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (i *InputBotInlineMessageText) SetEntities(value []MessageEntityClass)
- func (i *InputBotInlineMessageText) SetNoWebpage(value bool)
- func (i *InputBotInlineMessageText) SetReplyMarkup(value ReplyMarkupClass)
- type InputBotInlineResult
- func (i *InputBotInlineResult) Decode(b *bin.Buffer) error
- func (i *InputBotInlineResult) Encode(b *bin.Buffer) error
- func (i *InputBotInlineResult) GetContent() (value InputWebDocument, ok bool)
- func (i *InputBotInlineResult) GetDescription() (value string, ok bool)
- func (i *InputBotInlineResult) GetThumb() (value InputWebDocument, ok bool)
- func (i *InputBotInlineResult) GetTitle() (value string, ok bool)
- func (i *InputBotInlineResult) GetURL() (value string, ok bool)
- func (i *InputBotInlineResult) SetContent(value InputWebDocument)
- func (i *InputBotInlineResult) SetDescription(value string)
- func (i *InputBotInlineResult) SetThumb(value InputWebDocument)
- func (i *InputBotInlineResult) SetTitle(value string)
- func (i *InputBotInlineResult) SetURL(value string)
- type InputBotInlineResultBox
- type InputBotInlineResultClass
- type InputBotInlineResultDocument
- func (i *InputBotInlineResultDocument) Decode(b *bin.Buffer) error
- func (i *InputBotInlineResultDocument) Encode(b *bin.Buffer) error
- func (i *InputBotInlineResultDocument) GetDescription() (value string, ok bool)
- func (i *InputBotInlineResultDocument) GetTitle() (value string, ok bool)
- func (i *InputBotInlineResultDocument) SetDescription(value string)
- func (i *InputBotInlineResultDocument) SetTitle(value string)
- type InputBotInlineResultGame
- type InputBotInlineResultPhoto
- type InputChannel
- type InputChannelBox
- type InputChannelClass
- type InputChannelEmpty
- type InputChannelFromMessage
- type InputChatPhoto
- type InputChatPhotoBox
- type InputChatPhotoClass
- type InputChatPhotoEmpty
- type InputChatUploadedPhoto
- func (i *InputChatUploadedPhoto) Decode(b *bin.Buffer) error
- func (i *InputChatUploadedPhoto) Encode(b *bin.Buffer) error
- func (i *InputChatUploadedPhoto) GetFile() (value InputFileClass, ok bool)
- func (i *InputChatUploadedPhoto) GetVideo() (value InputFileClass, ok bool)
- func (i *InputChatUploadedPhoto) GetVideoStartTs() (value float64, ok bool)
- func (i *InputChatUploadedPhoto) SetFile(value InputFileClass)
- func (i *InputChatUploadedPhoto) SetVideo(value InputFileClass)
- func (i *InputChatUploadedPhoto) SetVideoStartTs(value float64)
- type InputCheckPasswordEmpty
- type InputCheckPasswordSRP
- type InputCheckPasswordSRPBox
- type InputCheckPasswordSRPClass
- type InputClientProxy
- type InputDialogPeer
- type InputDialogPeerBox
- type InputDialogPeerClass
- type InputDialogPeerFolder
- type InputDocument
- type InputDocumentBox
- type InputDocumentClass
- type InputDocumentEmpty
- type InputDocumentFileLocation
- type InputEncryptedChat
- type InputEncryptedFile
- type InputEncryptedFileBigUploaded
- type InputEncryptedFileBox
- type InputEncryptedFileClass
- type InputEncryptedFileEmpty
- type InputEncryptedFileLocation
- type InputEncryptedFileUploaded
- type InputFile
- type InputFileBig
- type InputFileBox
- type InputFileClass
- type InputFileLocation
- type InputFileLocationBox
- type InputFileLocationClass
- type InputFolderPeer
- type InputGameBox
- type InputGameClass
- type InputGameID
- type InputGameShortName
- type InputGeoPoint
- type InputGeoPointBox
- type InputGeoPointClass
- type InputGeoPointEmpty
- type InputKeyboardButtonUrlAuth
- func (i *InputKeyboardButtonUrlAuth) Decode(b *bin.Buffer) error
- func (i *InputKeyboardButtonUrlAuth) Encode(b *bin.Buffer) error
- func (i *InputKeyboardButtonUrlAuth) GetFwdText() (value string, ok bool)
- func (i *InputKeyboardButtonUrlAuth) SetFwdText(value string)
- func (i *InputKeyboardButtonUrlAuth) SetRequestWriteAccess(value bool)
- type InputMediaBox
- type InputMediaClass
- type InputMediaContact
- type InputMediaDice
- type InputMediaDocument
- type InputMediaDocumentExternal
- type InputMediaEmpty
- type InputMediaGame
- type InputMediaGeoLive
- func (i *InputMediaGeoLive) Decode(b *bin.Buffer) error
- func (i *InputMediaGeoLive) Encode(b *bin.Buffer) error
- func (i *InputMediaGeoLive) GetHeading() (value int, ok bool)
- func (i *InputMediaGeoLive) GetPeriod() (value int, ok bool)
- func (i *InputMediaGeoLive) GetProximityNotificationRadius() (value int, ok bool)
- func (i *InputMediaGeoLive) SetHeading(value int)
- func (i *InputMediaGeoLive) SetPeriod(value int)
- func (i *InputMediaGeoLive) SetProximityNotificationRadius(value int)
- func (i *InputMediaGeoLive) SetStopped(value bool)
- type InputMediaGeoPoint
- type InputMediaInvoice
- type InputMediaPhoto
- type InputMediaPhotoExternal
- type InputMediaPoll
- func (i *InputMediaPoll) Decode(b *bin.Buffer) error
- func (i *InputMediaPoll) Encode(b *bin.Buffer) error
- func (i *InputMediaPoll) GetCorrectAnswers() (value [][]byte, ok bool)
- func (i *InputMediaPoll) GetSolution() (value string, ok bool)
- func (i *InputMediaPoll) GetSolutionEntities() (value []MessageEntityClass, ok bool)
- func (i *InputMediaPoll) SetCorrectAnswers(value [][]byte)
- func (i *InputMediaPoll) SetSolution(value string)
- func (i *InputMediaPoll) SetSolutionEntities(value []MessageEntityClass)
- type InputMediaUploadedDocument
- func (i *InputMediaUploadedDocument) Decode(b *bin.Buffer) error
- func (i *InputMediaUploadedDocument) Encode(b *bin.Buffer) error
- func (i *InputMediaUploadedDocument) GetStickers() (value []InputDocumentClass, ok bool)
- func (i *InputMediaUploadedDocument) GetTTLSeconds() (value int, ok bool)
- func (i *InputMediaUploadedDocument) GetThumb() (value InputFileClass, ok bool)
- func (i *InputMediaUploadedDocument) SetForceFile(value bool)
- func (i *InputMediaUploadedDocument) SetNosoundVideo(value bool)
- func (i *InputMediaUploadedDocument) SetStickers(value []InputDocumentClass)
- func (i *InputMediaUploadedDocument) SetTTLSeconds(value int)
- func (i *InputMediaUploadedDocument) SetThumb(value InputFileClass)
- type InputMediaUploadedPhoto
- func (i *InputMediaUploadedPhoto) Decode(b *bin.Buffer) error
- func (i *InputMediaUploadedPhoto) Encode(b *bin.Buffer) error
- func (i *InputMediaUploadedPhoto) GetStickers() (value []InputDocumentClass, ok bool)
- func (i *InputMediaUploadedPhoto) GetTTLSeconds() (value int, ok bool)
- func (i *InputMediaUploadedPhoto) SetStickers(value []InputDocumentClass)
- func (i *InputMediaUploadedPhoto) SetTTLSeconds(value int)
- type InputMediaVenue
- type InputMessageBox
- type InputMessageCallbackQuery
- type InputMessageClass
- type InputMessageEntityMentionName
- type InputMessageID
- type InputMessagePinned
- type InputMessageReplyTo
- type InputMessagesFilterChatPhotos
- type InputMessagesFilterContacts
- type InputMessagesFilterDocument
- type InputMessagesFilterEmpty
- type InputMessagesFilterGeo
- type InputMessagesFilterGif
- type InputMessagesFilterMusic
- type InputMessagesFilterMyMentions
- type InputMessagesFilterPhoneCalls
- type InputMessagesFilterPhotoVideo
- type InputMessagesFilterPhotos
- type InputMessagesFilterPinned
- type InputMessagesFilterRoundVideo
- type InputMessagesFilterRoundVoice
- type InputMessagesFilterUrl
- type InputMessagesFilterVideo
- type InputMessagesFilterVoice
- type InputNotifyBroadcasts
- type InputNotifyChats
- type InputNotifyPeer
- type InputNotifyPeerBox
- type InputNotifyPeerClass
- type InputNotifyUsers
- type InputPaymentCredentials
- type InputPaymentCredentialsAndroidPay
- type InputPaymentCredentialsApplePay
- type InputPaymentCredentialsBox
- type InputPaymentCredentialsClass
- type InputPaymentCredentialsSaved
- type InputPeerBox
- type InputPeerChannel
- type InputPeerChannelFromMessage
- type InputPeerChat
- type InputPeerClass
- type InputPeerEmpty
- type InputPeerNotifySettings
- func (i *InputPeerNotifySettings) Decode(b *bin.Buffer) error
- func (i *InputPeerNotifySettings) Encode(b *bin.Buffer) error
- func (i *InputPeerNotifySettings) GetMuteUntil() (value int, ok bool)
- func (i *InputPeerNotifySettings) GetSound() (value string, ok bool)
- func (i *InputPeerNotifySettings) SetMuteUntil(value int)
- func (i *InputPeerNotifySettings) SetShowPreviews(value bool)
- func (i *InputPeerNotifySettings) SetSilent(value bool)
- func (i *InputPeerNotifySettings) SetSound(value string)
- type InputPeerPhotoFileLocation
- type InputPeerSelf
- type InputPeerUser
- type InputPeerUserFromMessage
- type InputPhoneCall
- type InputPhoneContact
- type InputPhoto
- type InputPhotoBox
- type InputPhotoClass
- type InputPhotoEmpty
- type InputPhotoFileLocation
- type InputPhotoLegacyFileLocation
- type InputPrivacyKeyAddedByPhone
- type InputPrivacyKeyBox
- type InputPrivacyKeyChatInvite
- type InputPrivacyKeyClass
- type InputPrivacyKeyForwards
- type InputPrivacyKeyPhoneCall
- type InputPrivacyKeyPhoneNumber
- type InputPrivacyKeyPhoneP2P
- type InputPrivacyKeyProfilePhoto
- type InputPrivacyKeyStatusTimestamp
- type InputPrivacyRuleBox
- type InputPrivacyRuleClass
- type InputPrivacyValueAllowAll
- type InputPrivacyValueAllowChatParticipants
- type InputPrivacyValueAllowContacts
- type InputPrivacyValueAllowUsers
- type InputPrivacyValueDisallowAll
- type InputPrivacyValueDisallowChatParticipants
- type InputPrivacyValueDisallowContacts
- type InputPrivacyValueDisallowUsers
- type InputReportReasonChildAbuse
- type InputReportReasonCopyright
- type InputReportReasonGeoIrrelevant
- type InputReportReasonOther
- type InputReportReasonPornography
- type InputReportReasonSpam
- type InputReportReasonViolence
- type InputSecureFile
- type InputSecureFileBox
- type InputSecureFileClass
- type InputSecureFileLocation
- type InputSecureFileUploaded
- type InputSecureValue
- func (i *InputSecureValue) Decode(b *bin.Buffer) error
- func (i *InputSecureValue) Encode(b *bin.Buffer) error
- func (i *InputSecureValue) GetData() (value SecureData, ok bool)
- func (i *InputSecureValue) GetFiles() (value []InputSecureFileClass, ok bool)
- func (i *InputSecureValue) GetFrontSide() (value InputSecureFileClass, ok bool)
- func (i *InputSecureValue) GetPlainData() (value SecurePlainDataClass, ok bool)
- func (i *InputSecureValue) GetReverseSide() (value InputSecureFileClass, ok bool)
- func (i *InputSecureValue) GetSelfie() (value InputSecureFileClass, ok bool)
- func (i *InputSecureValue) GetTranslation() (value []InputSecureFileClass, ok bool)
- func (i *InputSecureValue) SetData(value SecureData)
- func (i *InputSecureValue) SetFiles(value []InputSecureFileClass)
- func (i *InputSecureValue) SetFrontSide(value InputSecureFileClass)
- func (i *InputSecureValue) SetPlainData(value SecurePlainDataClass)
- func (i *InputSecureValue) SetReverseSide(value InputSecureFileClass)
- func (i *InputSecureValue) SetSelfie(value InputSecureFileClass)
- func (i *InputSecureValue) SetTranslation(value []InputSecureFileClass)
- type InputSingleMedia
- type InputStickerSetAnimatedEmoji
- type InputStickerSetBox
- type InputStickerSetClass
- type InputStickerSetDice
- type InputStickerSetEmpty
- type InputStickerSetID
- type InputStickerSetItem
- type InputStickerSetShortName
- type InputStickerSetThumb
- type InputStickeredMediaBox
- type InputStickeredMediaClass
- type InputStickeredMediaDocument
- type InputStickeredMediaPhoto
- type InputTakeoutFileLocation
- type InputTheme
- type InputThemeBox
- type InputThemeClass
- type InputThemeSettings
- func (i *InputThemeSettings) Decode(b *bin.Buffer) error
- func (i *InputThemeSettings) Encode(b *bin.Buffer) error
- func (i *InputThemeSettings) GetMessageBottomColor() (value int, ok bool)
- func (i *InputThemeSettings) GetMessageTopColor() (value int, ok bool)
- func (i *InputThemeSettings) GetWallpaper() (value InputWallPaperClass, ok bool)
- func (i *InputThemeSettings) GetWallpaperSettings() (value WallPaperSettings, ok bool)
- func (i *InputThemeSettings) SetMessageBottomColor(value int)
- func (i *InputThemeSettings) SetMessageTopColor(value int)
- func (i *InputThemeSettings) SetWallpaper(value InputWallPaperClass)
- func (i *InputThemeSettings) SetWallpaperSettings(value WallPaperSettings)
- type InputThemeSlug
- type InputUser
- type InputUserBox
- type InputUserClass
- type InputUserEmpty
- type InputUserFromMessage
- type InputUserSelf
- type InputWallPaper
- type InputWallPaperBox
- type InputWallPaperClass
- type InputWallPaperNoFile
- type InputWallPaperSlug
- type InputWebDocument
- type InputWebFileGeoPointLocation
- type InputWebFileLocation
- type InputWebFileLocationBox
- type InputWebFileLocationClass
- type Invoice
- func (i *Invoice) Decode(b *bin.Buffer) error
- func (i *Invoice) Encode(b *bin.Buffer) error
- func (i *Invoice) SetEmailRequested(value bool)
- func (i *Invoice) SetEmailToProvider(value bool)
- func (i *Invoice) SetFlexible(value bool)
- func (i *Invoice) SetNameRequested(value bool)
- func (i *Invoice) SetPhoneRequested(value bool)
- func (i *Invoice) SetPhoneToProvider(value bool)
- func (i *Invoice) SetShippingAddressRequested(value bool)
- func (i *Invoice) SetTest(value bool)
- type Invoker
- type JSONValueBox
- type JSONValueClass
- type JsonArray
- type JsonBool
- type JsonNull
- type JsonNumber
- type JsonObject
- type JsonObjectValue
- type JsonString
- type KeyboardButton
- type KeyboardButtonBox
- type KeyboardButtonBuy
- type KeyboardButtonCallback
- type KeyboardButtonClass
- type KeyboardButtonGame
- type KeyboardButtonRequestGeoLocation
- type KeyboardButtonRequestPhone
- type KeyboardButtonRequestPoll
- type KeyboardButtonRow
- type KeyboardButtonSwitchInline
- type KeyboardButtonUrl
- type KeyboardButtonUrlAuth
- type LabeledPrice
- type LangPackDifference
- type LangPackLanguage
- func (l *LangPackLanguage) Decode(b *bin.Buffer) error
- func (l *LangPackLanguage) Encode(b *bin.Buffer) error
- func (l *LangPackLanguage) GetBaseLangCode() (value string, ok bool)
- func (l *LangPackLanguage) SetBaseLangCode(value string)
- func (l *LangPackLanguage) SetBeta(value bool)
- func (l *LangPackLanguage) SetOfficial(value bool)
- func (l *LangPackLanguage) SetRtl(value bool)
- type LangPackString
- type LangPackStringBox
- type LangPackStringClass
- type LangPackStringDeleted
- type LangPackStringPluralized
- func (l *LangPackStringPluralized) Decode(b *bin.Buffer) error
- func (l *LangPackStringPluralized) Encode(b *bin.Buffer) error
- func (l *LangPackStringPluralized) GetFewValue() (value string, ok bool)
- func (l *LangPackStringPluralized) GetManyValue() (value string, ok bool)
- func (l *LangPackStringPluralized) GetOneValue() (value string, ok bool)
- func (l *LangPackStringPluralized) GetTwoValue() (value string, ok bool)
- func (l *LangPackStringPluralized) GetZeroValue() (value string, ok bool)
- func (l *LangPackStringPluralized) SetFewValue(value string)
- func (l *LangPackStringPluralized) SetManyValue(value string)
- func (l *LangPackStringPluralized) SetOneValue(value string)
- func (l *LangPackStringPluralized) SetTwoValue(value string)
- func (l *LangPackStringPluralized) SetZeroValue(value string)
- type LangpackGetDifferenceRequest
- type LangpackGetLangPackRequest
- type LangpackGetLanguageRequest
- type LangpackGetLanguagesRequest
- type LangpackGetStringsRequest
- type MaskCoords
- type Message
- func (m *Message) Decode(b *bin.Buffer) error
- func (m *Message) Encode(b *bin.Buffer) error
- func (m *Message) GetEditDate() (value int, ok bool)
- func (m *Message) GetEntities() (value []MessageEntityClass, ok bool)
- func (m *Message) GetForwards() (value int, ok bool)
- func (m *Message) GetFromID() (value PeerClass, ok bool)
- func (m *Message) GetFwdFrom() (value MessageFwdHeader, ok bool)
- func (m *Message) GetGroupedID() (value int64, ok bool)
- func (m *Message) GetMedia() (value MessageMediaClass, ok bool)
- func (m *Message) GetPostAuthor() (value string, ok bool)
- func (m *Message) GetReplies() (value MessageReplies, ok bool)
- func (m *Message) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (m *Message) GetReplyTo() (value MessageReplyHeader, ok bool)
- func (m *Message) GetRestrictionReason() (value []RestrictionReason, ok bool)
- func (m *Message) GetViaBotID() (value int, ok bool)
- func (m *Message) GetViews() (value int, ok bool)
- func (m *Message) SetEditDate(value int)
- func (m *Message) SetEditHide(value bool)
- func (m *Message) SetEntities(value []MessageEntityClass)
- func (m *Message) SetForwards(value int)
- func (m *Message) SetFromID(value PeerClass)
- func (m *Message) SetFromScheduled(value bool)
- func (m *Message) SetFwdFrom(value MessageFwdHeader)
- func (m *Message) SetGroupedID(value int64)
- func (m *Message) SetLegacy(value bool)
- func (m *Message) SetMedia(value MessageMediaClass)
- func (m *Message) SetMediaUnread(value bool)
- func (m *Message) SetMentioned(value bool)
- func (m *Message) SetOut(value bool)
- func (m *Message) SetPinned(value bool)
- func (m *Message) SetPost(value bool)
- func (m *Message) SetPostAuthor(value string)
- func (m *Message) SetReplies(value MessageReplies)
- func (m *Message) SetReplyMarkup(value ReplyMarkupClass)
- func (m *Message) SetReplyTo(value MessageReplyHeader)
- func (m *Message) SetRestrictionReason(value []RestrictionReason)
- func (m *Message) SetSilent(value bool)
- func (m *Message) SetViaBotID(value int)
- func (m *Message) SetViews(value int)
- type MessageActionBotAllowed
- type MessageActionBox
- type MessageActionChannelCreate
- type MessageActionChannelMigrateFrom
- type MessageActionChatAddUser
- type MessageActionChatCreate
- type MessageActionChatDeletePhoto
- type MessageActionChatDeleteUser
- type MessageActionChatEditPhoto
- type MessageActionChatEditTitle
- type MessageActionChatJoinedByLink
- type MessageActionChatMigrateTo
- type MessageActionClass
- type MessageActionContactSignUp
- type MessageActionCustomAction
- type MessageActionEmpty
- type MessageActionGameScore
- type MessageActionGeoProximityReached
- type MessageActionHistoryClear
- type MessageActionPaymentSent
- type MessageActionPaymentSentMe
- func (m *MessageActionPaymentSentMe) Decode(b *bin.Buffer) error
- func (m *MessageActionPaymentSentMe) Encode(b *bin.Buffer) error
- func (m *MessageActionPaymentSentMe) GetInfo() (value PaymentRequestedInfo, ok bool)
- func (m *MessageActionPaymentSentMe) GetShippingOptionID() (value string, ok bool)
- func (m *MessageActionPaymentSentMe) SetInfo(value PaymentRequestedInfo)
- func (m *MessageActionPaymentSentMe) SetShippingOptionID(value string)
- type MessageActionPhoneCall
- func (m *MessageActionPhoneCall) Decode(b *bin.Buffer) error
- func (m *MessageActionPhoneCall) Encode(b *bin.Buffer) error
- func (m *MessageActionPhoneCall) GetDuration() (value int, ok bool)
- func (m *MessageActionPhoneCall) GetReason() (value PhoneCallDiscardReasonClass, ok bool)
- func (m *MessageActionPhoneCall) SetDuration(value int)
- func (m *MessageActionPhoneCall) SetReason(value PhoneCallDiscardReasonClass)
- func (m *MessageActionPhoneCall) SetVideo(value bool)
- type MessageActionPinMessage
- type MessageActionScreenshotTaken
- type MessageActionSecureValuesSent
- type MessageActionSecureValuesSentMe
- type MessageBox
- type MessageClass
- type MessageEmpty
- type MessageEntityBankCard
- type MessageEntityBlockquote
- type MessageEntityBold
- type MessageEntityBotCommand
- type MessageEntityBox
- type MessageEntityCashtag
- type MessageEntityClass
- type MessageEntityCode
- type MessageEntityEmail
- type MessageEntityHashtag
- type MessageEntityItalic
- type MessageEntityMention
- type MessageEntityMentionName
- type MessageEntityPhone
- type MessageEntityPre
- type MessageEntityStrike
- type MessageEntityTextUrl
- type MessageEntityUnderline
- type MessageEntityUnknown
- type MessageEntityUrl
- type MessageFwdHeader
- func (m *MessageFwdHeader) Decode(b *bin.Buffer) error
- func (m *MessageFwdHeader) Encode(b *bin.Buffer) error
- func (m *MessageFwdHeader) GetChannelPost() (value int, ok bool)
- func (m *MessageFwdHeader) GetFromID() (value PeerClass, ok bool)
- func (m *MessageFwdHeader) GetFromName() (value string, ok bool)
- func (m *MessageFwdHeader) GetPostAuthor() (value string, ok bool)
- func (m *MessageFwdHeader) GetPsaType() (value string, ok bool)
- func (m *MessageFwdHeader) GetSavedFromMsgID() (value int, ok bool)
- func (m *MessageFwdHeader) GetSavedFromPeer() (value PeerClass, ok bool)
- func (m *MessageFwdHeader) SetChannelPost(value int)
- func (m *MessageFwdHeader) SetFromID(value PeerClass)
- func (m *MessageFwdHeader) SetFromName(value string)
- func (m *MessageFwdHeader) SetPostAuthor(value string)
- func (m *MessageFwdHeader) SetPsaType(value string)
- func (m *MessageFwdHeader) SetSavedFromMsgID(value int)
- func (m *MessageFwdHeader) SetSavedFromPeer(value PeerClass)
- type MessageInteractionCounters
- type MessageMediaBox
- type MessageMediaClass
- type MessageMediaContact
- type MessageMediaDice
- type MessageMediaDocument
- func (m *MessageMediaDocument) Decode(b *bin.Buffer) error
- func (m *MessageMediaDocument) Encode(b *bin.Buffer) error
- func (m *MessageMediaDocument) GetDocument() (value DocumentClass, ok bool)
- func (m *MessageMediaDocument) GetTTLSeconds() (value int, ok bool)
- func (m *MessageMediaDocument) SetDocument(value DocumentClass)
- func (m *MessageMediaDocument) SetTTLSeconds(value int)
- type MessageMediaEmpty
- type MessageMediaGame
- type MessageMediaGeo
- type MessageMediaGeoLive
- func (m *MessageMediaGeoLive) Decode(b *bin.Buffer) error
- func (m *MessageMediaGeoLive) Encode(b *bin.Buffer) error
- func (m *MessageMediaGeoLive) GetHeading() (value int, ok bool)
- func (m *MessageMediaGeoLive) GetProximityNotificationRadius() (value int, ok bool)
- func (m *MessageMediaGeoLive) SetHeading(value int)
- func (m *MessageMediaGeoLive) SetProximityNotificationRadius(value int)
- type MessageMediaInvoice
- func (m *MessageMediaInvoice) Decode(b *bin.Buffer) error
- func (m *MessageMediaInvoice) Encode(b *bin.Buffer) error
- func (m *MessageMediaInvoice) GetPhoto() (value WebDocumentClass, ok bool)
- func (m *MessageMediaInvoice) GetReceiptMsgID() (value int, ok bool)
- func (m *MessageMediaInvoice) SetPhoto(value WebDocumentClass)
- func (m *MessageMediaInvoice) SetReceiptMsgID(value int)
- func (m *MessageMediaInvoice) SetShippingAddressRequested(value bool)
- func (m *MessageMediaInvoice) SetTest(value bool)
- type MessageMediaPhoto
- func (m *MessageMediaPhoto) Decode(b *bin.Buffer) error
- func (m *MessageMediaPhoto) Encode(b *bin.Buffer) error
- func (m *MessageMediaPhoto) GetPhoto() (value PhotoClass, ok bool)
- func (m *MessageMediaPhoto) GetTTLSeconds() (value int, ok bool)
- func (m *MessageMediaPhoto) SetPhoto(value PhotoClass)
- func (m *MessageMediaPhoto) SetTTLSeconds(value int)
- type MessageMediaPoll
- type MessageMediaUnsupported
- type MessageMediaVenue
- type MessageMediaWebPage
- type MessageRange
- type MessageReplies
- func (m *MessageReplies) Decode(b *bin.Buffer) error
- func (m *MessageReplies) Encode(b *bin.Buffer) error
- func (m *MessageReplies) GetChannelID() (value int, ok bool)
- func (m *MessageReplies) GetMaxID() (value int, ok bool)
- func (m *MessageReplies) GetReadMaxID() (value int, ok bool)
- func (m *MessageReplies) GetRecentRepliers() (value []PeerClass, ok bool)
- func (m *MessageReplies) SetChannelID(value int)
- func (m *MessageReplies) SetComments(value bool)
- func (m *MessageReplies) SetMaxID(value int)
- func (m *MessageReplies) SetReadMaxID(value int)
- func (m *MessageReplies) SetRecentRepliers(value []PeerClass)
- type MessageReplyHeader
- func (m *MessageReplyHeader) Decode(b *bin.Buffer) error
- func (m *MessageReplyHeader) Encode(b *bin.Buffer) error
- func (m *MessageReplyHeader) GetReplyToPeerID() (value PeerClass, ok bool)
- func (m *MessageReplyHeader) GetReplyToTopID() (value int, ok bool)
- func (m *MessageReplyHeader) SetReplyToPeerID(value PeerClass)
- func (m *MessageReplyHeader) SetReplyToTopID(value int)
- type MessageService
- func (m *MessageService) Decode(b *bin.Buffer) error
- func (m *MessageService) Encode(b *bin.Buffer) error
- func (m *MessageService) GetFromID() (value PeerClass, ok bool)
- func (m *MessageService) GetReplyTo() (value MessageReplyHeader, ok bool)
- func (m *MessageService) SetFromID(value PeerClass)
- func (m *MessageService) SetLegacy(value bool)
- func (m *MessageService) SetMediaUnread(value bool)
- func (m *MessageService) SetMentioned(value bool)
- func (m *MessageService) SetOut(value bool)
- func (m *MessageService) SetPost(value bool)
- func (m *MessageService) SetReplyTo(value MessageReplyHeader)
- func (m *MessageService) SetSilent(value bool)
- type MessageUserVote
- type MessageUserVoteBox
- type MessageUserVoteClass
- type MessageUserVoteInputOption
- type MessageUserVoteMultiple
- type MessageViews
- func (m *MessageViews) Decode(b *bin.Buffer) error
- func (m *MessageViews) Encode(b *bin.Buffer) error
- func (m *MessageViews) GetForwards() (value int, ok bool)
- func (m *MessageViews) GetReplies() (value MessageReplies, ok bool)
- func (m *MessageViews) GetViews() (value int, ok bool)
- func (m *MessageViews) SetForwards(value int)
- func (m *MessageViews) SetReplies(value MessageReplies)
- func (m *MessageViews) SetViews(value int)
- type MessagesAcceptEncryptionRequest
- type MessagesAcceptUrlAuthRequest
- type MessagesAddChatUserRequest
- type MessagesAffectedHistory
- type MessagesAffectedMessages
- type MessagesAllStickers
- type MessagesAllStickersBox
- type MessagesAllStickersClass
- type MessagesAllStickersNotModified
- type MessagesArchivedStickers
- type MessagesBotCallbackAnswer
- func (b *MessagesBotCallbackAnswer) Decode(buf *bin.Buffer) error
- func (b *MessagesBotCallbackAnswer) Encode(buf *bin.Buffer) error
- func (b *MessagesBotCallbackAnswer) GetMessage() (value string, ok bool)
- func (b *MessagesBotCallbackAnswer) GetURL() (value string, ok bool)
- func (b *MessagesBotCallbackAnswer) SetAlert(value bool)
- func (b *MessagesBotCallbackAnswer) SetHasURL(value bool)
- func (b *MessagesBotCallbackAnswer) SetMessage(value string)
- func (b *MessagesBotCallbackAnswer) SetNativeUI(value bool)
- func (b *MessagesBotCallbackAnswer) SetURL(value string)
- type MessagesBotResults
- func (b *MessagesBotResults) Decode(buf *bin.Buffer) error
- func (b *MessagesBotResults) Encode(buf *bin.Buffer) error
- func (b *MessagesBotResults) GetNextOffset() (value string, ok bool)
- func (b *MessagesBotResults) GetSwitchPm() (value InlineBotSwitchPM, ok bool)
- func (b *MessagesBotResults) SetGallery(value bool)
- func (b *MessagesBotResults) SetNextOffset(value string)
- func (b *MessagesBotResults) SetSwitchPm(value InlineBotSwitchPM)
- type MessagesChannelMessages
- func (c *MessagesChannelMessages) Decode(b *bin.Buffer) error
- func (c *MessagesChannelMessages) Encode(b *bin.Buffer) error
- func (c *MessagesChannelMessages) GetOffsetIDOffset() (value int, ok bool)
- func (c *MessagesChannelMessages) SetInexact(value bool)
- func (c *MessagesChannelMessages) SetOffsetIDOffset(value int)
- type MessagesChatFull
- type MessagesChats
- type MessagesChatsBox
- type MessagesChatsClass
- type MessagesChatsSlice
- type MessagesCheckChatInviteRequest
- type MessagesClearAllDraftsRequest
- type MessagesClearRecentStickersRequest
- type MessagesCreateChatRequest
- type MessagesDeleteChatUserRequest
- type MessagesDeleteHistoryRequest
- type MessagesDeleteMessagesRequest
- type MessagesDeleteScheduledMessagesRequest
- type MessagesDhConfig
- type MessagesDhConfigBox
- type MessagesDhConfigClass
- type MessagesDhConfigNotModified
- type MessagesDialogs
- type MessagesDialogsBox
- type MessagesDialogsClass
- type MessagesDialogsNotModified
- type MessagesDialogsSlice
- type MessagesDiscardEncryptionRequest
- type MessagesDiscussionMessage
- func (d *MessagesDiscussionMessage) Decode(b *bin.Buffer) error
- func (d *MessagesDiscussionMessage) Encode(b *bin.Buffer) error
- func (d *MessagesDiscussionMessage) GetMaxID() (value int, ok bool)
- func (d *MessagesDiscussionMessage) GetReadInboxMaxID() (value int, ok bool)
- func (d *MessagesDiscussionMessage) GetReadOutboxMaxID() (value int, ok bool)
- func (d *MessagesDiscussionMessage) SetMaxID(value int)
- func (d *MessagesDiscussionMessage) SetReadInboxMaxID(value int)
- func (d *MessagesDiscussionMessage) SetReadOutboxMaxID(value int)
- type MessagesEditChatAboutRequest
- type MessagesEditChatAdminRequest
- type MessagesEditChatDefaultBannedRightsRequest
- type MessagesEditChatPhotoRequest
- type MessagesEditChatTitleRequest
- type MessagesEditInlineBotMessageRequest
- func (e *MessagesEditInlineBotMessageRequest) Decode(b *bin.Buffer) error
- func (e *MessagesEditInlineBotMessageRequest) Encode(b *bin.Buffer) error
- func (e *MessagesEditInlineBotMessageRequest) GetEntities() (value []MessageEntityClass, ok bool)
- func (e *MessagesEditInlineBotMessageRequest) GetMedia() (value InputMediaClass, ok bool)
- func (e *MessagesEditInlineBotMessageRequest) GetMessage() (value string, ok bool)
- func (e *MessagesEditInlineBotMessageRequest) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (e *MessagesEditInlineBotMessageRequest) SetEntities(value []MessageEntityClass)
- func (e *MessagesEditInlineBotMessageRequest) SetMedia(value InputMediaClass)
- func (e *MessagesEditInlineBotMessageRequest) SetMessage(value string)
- func (e *MessagesEditInlineBotMessageRequest) SetNoWebpage(value bool)
- func (e *MessagesEditInlineBotMessageRequest) SetReplyMarkup(value ReplyMarkupClass)
- type MessagesEditMessageRequest
- func (e *MessagesEditMessageRequest) Decode(b *bin.Buffer) error
- func (e *MessagesEditMessageRequest) Encode(b *bin.Buffer) error
- func (e *MessagesEditMessageRequest) GetEntities() (value []MessageEntityClass, ok bool)
- func (e *MessagesEditMessageRequest) GetMedia() (value InputMediaClass, ok bool)
- func (e *MessagesEditMessageRequest) GetMessage() (value string, ok bool)
- func (e *MessagesEditMessageRequest) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (e *MessagesEditMessageRequest) GetScheduleDate() (value int, ok bool)
- func (e *MessagesEditMessageRequest) SetEntities(value []MessageEntityClass)
- func (e *MessagesEditMessageRequest) SetMedia(value InputMediaClass)
- func (e *MessagesEditMessageRequest) SetMessage(value string)
- func (e *MessagesEditMessageRequest) SetNoWebpage(value bool)
- func (e *MessagesEditMessageRequest) SetReplyMarkup(value ReplyMarkupClass)
- func (e *MessagesEditMessageRequest) SetScheduleDate(value int)
- type MessagesExportChatInviteRequest
- type MessagesFaveStickerRequest
- type MessagesFavedStickers
- type MessagesFavedStickersBox
- type MessagesFavedStickersClass
- type MessagesFavedStickersNotModified
- type MessagesFeaturedStickers
- type MessagesFeaturedStickersBox
- type MessagesFeaturedStickersClass
- type MessagesFeaturedStickersNotModified
- type MessagesFilterBox
- type MessagesFilterClass
- type MessagesForwardMessagesRequest
- func (f *MessagesForwardMessagesRequest) Decode(b *bin.Buffer) error
- func (f *MessagesForwardMessagesRequest) Encode(b *bin.Buffer) error
- func (f *MessagesForwardMessagesRequest) GetScheduleDate() (value int, ok bool)
- func (f *MessagesForwardMessagesRequest) SetBackground(value bool)
- func (f *MessagesForwardMessagesRequest) SetScheduleDate(value int)
- func (f *MessagesForwardMessagesRequest) SetSilent(value bool)
- func (f *MessagesForwardMessagesRequest) SetWithMyScore(value bool)
- type MessagesFoundStickerSets
- type MessagesFoundStickerSetsBox
- type MessagesFoundStickerSetsClass
- type MessagesFoundStickerSetsNotModified
- type MessagesGetAllChatsRequest
- type MessagesGetAllDraftsRequest
- type MessagesGetAllStickersRequest
- type MessagesGetArchivedStickersRequest
- type MessagesGetAttachedStickersRequest
- type MessagesGetBotCallbackAnswerRequest
- func (g *MessagesGetBotCallbackAnswerRequest) Decode(b *bin.Buffer) error
- func (g *MessagesGetBotCallbackAnswerRequest) Encode(b *bin.Buffer) error
- func (g *MessagesGetBotCallbackAnswerRequest) GetData() (value []byte, ok bool)
- func (g *MessagesGetBotCallbackAnswerRequest) GetPassword() (value InputCheckPasswordSRPClass, ok bool)
- func (g *MessagesGetBotCallbackAnswerRequest) SetData(value []byte)
- func (g *MessagesGetBotCallbackAnswerRequest) SetGame(value bool)
- func (g *MessagesGetBotCallbackAnswerRequest) SetPassword(value InputCheckPasswordSRPClass)
- type MessagesGetChatsRequest
- type MessagesGetCommonChatsRequest
- type MessagesGetDhConfigRequest
- type MessagesGetDialogFiltersRequest
- type MessagesGetDialogUnreadMarksRequest
- type MessagesGetDialogsRequest
- func (g *MessagesGetDialogsRequest) Decode(b *bin.Buffer) error
- func (g *MessagesGetDialogsRequest) Encode(b *bin.Buffer) error
- func (g *MessagesGetDialogsRequest) GetFolderID() (value int, ok bool)
- func (g *MessagesGetDialogsRequest) SetExcludePinned(value bool)
- func (g *MessagesGetDialogsRequest) SetFolderID(value int)
- type MessagesGetDiscussionMessageRequest
- type MessagesGetDocumentByHashRequest
- type MessagesGetEmojiKeywordsDifferenceRequest
- type MessagesGetEmojiKeywordsLanguagesRequest
- type MessagesGetEmojiKeywordsRequest
- type MessagesGetEmojiURLRequest
- type MessagesGetFavedStickersRequest
- type MessagesGetFeaturedStickersRequest
- type MessagesGetFullChatRequest
- type MessagesGetGameHighScoresRequest
- type MessagesGetHistoryRequest
- type MessagesGetInlineBotResultsRequest
- func (g *MessagesGetInlineBotResultsRequest) Decode(b *bin.Buffer) error
- func (g *MessagesGetInlineBotResultsRequest) Encode(b *bin.Buffer) error
- func (g *MessagesGetInlineBotResultsRequest) GetGeoPoint() (value InputGeoPointClass, ok bool)
- func (g *MessagesGetInlineBotResultsRequest) SetGeoPoint(value InputGeoPointClass)
- type MessagesGetInlineGameHighScoresRequest
- type MessagesGetMaskStickersRequest
- type MessagesGetMessageEditDataRequest
- type MessagesGetMessagesRequest
- type MessagesGetMessagesViewsRequest
- type MessagesGetOldFeaturedStickersRequest
- type MessagesGetOnlinesRequest
- type MessagesGetPeerDialogsRequest
- type MessagesGetPeerSettingsRequest
- type MessagesGetPinnedDialogsRequest
- type MessagesGetPollResultsRequest
- type MessagesGetPollVotesRequest
- func (g *MessagesGetPollVotesRequest) Decode(b *bin.Buffer) error
- func (g *MessagesGetPollVotesRequest) Encode(b *bin.Buffer) error
- func (g *MessagesGetPollVotesRequest) GetOffset() (value string, ok bool)
- func (g *MessagesGetPollVotesRequest) GetOption() (value []byte, ok bool)
- func (g *MessagesGetPollVotesRequest) SetOffset(value string)
- func (g *MessagesGetPollVotesRequest) SetOption(value []byte)
- type MessagesGetRecentLocationsRequest
- type MessagesGetRecentStickersRequest
- type MessagesGetRepliesRequest
- type MessagesGetSavedGifsRequest
- type MessagesGetScheduledHistoryRequest
- type MessagesGetScheduledMessagesRequest
- type MessagesGetSearchCountersRequest
- type MessagesGetSplitRangesRequest
- type MessagesGetStatsURLRequest
- type MessagesGetStickerSetRequest
- type MessagesGetStickersRequest
- type MessagesGetSuggestedDialogFiltersRequest
- type MessagesGetUnreadMentionsRequest
- type MessagesGetWebPagePreviewRequest
- func (g *MessagesGetWebPagePreviewRequest) Decode(b *bin.Buffer) error
- func (g *MessagesGetWebPagePreviewRequest) Encode(b *bin.Buffer) error
- func (g *MessagesGetWebPagePreviewRequest) GetEntities() (value []MessageEntityClass, ok bool)
- func (g *MessagesGetWebPagePreviewRequest) SetEntities(value []MessageEntityClass)
- type MessagesGetWebPageRequest
- type MessagesHidePeerSettingsBarRequest
- type MessagesHighScores
- type MessagesImportChatInviteRequest
- type MessagesInactiveChats
- type MessagesInstallStickerSetRequest
- type MessagesMarkDialogUnreadRequest
- type MessagesMessageEditData
- type MessagesMessageViews
- type MessagesMessages
- type MessagesMessagesBox
- type MessagesMessagesClass
- type MessagesMessagesNotModified
- type MessagesMessagesSlice
- func (m *MessagesMessagesSlice) Decode(b *bin.Buffer) error
- func (m *MessagesMessagesSlice) Encode(b *bin.Buffer) error
- func (m *MessagesMessagesSlice) GetNextRate() (value int, ok bool)
- func (m *MessagesMessagesSlice) GetOffsetIDOffset() (value int, ok bool)
- func (m *MessagesMessagesSlice) SetInexact(value bool)
- func (m *MessagesMessagesSlice) SetNextRate(value int)
- func (m *MessagesMessagesSlice) SetOffsetIDOffset(value int)
- type MessagesMigrateChatRequest
- type MessagesPeerDialogs
- type MessagesReadDiscussionRequest
- type MessagesReadEncryptedHistoryRequest
- type MessagesReadFeaturedStickersRequest
- type MessagesReadHistoryRequest
- type MessagesReadMentionsRequest
- type MessagesReadMessageContentsRequest
- type MessagesReceivedMessagesRequest
- type MessagesReceivedQueueRequest
- type MessagesRecentStickers
- type MessagesRecentStickersBox
- type MessagesRecentStickersClass
- type MessagesRecentStickersNotModified
- type MessagesReorderPinnedDialogsRequest
- type MessagesReorderStickerSetsRequest
- type MessagesReportEncryptedSpamRequest
- type MessagesReportRequest
- type MessagesReportSpamRequest
- type MessagesRequestEncryptionRequest
- type MessagesRequestUrlAuthRequest
- type MessagesSaveDraftRequest
- func (s *MessagesSaveDraftRequest) Decode(b *bin.Buffer) error
- func (s *MessagesSaveDraftRequest) Encode(b *bin.Buffer) error
- func (s *MessagesSaveDraftRequest) GetEntities() (value []MessageEntityClass, ok bool)
- func (s *MessagesSaveDraftRequest) GetReplyToMsgID() (value int, ok bool)
- func (s *MessagesSaveDraftRequest) SetEntities(value []MessageEntityClass)
- func (s *MessagesSaveDraftRequest) SetNoWebpage(value bool)
- func (s *MessagesSaveDraftRequest) SetReplyToMsgID(value int)
- type MessagesSaveGifRequest
- type MessagesSaveRecentStickerRequest
- type MessagesSavedGifs
- type MessagesSavedGifsBox
- type MessagesSavedGifsClass
- type MessagesSavedGifsNotModified
- type MessagesSearchCounter
- type MessagesSearchGlobalRequest
- type MessagesSearchRequest
- func (s *MessagesSearchRequest) Decode(b *bin.Buffer) error
- func (s *MessagesSearchRequest) Encode(b *bin.Buffer) error
- func (s *MessagesSearchRequest) GetFromID() (value InputPeerClass, ok bool)
- func (s *MessagesSearchRequest) GetTopMsgID() (value int, ok bool)
- func (s *MessagesSearchRequest) SetFromID(value InputPeerClass)
- func (s *MessagesSearchRequest) SetTopMsgID(value int)
- type MessagesSearchStickerSetsRequest
- type MessagesSendEncryptedFileRequest
- type MessagesSendEncryptedRequest
- type MessagesSendEncryptedServiceRequest
- type MessagesSendInlineBotResultRequest
- func (s *MessagesSendInlineBotResultRequest) Decode(b *bin.Buffer) error
- func (s *MessagesSendInlineBotResultRequest) Encode(b *bin.Buffer) error
- func (s *MessagesSendInlineBotResultRequest) GetReplyToMsgID() (value int, ok bool)
- func (s *MessagesSendInlineBotResultRequest) GetScheduleDate() (value int, ok bool)
- func (s *MessagesSendInlineBotResultRequest) SetBackground(value bool)
- func (s *MessagesSendInlineBotResultRequest) SetClearDraft(value bool)
- func (s *MessagesSendInlineBotResultRequest) SetHideVia(value bool)
- func (s *MessagesSendInlineBotResultRequest) SetReplyToMsgID(value int)
- func (s *MessagesSendInlineBotResultRequest) SetScheduleDate(value int)
- func (s *MessagesSendInlineBotResultRequest) SetSilent(value bool)
- type MessagesSendMediaRequest
- func (s *MessagesSendMediaRequest) Decode(b *bin.Buffer) error
- func (s *MessagesSendMediaRequest) Encode(b *bin.Buffer) error
- func (s *MessagesSendMediaRequest) GetEntities() (value []MessageEntityClass, ok bool)
- func (s *MessagesSendMediaRequest) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (s *MessagesSendMediaRequest) GetReplyToMsgID() (value int, ok bool)
- func (s *MessagesSendMediaRequest) GetScheduleDate() (value int, ok bool)
- func (s *MessagesSendMediaRequest) SetBackground(value bool)
- func (s *MessagesSendMediaRequest) SetClearDraft(value bool)
- func (s *MessagesSendMediaRequest) SetEntities(value []MessageEntityClass)
- func (s *MessagesSendMediaRequest) SetReplyMarkup(value ReplyMarkupClass)
- func (s *MessagesSendMediaRequest) SetReplyToMsgID(value int)
- func (s *MessagesSendMediaRequest) SetScheduleDate(value int)
- func (s *MessagesSendMediaRequest) SetSilent(value bool)
- type MessagesSendMessageRequest
- func (s *MessagesSendMessageRequest) Decode(b *bin.Buffer) error
- func (s *MessagesSendMessageRequest) Encode(b *bin.Buffer) error
- func (s *MessagesSendMessageRequest) GetEntities() (value []MessageEntityClass, ok bool)
- func (s *MessagesSendMessageRequest) GetReplyMarkup() (value ReplyMarkupClass, ok bool)
- func (s *MessagesSendMessageRequest) GetReplyToMsgID() (value int, ok bool)
- func (s *MessagesSendMessageRequest) GetScheduleDate() (value int, ok bool)
- func (s *MessagesSendMessageRequest) SetBackground(value bool)
- func (s *MessagesSendMessageRequest) SetClearDraft(value bool)
- func (s *MessagesSendMessageRequest) SetEntities(value []MessageEntityClass)
- func (s *MessagesSendMessageRequest) SetNoWebpage(value bool)
- func (s *MessagesSendMessageRequest) SetReplyMarkup(value ReplyMarkupClass)
- func (s *MessagesSendMessageRequest) SetReplyToMsgID(value int)
- func (s *MessagesSendMessageRequest) SetScheduleDate(value int)
- func (s *MessagesSendMessageRequest) SetSilent(value bool)
- type MessagesSendMultiMediaRequest
- func (s *MessagesSendMultiMediaRequest) Decode(b *bin.Buffer) error
- func (s *MessagesSendMultiMediaRequest) Encode(b *bin.Buffer) error
- func (s *MessagesSendMultiMediaRequest) GetReplyToMsgID() (value int, ok bool)
- func (s *MessagesSendMultiMediaRequest) GetScheduleDate() (value int, ok bool)
- func (s *MessagesSendMultiMediaRequest) SetBackground(value bool)
- func (s *MessagesSendMultiMediaRequest) SetClearDraft(value bool)
- func (s *MessagesSendMultiMediaRequest) SetReplyToMsgID(value int)
- func (s *MessagesSendMultiMediaRequest) SetScheduleDate(value int)
- func (s *MessagesSendMultiMediaRequest) SetSilent(value bool)
- type MessagesSendScheduledMessagesRequest
- type MessagesSendScreenshotNotificationRequest
- type MessagesSendVoteRequest
- type MessagesSentEncryptedFile
- type MessagesSentEncryptedMessage
- type MessagesSentEncryptedMessageBox
- type MessagesSentEncryptedMessageClass
- type MessagesSetBotCallbackAnswerRequest
- func (s *MessagesSetBotCallbackAnswerRequest) Decode(b *bin.Buffer) error
- func (s *MessagesSetBotCallbackAnswerRequest) Encode(b *bin.Buffer) error
- func (s *MessagesSetBotCallbackAnswerRequest) GetMessage() (value string, ok bool)
- func (s *MessagesSetBotCallbackAnswerRequest) GetURL() (value string, ok bool)
- func (s *MessagesSetBotCallbackAnswerRequest) SetAlert(value bool)
- func (s *MessagesSetBotCallbackAnswerRequest) SetMessage(value string)
- func (s *MessagesSetBotCallbackAnswerRequest) SetURL(value string)
- type MessagesSetBotPrecheckoutResultsRequest
- func (s *MessagesSetBotPrecheckoutResultsRequest) Decode(b *bin.Buffer) error
- func (s *MessagesSetBotPrecheckoutResultsRequest) Encode(b *bin.Buffer) error
- func (s *MessagesSetBotPrecheckoutResultsRequest) GetError() (value string, ok bool)
- func (s *MessagesSetBotPrecheckoutResultsRequest) SetError(value string)
- func (s *MessagesSetBotPrecheckoutResultsRequest) SetSuccess(value bool)
- type MessagesSetBotShippingResultsRequest
- func (s *MessagesSetBotShippingResultsRequest) Decode(b *bin.Buffer) error
- func (s *MessagesSetBotShippingResultsRequest) Encode(b *bin.Buffer) error
- func (s *MessagesSetBotShippingResultsRequest) GetError() (value string, ok bool)
- func (s *MessagesSetBotShippingResultsRequest) GetShippingOptions() (value []ShippingOption, ok bool)
- func (s *MessagesSetBotShippingResultsRequest) SetError(value string)
- func (s *MessagesSetBotShippingResultsRequest) SetShippingOptions(value []ShippingOption)
- type MessagesSetEncryptedTypingRequest
- type MessagesSetGameScoreRequest
- type MessagesSetInlineBotResultsRequest
- func (s *MessagesSetInlineBotResultsRequest) Decode(b *bin.Buffer) error
- func (s *MessagesSetInlineBotResultsRequest) Encode(b *bin.Buffer) error
- func (s *MessagesSetInlineBotResultsRequest) GetNextOffset() (value string, ok bool)
- func (s *MessagesSetInlineBotResultsRequest) GetSwitchPm() (value InlineBotSwitchPM, ok bool)
- func (s *MessagesSetInlineBotResultsRequest) SetGallery(value bool)
- func (s *MessagesSetInlineBotResultsRequest) SetNextOffset(value string)
- func (s *MessagesSetInlineBotResultsRequest) SetPrivate(value bool)
- func (s *MessagesSetInlineBotResultsRequest) SetSwitchPm(value InlineBotSwitchPM)
- type MessagesSetInlineGameScoreRequest
- type MessagesSetTypingRequest
- type MessagesStartBotRequest
- type MessagesStickerSet
- type MessagesStickerSetInstallResultArchive
- type MessagesStickerSetInstallResultBox
- type MessagesStickerSetInstallResultClass
- type MessagesStickerSetInstallResultSuccess
- type MessagesStickers
- type MessagesStickersBox
- type MessagesStickersClass
- type MessagesStickersNotModified
- type MessagesToggleDialogPinRequest
- type MessagesToggleStickerSetsRequest
- func (t *MessagesToggleStickerSetsRequest) Decode(b *bin.Buffer) error
- func (t *MessagesToggleStickerSetsRequest) Encode(b *bin.Buffer) error
- func (t *MessagesToggleStickerSetsRequest) SetArchive(value bool)
- func (t *MessagesToggleStickerSetsRequest) SetUnarchive(value bool)
- func (t *MessagesToggleStickerSetsRequest) SetUninstall(value bool)
- type MessagesUninstallStickerSetRequest
- type MessagesUnpinAllMessagesRequest
- type MessagesUpdateDialogFilterRequest
- func (u *MessagesUpdateDialogFilterRequest) Decode(b *bin.Buffer) error
- func (u *MessagesUpdateDialogFilterRequest) Encode(b *bin.Buffer) error
- func (u *MessagesUpdateDialogFilterRequest) GetFilter() (value DialogFilter, ok bool)
- func (u *MessagesUpdateDialogFilterRequest) SetFilter(value DialogFilter)
- type MessagesUpdateDialogFiltersOrderRequest
- type MessagesUpdatePinnedMessageRequest
- func (u *MessagesUpdatePinnedMessageRequest) Decode(b *bin.Buffer) error
- func (u *MessagesUpdatePinnedMessageRequest) Encode(b *bin.Buffer) error
- func (u *MessagesUpdatePinnedMessageRequest) SetPmOneside(value bool)
- func (u *MessagesUpdatePinnedMessageRequest) SetSilent(value bool)
- func (u *MessagesUpdatePinnedMessageRequest) SetUnpin(value bool)
- type MessagesUploadEncryptedFileRequest
- type MessagesUploadMediaRequest
- type MessagesVotesList
- type NearestDc
- type NotifyBroadcasts
- type NotifyChats
- type NotifyPeer
- type NotifyPeerBox
- type NotifyPeerClass
- type NotifyUsers
- type Null
- type Page
- type PageBlockAnchor
- type PageBlockAudio
- type PageBlockAuthorDate
- type PageBlockBlockquote
- type PageBlockBox
- type PageBlockChannel
- type PageBlockClass
- type PageBlockCollage
- type PageBlockCover
- type PageBlockDetails
- type PageBlockDivider
- type PageBlockEmbed
- func (p *PageBlockEmbed) Decode(b *bin.Buffer) error
- func (p *PageBlockEmbed) Encode(b *bin.Buffer) error
- func (p *PageBlockEmbed) GetH() (value int, ok bool)
- func (p *PageBlockEmbed) GetHTML() (value string, ok bool)
- func (p *PageBlockEmbed) GetPosterPhotoID() (value int64, ok bool)
- func (p *PageBlockEmbed) GetURL() (value string, ok bool)
- func (p *PageBlockEmbed) GetW() (value int, ok bool)
- func (p *PageBlockEmbed) SetAllowScrolling(value bool)
- func (p *PageBlockEmbed) SetFullWidth(value bool)
- func (p *PageBlockEmbed) SetH(value int)
- func (p *PageBlockEmbed) SetHTML(value string)
- func (p *PageBlockEmbed) SetPosterPhotoID(value int64)
- func (p *PageBlockEmbed) SetURL(value string)
- func (p *PageBlockEmbed) SetW(value int)
- type PageBlockEmbedPost
- type PageBlockFooter
- type PageBlockHeader
- type PageBlockKicker
- type PageBlockList
- type PageBlockMap
- type PageBlockOrderedList
- type PageBlockParagraph
- type PageBlockPhoto
- func (p *PageBlockPhoto) Decode(b *bin.Buffer) error
- func (p *PageBlockPhoto) Encode(b *bin.Buffer) error
- func (p *PageBlockPhoto) GetURL() (value string, ok bool)
- func (p *PageBlockPhoto) GetWebpageID() (value int64, ok bool)
- func (p *PageBlockPhoto) SetURL(value string)
- func (p *PageBlockPhoto) SetWebpageID(value int64)
- type PageBlockPreformatted
- type PageBlockPullquote
- type PageBlockRelatedArticles
- type PageBlockSlideshow
- type PageBlockSubheader
- type PageBlockSubtitle
- type PageBlockTable
- type PageBlockTitle
- type PageBlockUnsupported
- type PageBlockVideo
- type PageCaption
- type PageListItemBlocks
- type PageListItemBox
- type PageListItemClass
- type PageListItemText
- type PageListOrderedItemBlocks
- type PageListOrderedItemBox
- type PageListOrderedItemClass
- type PageListOrderedItemText
- type PageRelatedArticle
- func (p *PageRelatedArticle) Decode(b *bin.Buffer) error
- func (p *PageRelatedArticle) Encode(b *bin.Buffer) error
- func (p *PageRelatedArticle) GetAuthor() (value string, ok bool)
- func (p *PageRelatedArticle) GetDescription() (value string, ok bool)
- func (p *PageRelatedArticle) GetPhotoID() (value int64, ok bool)
- func (p *PageRelatedArticle) GetPublishedDate() (value int, ok bool)
- func (p *PageRelatedArticle) GetTitle() (value string, ok bool)
- func (p *PageRelatedArticle) SetAuthor(value string)
- func (p *PageRelatedArticle) SetDescription(value string)
- func (p *PageRelatedArticle) SetPhotoID(value int64)
- func (p *PageRelatedArticle) SetPublishedDate(value int)
- func (p *PageRelatedArticle) SetTitle(value string)
- type PageTableCell
- func (p *PageTableCell) Decode(b *bin.Buffer) error
- func (p *PageTableCell) Encode(b *bin.Buffer) error
- func (p *PageTableCell) GetColspan() (value int, ok bool)
- func (p *PageTableCell) GetRowspan() (value int, ok bool)
- func (p *PageTableCell) GetText() (value RichTextClass, ok bool)
- func (p *PageTableCell) SetAlignCenter(value bool)
- func (p *PageTableCell) SetAlignRight(value bool)
- func (p *PageTableCell) SetColspan(value int)
- func (p *PageTableCell) SetHeader(value bool)
- func (p *PageTableCell) SetRowspan(value int)
- func (p *PageTableCell) SetText(value RichTextClass)
- func (p *PageTableCell) SetValignBottom(value bool)
- func (p *PageTableCell) SetValignMiddle(value bool)
- type PageTableRow
- type PasswordKdfAlgoBox
- type PasswordKdfAlgoClass
- type PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow
- type PasswordKdfAlgoUnknown
- type PaymentCharge
- type PaymentRequestedInfo
- func (p *PaymentRequestedInfo) Decode(b *bin.Buffer) error
- func (p *PaymentRequestedInfo) Encode(b *bin.Buffer) error
- func (p *PaymentRequestedInfo) GetEmail() (value string, ok bool)
- func (p *PaymentRequestedInfo) GetName() (value string, ok bool)
- func (p *PaymentRequestedInfo) GetPhone() (value string, ok bool)
- func (p *PaymentRequestedInfo) GetShippingAddress() (value PostAddress, ok bool)
- func (p *PaymentRequestedInfo) SetEmail(value string)
- func (p *PaymentRequestedInfo) SetName(value string)
- func (p *PaymentRequestedInfo) SetPhone(value string)
- func (p *PaymentRequestedInfo) SetShippingAddress(value PostAddress)
- type PaymentSavedCredentialsCard
- type PaymentsBankCardData
- type PaymentsClearSavedInfoRequest
- type PaymentsGetBankCardDataRequest
- type PaymentsGetPaymentFormRequest
- type PaymentsGetPaymentReceiptRequest
- type PaymentsGetSavedInfoRequest
- type PaymentsPaymentForm
- func (p *PaymentsPaymentForm) Decode(b *bin.Buffer) error
- func (p *PaymentsPaymentForm) Encode(b *bin.Buffer) error
- func (p *PaymentsPaymentForm) GetNativeParams() (value DataJSON, ok bool)
- func (p *PaymentsPaymentForm) GetNativeProvider() (value string, ok bool)
- func (p *PaymentsPaymentForm) GetSavedCredentials() (value PaymentSavedCredentialsCard, ok bool)
- func (p *PaymentsPaymentForm) GetSavedInfo() (value PaymentRequestedInfo, ok bool)
- func (p *PaymentsPaymentForm) SetCanSaveCredentials(value bool)
- func (p *PaymentsPaymentForm) SetNativeParams(value DataJSON)
- func (p *PaymentsPaymentForm) SetNativeProvider(value string)
- func (p *PaymentsPaymentForm) SetPasswordMissing(value bool)
- func (p *PaymentsPaymentForm) SetSavedCredentials(value PaymentSavedCredentialsCard)
- func (p *PaymentsPaymentForm) SetSavedInfo(value PaymentRequestedInfo)
- type PaymentsPaymentReceipt
- func (p *PaymentsPaymentReceipt) Decode(b *bin.Buffer) error
- func (p *PaymentsPaymentReceipt) Encode(b *bin.Buffer) error
- func (p *PaymentsPaymentReceipt) GetInfo() (value PaymentRequestedInfo, ok bool)
- func (p *PaymentsPaymentReceipt) GetShipping() (value ShippingOption, ok bool)
- func (p *PaymentsPaymentReceipt) SetInfo(value PaymentRequestedInfo)
- func (p *PaymentsPaymentReceipt) SetShipping(value ShippingOption)
- type PaymentsPaymentResult
- type PaymentsPaymentResultBox
- type PaymentsPaymentResultClass
- type PaymentsPaymentVerificationNeeded
- type PaymentsSavedInfo
- func (s *PaymentsSavedInfo) Decode(b *bin.Buffer) error
- func (s *PaymentsSavedInfo) Encode(b *bin.Buffer) error
- func (s *PaymentsSavedInfo) GetSavedInfo() (value PaymentRequestedInfo, ok bool)
- func (s *PaymentsSavedInfo) SetHasSavedCredentials(value bool)
- func (s *PaymentsSavedInfo) SetSavedInfo(value PaymentRequestedInfo)
- type PaymentsSendPaymentFormRequest
- func (s *PaymentsSendPaymentFormRequest) Decode(b *bin.Buffer) error
- func (s *PaymentsSendPaymentFormRequest) Encode(b *bin.Buffer) error
- func (s *PaymentsSendPaymentFormRequest) GetRequestedInfoID() (value string, ok bool)
- func (s *PaymentsSendPaymentFormRequest) GetShippingOptionID() (value string, ok bool)
- func (s *PaymentsSendPaymentFormRequest) SetRequestedInfoID(value string)
- func (s *PaymentsSendPaymentFormRequest) SetShippingOptionID(value string)
- type PaymentsValidateRequestedInfoRequest
- type PaymentsValidatedRequestedInfo
- func (v *PaymentsValidatedRequestedInfo) Decode(b *bin.Buffer) error
- func (v *PaymentsValidatedRequestedInfo) Encode(b *bin.Buffer) error
- func (v *PaymentsValidatedRequestedInfo) GetID() (value string, ok bool)
- func (v *PaymentsValidatedRequestedInfo) GetShippingOptions() (value []ShippingOption, ok bool)
- func (v *PaymentsValidatedRequestedInfo) SetID(value string)
- func (v *PaymentsValidatedRequestedInfo) SetShippingOptions(value []ShippingOption)
- type PeerBlocked
- type PeerBox
- type PeerChannel
- type PeerChat
- type PeerClass
- type PeerLocated
- type PeerLocatedBox
- type PeerLocatedClass
- type PeerNotifySettings
- func (p *PeerNotifySettings) Decode(b *bin.Buffer) error
- func (p *PeerNotifySettings) Encode(b *bin.Buffer) error
- func (p *PeerNotifySettings) GetMuteUntil() (value int, ok bool)
- func (p *PeerNotifySettings) GetSound() (value string, ok bool)
- func (p *PeerNotifySettings) SetMuteUntil(value int)
- func (p *PeerNotifySettings) SetShowPreviews(value bool)
- func (p *PeerNotifySettings) SetSilent(value bool)
- func (p *PeerNotifySettings) SetSound(value string)
- type PeerSelfLocated
- type PeerSettings
- func (p *PeerSettings) Decode(b *bin.Buffer) error
- func (p *PeerSettings) Encode(b *bin.Buffer) error
- func (p *PeerSettings) GetGeoDistance() (value int, ok bool)
- func (p *PeerSettings) SetAddContact(value bool)
- func (p *PeerSettings) SetAutoarchived(value bool)
- func (p *PeerSettings) SetBlockContact(value bool)
- func (p *PeerSettings) SetGeoDistance(value int)
- func (p *PeerSettings) SetNeedContactsException(value bool)
- func (p *PeerSettings) SetReportGeo(value bool)
- func (p *PeerSettings) SetReportSpam(value bool)
- func (p *PeerSettings) SetShareContact(value bool)
- type PeerUser
- type PhoneAcceptCallRequest
- type PhoneCall
- type PhoneCallAccepted
- type PhoneCallBox
- type PhoneCallClass
- type PhoneCallDiscardReasonBox
- type PhoneCallDiscardReasonBusy
- type PhoneCallDiscardReasonClass
- type PhoneCallDiscardReasonDisconnect
- type PhoneCallDiscardReasonHangup
- type PhoneCallDiscardReasonMissed
- type PhoneCallDiscarded
- func (p *PhoneCallDiscarded) Decode(b *bin.Buffer) error
- func (p *PhoneCallDiscarded) Encode(b *bin.Buffer) error
- func (p *PhoneCallDiscarded) GetDuration() (value int, ok bool)
- func (p *PhoneCallDiscarded) GetReason() (value PhoneCallDiscardReasonClass, ok bool)
- func (p *PhoneCallDiscarded) SetDuration(value int)
- func (p *PhoneCallDiscarded) SetNeedDebug(value bool)
- func (p *PhoneCallDiscarded) SetNeedRating(value bool)
- func (p *PhoneCallDiscarded) SetReason(value PhoneCallDiscardReasonClass)
- func (p *PhoneCallDiscarded) SetVideo(value bool)
- type PhoneCallEmpty
- type PhoneCallProtocol
- type PhoneCallRequested
- type PhoneCallWaiting
- type PhoneConfirmCallRequest
- type PhoneConnection
- type PhoneConnectionBox
- type PhoneConnectionClass
- type PhoneConnectionWebrtc
- type PhoneDiscardCallRequest
- type PhoneGetCallConfigRequest
- type PhonePhoneCall
- type PhoneReceivedCallRequest
- type PhoneRequestCallRequest
- type PhoneSaveCallDebugRequest
- type PhoneSendSignalingDataRequest
- type PhoneSetCallRatingRequest
- type Photo
- type PhotoBox
- type PhotoCachedSize
- type PhotoClass
- type PhotoEmpty
- type PhotoPathSize
- type PhotoSize
- type PhotoSizeBox
- type PhotoSizeClass
- type PhotoSizeEmpty
- type PhotoSizeProgressive
- type PhotoStrippedSize
- type PhotosDeletePhotosRequest
- type PhotosGetUserPhotosRequest
- type PhotosPhoto
- type PhotosPhotos
- type PhotosPhotosBox
- type PhotosPhotosClass
- type PhotosPhotosSlice
- type PhotosUpdateProfilePhotoRequest
- type PhotosUploadProfilePhotoRequest
- func (u *PhotosUploadProfilePhotoRequest) Decode(b *bin.Buffer) error
- func (u *PhotosUploadProfilePhotoRequest) Encode(b *bin.Buffer) error
- func (u *PhotosUploadProfilePhotoRequest) GetFile() (value InputFileClass, ok bool)
- func (u *PhotosUploadProfilePhotoRequest) GetVideo() (value InputFileClass, ok bool)
- func (u *PhotosUploadProfilePhotoRequest) GetVideoStartTs() (value float64, ok bool)
- func (u *PhotosUploadProfilePhotoRequest) SetFile(value InputFileClass)
- func (u *PhotosUploadProfilePhotoRequest) SetVideo(value InputFileClass)
- func (u *PhotosUploadProfilePhotoRequest) SetVideoStartTs(value float64)
- type Poll
- func (p *Poll) Decode(b *bin.Buffer) error
- func (p *Poll) Encode(b *bin.Buffer) error
- func (p *Poll) GetCloseDate() (value int, ok bool)
- func (p *Poll) GetClosePeriod() (value int, ok bool)
- func (p *Poll) SetCloseDate(value int)
- func (p *Poll) SetClosePeriod(value int)
- func (p *Poll) SetClosed(value bool)
- func (p *Poll) SetMultipleChoice(value bool)
- func (p *Poll) SetPublicVoters(value bool)
- func (p *Poll) SetQuiz(value bool)
- type PollAnswer
- type PollAnswerVoters
- type PollResults
- func (p *PollResults) Decode(b *bin.Buffer) error
- func (p *PollResults) Encode(b *bin.Buffer) error
- func (p *PollResults) GetRecentVoters() (value []int, ok bool)
- func (p *PollResults) GetResults() (value []PollAnswerVoters, ok bool)
- func (p *PollResults) GetSolution() (value string, ok bool)
- func (p *PollResults) GetSolutionEntities() (value []MessageEntityClass, ok bool)
- func (p *PollResults) GetTotalVoters() (value int, ok bool)
- func (p *PollResults) SetMin(value bool)
- func (p *PollResults) SetRecentVoters(value []int)
- func (p *PollResults) SetResults(value []PollAnswerVoters)
- func (p *PollResults) SetSolution(value string)
- func (p *PollResults) SetSolutionEntities(value []MessageEntityClass)
- func (p *PollResults) SetTotalVoters(value int)
- type PopularContact
- type PostAddress
- type PrivacyKeyAddedByPhone
- type PrivacyKeyBox
- type PrivacyKeyChatInvite
- type PrivacyKeyClass
- type PrivacyKeyForwards
- type PrivacyKeyPhoneCall
- type PrivacyKeyPhoneNumber
- type PrivacyKeyPhoneP2P
- type PrivacyKeyProfilePhoto
- type PrivacyKeyStatusTimestamp
- type PrivacyRuleBox
- type PrivacyRuleClass
- type PrivacyValueAllowAll
- type PrivacyValueAllowChatParticipants
- type PrivacyValueAllowContacts
- type PrivacyValueAllowUsers
- type PrivacyValueDisallowAll
- type PrivacyValueDisallowChatParticipants
- type PrivacyValueDisallowContacts
- type PrivacyValueDisallowUsers
- type ReceivedNotifyMessage
- type RecentMeUrlBox
- type RecentMeUrlChat
- type RecentMeUrlChatInvite
- type RecentMeUrlClass
- type RecentMeUrlStickerSet
- type RecentMeUrlUnknown
- type RecentMeUrlUser
- type ReplyInlineMarkup
- type ReplyKeyboardForceReply
- type ReplyKeyboardHide
- type ReplyKeyboardMarkup
- type ReplyMarkupBox
- type ReplyMarkupClass
- type ReportReasonBox
- type ReportReasonClass
- type RestrictionReason
- type RichTextBox
- type RichTextClass
- type SavedPhoneContact
- type SecureCredentialsEncrypted
- type SecureData
- type SecureFile
- type SecureFileBox
- type SecureFileClass
- type SecureFileEmpty
- type SecurePasswordKdfAlgoBox
- type SecurePasswordKdfAlgoClass
- type SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000
- type SecurePasswordKdfAlgoSHA512
- type SecurePasswordKdfAlgoUnknown
- type SecurePlainDataBox
- type SecurePlainDataClass
- type SecurePlainEmail
- type SecurePlainPhone
- type SecureRequiredType
- type SecureRequiredTypeBox
- type SecureRequiredTypeClass
- type SecureRequiredTypeOneOf
- type SecureSecretSettings
- type SecureValue
- func (s *SecureValue) Decode(b *bin.Buffer) error
- func (s *SecureValue) Encode(b *bin.Buffer) error
- func (s *SecureValue) GetData() (value SecureData, ok bool)
- func (s *SecureValue) GetFiles() (value []SecureFileClass, ok bool)
- func (s *SecureValue) GetFrontSide() (value SecureFileClass, ok bool)
- func (s *SecureValue) GetPlainData() (value SecurePlainDataClass, ok bool)
- func (s *SecureValue) GetReverseSide() (value SecureFileClass, ok bool)
- func (s *SecureValue) GetSelfie() (value SecureFileClass, ok bool)
- func (s *SecureValue) GetTranslation() (value []SecureFileClass, ok bool)
- func (s *SecureValue) SetData(value SecureData)
- func (s *SecureValue) SetFiles(value []SecureFileClass)
- func (s *SecureValue) SetFrontSide(value SecureFileClass)
- func (s *SecureValue) SetPlainData(value SecurePlainDataClass)
- func (s *SecureValue) SetReverseSide(value SecureFileClass)
- func (s *SecureValue) SetSelfie(value SecureFileClass)
- func (s *SecureValue) SetTranslation(value []SecureFileClass)
- type SecureValueError
- type SecureValueErrorBox
- type SecureValueErrorClass
- type SecureValueErrorData
- type SecureValueErrorFile
- type SecureValueErrorFiles
- type SecureValueErrorFrontSide
- type SecureValueErrorReverseSide
- type SecureValueErrorSelfie
- type SecureValueErrorTranslationFile
- type SecureValueErrorTranslationFiles
- type SecureValueHash
- type SecureValueTypeAddress
- type SecureValueTypeBankStatement
- type SecureValueTypeBox
- type SecureValueTypeClass
- type SecureValueTypeDriverLicense
- type SecureValueTypeEmail
- type SecureValueTypeIdentityCard
- type SecureValueTypeInternalPassport
- type SecureValueTypePassport
- type SecureValueTypePassportRegistration
- type SecureValueTypePersonalDetails
- type SecureValueTypePhone
- type SecureValueTypeRentalAgreement
- type SecureValueTypeTemporaryRegistration
- type SecureValueTypeUtilityBill
- type SendMessageActionBox
- type SendMessageActionClass
- type SendMessageCancelAction
- type SendMessageChooseContactAction
- type SendMessageGamePlayAction
- type SendMessageGeoLocationAction
- type SendMessageRecordAudioAction
- type SendMessageRecordRoundAction
- type SendMessageRecordVideoAction
- type SendMessageTypingAction
- type SendMessageUploadAudioAction
- type SendMessageUploadDocumentAction
- type SendMessageUploadPhotoAction
- type SendMessageUploadRoundAction
- type SendMessageUploadVideoAction
- type ShippingOption
- type StatsAbsValueAndPrev
- type StatsBroadcastStats
- type StatsDateRangeDays
- type StatsGetBroadcastStatsRequest
- type StatsGetMegagroupStatsRequest
- type StatsGetMessagePublicForwardsRequest
- type StatsGetMessageStatsRequest
- type StatsGraph
- type StatsGraphAsync
- type StatsGraphBox
- type StatsGraphClass
- type StatsGraphError
- type StatsGroupTopAdmin
- type StatsGroupTopInviter
- type StatsGroupTopPoster
- type StatsLoadAsyncGraphRequest
- type StatsMegagroupStats
- type StatsMessageStats
- type StatsPercentValue
- type StatsURL
- type StickerPack
- type StickerSet
- func (s *StickerSet) Decode(b *bin.Buffer) error
- func (s *StickerSet) Encode(b *bin.Buffer) error
- func (s *StickerSet) GetInstalledDate() (value int, ok bool)
- func (s *StickerSet) GetThumb() (value PhotoSizeClass, ok bool)
- func (s *StickerSet) GetThumbDCID() (value int, ok bool)
- func (s *StickerSet) SetAnimated(value bool)
- func (s *StickerSet) SetArchived(value bool)
- func (s *StickerSet) SetInstalledDate(value int)
- func (s *StickerSet) SetMasks(value bool)
- func (s *StickerSet) SetOfficial(value bool)
- func (s *StickerSet) SetThumb(value PhotoSizeClass)
- func (s *StickerSet) SetThumbDCID(value int)
- type StickerSetCovered
- type StickerSetCoveredBox
- type StickerSetCoveredClass
- type StickerSetMultiCovered
- type StickersAddStickerToSetRequest
- type StickersChangeStickerPositionRequest
- type StickersCreateStickerSetRequest
- func (c *StickersCreateStickerSetRequest) Decode(b *bin.Buffer) error
- func (c *StickersCreateStickerSetRequest) Encode(b *bin.Buffer) error
- func (c *StickersCreateStickerSetRequest) GetThumb() (value InputDocumentClass, ok bool)
- func (c *StickersCreateStickerSetRequest) SetAnimated(value bool)
- func (c *StickersCreateStickerSetRequest) SetMasks(value bool)
- func (c *StickersCreateStickerSetRequest) SetThumb(value InputDocumentClass)
- type StickersRemoveStickerFromSetRequest
- type StickersSetStickerSetThumbRequest
- type StorageFileGif
- type StorageFileJpeg
- type StorageFileMov
- type StorageFileMp3
- type StorageFileMp4
- type StorageFilePartial
- type StorageFilePdf
- type StorageFilePng
- type StorageFileTypeBox
- type StorageFileTypeClass
- type StorageFileUnknown
- type StorageFileWebp
- type TextAnchor
- type TextBold
- type TextConcat
- type TextEmail
- type TextEmpty
- type TextFixed
- type TextImage
- type TextItalic
- type TextMarked
- type TextPhone
- type TextPlain
- type TextStrike
- type TextSubscript
- type TextSuperscript
- type TextUnderline
- type TextUrl
- type Theme
- func (t *Theme) Decode(b *bin.Buffer) error
- func (t *Theme) Encode(b *bin.Buffer) error
- func (t *Theme) GetDocument() (value DocumentClass, ok bool)
- func (t *Theme) GetSettings() (value ThemeSettings, ok bool)
- func (t *Theme) SetCreator(value bool)
- func (t *Theme) SetDefault(value bool)
- func (t *Theme) SetDocument(value DocumentClass)
- func (t *Theme) SetSettings(value ThemeSettings)
- type ThemeSettings
- func (t *ThemeSettings) Decode(b *bin.Buffer) error
- func (t *ThemeSettings) Encode(b *bin.Buffer) error
- func (t *ThemeSettings) GetMessageBottomColor() (value int, ok bool)
- func (t *ThemeSettings) GetMessageTopColor() (value int, ok bool)
- func (t *ThemeSettings) GetWallpaper() (value WallPaperClass, ok bool)
- func (t *ThemeSettings) SetMessageBottomColor(value int)
- func (t *ThemeSettings) SetMessageTopColor(value int)
- func (t *ThemeSettings) SetWallpaper(value WallPaperClass)
- type TopPeer
- type TopPeerCategoryBotsInline
- type TopPeerCategoryBotsPM
- type TopPeerCategoryBox
- type TopPeerCategoryChannels
- type TopPeerCategoryClass
- type TopPeerCategoryCorrespondents
- type TopPeerCategoryForwardChats
- type TopPeerCategoryForwardUsers
- type TopPeerCategoryGroups
- type TopPeerCategoryPeers
- type TopPeerCategoryPhoneCalls
- type True
- type UpdateBotCallbackQuery
- func (u *UpdateBotCallbackQuery) Decode(b *bin.Buffer) error
- func (u *UpdateBotCallbackQuery) Encode(b *bin.Buffer) error
- func (u *UpdateBotCallbackQuery) GetData() (value []byte, ok bool)
- func (u *UpdateBotCallbackQuery) GetGameShortName() (value string, ok bool)
- func (u *UpdateBotCallbackQuery) SetData(value []byte)
- func (u *UpdateBotCallbackQuery) SetGameShortName(value string)
- type UpdateBotInlineQuery
- type UpdateBotInlineSend
- func (u *UpdateBotInlineSend) Decode(b *bin.Buffer) error
- func (u *UpdateBotInlineSend) Encode(b *bin.Buffer) error
- func (u *UpdateBotInlineSend) GetGeo() (value GeoPointClass, ok bool)
- func (u *UpdateBotInlineSend) GetMsgID() (value InputBotInlineMessageID, ok bool)
- func (u *UpdateBotInlineSend) SetGeo(value GeoPointClass)
- func (u *UpdateBotInlineSend) SetMsgID(value InputBotInlineMessageID)
- type UpdateBotPrecheckoutQuery
- func (u *UpdateBotPrecheckoutQuery) Decode(b *bin.Buffer) error
- func (u *UpdateBotPrecheckoutQuery) Encode(b *bin.Buffer) error
- func (u *UpdateBotPrecheckoutQuery) GetInfo() (value PaymentRequestedInfo, ok bool)
- func (u *UpdateBotPrecheckoutQuery) GetShippingOptionID() (value string, ok bool)
- func (u *UpdateBotPrecheckoutQuery) SetInfo(value PaymentRequestedInfo)
- func (u *UpdateBotPrecheckoutQuery) SetShippingOptionID(value string)
- type UpdateBotShippingQuery
- type UpdateBotWebhookJSON
- type UpdateBotWebhookJSONQuery
- type UpdateBox
- type UpdateChannel
- type UpdateChannelAvailableMessages
- type UpdateChannelMessageForwards
- type UpdateChannelMessageViews
- type UpdateChannelParticipant
- func (u *UpdateChannelParticipant) Decode(b *bin.Buffer) error
- func (u *UpdateChannelParticipant) Encode(b *bin.Buffer) error
- func (u *UpdateChannelParticipant) GetNewParticipant() (value ChannelParticipantClass, ok bool)
- func (u *UpdateChannelParticipant) GetPrevParticipant() (value ChannelParticipantClass, ok bool)
- func (u *UpdateChannelParticipant) SetNewParticipant(value ChannelParticipantClass)
- func (u *UpdateChannelParticipant) SetPrevParticipant(value ChannelParticipantClass)
- type UpdateChannelReadMessagesContents
- type UpdateChannelTooLong
- type UpdateChannelUserTyping
- type UpdateChannelWebPage
- type UpdateChatDefaultBannedRights
- type UpdateChatParticipantAdd
- type UpdateChatParticipantAdmin
- type UpdateChatParticipantDelete
- type UpdateChatParticipants
- type UpdateChatUserTyping
- type UpdateClass
- type UpdateConfig
- type UpdateContactsReset
- type UpdateDcOptions
- type UpdateDeleteChannelMessages
- type UpdateDeleteMessages
- type UpdateDeleteScheduledMessages
- type UpdateDialogFilter
- type UpdateDialogFilterOrder
- type UpdateDialogFilters
- type UpdateDialogPinned
- type UpdateDialogUnreadMark
- type UpdateDraftMessage
- type UpdateEditChannelMessage
- type UpdateEditMessage
- type UpdateEncryptedChatTyping
- type UpdateEncryptedMessagesRead
- type UpdateEncryption
- type UpdateFavedStickers
- type UpdateFolderPeers
- type UpdateGeoLiveViewed
- type UpdateInlineBotCallbackQuery
- func (u *UpdateInlineBotCallbackQuery) Decode(b *bin.Buffer) error
- func (u *UpdateInlineBotCallbackQuery) Encode(b *bin.Buffer) error
- func (u *UpdateInlineBotCallbackQuery) GetData() (value []byte, ok bool)
- func (u *UpdateInlineBotCallbackQuery) GetGameShortName() (value string, ok bool)
- func (u *UpdateInlineBotCallbackQuery) SetData(value []byte)
- func (u *UpdateInlineBotCallbackQuery) SetGameShortName(value string)
- type UpdateLangPack
- type UpdateLangPackTooLong
- type UpdateLoginToken
- type UpdateMessageID
- type UpdateMessagePoll
- type UpdateMessagePollVote
- type UpdateNewChannelMessage
- type UpdateNewEncryptedMessage
- type UpdateNewMessage
- type UpdateNewScheduledMessage
- type UpdateNewStickerSet
- type UpdateNotifySettings
- type UpdatePeerBlocked
- type UpdatePeerLocated
- type UpdatePeerSettings
- type UpdatePhoneCall
- type UpdatePhoneCallSignalingData
- type UpdatePinnedChannelMessages
- type UpdatePinnedDialogs
- func (u *UpdatePinnedDialogs) Decode(b *bin.Buffer) error
- func (u *UpdatePinnedDialogs) Encode(b *bin.Buffer) error
- func (u *UpdatePinnedDialogs) GetFolderID() (value int, ok bool)
- func (u *UpdatePinnedDialogs) GetOrder() (value []DialogPeerClass, ok bool)
- func (u *UpdatePinnedDialogs) SetFolderID(value int)
- func (u *UpdatePinnedDialogs) SetOrder(value []DialogPeerClass)
- type UpdatePinnedMessages
- type UpdatePrivacy
- type UpdatePtsChanged
- type UpdateReadChannelDiscussionInbox
- func (u *UpdateReadChannelDiscussionInbox) Decode(b *bin.Buffer) error
- func (u *UpdateReadChannelDiscussionInbox) Encode(b *bin.Buffer) error
- func (u *UpdateReadChannelDiscussionInbox) GetBroadcastID() (value int, ok bool)
- func (u *UpdateReadChannelDiscussionInbox) GetBroadcastPost() (value int, ok bool)
- func (u *UpdateReadChannelDiscussionInbox) SetBroadcastID(value int)
- func (u *UpdateReadChannelDiscussionInbox) SetBroadcastPost(value int)
- type UpdateReadChannelDiscussionOutbox
- type UpdateReadChannelInbox
- type UpdateReadChannelOutbox
- type UpdateReadFeaturedStickers
- type UpdateReadHistoryInbox
- type UpdateReadHistoryOutbox
- type UpdateReadMessagesContents
- type UpdateRecentStickers
- type UpdateSavedGifs
- type UpdateServiceNotification
- func (u *UpdateServiceNotification) Decode(b *bin.Buffer) error
- func (u *UpdateServiceNotification) Encode(b *bin.Buffer) error
- func (u *UpdateServiceNotification) GetInboxDate() (value int, ok bool)
- func (u *UpdateServiceNotification) SetInboxDate(value int)
- func (u *UpdateServiceNotification) SetPopup(value bool)
- type UpdateShort
- type UpdateShortChatMessage
- func (u *UpdateShortChatMessage) Decode(b *bin.Buffer) error
- func (u *UpdateShortChatMessage) Encode(b *bin.Buffer) error
- func (u *UpdateShortChatMessage) GetEntities() (value []MessageEntityClass, ok bool)
- func (u *UpdateShortChatMessage) GetFwdFrom() (value MessageFwdHeader, ok bool)
- func (u *UpdateShortChatMessage) GetReplyTo() (value MessageReplyHeader, ok bool)
- func (u *UpdateShortChatMessage) GetViaBotID() (value int, ok bool)
- func (u *UpdateShortChatMessage) SetEntities(value []MessageEntityClass)
- func (u *UpdateShortChatMessage) SetFwdFrom(value MessageFwdHeader)
- func (u *UpdateShortChatMessage) SetMediaUnread(value bool)
- func (u *UpdateShortChatMessage) SetMentioned(value bool)
- func (u *UpdateShortChatMessage) SetOut(value bool)
- func (u *UpdateShortChatMessage) SetReplyTo(value MessageReplyHeader)
- func (u *UpdateShortChatMessage) SetSilent(value bool)
- func (u *UpdateShortChatMessage) SetViaBotID(value int)
- type UpdateShortMessage
- func (u *UpdateShortMessage) Decode(b *bin.Buffer) error
- func (u *UpdateShortMessage) Encode(b *bin.Buffer) error
- func (u *UpdateShortMessage) GetEntities() (value []MessageEntityClass, ok bool)
- func (u *UpdateShortMessage) GetFwdFrom() (value MessageFwdHeader, ok bool)
- func (u *UpdateShortMessage) GetReplyTo() (value MessageReplyHeader, ok bool)
- func (u *UpdateShortMessage) GetViaBotID() (value int, ok bool)
- func (u *UpdateShortMessage) SetEntities(value []MessageEntityClass)
- func (u *UpdateShortMessage) SetFwdFrom(value MessageFwdHeader)
- func (u *UpdateShortMessage) SetMediaUnread(value bool)
- func (u *UpdateShortMessage) SetMentioned(value bool)
- func (u *UpdateShortMessage) SetOut(value bool)
- func (u *UpdateShortMessage) SetReplyTo(value MessageReplyHeader)
- func (u *UpdateShortMessage) SetSilent(value bool)
- func (u *UpdateShortMessage) SetViaBotID(value int)
- type UpdateShortSentMessage
- func (u *UpdateShortSentMessage) Decode(b *bin.Buffer) error
- func (u *UpdateShortSentMessage) Encode(b *bin.Buffer) error
- func (u *UpdateShortSentMessage) GetEntities() (value []MessageEntityClass, ok bool)
- func (u *UpdateShortSentMessage) GetMedia() (value MessageMediaClass, ok bool)
- func (u *UpdateShortSentMessage) SetEntities(value []MessageEntityClass)
- func (u *UpdateShortSentMessage) SetMedia(value MessageMediaClass)
- func (u *UpdateShortSentMessage) SetOut(value bool)
- type UpdateStickerSets
- type UpdateStickerSetsOrder
- type UpdateTheme
- type UpdateUserName
- type UpdateUserPhone
- type UpdateUserPhoto
- type UpdateUserStatus
- type UpdateUserTyping
- type UpdateWebPage
- type Updates
- type UpdatesBox
- type UpdatesChannelDifference
- func (c *UpdatesChannelDifference) Decode(b *bin.Buffer) error
- func (c *UpdatesChannelDifference) Encode(b *bin.Buffer) error
- func (c *UpdatesChannelDifference) GetTimeout() (value int, ok bool)
- func (c *UpdatesChannelDifference) SetFinal(value bool)
- func (c *UpdatesChannelDifference) SetTimeout(value int)
- type UpdatesChannelDifferenceBox
- type UpdatesChannelDifferenceClass
- type UpdatesChannelDifferenceEmpty
- func (c *UpdatesChannelDifferenceEmpty) Decode(b *bin.Buffer) error
- func (c *UpdatesChannelDifferenceEmpty) Encode(b *bin.Buffer) error
- func (c *UpdatesChannelDifferenceEmpty) GetTimeout() (value int, ok bool)
- func (c *UpdatesChannelDifferenceEmpty) SetFinal(value bool)
- func (c *UpdatesChannelDifferenceEmpty) SetTimeout(value int)
- type UpdatesChannelDifferenceTooLong
- func (c *UpdatesChannelDifferenceTooLong) Decode(b *bin.Buffer) error
- func (c *UpdatesChannelDifferenceTooLong) Encode(b *bin.Buffer) error
- func (c *UpdatesChannelDifferenceTooLong) GetTimeout() (value int, ok bool)
- func (c *UpdatesChannelDifferenceTooLong) SetFinal(value bool)
- func (c *UpdatesChannelDifferenceTooLong) SetTimeout(value int)
- type UpdatesClass
- type UpdatesCombined
- type UpdatesDifference
- type UpdatesDifferenceBox
- type UpdatesDifferenceClass
- type UpdatesDifferenceEmpty
- type UpdatesDifferenceSlice
- type UpdatesDifferenceTooLong
- type UpdatesGetChannelDifferenceRequest
- type UpdatesGetDifferenceRequest
- type UpdatesGetStateRequest
- type UpdatesState
- type UpdatesTooLong
- type UploadCdnFile
- type UploadCdnFileBox
- type UploadCdnFileClass
- type UploadCdnFileReuploadNeeded
- type UploadFile
- type UploadFileBox
- type UploadFileCdnRedirect
- type UploadFileClass
- type UploadGetCdnFileHashesRequest
- type UploadGetCdnFileRequest
- type UploadGetFileHashesRequest
- type UploadGetFileRequest
- type UploadGetWebFileRequest
- type UploadReuploadCdnFileRequest
- type UploadSaveBigFilePartRequest
- type UploadSaveFilePartRequest
- type UploadWebFile
- type UrlAuthResultAccepted
- type UrlAuthResultBox
- type UrlAuthResultClass
- type UrlAuthResultDefault
- type UrlAuthResultRequest
- type User
- func (u *User) Decode(b *bin.Buffer) error
- func (u *User) Encode(b *bin.Buffer) error
- func (u *User) GetAccessHash() (value int64, ok bool)
- func (u *User) GetBotInfoVersion() (value int, ok bool)
- func (u *User) GetBotInlinePlaceholder() (value string, ok bool)
- func (u *User) GetFirstName() (value string, ok bool)
- func (u *User) GetLangCode() (value string, ok bool)
- func (u *User) GetLastName() (value string, ok bool)
- func (u *User) GetPhone() (value string, ok bool)
- func (u *User) GetPhoto() (value UserProfilePhotoClass, ok bool)
- func (u *User) GetRestrictionReason() (value []RestrictionReason, ok bool)
- func (u *User) GetStatus() (value UserStatusClass, ok bool)
- func (u *User) GetUsername() (value string, ok bool)
- func (u *User) SetAccessHash(value int64)
- func (u *User) SetApplyMinPhoto(value bool)
- func (u *User) SetBot(value bool)
- func (u *User) SetBotChatHistory(value bool)
- func (u *User) SetBotInfoVersion(value int)
- func (u *User) SetBotInlineGeo(value bool)
- func (u *User) SetBotInlinePlaceholder(value string)
- func (u *User) SetBotNochats(value bool)
- func (u *User) SetContact(value bool)
- func (u *User) SetDeleted(value bool)
- func (u *User) SetFirstName(value string)
- func (u *User) SetLangCode(value string)
- func (u *User) SetLastName(value string)
- func (u *User) SetMin(value bool)
- func (u *User) SetMutualContact(value bool)
- func (u *User) SetPhone(value string)
- func (u *User) SetPhoto(value UserProfilePhotoClass)
- func (u *User) SetRestricted(value bool)
- func (u *User) SetRestrictionReason(value []RestrictionReason)
- func (u *User) SetScam(value bool)
- func (u *User) SetSelf(value bool)
- func (u *User) SetStatus(value UserStatusClass)
- func (u *User) SetSupport(value bool)
- func (u *User) SetUsername(value string)
- func (u *User) SetVerified(value bool)
- type UserBox
- type UserClass
- type UserEmpty
- type UserFull
- func (u *UserFull) Decode(b *bin.Buffer) error
- func (u *UserFull) Encode(b *bin.Buffer) error
- func (u *UserFull) GetAbout() (value string, ok bool)
- func (u *UserFull) GetBotInfo() (value BotInfo, ok bool)
- func (u *UserFull) GetFolderID() (value int, ok bool)
- func (u *UserFull) GetPinnedMsgID() (value int, ok bool)
- func (u *UserFull) GetProfilePhoto() (value PhotoClass, ok bool)
- func (u *UserFull) SetAbout(value string)
- func (u *UserFull) SetBlocked(value bool)
- func (u *UserFull) SetBotInfo(value BotInfo)
- func (u *UserFull) SetCanPinMessage(value bool)
- func (u *UserFull) SetFolderID(value int)
- func (u *UserFull) SetHasScheduled(value bool)
- func (u *UserFull) SetPhoneCallsAvailable(value bool)
- func (u *UserFull) SetPhoneCallsPrivate(value bool)
- func (u *UserFull) SetPinnedMsgID(value int)
- func (u *UserFull) SetProfilePhoto(value PhotoClass)
- func (u *UserFull) SetVideoCallsAvailable(value bool)
- type UserProfilePhoto
- type UserProfilePhotoBox
- type UserProfilePhotoClass
- type UserProfilePhotoEmpty
- type UserStatusBox
- type UserStatusClass
- type UserStatusEmpty
- type UserStatusLastMonth
- type UserStatusLastWeek
- type UserStatusOffline
- type UserStatusOnline
- type UserStatusRecently
- type UsersGetFullUserRequest
- type UsersGetUsersRequest
- type UsersSetSecureValueErrorsRequest
- type VideoSize
- type WallPaper
- func (w *WallPaper) Decode(b *bin.Buffer) error
- func (w *WallPaper) Encode(b *bin.Buffer) error
- func (w *WallPaper) GetSettings() (value WallPaperSettings, ok bool)
- func (w *WallPaper) SetCreator(value bool)
- func (w *WallPaper) SetDark(value bool)
- func (w *WallPaper) SetDefault(value bool)
- func (w *WallPaper) SetPattern(value bool)
- func (w *WallPaper) SetSettings(value WallPaperSettings)
- type WallPaperBox
- type WallPaperClass
- type WallPaperNoFile
- func (w *WallPaperNoFile) Decode(b *bin.Buffer) error
- func (w *WallPaperNoFile) Encode(b *bin.Buffer) error
- func (w *WallPaperNoFile) GetSettings() (value WallPaperSettings, ok bool)
- func (w *WallPaperNoFile) SetDark(value bool)
- func (w *WallPaperNoFile) SetDefault(value bool)
- func (w *WallPaperNoFile) SetSettings(value WallPaperSettings)
- type WallPaperSettings
- func (w *WallPaperSettings) Decode(b *bin.Buffer) error
- func (w *WallPaperSettings) Encode(b *bin.Buffer) error
- func (w *WallPaperSettings) GetBackgroundColor() (value int, ok bool)
- func (w *WallPaperSettings) GetIntensity() (value int, ok bool)
- func (w *WallPaperSettings) GetRotation() (value int, ok bool)
- func (w *WallPaperSettings) GetSecondBackgroundColor() (value int, ok bool)
- func (w *WallPaperSettings) SetBackgroundColor(value int)
- func (w *WallPaperSettings) SetBlur(value bool)
- func (w *WallPaperSettings) SetIntensity(value int)
- func (w *WallPaperSettings) SetMotion(value bool)
- func (w *WallPaperSettings) SetRotation(value int)
- func (w *WallPaperSettings) SetSecondBackgroundColor(value int)
- type WebAuthorization
- type WebDocument
- type WebDocumentBox
- type WebDocumentClass
- type WebDocumentNoProxy
- type WebPage
- func (w *WebPage) Decode(b *bin.Buffer) error
- func (w *WebPage) Encode(b *bin.Buffer) error
- func (w *WebPage) GetAttributes() (value []WebPageAttributeTheme, ok bool)
- func (w *WebPage) GetAuthor() (value string, ok bool)
- func (w *WebPage) GetCachedPage() (value Page, ok bool)
- func (w *WebPage) GetDescription() (value string, ok bool)
- func (w *WebPage) GetDocument() (value DocumentClass, ok bool)
- func (w *WebPage) GetDuration() (value int, ok bool)
- func (w *WebPage) GetEmbedHeight() (value int, ok bool)
- func (w *WebPage) GetEmbedType() (value string, ok bool)
- func (w *WebPage) GetEmbedURL() (value string, ok bool)
- func (w *WebPage) GetEmbedWidth() (value int, ok bool)
- func (w *WebPage) GetPhoto() (value PhotoClass, ok bool)
- func (w *WebPage) GetSiteName() (value string, ok bool)
- func (w *WebPage) GetTitle() (value string, ok bool)
- func (w *WebPage) GetType() (value string, ok bool)
- func (w *WebPage) SetAttributes(value []WebPageAttributeTheme)
- func (w *WebPage) SetAuthor(value string)
- func (w *WebPage) SetCachedPage(value Page)
- func (w *WebPage) SetDescription(value string)
- func (w *WebPage) SetDocument(value DocumentClass)
- func (w *WebPage) SetDuration(value int)
- func (w *WebPage) SetEmbedHeight(value int)
- func (w *WebPage) SetEmbedType(value string)
- func (w *WebPage) SetEmbedURL(value string)
- func (w *WebPage) SetEmbedWidth(value int)
- func (w *WebPage) SetPhoto(value PhotoClass)
- func (w *WebPage) SetSiteName(value string)
- func (w *WebPage) SetTitle(value string)
- func (w *WebPage) SetType(value string)
- type WebPageAttributeTheme
- func (w *WebPageAttributeTheme) Decode(b *bin.Buffer) error
- func (w *WebPageAttributeTheme) Encode(b *bin.Buffer) error
- func (w *WebPageAttributeTheme) GetDocuments() (value []DocumentClass, ok bool)
- func (w *WebPageAttributeTheme) GetSettings() (value ThemeSettings, ok bool)
- func (w *WebPageAttributeTheme) SetDocuments(value []DocumentClass)
- func (w *WebPageAttributeTheme) SetSettings(value ThemeSettings)
- type WebPageBox
- type WebPageClass
- type WebPageEmpty
- type WebPageNotModified
- type WebPagePending
Constants ¶
const AccountAcceptAuthorizationRequestTypeID = 0xe7027c94
AccountAcceptAuthorizationRequestTypeID is TL type id of AccountAcceptAuthorizationRequest.
const AccountAuthorizationFormTypeID = 0xad2e1cd8
AccountAuthorizationFormTypeID is TL type id of AccountAuthorizationForm.
const AccountAuthorizationsTypeID = 0x1250abde
AccountAuthorizationsTypeID is TL type id of AccountAuthorizations.
const AccountAutoDownloadSettingsTypeID = 0x63cacf26
AccountAutoDownloadSettingsTypeID is TL type id of AccountAutoDownloadSettings.
const AccountCancelPasswordEmailRequestTypeID = 0xc1cbd5b6
AccountCancelPasswordEmailRequestTypeID is TL type id of AccountCancelPasswordEmailRequest.
const AccountChangePhoneRequestTypeID = 0x70c32edb
AccountChangePhoneRequestTypeID is TL type id of AccountChangePhoneRequest.
const AccountCheckUsernameRequestTypeID = 0x2714d86c
AccountCheckUsernameRequestTypeID is TL type id of AccountCheckUsernameRequest.
const AccountConfirmPasswordEmailRequestTypeID = 0x8fdf1920
AccountConfirmPasswordEmailRequestTypeID is TL type id of AccountConfirmPasswordEmailRequest.
const AccountConfirmPhoneRequestTypeID = 0x5f2178c3
AccountConfirmPhoneRequestTypeID is TL type id of AccountConfirmPhoneRequest.
const AccountContentSettingsTypeID = 0x57e28221
AccountContentSettingsTypeID is TL type id of AccountContentSettings.
const AccountCreateThemeRequestTypeID = 0x8432c21f
AccountCreateThemeRequestTypeID is TL type id of AccountCreateThemeRequest.
const AccountDaysTTLTypeID = 0xb8d0afdf
AccountDaysTTLTypeID is TL type id of AccountDaysTTL.
const AccountDeleteAccountRequestTypeID = 0x418d4e0b
AccountDeleteAccountRequestTypeID is TL type id of AccountDeleteAccountRequest.
const AccountDeleteSecureValueRequestTypeID = 0xb880bc4b
AccountDeleteSecureValueRequestTypeID is TL type id of AccountDeleteSecureValueRequest.
const AccountFinishTakeoutSessionRequestTypeID = 0x1d2652ee
AccountFinishTakeoutSessionRequestTypeID is TL type id of AccountFinishTakeoutSessionRequest.
const AccountGetAccountTTLRequestTypeID = 0x8fc711d
AccountGetAccountTTLRequestTypeID is TL type id of AccountGetAccountTTLRequest.
const AccountGetAllSecureValuesRequestTypeID = 0xb288bc7d
AccountGetAllSecureValuesRequestTypeID is TL type id of AccountGetAllSecureValuesRequest.
const AccountGetAuthorizationFormRequestTypeID = 0xb86ba8e1
AccountGetAuthorizationFormRequestTypeID is TL type id of AccountGetAuthorizationFormRequest.
const AccountGetAuthorizationsRequestTypeID = 0xe320c158
AccountGetAuthorizationsRequestTypeID is TL type id of AccountGetAuthorizationsRequest.
const AccountGetAutoDownloadSettingsRequestTypeID = 0x56da0b3f
AccountGetAutoDownloadSettingsRequestTypeID is TL type id of AccountGetAutoDownloadSettingsRequest.
const AccountGetContactSignUpNotificationRequestTypeID = 0x9f07c728
AccountGetContactSignUpNotificationRequestTypeID is TL type id of AccountGetContactSignUpNotificationRequest.
const AccountGetContentSettingsRequestTypeID = 0x8b9b4dae
AccountGetContentSettingsRequestTypeID is TL type id of AccountGetContentSettingsRequest.
const AccountGetGlobalPrivacySettingsRequestTypeID = 0xeb2b4cf6
AccountGetGlobalPrivacySettingsRequestTypeID is TL type id of AccountGetGlobalPrivacySettingsRequest.
const AccountGetMultiWallPapersRequestTypeID = 0x65ad71dc
AccountGetMultiWallPapersRequestTypeID is TL type id of AccountGetMultiWallPapersRequest.
const AccountGetNotifyExceptionsRequestTypeID = 0x53577479
AccountGetNotifyExceptionsRequestTypeID is TL type id of AccountGetNotifyExceptionsRequest.
const AccountGetNotifySettingsRequestTypeID = 0x12b3ad31
AccountGetNotifySettingsRequestTypeID is TL type id of AccountGetNotifySettingsRequest.
const AccountGetPasswordRequestTypeID = 0x548a30f5
AccountGetPasswordRequestTypeID is TL type id of AccountGetPasswordRequest.
const AccountGetPasswordSettingsRequestTypeID = 0x9cd4eaf9
AccountGetPasswordSettingsRequestTypeID is TL type id of AccountGetPasswordSettingsRequest.
const AccountGetPrivacyRequestTypeID = 0xdadbc950
AccountGetPrivacyRequestTypeID is TL type id of AccountGetPrivacyRequest.
const AccountGetSecureValueRequestTypeID = 0x73665bc2
AccountGetSecureValueRequestTypeID is TL type id of AccountGetSecureValueRequest.
const AccountGetThemeRequestTypeID = 0x8d9d742b
AccountGetThemeRequestTypeID is TL type id of AccountGetThemeRequest.
const AccountGetThemesRequestTypeID = 0x285946f8
AccountGetThemesRequestTypeID is TL type id of AccountGetThemesRequest.
const AccountGetTmpPasswordRequestTypeID = 0x449e0b51
AccountGetTmpPasswordRequestTypeID is TL type id of AccountGetTmpPasswordRequest.
const AccountGetWallPaperRequestTypeID = 0xfc8ddbea
AccountGetWallPaperRequestTypeID is TL type id of AccountGetWallPaperRequest.
const AccountGetWallPapersRequestTypeID = 0xaabb1763
AccountGetWallPapersRequestTypeID is TL type id of AccountGetWallPapersRequest.
const AccountGetWebAuthorizationsRequestTypeID = 0x182e6d6f
AccountGetWebAuthorizationsRequestTypeID is TL type id of AccountGetWebAuthorizationsRequest.
const AccountInitTakeoutSessionRequestTypeID = 0xf05b4804
AccountInitTakeoutSessionRequestTypeID is TL type id of AccountInitTakeoutSessionRequest.
const AccountInstallThemeRequestTypeID = 0x7ae43737
AccountInstallThemeRequestTypeID is TL type id of AccountInstallThemeRequest.
const AccountInstallWallPaperRequestTypeID = 0xfeed5769
AccountInstallWallPaperRequestTypeID is TL type id of AccountInstallWallPaperRequest.
const AccountPasswordInputSettingsTypeID = 0xc23727c9
AccountPasswordInputSettingsTypeID is TL type id of AccountPasswordInputSettings.
const AccountPasswordSettingsTypeID = 0x9a5c33e5
AccountPasswordSettingsTypeID is TL type id of AccountPasswordSettings.
const AccountPasswordTypeID = 0xad2641f8
AccountPasswordTypeID is TL type id of AccountPassword.
const AccountPrivacyRulesTypeID = 0x50a04e45
AccountPrivacyRulesTypeID is TL type id of AccountPrivacyRules.
const AccountRegisterDeviceRequestTypeID = 0x68976c6f
AccountRegisterDeviceRequestTypeID is TL type id of AccountRegisterDeviceRequest.
const AccountReportPeerRequestTypeID = 0xae189d5f
AccountReportPeerRequestTypeID is TL type id of AccountReportPeerRequest.
const AccountResendPasswordEmailRequestTypeID = 0x7a7f2a15
AccountResendPasswordEmailRequestTypeID is TL type id of AccountResendPasswordEmailRequest.
const AccountResetAuthorizationRequestTypeID = 0xdf77f3bc
AccountResetAuthorizationRequestTypeID is TL type id of AccountResetAuthorizationRequest.
const AccountResetNotifySettingsRequestTypeID = 0xdb7e1747
AccountResetNotifySettingsRequestTypeID is TL type id of AccountResetNotifySettingsRequest.
const AccountResetWallPapersRequestTypeID = 0xbb3b9804
AccountResetWallPapersRequestTypeID is TL type id of AccountResetWallPapersRequest.
const AccountResetWebAuthorizationRequestTypeID = 0x2d01b9ef
AccountResetWebAuthorizationRequestTypeID is TL type id of AccountResetWebAuthorizationRequest.
const AccountResetWebAuthorizationsRequestTypeID = 0x682d2594
AccountResetWebAuthorizationsRequestTypeID is TL type id of AccountResetWebAuthorizationsRequest.
const AccountSaveAutoDownloadSettingsRequestTypeID = 0x76f36233
AccountSaveAutoDownloadSettingsRequestTypeID is TL type id of AccountSaveAutoDownloadSettingsRequest.
const AccountSaveSecureValueRequestTypeID = 0x899fe31d
AccountSaveSecureValueRequestTypeID is TL type id of AccountSaveSecureValueRequest.
const AccountSaveThemeRequestTypeID = 0xf257106c
AccountSaveThemeRequestTypeID is TL type id of AccountSaveThemeRequest.
const AccountSaveWallPaperRequestTypeID = 0x6c5a5b37
AccountSaveWallPaperRequestTypeID is TL type id of AccountSaveWallPaperRequest.
const AccountSendChangePhoneCodeRequestTypeID = 0x82574ae5
AccountSendChangePhoneCodeRequestTypeID is TL type id of AccountSendChangePhoneCodeRequest.
const AccountSendConfirmPhoneCodeRequestTypeID = 0x1b3faa88
AccountSendConfirmPhoneCodeRequestTypeID is TL type id of AccountSendConfirmPhoneCodeRequest.
const AccountSendVerifyEmailCodeRequestTypeID = 0x7011509f
AccountSendVerifyEmailCodeRequestTypeID is TL type id of AccountSendVerifyEmailCodeRequest.
const AccountSendVerifyPhoneCodeRequestTypeID = 0xa5a356f9
AccountSendVerifyPhoneCodeRequestTypeID is TL type id of AccountSendVerifyPhoneCodeRequest.
const AccountSentEmailCodeTypeID = 0x811f854f
AccountSentEmailCodeTypeID is TL type id of AccountSentEmailCode.
const AccountSetAccountTTLRequestTypeID = 0x2442485e
AccountSetAccountTTLRequestTypeID is TL type id of AccountSetAccountTTLRequest.
const AccountSetContactSignUpNotificationRequestTypeID = 0xcff43f61
AccountSetContactSignUpNotificationRequestTypeID is TL type id of AccountSetContactSignUpNotificationRequest.
const AccountSetContentSettingsRequestTypeID = 0xb574b16b
AccountSetContentSettingsRequestTypeID is TL type id of AccountSetContentSettingsRequest.
const AccountSetGlobalPrivacySettingsRequestTypeID = 0x1edaaac2
AccountSetGlobalPrivacySettingsRequestTypeID is TL type id of AccountSetGlobalPrivacySettingsRequest.
const AccountSetPrivacyRequestTypeID = 0xc9f81ce8
AccountSetPrivacyRequestTypeID is TL type id of AccountSetPrivacyRequest.
const AccountTakeoutTypeID = 0x4dba4501
AccountTakeoutTypeID is TL type id of AccountTakeout.
const AccountThemesNotModifiedTypeID = 0xf41eb622
AccountThemesNotModifiedTypeID is TL type id of AccountThemesNotModified.
const AccountThemesTypeID = 0x7f676421
AccountThemesTypeID is TL type id of AccountThemes.
const AccountTmpPasswordTypeID = 0xdb64fd34
AccountTmpPasswordTypeID is TL type id of AccountTmpPassword.
const AccountUnregisterDeviceRequestTypeID = 0x3076c4bf
AccountUnregisterDeviceRequestTypeID is TL type id of AccountUnregisterDeviceRequest.
const AccountUpdateDeviceLockedRequestTypeID = 0x38df3532
AccountUpdateDeviceLockedRequestTypeID is TL type id of AccountUpdateDeviceLockedRequest.
const AccountUpdateNotifySettingsRequestTypeID = 0x84be5b93
AccountUpdateNotifySettingsRequestTypeID is TL type id of AccountUpdateNotifySettingsRequest.
const AccountUpdatePasswordSettingsRequestTypeID = 0xa59b102f
AccountUpdatePasswordSettingsRequestTypeID is TL type id of AccountUpdatePasswordSettingsRequest.
const AccountUpdateProfileRequestTypeID = 0x78515775
AccountUpdateProfileRequestTypeID is TL type id of AccountUpdateProfileRequest.
const AccountUpdateStatusRequestTypeID = 0x6628562c
AccountUpdateStatusRequestTypeID is TL type id of AccountUpdateStatusRequest.
const AccountUpdateThemeRequestTypeID = 0x5cb367d5
AccountUpdateThemeRequestTypeID is TL type id of AccountUpdateThemeRequest.
const AccountUpdateUsernameRequestTypeID = 0x3e0bdd7c
AccountUpdateUsernameRequestTypeID is TL type id of AccountUpdateUsernameRequest.
const AccountUploadThemeRequestTypeID = 0x1c3db333
AccountUploadThemeRequestTypeID is TL type id of AccountUploadThemeRequest.
const AccountUploadWallPaperRequestTypeID = 0xdd853661
AccountUploadWallPaperRequestTypeID is TL type id of AccountUploadWallPaperRequest.
const AccountVerifyEmailRequestTypeID = 0xecba39db
AccountVerifyEmailRequestTypeID is TL type id of AccountVerifyEmailRequest.
const AccountVerifyPhoneRequestTypeID = 0x4dd3a7f6
AccountVerifyPhoneRequestTypeID is TL type id of AccountVerifyPhoneRequest.
const AccountWallPapersNotModifiedTypeID = 0x1c199183
AccountWallPapersNotModifiedTypeID is TL type id of AccountWallPapersNotModified.
const AccountWallPapersTypeID = 0x702b65a9
AccountWallPapersTypeID is TL type id of AccountWallPapers.
const AccountWebAuthorizationsTypeID = 0xed56c9fc
AccountWebAuthorizationsTypeID is TL type id of AccountWebAuthorizations.
const AuthAcceptLoginTokenRequestTypeID = 0xe894ad4d
AuthAcceptLoginTokenRequestTypeID is TL type id of AuthAcceptLoginTokenRequest.
const AuthAuthorizationSignUpRequiredTypeID = 0x44747e9a
AuthAuthorizationSignUpRequiredTypeID is TL type id of AuthAuthorizationSignUpRequired.
const AuthAuthorizationTypeID = 0xcd050916
AuthAuthorizationTypeID is TL type id of AuthAuthorization.
const AuthBindTempAuthKeyRequestTypeID = 0xcdd42a05
AuthBindTempAuthKeyRequestTypeID is TL type id of AuthBindTempAuthKeyRequest.
const AuthCancelCodeRequestTypeID = 0x1f040578
AuthCancelCodeRequestTypeID is TL type id of AuthCancelCodeRequest.
const AuthCheckPasswordRequestTypeID = 0xd18b4d16
AuthCheckPasswordRequestTypeID is TL type id of AuthCheckPasswordRequest.
const AuthCodeTypeCallTypeID = 0x741cd3e3
AuthCodeTypeCallTypeID is TL type id of AuthCodeTypeCall.
const AuthCodeTypeFlashCallTypeID = 0x226ccefb
AuthCodeTypeFlashCallTypeID is TL type id of AuthCodeTypeFlashCall.
const AuthCodeTypeSmsTypeID = 0x72a3158c
AuthCodeTypeSmsTypeID is TL type id of AuthCodeTypeSms.
const AuthDropTempAuthKeysRequestTypeID = 0x8e48a188
AuthDropTempAuthKeysRequestTypeID is TL type id of AuthDropTempAuthKeysRequest.
const AuthExportAuthorizationRequestTypeID = 0xe5bfffcd
AuthExportAuthorizationRequestTypeID is TL type id of AuthExportAuthorizationRequest.
const AuthExportLoginTokenRequestTypeID = 0xb1b41517
AuthExportLoginTokenRequestTypeID is TL type id of AuthExportLoginTokenRequest.
const AuthExportedAuthorizationTypeID = 0xdf969c2d
AuthExportedAuthorizationTypeID is TL type id of AuthExportedAuthorization.
const AuthImportAuthorizationRequestTypeID = 0xe3ef9613
AuthImportAuthorizationRequestTypeID is TL type id of AuthImportAuthorizationRequest.
const AuthImportBotAuthorizationRequestTypeID = 0x67a3ff2c
AuthImportBotAuthorizationRequestTypeID is TL type id of AuthImportBotAuthorizationRequest.
const AuthImportLoginTokenRequestTypeID = 0x95ac5ce4
AuthImportLoginTokenRequestTypeID is TL type id of AuthImportLoginTokenRequest.
const AuthLogOutRequestTypeID = 0x5717da40
AuthLogOutRequestTypeID is TL type id of AuthLogOutRequest.
const AuthLoginTokenMigrateToTypeID = 0x68e9916
AuthLoginTokenMigrateToTypeID is TL type id of AuthLoginTokenMigrateTo.
const AuthLoginTokenSuccessTypeID = 0x390d5c5e
AuthLoginTokenSuccessTypeID is TL type id of AuthLoginTokenSuccess.
const AuthLoginTokenTypeID = 0x629f1980
AuthLoginTokenTypeID is TL type id of AuthLoginToken.
const AuthPasswordRecoveryTypeID = 0x137948a5
AuthPasswordRecoveryTypeID is TL type id of AuthPasswordRecovery.
const AuthRecoverPasswordRequestTypeID = 0x4ea56e92
AuthRecoverPasswordRequestTypeID is TL type id of AuthRecoverPasswordRequest.
const AuthRequestPasswordRecoveryRequestTypeID = 0xd897bc66
AuthRequestPasswordRecoveryRequestTypeID is TL type id of AuthRequestPasswordRecoveryRequest.
const AuthResendCodeRequestTypeID = 0x3ef1a9bf
AuthResendCodeRequestTypeID is TL type id of AuthResendCodeRequest.
const AuthResetAuthorizationsRequestTypeID = 0x9fab0d1a
AuthResetAuthorizationsRequestTypeID is TL type id of AuthResetAuthorizationsRequest.
const AuthSendCodeRequestTypeID = 0xa677244f
AuthSendCodeRequestTypeID is TL type id of AuthSendCodeRequest.
const AuthSentCodeTypeAppTypeID = 0x3dbb5986
AuthSentCodeTypeAppTypeID is TL type id of AuthSentCodeTypeApp.
const AuthSentCodeTypeCallTypeID = 0x5353e5a7
AuthSentCodeTypeCallTypeID is TL type id of AuthSentCodeTypeCall.
const AuthSentCodeTypeFlashCallTypeID = 0xab03c6d9
AuthSentCodeTypeFlashCallTypeID is TL type id of AuthSentCodeTypeFlashCall.
const AuthSentCodeTypeID = 0x5e002502
AuthSentCodeTypeID is TL type id of AuthSentCode.
const AuthSentCodeTypeSmsTypeID = 0xc000bba2
AuthSentCodeTypeSmsTypeID is TL type id of AuthSentCodeTypeSms.
const AuthSignInRequestTypeID = 0xbcd51581
AuthSignInRequestTypeID is TL type id of AuthSignInRequest.
const AuthSignUpRequestTypeID = 0x80eee427
AuthSignUpRequestTypeID is TL type id of AuthSignUpRequest.
const AuthorizationTypeID = 0xad01d61d
AuthorizationTypeID is TL type id of Authorization.
const AutoDownloadSettingsTypeID = 0xe04232f3
AutoDownloadSettingsTypeID is TL type id of AutoDownloadSettings.
const BankCardOpenUrlTypeID = 0xf568028a
BankCardOpenUrlTypeID is TL type id of BankCardOpenUrl.
const BaseThemeArcticTypeID = 0x5b11125a
BaseThemeArcticTypeID is TL type id of BaseThemeArctic.
const BaseThemeClassicTypeID = 0xc3a12462
BaseThemeClassicTypeID is TL type id of BaseThemeClassic.
const BaseThemeDayTypeID = 0xfbd81688
BaseThemeDayTypeID is TL type id of BaseThemeDay.
const BaseThemeNightTypeID = 0xb7b31ea8
BaseThemeNightTypeID is TL type id of BaseThemeNight.
const BaseThemeTintedTypeID = 0x6d5f77ee
BaseThemeTintedTypeID is TL type id of BaseThemeTinted.
const BoolFalseTypeID = 0xbc799737
BoolFalseTypeID is TL type id of BoolFalse.
const BoolTrueTypeID = 0x997275b5
BoolTrueTypeID is TL type id of BoolTrue.
const BotCommandTypeID = 0xc27ac8c7
BotCommandTypeID is TL type id of BotCommand.
const BotInfoTypeID = 0x98e81d3a
BotInfoTypeID is TL type id of BotInfo.
const BotInlineMediaResultTypeID = 0x17db940b
BotInlineMediaResultTypeID is TL type id of BotInlineMediaResult.
const BotInlineMessageMediaAutoTypeID = 0x764cf810
BotInlineMessageMediaAutoTypeID is TL type id of BotInlineMessageMediaAuto.
const BotInlineMessageMediaContactTypeID = 0x18d1cdc2
BotInlineMessageMediaContactTypeID is TL type id of BotInlineMessageMediaContact.
const BotInlineMessageMediaGeoTypeID = 0x51846fd
BotInlineMessageMediaGeoTypeID is TL type id of BotInlineMessageMediaGeo.
const BotInlineMessageMediaVenueTypeID = 0x8a86659c
BotInlineMessageMediaVenueTypeID is TL type id of BotInlineMessageMediaVenue.
const BotInlineMessageTextTypeID = 0x8c7f65e2
BotInlineMessageTextTypeID is TL type id of BotInlineMessageText.
const BotInlineResultTypeID = 0x11965f3a
BotInlineResultTypeID is TL type id of BotInlineResult.
const BotsAnswerWebhookJSONQueryRequestTypeID = 0xe6213f4d
BotsAnswerWebhookJSONQueryRequestTypeID is TL type id of BotsAnswerWebhookJSONQueryRequest.
const BotsSendCustomRequestRequestTypeID = 0xaa2769ed
BotsSendCustomRequestRequestTypeID is TL type id of BotsSendCustomRequestRequest.
const BotsSetBotCommandsRequestTypeID = 0x805d46f6
BotsSetBotCommandsRequestTypeID is TL type id of BotsSetBotCommandsRequest.
const CdnConfigTypeID = 0x5725e40a
CdnConfigTypeID is TL type id of CdnConfig.
const CdnPublicKeyTypeID = 0xc982eaba
CdnPublicKeyTypeID is TL type id of CdnPublicKey.
const ChannelAdminLogEventActionChangeAboutTypeID = 0x55188a2e
ChannelAdminLogEventActionChangeAboutTypeID is TL type id of ChannelAdminLogEventActionChangeAbout.
const ChannelAdminLogEventActionChangeLinkedChatTypeID = 0xa26f881b
ChannelAdminLogEventActionChangeLinkedChatTypeID is TL type id of ChannelAdminLogEventActionChangeLinkedChat.
const ChannelAdminLogEventActionChangeLocationTypeID = 0xe6b76ae
ChannelAdminLogEventActionChangeLocationTypeID is TL type id of ChannelAdminLogEventActionChangeLocation.
const ChannelAdminLogEventActionChangePhotoTypeID = 0x434bd2af
ChannelAdminLogEventActionChangePhotoTypeID is TL type id of ChannelAdminLogEventActionChangePhoto.
const ChannelAdminLogEventActionChangeStickerSetTypeID = 0xb1c3caa7
ChannelAdminLogEventActionChangeStickerSetTypeID is TL type id of ChannelAdminLogEventActionChangeStickerSet.
const ChannelAdminLogEventActionChangeTitleTypeID = 0xe6dfb825
ChannelAdminLogEventActionChangeTitleTypeID is TL type id of ChannelAdminLogEventActionChangeTitle.
const ChannelAdminLogEventActionChangeUsernameTypeID = 0x6a4afc38
ChannelAdminLogEventActionChangeUsernameTypeID is TL type id of ChannelAdminLogEventActionChangeUsername.
const ChannelAdminLogEventActionDefaultBannedRightsTypeID = 0x2df5fc0a
ChannelAdminLogEventActionDefaultBannedRightsTypeID is TL type id of ChannelAdminLogEventActionDefaultBannedRights.
const ChannelAdminLogEventActionDeleteMessageTypeID = 0x42e047bb
ChannelAdminLogEventActionDeleteMessageTypeID is TL type id of ChannelAdminLogEventActionDeleteMessage.
const ChannelAdminLogEventActionEditMessageTypeID = 0x709b2405
ChannelAdminLogEventActionEditMessageTypeID is TL type id of ChannelAdminLogEventActionEditMessage.
const ChannelAdminLogEventActionParticipantInviteTypeID = 0xe31c34d8
ChannelAdminLogEventActionParticipantInviteTypeID is TL type id of ChannelAdminLogEventActionParticipantInvite.
const ChannelAdminLogEventActionParticipantJoinTypeID = 0x183040d3
ChannelAdminLogEventActionParticipantJoinTypeID is TL type id of ChannelAdminLogEventActionParticipantJoin.
const ChannelAdminLogEventActionParticipantLeaveTypeID = 0xf89777f2
ChannelAdminLogEventActionParticipantLeaveTypeID is TL type id of ChannelAdminLogEventActionParticipantLeave.
const ChannelAdminLogEventActionParticipantToggleAdminTypeID = 0xd5676710
ChannelAdminLogEventActionParticipantToggleAdminTypeID is TL type id of ChannelAdminLogEventActionParticipantToggleAdmin.
const ChannelAdminLogEventActionParticipantToggleBanTypeID = 0xe6d83d7e
ChannelAdminLogEventActionParticipantToggleBanTypeID is TL type id of ChannelAdminLogEventActionParticipantToggleBan.
const ChannelAdminLogEventActionStopPollTypeID = 0x8f079643
ChannelAdminLogEventActionStopPollTypeID is TL type id of ChannelAdminLogEventActionStopPoll.
const ChannelAdminLogEventActionToggleInvitesTypeID = 0x1b7907ae
ChannelAdminLogEventActionToggleInvitesTypeID is TL type id of ChannelAdminLogEventActionToggleInvites.
const ChannelAdminLogEventActionTogglePreHistoryHiddenTypeID = 0x5f5c95f1
ChannelAdminLogEventActionTogglePreHistoryHiddenTypeID is TL type id of ChannelAdminLogEventActionTogglePreHistoryHidden.
const ChannelAdminLogEventActionToggleSignaturesTypeID = 0x26ae0971
ChannelAdminLogEventActionToggleSignaturesTypeID is TL type id of ChannelAdminLogEventActionToggleSignatures.
const ChannelAdminLogEventActionToggleSlowModeTypeID = 0x53909779
ChannelAdminLogEventActionToggleSlowModeTypeID is TL type id of ChannelAdminLogEventActionToggleSlowMode.
const ChannelAdminLogEventActionUpdatePinnedTypeID = 0xe9e82c18
ChannelAdminLogEventActionUpdatePinnedTypeID is TL type id of ChannelAdminLogEventActionUpdatePinned.
const ChannelAdminLogEventTypeID = 0x3b5a3e40
ChannelAdminLogEventTypeID is TL type id of ChannelAdminLogEvent.
const ChannelAdminLogEventsFilterTypeID = 0xea107ae4
ChannelAdminLogEventsFilterTypeID is TL type id of ChannelAdminLogEventsFilter.
const ChannelForbiddenTypeID = 0x289da732
ChannelForbiddenTypeID is TL type id of ChannelForbidden.
const ChannelFullTypeID = 0xf0e6672a
ChannelFullTypeID is TL type id of ChannelFull.
const ChannelLocationEmptyTypeID = 0xbfb5ad8b
ChannelLocationEmptyTypeID is TL type id of ChannelLocationEmpty.
const ChannelLocationTypeID = 0x209b82db
ChannelLocationTypeID is TL type id of ChannelLocation.
const ChannelMessagesFilterEmptyTypeID = 0x94d42ee7
ChannelMessagesFilterEmptyTypeID is TL type id of ChannelMessagesFilterEmpty.
const ChannelMessagesFilterTypeID = 0xcd77d957
ChannelMessagesFilterTypeID is TL type id of ChannelMessagesFilter.
const ChannelParticipantAdminTypeID = 0xccbebbaf
ChannelParticipantAdminTypeID is TL type id of ChannelParticipantAdmin.
const ChannelParticipantBannedTypeID = 0x1c0facaf
ChannelParticipantBannedTypeID is TL type id of ChannelParticipantBanned.
const ChannelParticipantCreatorTypeID = 0x447dca4b
ChannelParticipantCreatorTypeID is TL type id of ChannelParticipantCreator.
const ChannelParticipantLeftTypeID = 0xc3c6796b
ChannelParticipantLeftTypeID is TL type id of ChannelParticipantLeft.
const ChannelParticipantSelfTypeID = 0xa3289a6d
ChannelParticipantSelfTypeID is TL type id of ChannelParticipantSelf.
const ChannelParticipantTypeID = 0x15ebac1d
ChannelParticipantTypeID is TL type id of ChannelParticipant.
const ChannelParticipantsAdminsTypeID = 0xb4608969
ChannelParticipantsAdminsTypeID is TL type id of ChannelParticipantsAdmins.
const ChannelParticipantsBannedTypeID = 0x1427a5e1
ChannelParticipantsBannedTypeID is TL type id of ChannelParticipantsBanned.
const ChannelParticipantsBotsTypeID = 0xb0d1865b
ChannelParticipantsBotsTypeID is TL type id of ChannelParticipantsBots.
const ChannelParticipantsContactsTypeID = 0xbb6ae88d
ChannelParticipantsContactsTypeID is TL type id of ChannelParticipantsContacts.
const ChannelParticipantsKickedTypeID = 0xa3b54985
ChannelParticipantsKickedTypeID is TL type id of ChannelParticipantsKicked.
const ChannelParticipantsMentionsTypeID = 0xe04b5ceb
ChannelParticipantsMentionsTypeID is TL type id of ChannelParticipantsMentions.
const ChannelParticipantsRecentTypeID = 0xde3f3c79
ChannelParticipantsRecentTypeID is TL type id of ChannelParticipantsRecent.
const ChannelParticipantsSearchTypeID = 0x656ac4b
ChannelParticipantsSearchTypeID is TL type id of ChannelParticipantsSearch.
const ChannelTypeID = 0xd31a961e
ChannelTypeID is TL type id of Channel.
const ChannelsAdminLogResultsTypeID = 0xed8af74d
ChannelsAdminLogResultsTypeID is TL type id of ChannelsAdminLogResults.
const ChannelsChannelParticipantTypeID = 0xd0d9b163
ChannelsChannelParticipantTypeID is TL type id of ChannelsChannelParticipant.
const ChannelsChannelParticipantsNotModifiedTypeID = 0xf0173fe9
ChannelsChannelParticipantsNotModifiedTypeID is TL type id of ChannelsChannelParticipantsNotModified.
const ChannelsChannelParticipantsTypeID = 0xf56ee2a8
ChannelsChannelParticipantsTypeID is TL type id of ChannelsChannelParticipants.
const ChannelsCheckUsernameRequestTypeID = 0x10e6bd2c
ChannelsCheckUsernameRequestTypeID is TL type id of ChannelsCheckUsernameRequest.
const ChannelsCreateChannelRequestTypeID = 0x3d5fb10f
ChannelsCreateChannelRequestTypeID is TL type id of ChannelsCreateChannelRequest.
const ChannelsDeleteChannelRequestTypeID = 0xc0111fe3
ChannelsDeleteChannelRequestTypeID is TL type id of ChannelsDeleteChannelRequest.
const ChannelsDeleteHistoryRequestTypeID = 0xaf369d42
ChannelsDeleteHistoryRequestTypeID is TL type id of ChannelsDeleteHistoryRequest.
const ChannelsDeleteMessagesRequestTypeID = 0x84c1fd4e
ChannelsDeleteMessagesRequestTypeID is TL type id of ChannelsDeleteMessagesRequest.
const ChannelsDeleteUserHistoryRequestTypeID = 0xd10dd71b
ChannelsDeleteUserHistoryRequestTypeID is TL type id of ChannelsDeleteUserHistoryRequest.
const ChannelsEditAdminRequestTypeID = 0xd33c8902
ChannelsEditAdminRequestTypeID is TL type id of ChannelsEditAdminRequest.
const ChannelsEditBannedRequestTypeID = 0x72796912
ChannelsEditBannedRequestTypeID is TL type id of ChannelsEditBannedRequest.
const ChannelsEditCreatorRequestTypeID = 0x8f38cd1f
ChannelsEditCreatorRequestTypeID is TL type id of ChannelsEditCreatorRequest.
const ChannelsEditLocationRequestTypeID = 0x58e63f6d
ChannelsEditLocationRequestTypeID is TL type id of ChannelsEditLocationRequest.
const ChannelsEditPhotoRequestTypeID = 0xf12e57c9
ChannelsEditPhotoRequestTypeID is TL type id of ChannelsEditPhotoRequest.
const ChannelsEditTitleRequestTypeID = 0x566decd0
ChannelsEditTitleRequestTypeID is TL type id of ChannelsEditTitleRequest.
const ChannelsExportMessageLinkRequestTypeID = 0xe63fadeb
ChannelsExportMessageLinkRequestTypeID is TL type id of ChannelsExportMessageLinkRequest.
const ChannelsGetAdminLogRequestTypeID = 0x33ddf480
ChannelsGetAdminLogRequestTypeID is TL type id of ChannelsGetAdminLogRequest.
const ChannelsGetAdminedPublicChannelsRequestTypeID = 0xf8b036af
ChannelsGetAdminedPublicChannelsRequestTypeID is TL type id of ChannelsGetAdminedPublicChannelsRequest.
const ChannelsGetChannelsRequestTypeID = 0xa7f6bbb
ChannelsGetChannelsRequestTypeID is TL type id of ChannelsGetChannelsRequest.
const ChannelsGetFullChannelRequestTypeID = 0x8736a09
ChannelsGetFullChannelRequestTypeID is TL type id of ChannelsGetFullChannelRequest.
const ChannelsGetGroupsForDiscussionRequestTypeID = 0xf5dad378
ChannelsGetGroupsForDiscussionRequestTypeID is TL type id of ChannelsGetGroupsForDiscussionRequest.
const ChannelsGetInactiveChannelsRequestTypeID = 0x11e831ee
ChannelsGetInactiveChannelsRequestTypeID is TL type id of ChannelsGetInactiveChannelsRequest.
const ChannelsGetLeftChannelsRequestTypeID = 0x8341ecc0
ChannelsGetLeftChannelsRequestTypeID is TL type id of ChannelsGetLeftChannelsRequest.
const ChannelsGetMessagesRequestTypeID = 0xad8c9a23
ChannelsGetMessagesRequestTypeID is TL type id of ChannelsGetMessagesRequest.
const ChannelsGetParticipantRequestTypeID = 0x546dd7a6
ChannelsGetParticipantRequestTypeID is TL type id of ChannelsGetParticipantRequest.
const ChannelsGetParticipantsRequestTypeID = 0x123e05e9
ChannelsGetParticipantsRequestTypeID is TL type id of ChannelsGetParticipantsRequest.
const ChannelsInviteToChannelRequestTypeID = 0x199f3a6c
ChannelsInviteToChannelRequestTypeID is TL type id of ChannelsInviteToChannelRequest.
const ChannelsJoinChannelRequestTypeID = 0x24b524c5
ChannelsJoinChannelRequestTypeID is TL type id of ChannelsJoinChannelRequest.
const ChannelsLeaveChannelRequestTypeID = 0xf836aa95
ChannelsLeaveChannelRequestTypeID is TL type id of ChannelsLeaveChannelRequest.
const ChannelsReadHistoryRequestTypeID = 0xcc104937
ChannelsReadHistoryRequestTypeID is TL type id of ChannelsReadHistoryRequest.
const ChannelsReadMessageContentsRequestTypeID = 0xeab5dc38
ChannelsReadMessageContentsRequestTypeID is TL type id of ChannelsReadMessageContentsRequest.
const ChannelsReportSpamRequestTypeID = 0xfe087810
ChannelsReportSpamRequestTypeID is TL type id of ChannelsReportSpamRequest.
const ChannelsSetDiscussionGroupRequestTypeID = 0x40582bb2
ChannelsSetDiscussionGroupRequestTypeID is TL type id of ChannelsSetDiscussionGroupRequest.
const ChannelsSetStickersRequestTypeID = 0xea8ca4f9
ChannelsSetStickersRequestTypeID is TL type id of ChannelsSetStickersRequest.
const ChannelsTogglePreHistoryHiddenRequestTypeID = 0xeabbb94c
ChannelsTogglePreHistoryHiddenRequestTypeID is TL type id of ChannelsTogglePreHistoryHiddenRequest.
const ChannelsToggleSignaturesRequestTypeID = 0x1f69b606
ChannelsToggleSignaturesRequestTypeID is TL type id of ChannelsToggleSignaturesRequest.
const ChannelsToggleSlowModeRequestTypeID = 0xedd49ef0
ChannelsToggleSlowModeRequestTypeID is TL type id of ChannelsToggleSlowModeRequest.
const ChannelsUpdateUsernameRequestTypeID = 0x3514b3de
ChannelsUpdateUsernameRequestTypeID is TL type id of ChannelsUpdateUsernameRequest.
const ChatAdminRightsTypeID = 0x5fb224d5
ChatAdminRightsTypeID is TL type id of ChatAdminRights.
const ChatBannedRightsTypeID = 0x9f120418
ChatBannedRightsTypeID is TL type id of ChatBannedRights.
const ChatEmptyTypeID = 0x9ba2d800
ChatEmptyTypeID is TL type id of ChatEmpty.
const ChatForbiddenTypeID = 0x7328bdb
ChatForbiddenTypeID is TL type id of ChatForbidden.
const ChatFullTypeID = 0x1b7c9db3
ChatFullTypeID is TL type id of ChatFull.
const ChatInviteAlreadyTypeID = 0x5a686d7c
ChatInviteAlreadyTypeID is TL type id of ChatInviteAlready.
const ChatInviteEmptyTypeID = 0x69df3769
ChatInviteEmptyTypeID is TL type id of ChatInviteEmpty.
const ChatInviteExportedTypeID = 0xfc2e05bc
ChatInviteExportedTypeID is TL type id of ChatInviteExported.
const ChatInvitePeekTypeID = 0x61695cb0
ChatInvitePeekTypeID is TL type id of ChatInvitePeek.
const ChatInviteTypeID = 0xdfc2f58e
ChatInviteTypeID is TL type id of ChatInvite.
const ChatOnlinesTypeID = 0xf041e250
ChatOnlinesTypeID is TL type id of ChatOnlines.
const ChatParticipantAdminTypeID = 0xe2d6e436
ChatParticipantAdminTypeID is TL type id of ChatParticipantAdmin.
const ChatParticipantCreatorTypeID = 0xda13538a
ChatParticipantCreatorTypeID is TL type id of ChatParticipantCreator.
const ChatParticipantTypeID = 0xc8d7493e
ChatParticipantTypeID is TL type id of ChatParticipant.
const ChatParticipantsForbiddenTypeID = 0xfc900c2b
ChatParticipantsForbiddenTypeID is TL type id of ChatParticipantsForbidden.
const ChatParticipantsTypeID = 0x3f460fed
ChatParticipantsTypeID is TL type id of ChatParticipants.
const ChatPhotoEmptyTypeID = 0x37c1011c
ChatPhotoEmptyTypeID is TL type id of ChatPhotoEmpty.
const ChatPhotoTypeID = 0xd20b9f3c
ChatPhotoTypeID is TL type id of ChatPhoto.
const ChatTypeID = 0x3bda1bde
ChatTypeID is TL type id of Chat.
const CodeSettingsTypeID = 0xdebebe83
CodeSettingsTypeID is TL type id of CodeSettings.
const ConfigTypeID = 0x330b4067
ConfigTypeID is TL type id of Config.
const ContactStatusTypeID = 0xd3680c61
ContactStatusTypeID is TL type id of ContactStatus.
const ContactTypeID = 0xf911c994
ContactTypeID is TL type id of Contact.
const ContactsAcceptContactRequestTypeID = 0xf831a20f
ContactsAcceptContactRequestTypeID is TL type id of ContactsAcceptContactRequest.
const ContactsAddContactRequestTypeID = 0xe8f463d0
ContactsAddContactRequestTypeID is TL type id of ContactsAddContactRequest.
const ContactsBlockFromRepliesRequestTypeID = 0x29a8962c
ContactsBlockFromRepliesRequestTypeID is TL type id of ContactsBlockFromRepliesRequest.
const ContactsBlockRequestTypeID = 0x68cc1411
ContactsBlockRequestTypeID is TL type id of ContactsBlockRequest.
const ContactsBlockedSliceTypeID = 0xe1664194
ContactsBlockedSliceTypeID is TL type id of ContactsBlockedSlice.
const ContactsBlockedTypeID = 0xade1591
ContactsBlockedTypeID is TL type id of ContactsBlocked.
const ContactsContactsNotModifiedTypeID = 0xb74ba9d2
ContactsContactsNotModifiedTypeID is TL type id of ContactsContactsNotModified.
const ContactsContactsTypeID = 0xeae87e42
ContactsContactsTypeID is TL type id of ContactsContacts.
const ContactsDeleteByPhonesRequestTypeID = 0x1013fd9e
ContactsDeleteByPhonesRequestTypeID is TL type id of ContactsDeleteByPhonesRequest.
const ContactsDeleteContactsRequestTypeID = 0x96a0e00
ContactsDeleteContactsRequestTypeID is TL type id of ContactsDeleteContactsRequest.
const ContactsFoundTypeID = 0xb3134d9d
ContactsFoundTypeID is TL type id of ContactsFound.
const ContactsGetBlockedRequestTypeID = 0xf57c350f
ContactsGetBlockedRequestTypeID is TL type id of ContactsGetBlockedRequest.
const ContactsGetContactIDsRequestTypeID = 0x2caa4a42
ContactsGetContactIDsRequestTypeID is TL type id of ContactsGetContactIDsRequest.
const ContactsGetContactsRequestTypeID = 0xc023849f
ContactsGetContactsRequestTypeID is TL type id of ContactsGetContactsRequest.
const ContactsGetLocatedRequestTypeID = 0xd348bc44
ContactsGetLocatedRequestTypeID is TL type id of ContactsGetLocatedRequest.
const ContactsGetSavedRequestTypeID = 0x82f1e39f
ContactsGetSavedRequestTypeID is TL type id of ContactsGetSavedRequest.
const ContactsGetStatusesRequestTypeID = 0xc4a353ee
ContactsGetStatusesRequestTypeID is TL type id of ContactsGetStatusesRequest.
const ContactsGetTopPeersRequestTypeID = 0xd4982db5
ContactsGetTopPeersRequestTypeID is TL type id of ContactsGetTopPeersRequest.
const ContactsImportContactsRequestTypeID = 0x2c800be5
ContactsImportContactsRequestTypeID is TL type id of ContactsImportContactsRequest.
const ContactsImportedContactsTypeID = 0x77d01c3b
ContactsImportedContactsTypeID is TL type id of ContactsImportedContacts.
const ContactsResetSavedRequestTypeID = 0x879537f1
ContactsResetSavedRequestTypeID is TL type id of ContactsResetSavedRequest.
const ContactsResetTopPeerRatingRequestTypeID = 0x1ae373ac
ContactsResetTopPeerRatingRequestTypeID is TL type id of ContactsResetTopPeerRatingRequest.
const ContactsResolveUsernameRequestTypeID = 0xf93ccba3
ContactsResolveUsernameRequestTypeID is TL type id of ContactsResolveUsernameRequest.
const ContactsResolvedPeerTypeID = 0x7f077ad9
ContactsResolvedPeerTypeID is TL type id of ContactsResolvedPeer.
const ContactsSearchRequestTypeID = 0x11f812d8
ContactsSearchRequestTypeID is TL type id of ContactsSearchRequest.
const ContactsToggleTopPeersRequestTypeID = 0x8514bdda
ContactsToggleTopPeersRequestTypeID is TL type id of ContactsToggleTopPeersRequest.
const ContactsTopPeersDisabledTypeID = 0xb52c939d
ContactsTopPeersDisabledTypeID is TL type id of ContactsTopPeersDisabled.
const ContactsTopPeersNotModifiedTypeID = 0xde266ef5
ContactsTopPeersNotModifiedTypeID is TL type id of ContactsTopPeersNotModified.
const ContactsTopPeersTypeID = 0x70b772a8
ContactsTopPeersTypeID is TL type id of ContactsTopPeers.
const ContactsUnblockRequestTypeID = 0xbea65d50
ContactsUnblockRequestTypeID is TL type id of ContactsUnblockRequest.
const DataJSONTypeID = 0x7d748d04
DataJSONTypeID is TL type id of DataJSON.
const DcOptionTypeID = 0x18b7a10d
DcOptionTypeID is TL type id of DcOption.
const DialogFilterSuggestedTypeID = 0x77744d4a
DialogFilterSuggestedTypeID is TL type id of DialogFilterSuggested.
const DialogFilterTypeID = 0x7438f7e8
DialogFilterTypeID is TL type id of DialogFilter.
const DialogFolderTypeID = 0x71bd134c
DialogFolderTypeID is TL type id of DialogFolder.
const DialogPeerFolderTypeID = 0x514519e2
DialogPeerFolderTypeID is TL type id of DialogPeerFolder.
const DialogPeerTypeID = 0xe56dbf05
DialogPeerTypeID is TL type id of DialogPeer.
const DialogTypeID = 0x2c171f72
DialogTypeID is TL type id of Dialog.
const DocumentAttributeAnimatedTypeID = 0x11b58939
DocumentAttributeAnimatedTypeID is TL type id of DocumentAttributeAnimated.
const DocumentAttributeAudioTypeID = 0x9852f9c6
DocumentAttributeAudioTypeID is TL type id of DocumentAttributeAudio.
const DocumentAttributeFilenameTypeID = 0x15590068
DocumentAttributeFilenameTypeID is TL type id of DocumentAttributeFilename.
const DocumentAttributeHasStickersTypeID = 0x9801d2f7
DocumentAttributeHasStickersTypeID is TL type id of DocumentAttributeHasStickers.
const DocumentAttributeImageSizeTypeID = 0x6c37c15c
DocumentAttributeImageSizeTypeID is TL type id of DocumentAttributeImageSize.
const DocumentAttributeStickerTypeID = 0x6319d612
DocumentAttributeStickerTypeID is TL type id of DocumentAttributeSticker.
const DocumentAttributeVideoTypeID = 0xef02ce6
DocumentAttributeVideoTypeID is TL type id of DocumentAttributeVideo.
const DocumentEmptyTypeID = 0x36f8c871
DocumentEmptyTypeID is TL type id of DocumentEmpty.
const DocumentTypeID = 0x1e87342b
DocumentTypeID is TL type id of Document.
const DraftMessageEmptyTypeID = 0x1b0c841a
DraftMessageEmptyTypeID is TL type id of DraftMessageEmpty.
const DraftMessageTypeID = 0xfd8e711f
DraftMessageTypeID is TL type id of DraftMessage.
const EmojiKeywordDeletedTypeID = 0x236df622
EmojiKeywordDeletedTypeID is TL type id of EmojiKeywordDeleted.
const EmojiKeywordTypeID = 0xd5b3b9f9
EmojiKeywordTypeID is TL type id of EmojiKeyword.
const EmojiKeywordsDifferenceTypeID = 0x5cc761bd
EmojiKeywordsDifferenceTypeID is TL type id of EmojiKeywordsDifference.
const EmojiLanguageTypeID = 0xb3fb5361
EmojiLanguageTypeID is TL type id of EmojiLanguage.
const EmojiURLTypeID = 0xa575739d
EmojiURLTypeID is TL type id of EmojiURL.
const EncryptedChatDiscardedTypeID = 0x13d6dd27
EncryptedChatDiscardedTypeID is TL type id of EncryptedChatDiscarded.
const EncryptedChatEmptyTypeID = 0xab7ec0a0
EncryptedChatEmptyTypeID is TL type id of EncryptedChatEmpty.
const EncryptedChatRequestedTypeID = 0x62718a82
EncryptedChatRequestedTypeID is TL type id of EncryptedChatRequested.
const EncryptedChatTypeID = 0xfa56ce36
EncryptedChatTypeID is TL type id of EncryptedChat.
const EncryptedChatWaitingTypeID = 0x3bf703dc
EncryptedChatWaitingTypeID is TL type id of EncryptedChatWaiting.
const EncryptedFileEmptyTypeID = 0xc21f497e
EncryptedFileEmptyTypeID is TL type id of EncryptedFileEmpty.
const EncryptedFileTypeID = 0x4a70994c
EncryptedFileTypeID is TL type id of EncryptedFile.
const EncryptedMessageServiceTypeID = 0x23734b06
EncryptedMessageServiceTypeID is TL type id of EncryptedMessageService.
const EncryptedMessageTypeID = 0xed18c118
EncryptedMessageTypeID is TL type id of EncryptedMessage.
const ErrorTypeID = 0xc4b9f9bb
ErrorTypeID is TL type id of Error.
const ExportedMessageLinkTypeID = 0x5dab1af4
ExportedMessageLinkTypeID is TL type id of ExportedMessageLink.
const FileHashTypeID = 0x6242c773
FileHashTypeID is TL type id of FileHash.
const FileLocationToBeDeprecatedTypeID = 0xbc7fc6cd
FileLocationToBeDeprecatedTypeID is TL type id of FileLocationToBeDeprecated.
const FolderPeerTypeID = 0xe9baa668
FolderPeerTypeID is TL type id of FolderPeer.
const FolderTypeID = 0xff544e65
FolderTypeID is TL type id of Folder.
const FoldersDeleteFolderRequestTypeID = 0x1c295881
FoldersDeleteFolderRequestTypeID is TL type id of FoldersDeleteFolderRequest.
const FoldersEditPeerFoldersRequestTypeID = 0x6847d0ab
FoldersEditPeerFoldersRequestTypeID is TL type id of FoldersEditPeerFoldersRequest.
const GameTypeID = 0xbdf9653b
GameTypeID is TL type id of Game.
const GeoPointEmptyTypeID = 0x1117dd5f
GeoPointEmptyTypeID is TL type id of GeoPointEmpty.
const GeoPointTypeID = 0xb2a2f663
GeoPointTypeID is TL type id of GeoPoint.
const GlobalPrivacySettingsTypeID = 0xbea2f424
GlobalPrivacySettingsTypeID is TL type id of GlobalPrivacySettings.
const HelpAcceptTermsOfServiceRequestTypeID = 0xee72f79a
HelpAcceptTermsOfServiceRequestTypeID is TL type id of HelpAcceptTermsOfServiceRequest.
const HelpAppUpdateTypeID = 0x1da7158f
HelpAppUpdateTypeID is TL type id of HelpAppUpdate.
const HelpCountriesListNotModifiedTypeID = 0x93cc1f32
HelpCountriesListNotModifiedTypeID is TL type id of HelpCountriesListNotModified.
const HelpCountriesListTypeID = 0x87d0759e
HelpCountriesListTypeID is TL type id of HelpCountriesList.
const HelpCountryCodeTypeID = 0x4203c5ef
HelpCountryCodeTypeID is TL type id of HelpCountryCode.
const HelpCountryTypeID = 0xc3878e23
HelpCountryTypeID is TL type id of HelpCountry.
const HelpDeepLinkInfoEmptyTypeID = 0x66afa166
HelpDeepLinkInfoEmptyTypeID is TL type id of HelpDeepLinkInfoEmpty.
const HelpDeepLinkInfoTypeID = 0x6a4ee832
HelpDeepLinkInfoTypeID is TL type id of HelpDeepLinkInfo.
const HelpDismissSuggestionRequestTypeID = 0x77fa99f
HelpDismissSuggestionRequestTypeID is TL type id of HelpDismissSuggestionRequest.
const HelpEditUserInfoRequestTypeID = 0x66b91b70
HelpEditUserInfoRequestTypeID is TL type id of HelpEditUserInfoRequest.
const HelpGetAppChangelogRequestTypeID = 0x9010ef6f
HelpGetAppChangelogRequestTypeID is TL type id of HelpGetAppChangelogRequest.
const HelpGetAppConfigRequestTypeID = 0x98914110
HelpGetAppConfigRequestTypeID is TL type id of HelpGetAppConfigRequest.
const HelpGetAppUpdateRequestTypeID = 0x522d5a7d
HelpGetAppUpdateRequestTypeID is TL type id of HelpGetAppUpdateRequest.
const HelpGetCdnConfigRequestTypeID = 0x52029342
HelpGetCdnConfigRequestTypeID is TL type id of HelpGetCdnConfigRequest.
const HelpGetConfigRequestTypeID = 0xc4f9186b
HelpGetConfigRequestTypeID is TL type id of HelpGetConfigRequest.
const HelpGetCountriesListRequestTypeID = 0x735787a8
HelpGetCountriesListRequestTypeID is TL type id of HelpGetCountriesListRequest.
const HelpGetDeepLinkInfoRequestTypeID = 0x3fedc75f
HelpGetDeepLinkInfoRequestTypeID is TL type id of HelpGetDeepLinkInfoRequest.
const HelpGetInviteTextRequestTypeID = 0x4d392343
HelpGetInviteTextRequestTypeID is TL type id of HelpGetInviteTextRequest.
const HelpGetNearestDcRequestTypeID = 0x1fb33026
HelpGetNearestDcRequestTypeID is TL type id of HelpGetNearestDcRequest.
const HelpGetPassportConfigRequestTypeID = 0xc661ad08
HelpGetPassportConfigRequestTypeID is TL type id of HelpGetPassportConfigRequest.
const HelpGetPromoDataRequestTypeID = 0xc0977421
HelpGetPromoDataRequestTypeID is TL type id of HelpGetPromoDataRequest.
const HelpGetRecentMeUrlsRequestTypeID = 0x3dc0f114
HelpGetRecentMeUrlsRequestTypeID is TL type id of HelpGetRecentMeUrlsRequest.
const HelpGetSupportNameRequestTypeID = 0xd360e72c
HelpGetSupportNameRequestTypeID is TL type id of HelpGetSupportNameRequest.
const HelpGetSupportRequestTypeID = 0x9cdf08cd
HelpGetSupportRequestTypeID is TL type id of HelpGetSupportRequest.
const HelpGetTermsOfServiceUpdateRequestTypeID = 0x2ca51fd1
HelpGetTermsOfServiceUpdateRequestTypeID is TL type id of HelpGetTermsOfServiceUpdateRequest.
const HelpGetUserInfoRequestTypeID = 0x38a08d3
HelpGetUserInfoRequestTypeID is TL type id of HelpGetUserInfoRequest.
const HelpHidePromoDataRequestTypeID = 0x1e251c95
HelpHidePromoDataRequestTypeID is TL type id of HelpHidePromoDataRequest.
const HelpInviteTextTypeID = 0x18cb9f78
HelpInviteTextTypeID is TL type id of HelpInviteText.
const HelpNoAppUpdateTypeID = 0xc45a6536
HelpNoAppUpdateTypeID is TL type id of HelpNoAppUpdate.
const HelpPassportConfigNotModifiedTypeID = 0xbfb9f457
HelpPassportConfigNotModifiedTypeID is TL type id of HelpPassportConfigNotModified.
const HelpPassportConfigTypeID = 0xa098d6af
HelpPassportConfigTypeID is TL type id of HelpPassportConfig.
const HelpPromoDataEmptyTypeID = 0x98f6ac75
HelpPromoDataEmptyTypeID is TL type id of HelpPromoDataEmpty.
const HelpPromoDataTypeID = 0x8c39793f
HelpPromoDataTypeID is TL type id of HelpPromoData.
const HelpRecentMeUrlsTypeID = 0xe0310d7
HelpRecentMeUrlsTypeID is TL type id of HelpRecentMeUrls.
const HelpSaveAppLogRequestTypeID = 0x6f02f748
HelpSaveAppLogRequestTypeID is TL type id of HelpSaveAppLogRequest.
const HelpSetBotUpdatesStatusRequestTypeID = 0xec22cfcd
HelpSetBotUpdatesStatusRequestTypeID is TL type id of HelpSetBotUpdatesStatusRequest.
const HelpSupportNameTypeID = 0x8c05f1c9
HelpSupportNameTypeID is TL type id of HelpSupportName.
const HelpSupportTypeID = 0x17c6b5f6
HelpSupportTypeID is TL type id of HelpSupport.
const HelpTermsOfServiceTypeID = 0x780a0310
HelpTermsOfServiceTypeID is TL type id of HelpTermsOfService.
const HelpTermsOfServiceUpdateEmptyTypeID = 0xe3309f7f
HelpTermsOfServiceUpdateEmptyTypeID is TL type id of HelpTermsOfServiceUpdateEmpty.
const HelpTermsOfServiceUpdateTypeID = 0x28ecf961
HelpTermsOfServiceUpdateTypeID is TL type id of HelpTermsOfServiceUpdate.
const HelpUserInfoEmptyTypeID = 0xf3ae2eed
HelpUserInfoEmptyTypeID is TL type id of HelpUserInfoEmpty.
const HelpUserInfoTypeID = 0x1eb3758
HelpUserInfoTypeID is TL type id of HelpUserInfo.
const HighScoreTypeID = 0x58fffcd0
HighScoreTypeID is TL type id of HighScore.
const ImportedContactTypeID = 0xd0028438
ImportedContactTypeID is TL type id of ImportedContact.
const InlineBotSwitchPMTypeID = 0x3c20629f
InlineBotSwitchPMTypeID is TL type id of InlineBotSwitchPM.
const InputAppEventTypeID = 0x1d1b1245
InputAppEventTypeID is TL type id of InputAppEvent.
const InputBotInlineMessageGameTypeID = 0x4b425864
InputBotInlineMessageGameTypeID is TL type id of InputBotInlineMessageGame.
const InputBotInlineMessageIDTypeID = 0x890c3d89
InputBotInlineMessageIDTypeID is TL type id of InputBotInlineMessageID.
const InputBotInlineMessageMediaAutoTypeID = 0x3380c786
InputBotInlineMessageMediaAutoTypeID is TL type id of InputBotInlineMessageMediaAuto.
const InputBotInlineMessageMediaContactTypeID = 0xa6edbffd
InputBotInlineMessageMediaContactTypeID is TL type id of InputBotInlineMessageMediaContact.
const InputBotInlineMessageMediaGeoTypeID = 0x96929a85
InputBotInlineMessageMediaGeoTypeID is TL type id of InputBotInlineMessageMediaGeo.
const InputBotInlineMessageMediaVenueTypeID = 0x417bbf11
InputBotInlineMessageMediaVenueTypeID is TL type id of InputBotInlineMessageMediaVenue.
const InputBotInlineMessageTextTypeID = 0x3dcd7a87
InputBotInlineMessageTextTypeID is TL type id of InputBotInlineMessageText.
const InputBotInlineResultDocumentTypeID = 0xfff8fdc4
InputBotInlineResultDocumentTypeID is TL type id of InputBotInlineResultDocument.
const InputBotInlineResultGameTypeID = 0x4fa417f2
InputBotInlineResultGameTypeID is TL type id of InputBotInlineResultGame.
const InputBotInlineResultPhotoTypeID = 0xa8d864a7
InputBotInlineResultPhotoTypeID is TL type id of InputBotInlineResultPhoto.
const InputBotInlineResultTypeID = 0x88bf9319
InputBotInlineResultTypeID is TL type id of InputBotInlineResult.
const InputChannelEmptyTypeID = 0xee8c1e86
InputChannelEmptyTypeID is TL type id of InputChannelEmpty.
const InputChannelFromMessageTypeID = 0x2a286531
InputChannelFromMessageTypeID is TL type id of InputChannelFromMessage.
const InputChannelTypeID = 0xafeb712e
InputChannelTypeID is TL type id of InputChannel.
const InputChatPhotoEmptyTypeID = 0x1ca48f57
InputChatPhotoEmptyTypeID is TL type id of InputChatPhotoEmpty.
const InputChatPhotoTypeID = 0x8953ad37
InputChatPhotoTypeID is TL type id of InputChatPhoto.
const InputChatUploadedPhotoTypeID = 0xc642724e
InputChatUploadedPhotoTypeID is TL type id of InputChatUploadedPhoto.
const InputCheckPasswordEmptyTypeID = 0x9880f658
InputCheckPasswordEmptyTypeID is TL type id of InputCheckPasswordEmpty.
const InputCheckPasswordSRPTypeID = 0xd27ff082
InputCheckPasswordSRPTypeID is TL type id of InputCheckPasswordSRP.
const InputClientProxyTypeID = 0x75588b3f
InputClientProxyTypeID is TL type id of InputClientProxy.
const InputDialogPeerFolderTypeID = 0x64600527
InputDialogPeerFolderTypeID is TL type id of InputDialogPeerFolder.
const InputDialogPeerTypeID = 0xfcaafeb7
InputDialogPeerTypeID is TL type id of InputDialogPeer.
const InputDocumentEmptyTypeID = 0x72f0eaae
InputDocumentEmptyTypeID is TL type id of InputDocumentEmpty.
const InputDocumentFileLocationTypeID = 0xbad07584
InputDocumentFileLocationTypeID is TL type id of InputDocumentFileLocation.
const InputDocumentTypeID = 0x1abfb575
InputDocumentTypeID is TL type id of InputDocument.
const InputEncryptedChatTypeID = 0xf141b5e1
InputEncryptedChatTypeID is TL type id of InputEncryptedChat.
const InputEncryptedFileBigUploadedTypeID = 0x2dc173c8
InputEncryptedFileBigUploadedTypeID is TL type id of InputEncryptedFileBigUploaded.
const InputEncryptedFileEmptyTypeID = 0x1837c364
InputEncryptedFileEmptyTypeID is TL type id of InputEncryptedFileEmpty.
const InputEncryptedFileLocationTypeID = 0xf5235d55
InputEncryptedFileLocationTypeID is TL type id of InputEncryptedFileLocation.
const InputEncryptedFileTypeID = 0x5a17b5e5
InputEncryptedFileTypeID is TL type id of InputEncryptedFile.
const InputEncryptedFileUploadedTypeID = 0x64bd0306
InputEncryptedFileUploadedTypeID is TL type id of InputEncryptedFileUploaded.
const InputFileBigTypeID = 0xfa4f0bb5
InputFileBigTypeID is TL type id of InputFileBig.
const InputFileLocationTypeID = 0xdfdaabe1
InputFileLocationTypeID is TL type id of InputFileLocation.
const InputFileTypeID = 0xf52ff27f
InputFileTypeID is TL type id of InputFile.
const InputFolderPeerTypeID = 0xfbd2c296
InputFolderPeerTypeID is TL type id of InputFolderPeer.
const InputGameIDTypeID = 0x32c3e77
InputGameIDTypeID is TL type id of InputGameID.
const InputGameShortNameTypeID = 0xc331e80a
InputGameShortNameTypeID is TL type id of InputGameShortName.
const InputGeoPointEmptyTypeID = 0xe4c123d6
InputGeoPointEmptyTypeID is TL type id of InputGeoPointEmpty.
const InputGeoPointTypeID = 0x48222faf
InputGeoPointTypeID is TL type id of InputGeoPoint.
const InputKeyboardButtonUrlAuthTypeID = 0xd02e7fd4
InputKeyboardButtonUrlAuthTypeID is TL type id of InputKeyboardButtonUrlAuth.
const InputMediaContactTypeID = 0xf8ab7dfb
InputMediaContactTypeID is TL type id of InputMediaContact.
const InputMediaDiceTypeID = 0xe66fbf7b
InputMediaDiceTypeID is TL type id of InputMediaDice.
const InputMediaDocumentExternalTypeID = 0xfb52dc99
InputMediaDocumentExternalTypeID is TL type id of InputMediaDocumentExternal.
const InputMediaDocumentTypeID = 0x23ab23d2
InputMediaDocumentTypeID is TL type id of InputMediaDocument.
const InputMediaEmptyTypeID = 0x9664f57f
InputMediaEmptyTypeID is TL type id of InputMediaEmpty.
const InputMediaGameTypeID = 0xd33f43f3
InputMediaGameTypeID is TL type id of InputMediaGame.
const InputMediaGeoLiveTypeID = 0x971fa843
InputMediaGeoLiveTypeID is TL type id of InputMediaGeoLive.
const InputMediaGeoPointTypeID = 0xf9c44144
InputMediaGeoPointTypeID is TL type id of InputMediaGeoPoint.
const InputMediaInvoiceTypeID = 0xf4e096c3
InputMediaInvoiceTypeID is TL type id of InputMediaInvoice.
const InputMediaPhotoExternalTypeID = 0xe5bbfe1a
InputMediaPhotoExternalTypeID is TL type id of InputMediaPhotoExternal.
const InputMediaPhotoTypeID = 0xb3ba0635
InputMediaPhotoTypeID is TL type id of InputMediaPhoto.
const InputMediaPollTypeID = 0xf94e5f1
InputMediaPollTypeID is TL type id of InputMediaPoll.
const InputMediaUploadedDocumentTypeID = 0x5b38c6c1
InputMediaUploadedDocumentTypeID is TL type id of InputMediaUploadedDocument.
const InputMediaUploadedPhotoTypeID = 0x1e287d04
InputMediaUploadedPhotoTypeID is TL type id of InputMediaUploadedPhoto.
const InputMediaVenueTypeID = 0xc13d1c11
InputMediaVenueTypeID is TL type id of InputMediaVenue.
const InputMessageCallbackQueryTypeID = 0xacfa1a7e
InputMessageCallbackQueryTypeID is TL type id of InputMessageCallbackQuery.
const InputMessageEntityMentionNameTypeID = 0x208e68c9
InputMessageEntityMentionNameTypeID is TL type id of InputMessageEntityMentionName.
const InputMessageIDTypeID = 0xa676a322
InputMessageIDTypeID is TL type id of InputMessageID.
const InputMessagePinnedTypeID = 0x86872538
InputMessagePinnedTypeID is TL type id of InputMessagePinned.
const InputMessageReplyToTypeID = 0xbad88395
InputMessageReplyToTypeID is TL type id of InputMessageReplyTo.
const InputMessagesFilterChatPhotosTypeID = 0x3a20ecb8
InputMessagesFilterChatPhotosTypeID is TL type id of InputMessagesFilterChatPhotos.
const InputMessagesFilterContactsTypeID = 0xe062db83
InputMessagesFilterContactsTypeID is TL type id of InputMessagesFilterContacts.
const InputMessagesFilterDocumentTypeID = 0x9eddf188
InputMessagesFilterDocumentTypeID is TL type id of InputMessagesFilterDocument.
const InputMessagesFilterEmptyTypeID = 0x57e2f66c
InputMessagesFilterEmptyTypeID is TL type id of InputMessagesFilterEmpty.
const InputMessagesFilterGeoTypeID = 0xe7026d0d
InputMessagesFilterGeoTypeID is TL type id of InputMessagesFilterGeo.
const InputMessagesFilterGifTypeID = 0xffc86587
InputMessagesFilterGifTypeID is TL type id of InputMessagesFilterGif.
const InputMessagesFilterMusicTypeID = 0x3751b49e
InputMessagesFilterMusicTypeID is TL type id of InputMessagesFilterMusic.
const InputMessagesFilterMyMentionsTypeID = 0xc1f8e69a
InputMessagesFilterMyMentionsTypeID is TL type id of InputMessagesFilterMyMentions.
const InputMessagesFilterPhoneCallsTypeID = 0x80c99768
InputMessagesFilterPhoneCallsTypeID is TL type id of InputMessagesFilterPhoneCalls.
const InputMessagesFilterPhotoVideoTypeID = 0x56e9f0e4
InputMessagesFilterPhotoVideoTypeID is TL type id of InputMessagesFilterPhotoVideo.
const InputMessagesFilterPhotosTypeID = 0x9609a51c
InputMessagesFilterPhotosTypeID is TL type id of InputMessagesFilterPhotos.
const InputMessagesFilterPinnedTypeID = 0x1bb00451
InputMessagesFilterPinnedTypeID is TL type id of InputMessagesFilterPinned.
const InputMessagesFilterRoundVideoTypeID = 0xb549da53
InputMessagesFilterRoundVideoTypeID is TL type id of InputMessagesFilterRoundVideo.
const InputMessagesFilterRoundVoiceTypeID = 0x7a7c17a4
InputMessagesFilterRoundVoiceTypeID is TL type id of InputMessagesFilterRoundVoice.
const InputMessagesFilterUrlTypeID = 0x7ef0dd87
InputMessagesFilterUrlTypeID is TL type id of InputMessagesFilterUrl.
const InputMessagesFilterVideoTypeID = 0x9fc00e65
InputMessagesFilterVideoTypeID is TL type id of InputMessagesFilterVideo.
const InputMessagesFilterVoiceTypeID = 0x50f5c392
InputMessagesFilterVoiceTypeID is TL type id of InputMessagesFilterVoice.
const InputNotifyBroadcastsTypeID = 0xb1db7c7e
InputNotifyBroadcastsTypeID is TL type id of InputNotifyBroadcasts.
const InputNotifyChatsTypeID = 0x4a95e84e
InputNotifyChatsTypeID is TL type id of InputNotifyChats.
const InputNotifyPeerTypeID = 0xb8bc5b0c
InputNotifyPeerTypeID is TL type id of InputNotifyPeer.
const InputNotifyUsersTypeID = 0x193b4417
InputNotifyUsersTypeID is TL type id of InputNotifyUsers.
const InputPaymentCredentialsAndroidPayTypeID = 0xca05d50e
InputPaymentCredentialsAndroidPayTypeID is TL type id of InputPaymentCredentialsAndroidPay.
const InputPaymentCredentialsApplePayTypeID = 0xaa1c39f
InputPaymentCredentialsApplePayTypeID is TL type id of InputPaymentCredentialsApplePay.
const InputPaymentCredentialsSavedTypeID = 0xc10eb2cf
InputPaymentCredentialsSavedTypeID is TL type id of InputPaymentCredentialsSaved.
const InputPaymentCredentialsTypeID = 0x3417d728
InputPaymentCredentialsTypeID is TL type id of InputPaymentCredentials.
const InputPeerChannelFromMessageTypeID = 0x9c95f7bb
InputPeerChannelFromMessageTypeID is TL type id of InputPeerChannelFromMessage.
const InputPeerChannelTypeID = 0x20adaef8
InputPeerChannelTypeID is TL type id of InputPeerChannel.
const InputPeerChatTypeID = 0x179be863
InputPeerChatTypeID is TL type id of InputPeerChat.
const InputPeerEmptyTypeID = 0x7f3b18ea
InputPeerEmptyTypeID is TL type id of InputPeerEmpty.
const InputPeerNotifySettingsTypeID = 0x9c3d198e
InputPeerNotifySettingsTypeID is TL type id of InputPeerNotifySettings.
const InputPeerPhotoFileLocationTypeID = 0x27d69997
InputPeerPhotoFileLocationTypeID is TL type id of InputPeerPhotoFileLocation.
const InputPeerSelfTypeID = 0x7da07ec9
InputPeerSelfTypeID is TL type id of InputPeerSelf.
const InputPeerUserFromMessageTypeID = 0x17bae2e6
InputPeerUserFromMessageTypeID is TL type id of InputPeerUserFromMessage.
const InputPeerUserTypeID = 0x7b8e7de6
InputPeerUserTypeID is TL type id of InputPeerUser.
const InputPhoneCallTypeID = 0x1e36fded
InputPhoneCallTypeID is TL type id of InputPhoneCall.
const InputPhoneContactTypeID = 0xf392b7f4
InputPhoneContactTypeID is TL type id of InputPhoneContact.
const InputPhotoEmptyTypeID = 0x1cd7bf0d
InputPhotoEmptyTypeID is TL type id of InputPhotoEmpty.
const InputPhotoFileLocationTypeID = 0x40181ffe
InputPhotoFileLocationTypeID is TL type id of InputPhotoFileLocation.
const InputPhotoLegacyFileLocationTypeID = 0xd83466f3
InputPhotoLegacyFileLocationTypeID is TL type id of InputPhotoLegacyFileLocation.
const InputPhotoTypeID = 0x3bb3b94a
InputPhotoTypeID is TL type id of InputPhoto.
const InputPrivacyKeyAddedByPhoneTypeID = 0xd1219bdd
InputPrivacyKeyAddedByPhoneTypeID is TL type id of InputPrivacyKeyAddedByPhone.
const InputPrivacyKeyChatInviteTypeID = 0xbdfb0426
InputPrivacyKeyChatInviteTypeID is TL type id of InputPrivacyKeyChatInvite.
const InputPrivacyKeyForwardsTypeID = 0xa4dd4c08
InputPrivacyKeyForwardsTypeID is TL type id of InputPrivacyKeyForwards.
const InputPrivacyKeyPhoneCallTypeID = 0xfabadc5f
InputPrivacyKeyPhoneCallTypeID is TL type id of InputPrivacyKeyPhoneCall.
const InputPrivacyKeyPhoneNumberTypeID = 0x352dafa
InputPrivacyKeyPhoneNumberTypeID is TL type id of InputPrivacyKeyPhoneNumber.
const InputPrivacyKeyPhoneP2PTypeID = 0xdb9e70d2
InputPrivacyKeyPhoneP2PTypeID is TL type id of InputPrivacyKeyPhoneP2P.
const InputPrivacyKeyProfilePhotoTypeID = 0x5719bacc
InputPrivacyKeyProfilePhotoTypeID is TL type id of InputPrivacyKeyProfilePhoto.
const InputPrivacyKeyStatusTimestampTypeID = 0x4f96cb18
InputPrivacyKeyStatusTimestampTypeID is TL type id of InputPrivacyKeyStatusTimestamp.
const InputPrivacyValueAllowAllTypeID = 0x184b35ce
InputPrivacyValueAllowAllTypeID is TL type id of InputPrivacyValueAllowAll.
const InputPrivacyValueAllowChatParticipantsTypeID = 0x4c81c1ba
InputPrivacyValueAllowChatParticipantsTypeID is TL type id of InputPrivacyValueAllowChatParticipants.
const InputPrivacyValueAllowContactsTypeID = 0xd09e07b
InputPrivacyValueAllowContactsTypeID is TL type id of InputPrivacyValueAllowContacts.
const InputPrivacyValueAllowUsersTypeID = 0x131cc67f
InputPrivacyValueAllowUsersTypeID is TL type id of InputPrivacyValueAllowUsers.
const InputPrivacyValueDisallowAllTypeID = 0xd66b66c9
InputPrivacyValueDisallowAllTypeID is TL type id of InputPrivacyValueDisallowAll.
const InputPrivacyValueDisallowChatParticipantsTypeID = 0xd82363af
InputPrivacyValueDisallowChatParticipantsTypeID is TL type id of InputPrivacyValueDisallowChatParticipants.
const InputPrivacyValueDisallowContactsTypeID = 0xba52007
InputPrivacyValueDisallowContactsTypeID is TL type id of InputPrivacyValueDisallowContacts.
const InputPrivacyValueDisallowUsersTypeID = 0x90110467
InputPrivacyValueDisallowUsersTypeID is TL type id of InputPrivacyValueDisallowUsers.
const InputReportReasonChildAbuseTypeID = 0xadf44ee3
InputReportReasonChildAbuseTypeID is TL type id of InputReportReasonChildAbuse.
const InputReportReasonCopyrightTypeID = 0x9b89f93a
InputReportReasonCopyrightTypeID is TL type id of InputReportReasonCopyright.
const InputReportReasonGeoIrrelevantTypeID = 0xdbd4feed
InputReportReasonGeoIrrelevantTypeID is TL type id of InputReportReasonGeoIrrelevant.
const InputReportReasonOtherTypeID = 0xe1746d0a
InputReportReasonOtherTypeID is TL type id of InputReportReasonOther.
const InputReportReasonPornographyTypeID = 0x2e59d922
InputReportReasonPornographyTypeID is TL type id of InputReportReasonPornography.
const InputReportReasonSpamTypeID = 0x58dbcab8
InputReportReasonSpamTypeID is TL type id of InputReportReasonSpam.
const InputReportReasonViolenceTypeID = 0x1e22c78d
InputReportReasonViolenceTypeID is TL type id of InputReportReasonViolence.
const InputSecureFileLocationTypeID = 0xcbc7ee28
InputSecureFileLocationTypeID is TL type id of InputSecureFileLocation.
const InputSecureFileTypeID = 0x5367e5be
InputSecureFileTypeID is TL type id of InputSecureFile.
const InputSecureFileUploadedTypeID = 0x3334b0f0
InputSecureFileUploadedTypeID is TL type id of InputSecureFileUploaded.
const InputSecureValueTypeID = 0xdb21d0a7
InputSecureValueTypeID is TL type id of InputSecureValue.
const InputSingleMediaTypeID = 0x1cc6e91f
InputSingleMediaTypeID is TL type id of InputSingleMedia.
const InputStickerSetAnimatedEmojiTypeID = 0x28703c8
InputStickerSetAnimatedEmojiTypeID is TL type id of InputStickerSetAnimatedEmoji.
const InputStickerSetDiceTypeID = 0xe67f520e
InputStickerSetDiceTypeID is TL type id of InputStickerSetDice.
const InputStickerSetEmptyTypeID = 0xffb62b95
InputStickerSetEmptyTypeID is TL type id of InputStickerSetEmpty.
const InputStickerSetIDTypeID = 0x9de7a269
InputStickerSetIDTypeID is TL type id of InputStickerSetID.
const InputStickerSetItemTypeID = 0xffa0a496
InputStickerSetItemTypeID is TL type id of InputStickerSetItem.
const InputStickerSetShortNameTypeID = 0x861cc8a0
InputStickerSetShortNameTypeID is TL type id of InputStickerSetShortName.
const InputStickerSetThumbTypeID = 0xdbaeae9
InputStickerSetThumbTypeID is TL type id of InputStickerSetThumb.
const InputStickeredMediaDocumentTypeID = 0x438865b
InputStickeredMediaDocumentTypeID is TL type id of InputStickeredMediaDocument.
const InputStickeredMediaPhotoTypeID = 0x4a992157
InputStickeredMediaPhotoTypeID is TL type id of InputStickeredMediaPhoto.
const InputTakeoutFileLocationTypeID = 0x29be5899
InputTakeoutFileLocationTypeID is TL type id of InputTakeoutFileLocation.
const InputThemeSettingsTypeID = 0xbd507cd1
InputThemeSettingsTypeID is TL type id of InputThemeSettings.
const InputThemeSlugTypeID = 0xf5890df1
InputThemeSlugTypeID is TL type id of InputThemeSlug.
const InputThemeTypeID = 0x3c5693e9
InputThemeTypeID is TL type id of InputTheme.
const InputUserEmptyTypeID = 0xb98886cf
InputUserEmptyTypeID is TL type id of InputUserEmpty.
const InputUserFromMessageTypeID = 0x2d117597
InputUserFromMessageTypeID is TL type id of InputUserFromMessage.
const InputUserSelfTypeID = 0xf7c1b13f
InputUserSelfTypeID is TL type id of InputUserSelf.
const InputUserTypeID = 0xd8292816
InputUserTypeID is TL type id of InputUser.
const InputWallPaperNoFileTypeID = 0x8427bbac
InputWallPaperNoFileTypeID is TL type id of InputWallPaperNoFile.
const InputWallPaperSlugTypeID = 0x72091c80
InputWallPaperSlugTypeID is TL type id of InputWallPaperSlug.
const InputWallPaperTypeID = 0xe630b979
InputWallPaperTypeID is TL type id of InputWallPaper.
const InputWebDocumentTypeID = 0x9bed434d
InputWebDocumentTypeID is TL type id of InputWebDocument.
const InputWebFileGeoPointLocationTypeID = 0x9f2221c9
InputWebFileGeoPointLocationTypeID is TL type id of InputWebFileGeoPointLocation.
const InputWebFileLocationTypeID = 0xc239d686
InputWebFileLocationTypeID is TL type id of InputWebFileLocation.
const InvoiceTypeID = 0xc30aa358
InvoiceTypeID is TL type id of Invoice.
const JsonArrayTypeID = 0xf7444763
JsonArrayTypeID is TL type id of JsonArray.
const JsonBoolTypeID = 0xc7345e6a
JsonBoolTypeID is TL type id of JsonBool.
const JsonNullTypeID = 0x3f6d7b68
JsonNullTypeID is TL type id of JsonNull.
const JsonNumberTypeID = 0x2be0dfa4
JsonNumberTypeID is TL type id of JsonNumber.
const JsonObjectTypeID = 0x99c1d49d
JsonObjectTypeID is TL type id of JsonObject.
const JsonObjectValueTypeID = 0xc0de1bd9
JsonObjectValueTypeID is TL type id of JsonObjectValue.
const JsonStringTypeID = 0xb71e767a
JsonStringTypeID is TL type id of JsonString.
const KeyboardButtonBuyTypeID = 0xafd93fbb
KeyboardButtonBuyTypeID is TL type id of KeyboardButtonBuy.
const KeyboardButtonCallbackTypeID = 0x35bbdb6b
KeyboardButtonCallbackTypeID is TL type id of KeyboardButtonCallback.
const KeyboardButtonGameTypeID = 0x50f41ccf
KeyboardButtonGameTypeID is TL type id of KeyboardButtonGame.
const KeyboardButtonRequestGeoLocationTypeID = 0xfc796b3f
KeyboardButtonRequestGeoLocationTypeID is TL type id of KeyboardButtonRequestGeoLocation.
const KeyboardButtonRequestPhoneTypeID = 0xb16a6c29
KeyboardButtonRequestPhoneTypeID is TL type id of KeyboardButtonRequestPhone.
const KeyboardButtonRequestPollTypeID = 0xbbc7515d
KeyboardButtonRequestPollTypeID is TL type id of KeyboardButtonRequestPoll.
const KeyboardButtonRowTypeID = 0x77608b83
KeyboardButtonRowTypeID is TL type id of KeyboardButtonRow.
const KeyboardButtonSwitchInlineTypeID = 0x568a748
KeyboardButtonSwitchInlineTypeID is TL type id of KeyboardButtonSwitchInline.
const KeyboardButtonTypeID = 0xa2fa4880
KeyboardButtonTypeID is TL type id of KeyboardButton.
const KeyboardButtonUrlAuthTypeID = 0x10b78d29
KeyboardButtonUrlAuthTypeID is TL type id of KeyboardButtonUrlAuth.
const KeyboardButtonUrlTypeID = 0x258aff05
KeyboardButtonUrlTypeID is TL type id of KeyboardButtonUrl.
const LabeledPriceTypeID = 0xcb296bf8
LabeledPriceTypeID is TL type id of LabeledPrice.
const LangPackDifferenceTypeID = 0xf385c1f6
LangPackDifferenceTypeID is TL type id of LangPackDifference.
const LangPackLanguageTypeID = 0xeeca5ce3
LangPackLanguageTypeID is TL type id of LangPackLanguage.
const LangPackStringDeletedTypeID = 0x2979eeb2
LangPackStringDeletedTypeID is TL type id of LangPackStringDeleted.
const LangPackStringPluralizedTypeID = 0x6c47ac9f
LangPackStringPluralizedTypeID is TL type id of LangPackStringPluralized.
const LangPackStringTypeID = 0xcad181f6
LangPackStringTypeID is TL type id of LangPackString.
const LangpackGetDifferenceRequestTypeID = 0xcd984aa5
LangpackGetDifferenceRequestTypeID is TL type id of LangpackGetDifferenceRequest.
const LangpackGetLangPackRequestTypeID = 0xf2f2330a
LangpackGetLangPackRequestTypeID is TL type id of LangpackGetLangPackRequest.
const LangpackGetLanguageRequestTypeID = 0x6a596502
LangpackGetLanguageRequestTypeID is TL type id of LangpackGetLanguageRequest.
const LangpackGetLanguagesRequestTypeID = 0x42c6978f
LangpackGetLanguagesRequestTypeID is TL type id of LangpackGetLanguagesRequest.
const LangpackGetStringsRequestTypeID = 0xefea3803
LangpackGetStringsRequestTypeID is TL type id of LangpackGetStringsRequest.
const MaskCoordsTypeID = 0xaed6dbb2
MaskCoordsTypeID is TL type id of MaskCoords.
const MessageActionBotAllowedTypeID = 0xabe9affe
MessageActionBotAllowedTypeID is TL type id of MessageActionBotAllowed.
const MessageActionChannelCreateTypeID = 0x95d2ac92
MessageActionChannelCreateTypeID is TL type id of MessageActionChannelCreate.
const MessageActionChannelMigrateFromTypeID = 0xb055eaee
MessageActionChannelMigrateFromTypeID is TL type id of MessageActionChannelMigrateFrom.
const MessageActionChatAddUserTypeID = 0x488a7337
MessageActionChatAddUserTypeID is TL type id of MessageActionChatAddUser.
const MessageActionChatCreateTypeID = 0xa6638b9a
MessageActionChatCreateTypeID is TL type id of MessageActionChatCreate.
const MessageActionChatDeletePhotoTypeID = 0x95e3fbef
MessageActionChatDeletePhotoTypeID is TL type id of MessageActionChatDeletePhoto.
const MessageActionChatDeleteUserTypeID = 0xb2ae9b0c
MessageActionChatDeleteUserTypeID is TL type id of MessageActionChatDeleteUser.
const MessageActionChatEditPhotoTypeID = 0x7fcb13a8
MessageActionChatEditPhotoTypeID is TL type id of MessageActionChatEditPhoto.
const MessageActionChatEditTitleTypeID = 0xb5a1ce5a
MessageActionChatEditTitleTypeID is TL type id of MessageActionChatEditTitle.
const MessageActionChatJoinedByLinkTypeID = 0xf89cf5e8
MessageActionChatJoinedByLinkTypeID is TL type id of MessageActionChatJoinedByLink.
const MessageActionChatMigrateToTypeID = 0x51bdb021
MessageActionChatMigrateToTypeID is TL type id of MessageActionChatMigrateTo.
const MessageActionContactSignUpTypeID = 0xf3f25f76
MessageActionContactSignUpTypeID is TL type id of MessageActionContactSignUp.
const MessageActionCustomActionTypeID = 0xfae69f56
MessageActionCustomActionTypeID is TL type id of MessageActionCustomAction.
const MessageActionEmptyTypeID = 0xb6aef7b0
MessageActionEmptyTypeID is TL type id of MessageActionEmpty.
const MessageActionGameScoreTypeID = 0x92a72876
MessageActionGameScoreTypeID is TL type id of MessageActionGameScore.
const MessageActionGeoProximityReachedTypeID = 0x98e0d697
MessageActionGeoProximityReachedTypeID is TL type id of MessageActionGeoProximityReached.
const MessageActionHistoryClearTypeID = 0x9fbab604
MessageActionHistoryClearTypeID is TL type id of MessageActionHistoryClear.
const MessageActionPaymentSentMeTypeID = 0x8f31b327
MessageActionPaymentSentMeTypeID is TL type id of MessageActionPaymentSentMe.
const MessageActionPaymentSentTypeID = 0x40699cd0
MessageActionPaymentSentTypeID is TL type id of MessageActionPaymentSent.
const MessageActionPhoneCallTypeID = 0x80e11a7f
MessageActionPhoneCallTypeID is TL type id of MessageActionPhoneCall.
const MessageActionPinMessageTypeID = 0x94bd38ed
MessageActionPinMessageTypeID is TL type id of MessageActionPinMessage.
const MessageActionScreenshotTakenTypeID = 0x4792929b
MessageActionScreenshotTakenTypeID is TL type id of MessageActionScreenshotTaken.
const MessageActionSecureValuesSentMeTypeID = 0x1b287353
MessageActionSecureValuesSentMeTypeID is TL type id of MessageActionSecureValuesSentMe.
const MessageActionSecureValuesSentTypeID = 0xd95c6154
MessageActionSecureValuesSentTypeID is TL type id of MessageActionSecureValuesSent.
const MessageEmptyTypeID = 0x83e5de54
MessageEmptyTypeID is TL type id of MessageEmpty.
const MessageEntityBankCardTypeID = 0x761e6af4
MessageEntityBankCardTypeID is TL type id of MessageEntityBankCard.
const MessageEntityBlockquoteTypeID = 0x20df5d0
MessageEntityBlockquoteTypeID is TL type id of MessageEntityBlockquote.
const MessageEntityBoldTypeID = 0xbd610bc9
MessageEntityBoldTypeID is TL type id of MessageEntityBold.
const MessageEntityBotCommandTypeID = 0x6cef8ac7
MessageEntityBotCommandTypeID is TL type id of MessageEntityBotCommand.
const MessageEntityCashtagTypeID = 0x4c4e743f
MessageEntityCashtagTypeID is TL type id of MessageEntityCashtag.
const MessageEntityCodeTypeID = 0x28a20571
MessageEntityCodeTypeID is TL type id of MessageEntityCode.
const MessageEntityEmailTypeID = 0x64e475c2
MessageEntityEmailTypeID is TL type id of MessageEntityEmail.
const MessageEntityHashtagTypeID = 0x6f635b0d
MessageEntityHashtagTypeID is TL type id of MessageEntityHashtag.
const MessageEntityItalicTypeID = 0x826f8b60
MessageEntityItalicTypeID is TL type id of MessageEntityItalic.
const MessageEntityMentionNameTypeID = 0x352dca58
MessageEntityMentionNameTypeID is TL type id of MessageEntityMentionName.
const MessageEntityMentionTypeID = 0xfa04579d
MessageEntityMentionTypeID is TL type id of MessageEntityMention.
const MessageEntityPhoneTypeID = 0x9b69e34b
MessageEntityPhoneTypeID is TL type id of MessageEntityPhone.
const MessageEntityPreTypeID = 0x73924be0
MessageEntityPreTypeID is TL type id of MessageEntityPre.
const MessageEntityStrikeTypeID = 0xbf0693d4
MessageEntityStrikeTypeID is TL type id of MessageEntityStrike.
const MessageEntityTextUrlTypeID = 0x76a6d327
MessageEntityTextUrlTypeID is TL type id of MessageEntityTextUrl.
const MessageEntityUnderlineTypeID = 0x9c4e7e8b
MessageEntityUnderlineTypeID is TL type id of MessageEntityUnderline.
const MessageEntityUnknownTypeID = 0xbb92ba95
MessageEntityUnknownTypeID is TL type id of MessageEntityUnknown.
const MessageEntityUrlTypeID = 0x6ed02538
MessageEntityUrlTypeID is TL type id of MessageEntityUrl.
const MessageFwdHeaderTypeID = 0x5f777dce
MessageFwdHeaderTypeID is TL type id of MessageFwdHeader.
const MessageInteractionCountersTypeID = 0xad4fc9bd
MessageInteractionCountersTypeID is TL type id of MessageInteractionCounters.
const MessageMediaContactTypeID = 0xcbf24940
MessageMediaContactTypeID is TL type id of MessageMediaContact.
const MessageMediaDiceTypeID = 0x3f7ee58b
MessageMediaDiceTypeID is TL type id of MessageMediaDice.
const MessageMediaDocumentTypeID = 0x9cb070d7
MessageMediaDocumentTypeID is TL type id of MessageMediaDocument.
const MessageMediaEmptyTypeID = 0x3ded6320
MessageMediaEmptyTypeID is TL type id of MessageMediaEmpty.
const MessageMediaGameTypeID = 0xfdb19008
MessageMediaGameTypeID is TL type id of MessageMediaGame.
const MessageMediaGeoLiveTypeID = 0xb940c666
MessageMediaGeoLiveTypeID is TL type id of MessageMediaGeoLive.
const MessageMediaGeoTypeID = 0x56e0d474
MessageMediaGeoTypeID is TL type id of MessageMediaGeo.
const MessageMediaInvoiceTypeID = 0x84551347
MessageMediaInvoiceTypeID is TL type id of MessageMediaInvoice.
const MessageMediaPhotoTypeID = 0x695150d7
MessageMediaPhotoTypeID is TL type id of MessageMediaPhoto.
const MessageMediaPollTypeID = 0x4bd6e798
MessageMediaPollTypeID is TL type id of MessageMediaPoll.
const MessageMediaUnsupportedTypeID = 0x9f84f49e
MessageMediaUnsupportedTypeID is TL type id of MessageMediaUnsupported.
const MessageMediaVenueTypeID = 0x2ec0533f
MessageMediaVenueTypeID is TL type id of MessageMediaVenue.
const MessageMediaWebPageTypeID = 0xa32dd600
MessageMediaWebPageTypeID is TL type id of MessageMediaWebPage.
const MessageRangeTypeID = 0xae30253
MessageRangeTypeID is TL type id of MessageRange.
const MessageRepliesTypeID = 0x4128faac
MessageRepliesTypeID is TL type id of MessageReplies.
const MessageReplyHeaderTypeID = 0xa6d57763
MessageReplyHeaderTypeID is TL type id of MessageReplyHeader.
const MessageServiceTypeID = 0x286fa604
MessageServiceTypeID is TL type id of MessageService.
const MessageTypeID = 0x58ae39c9
MessageTypeID is TL type id of Message.
const MessageUserVoteInputOptionTypeID = 0x36377430
MessageUserVoteInputOptionTypeID is TL type id of MessageUserVoteInputOption.
const MessageUserVoteMultipleTypeID = 0xe8fe0de
MessageUserVoteMultipleTypeID is TL type id of MessageUserVoteMultiple.
const MessageUserVoteTypeID = 0xa28e5559
MessageUserVoteTypeID is TL type id of MessageUserVote.
const MessageViewsTypeID = 0x455b853d
MessageViewsTypeID is TL type id of MessageViews.
const MessagesAcceptEncryptionRequestTypeID = 0x3dbc0415
MessagesAcceptEncryptionRequestTypeID is TL type id of MessagesAcceptEncryptionRequest.
const MessagesAcceptUrlAuthRequestTypeID = 0xf729ea98
MessagesAcceptUrlAuthRequestTypeID is TL type id of MessagesAcceptUrlAuthRequest.
const MessagesAddChatUserRequestTypeID = 0xf9a0aa09
MessagesAddChatUserRequestTypeID is TL type id of MessagesAddChatUserRequest.
const MessagesAffectedHistoryTypeID = 0xb45c69d1
MessagesAffectedHistoryTypeID is TL type id of MessagesAffectedHistory.
const MessagesAffectedMessagesTypeID = 0x84d19185
MessagesAffectedMessagesTypeID is TL type id of MessagesAffectedMessages.
const MessagesAllStickersNotModifiedTypeID = 0xe86602c3
MessagesAllStickersNotModifiedTypeID is TL type id of MessagesAllStickersNotModified.
const MessagesAllStickersTypeID = 0xedfd405f
MessagesAllStickersTypeID is TL type id of MessagesAllStickers.
const MessagesArchivedStickersTypeID = 0x4fcba9c8
MessagesArchivedStickersTypeID is TL type id of MessagesArchivedStickers.
const MessagesBotCallbackAnswerTypeID = 0x36585ea4
MessagesBotCallbackAnswerTypeID is TL type id of MessagesBotCallbackAnswer.
const MessagesBotResultsTypeID = 0x947ca848
MessagesBotResultsTypeID is TL type id of MessagesBotResults.
const MessagesChannelMessagesTypeID = 0x64479808
MessagesChannelMessagesTypeID is TL type id of MessagesChannelMessages.
const MessagesChatFullTypeID = 0xe5d7d19c
MessagesChatFullTypeID is TL type id of MessagesChatFull.
const MessagesChatsSliceTypeID = 0x9cd81144
MessagesChatsSliceTypeID is TL type id of MessagesChatsSlice.
const MessagesChatsTypeID = 0x64ff9fd5
MessagesChatsTypeID is TL type id of MessagesChats.
const MessagesCheckChatInviteRequestTypeID = 0x3eadb1bb
MessagesCheckChatInviteRequestTypeID is TL type id of MessagesCheckChatInviteRequest.
const MessagesClearAllDraftsRequestTypeID = 0x7e58ee9c
MessagesClearAllDraftsRequestTypeID is TL type id of MessagesClearAllDraftsRequest.
const MessagesClearRecentStickersRequestTypeID = 0x8999602d
MessagesClearRecentStickersRequestTypeID is TL type id of MessagesClearRecentStickersRequest.
const MessagesCreateChatRequestTypeID = 0x9cb126e
MessagesCreateChatRequestTypeID is TL type id of MessagesCreateChatRequest.
const MessagesDeleteChatUserRequestTypeID = 0xe0611f16
MessagesDeleteChatUserRequestTypeID is TL type id of MessagesDeleteChatUserRequest.
const MessagesDeleteHistoryRequestTypeID = 0x1c015b09
MessagesDeleteHistoryRequestTypeID is TL type id of MessagesDeleteHistoryRequest.
const MessagesDeleteMessagesRequestTypeID = 0xe58e95d2
MessagesDeleteMessagesRequestTypeID is TL type id of MessagesDeleteMessagesRequest.
const MessagesDeleteScheduledMessagesRequestTypeID = 0x59ae2b16
MessagesDeleteScheduledMessagesRequestTypeID is TL type id of MessagesDeleteScheduledMessagesRequest.
const MessagesDhConfigNotModifiedTypeID = 0xc0e24635
MessagesDhConfigNotModifiedTypeID is TL type id of MessagesDhConfigNotModified.
const MessagesDhConfigTypeID = 0x2c221edd
MessagesDhConfigTypeID is TL type id of MessagesDhConfig.
const MessagesDialogsNotModifiedTypeID = 0xf0e3e596
MessagesDialogsNotModifiedTypeID is TL type id of MessagesDialogsNotModified.
const MessagesDialogsSliceTypeID = 0x71e094f3
MessagesDialogsSliceTypeID is TL type id of MessagesDialogsSlice.
const MessagesDialogsTypeID = 0x15ba6c40
MessagesDialogsTypeID is TL type id of MessagesDialogs.
const MessagesDiscardEncryptionRequestTypeID = 0xedd923c5
MessagesDiscardEncryptionRequestTypeID is TL type id of MessagesDiscardEncryptionRequest.
const MessagesDiscussionMessageTypeID = 0xf5dd8f9d
MessagesDiscussionMessageTypeID is TL type id of MessagesDiscussionMessage.
const MessagesEditChatAboutRequestTypeID = 0xdef60797
MessagesEditChatAboutRequestTypeID is TL type id of MessagesEditChatAboutRequest.
const MessagesEditChatAdminRequestTypeID = 0xa9e69f2e
MessagesEditChatAdminRequestTypeID is TL type id of MessagesEditChatAdminRequest.
const MessagesEditChatDefaultBannedRightsRequestTypeID = 0xa5866b41
MessagesEditChatDefaultBannedRightsRequestTypeID is TL type id of MessagesEditChatDefaultBannedRightsRequest.
const MessagesEditChatPhotoRequestTypeID = 0xca4c79d8
MessagesEditChatPhotoRequestTypeID is TL type id of MessagesEditChatPhotoRequest.
const MessagesEditChatTitleRequestTypeID = 0xdc452855
MessagesEditChatTitleRequestTypeID is TL type id of MessagesEditChatTitleRequest.
const MessagesEditInlineBotMessageRequestTypeID = 0x83557dba
MessagesEditInlineBotMessageRequestTypeID is TL type id of MessagesEditInlineBotMessageRequest.
const MessagesEditMessageRequestTypeID = 0x48f71778
MessagesEditMessageRequestTypeID is TL type id of MessagesEditMessageRequest.
const MessagesExportChatInviteRequestTypeID = 0xdf7534c
MessagesExportChatInviteRequestTypeID is TL type id of MessagesExportChatInviteRequest.
const MessagesFaveStickerRequestTypeID = 0xb9ffc55b
MessagesFaveStickerRequestTypeID is TL type id of MessagesFaveStickerRequest.
const MessagesFavedStickersNotModifiedTypeID = 0x9e8fa6d3
MessagesFavedStickersNotModifiedTypeID is TL type id of MessagesFavedStickersNotModified.
const MessagesFavedStickersTypeID = 0xf37f2f16
MessagesFavedStickersTypeID is TL type id of MessagesFavedStickers.
const MessagesFeaturedStickersNotModifiedTypeID = 0xc6dc0c66
MessagesFeaturedStickersNotModifiedTypeID is TL type id of MessagesFeaturedStickersNotModified.
const MessagesFeaturedStickersTypeID = 0xb6abc341
MessagesFeaturedStickersTypeID is TL type id of MessagesFeaturedStickers.
const MessagesForwardMessagesRequestTypeID = 0xd9fee60e
MessagesForwardMessagesRequestTypeID is TL type id of MessagesForwardMessagesRequest.
const MessagesFoundStickerSetsNotModifiedTypeID = 0xd54b65d
MessagesFoundStickerSetsNotModifiedTypeID is TL type id of MessagesFoundStickerSetsNotModified.
const MessagesFoundStickerSetsTypeID = 0x5108d648
MessagesFoundStickerSetsTypeID is TL type id of MessagesFoundStickerSets.
const MessagesGetAllChatsRequestTypeID = 0xeba80ff0
MessagesGetAllChatsRequestTypeID is TL type id of MessagesGetAllChatsRequest.
const MessagesGetAllDraftsRequestTypeID = 0x6a3f8d65
MessagesGetAllDraftsRequestTypeID is TL type id of MessagesGetAllDraftsRequest.
const MessagesGetAllStickersRequestTypeID = 0x1c9618b1
MessagesGetAllStickersRequestTypeID is TL type id of MessagesGetAllStickersRequest.
const MessagesGetArchivedStickersRequestTypeID = 0x57f17692
MessagesGetArchivedStickersRequestTypeID is TL type id of MessagesGetArchivedStickersRequest.
const MessagesGetAttachedStickersRequestTypeID = 0xcc5b67cc
MessagesGetAttachedStickersRequestTypeID is TL type id of MessagesGetAttachedStickersRequest.
const MessagesGetBotCallbackAnswerRequestTypeID = 0x9342ca07
MessagesGetBotCallbackAnswerRequestTypeID is TL type id of MessagesGetBotCallbackAnswerRequest.
const MessagesGetChatsRequestTypeID = 0x3c6aa187
MessagesGetChatsRequestTypeID is TL type id of MessagesGetChatsRequest.
const MessagesGetCommonChatsRequestTypeID = 0xd0a48c4
MessagesGetCommonChatsRequestTypeID is TL type id of MessagesGetCommonChatsRequest.
const MessagesGetDhConfigRequestTypeID = 0x26cf8950
MessagesGetDhConfigRequestTypeID is TL type id of MessagesGetDhConfigRequest.
const MessagesGetDialogFiltersRequestTypeID = 0xf19ed96d
MessagesGetDialogFiltersRequestTypeID is TL type id of MessagesGetDialogFiltersRequest.
const MessagesGetDialogUnreadMarksRequestTypeID = 0x22e24e22
MessagesGetDialogUnreadMarksRequestTypeID is TL type id of MessagesGetDialogUnreadMarksRequest.
const MessagesGetDialogsRequestTypeID = 0xa0ee3b73
MessagesGetDialogsRequestTypeID is TL type id of MessagesGetDialogsRequest.
const MessagesGetDiscussionMessageRequestTypeID = 0x446972fd
MessagesGetDiscussionMessageRequestTypeID is TL type id of MessagesGetDiscussionMessageRequest.
const MessagesGetDocumentByHashRequestTypeID = 0x338e2464
MessagesGetDocumentByHashRequestTypeID is TL type id of MessagesGetDocumentByHashRequest.
const MessagesGetEmojiKeywordsDifferenceRequestTypeID = 0x1508b6af
MessagesGetEmojiKeywordsDifferenceRequestTypeID is TL type id of MessagesGetEmojiKeywordsDifferenceRequest.
const MessagesGetEmojiKeywordsLanguagesRequestTypeID = 0x4e9963b2
MessagesGetEmojiKeywordsLanguagesRequestTypeID is TL type id of MessagesGetEmojiKeywordsLanguagesRequest.
const MessagesGetEmojiKeywordsRequestTypeID = 0x35a0e062
MessagesGetEmojiKeywordsRequestTypeID is TL type id of MessagesGetEmojiKeywordsRequest.
const MessagesGetEmojiURLRequestTypeID = 0xd5b10c26
MessagesGetEmojiURLRequestTypeID is TL type id of MessagesGetEmojiURLRequest.
const MessagesGetFavedStickersRequestTypeID = 0x21ce0b0e
MessagesGetFavedStickersRequestTypeID is TL type id of MessagesGetFavedStickersRequest.
const MessagesGetFeaturedStickersRequestTypeID = 0x2dacca4f
MessagesGetFeaturedStickersRequestTypeID is TL type id of MessagesGetFeaturedStickersRequest.
const MessagesGetFullChatRequestTypeID = 0x3b831c66
MessagesGetFullChatRequestTypeID is TL type id of MessagesGetFullChatRequest.
const MessagesGetGameHighScoresRequestTypeID = 0xe822649d
MessagesGetGameHighScoresRequestTypeID is TL type id of MessagesGetGameHighScoresRequest.
const MessagesGetHistoryRequestTypeID = 0xdcbb8260
MessagesGetHistoryRequestTypeID is TL type id of MessagesGetHistoryRequest.
const MessagesGetInlineBotResultsRequestTypeID = 0x514e999d
MessagesGetInlineBotResultsRequestTypeID is TL type id of MessagesGetInlineBotResultsRequest.
const MessagesGetInlineGameHighScoresRequestTypeID = 0xf635e1b
MessagesGetInlineGameHighScoresRequestTypeID is TL type id of MessagesGetInlineGameHighScoresRequest.
const MessagesGetMaskStickersRequestTypeID = 0x65b8c79f
MessagesGetMaskStickersRequestTypeID is TL type id of MessagesGetMaskStickersRequest.
const MessagesGetMessageEditDataRequestTypeID = 0xfda68d36
MessagesGetMessageEditDataRequestTypeID is TL type id of MessagesGetMessageEditDataRequest.
const MessagesGetMessagesRequestTypeID = 0x63c66506
MessagesGetMessagesRequestTypeID is TL type id of MessagesGetMessagesRequest.
const MessagesGetMessagesViewsRequestTypeID = 0x5784d3e1
MessagesGetMessagesViewsRequestTypeID is TL type id of MessagesGetMessagesViewsRequest.
const MessagesGetOldFeaturedStickersRequestTypeID = 0x5fe7025b
MessagesGetOldFeaturedStickersRequestTypeID is TL type id of MessagesGetOldFeaturedStickersRequest.
const MessagesGetOnlinesRequestTypeID = 0x6e2be050
MessagesGetOnlinesRequestTypeID is TL type id of MessagesGetOnlinesRequest.
const MessagesGetPeerDialogsRequestTypeID = 0xe470bcfd
MessagesGetPeerDialogsRequestTypeID is TL type id of MessagesGetPeerDialogsRequest.
const MessagesGetPeerSettingsRequestTypeID = 0x3672e09c
MessagesGetPeerSettingsRequestTypeID is TL type id of MessagesGetPeerSettingsRequest.
const MessagesGetPinnedDialogsRequestTypeID = 0xd6b94df2
MessagesGetPinnedDialogsRequestTypeID is TL type id of MessagesGetPinnedDialogsRequest.
const MessagesGetPollResultsRequestTypeID = 0x73bb643b
MessagesGetPollResultsRequestTypeID is TL type id of MessagesGetPollResultsRequest.
const MessagesGetPollVotesRequestTypeID = 0xb86e380e
MessagesGetPollVotesRequestTypeID is TL type id of MessagesGetPollVotesRequest.
const MessagesGetRecentLocationsRequestTypeID = 0xbbc45b09
MessagesGetRecentLocationsRequestTypeID is TL type id of MessagesGetRecentLocationsRequest.
const MessagesGetRecentStickersRequestTypeID = 0x5ea192c9
MessagesGetRecentStickersRequestTypeID is TL type id of MessagesGetRecentStickersRequest.
const MessagesGetRepliesRequestTypeID = 0x24b581ba
MessagesGetRepliesRequestTypeID is TL type id of MessagesGetRepliesRequest.
const MessagesGetSavedGifsRequestTypeID = 0x83bf3d52
MessagesGetSavedGifsRequestTypeID is TL type id of MessagesGetSavedGifsRequest.
const MessagesGetScheduledHistoryRequestTypeID = 0xe2c2685b
MessagesGetScheduledHistoryRequestTypeID is TL type id of MessagesGetScheduledHistoryRequest.
const MessagesGetScheduledMessagesRequestTypeID = 0xbdbb0464
MessagesGetScheduledMessagesRequestTypeID is TL type id of MessagesGetScheduledMessagesRequest.
const MessagesGetSearchCountersRequestTypeID = 0x732eef00
MessagesGetSearchCountersRequestTypeID is TL type id of MessagesGetSearchCountersRequest.
const MessagesGetSplitRangesRequestTypeID = 0x1cff7e08
MessagesGetSplitRangesRequestTypeID is TL type id of MessagesGetSplitRangesRequest.
const MessagesGetStatsURLRequestTypeID = 0x812c2ae6
MessagesGetStatsURLRequestTypeID is TL type id of MessagesGetStatsURLRequest.
const MessagesGetStickerSetRequestTypeID = 0x2619a90e
MessagesGetStickerSetRequestTypeID is TL type id of MessagesGetStickerSetRequest.
const MessagesGetStickersRequestTypeID = 0x43d4f2c
MessagesGetStickersRequestTypeID is TL type id of MessagesGetStickersRequest.
const MessagesGetSuggestedDialogFiltersRequestTypeID = 0xa29cd42c
MessagesGetSuggestedDialogFiltersRequestTypeID is TL type id of MessagesGetSuggestedDialogFiltersRequest.
const MessagesGetUnreadMentionsRequestTypeID = 0x46578472
MessagesGetUnreadMentionsRequestTypeID is TL type id of MessagesGetUnreadMentionsRequest.
const MessagesGetWebPagePreviewRequestTypeID = 0x8b68b0cc
MessagesGetWebPagePreviewRequestTypeID is TL type id of MessagesGetWebPagePreviewRequest.
const MessagesGetWebPageRequestTypeID = 0x32ca8f91
MessagesGetWebPageRequestTypeID is TL type id of MessagesGetWebPageRequest.
const MessagesHidePeerSettingsBarRequestTypeID = 0x4facb138
MessagesHidePeerSettingsBarRequestTypeID is TL type id of MessagesHidePeerSettingsBarRequest.
const MessagesHighScoresTypeID = 0x9a3bfd99
MessagesHighScoresTypeID is TL type id of MessagesHighScores.
const MessagesImportChatInviteRequestTypeID = 0x6c50051c
MessagesImportChatInviteRequestTypeID is TL type id of MessagesImportChatInviteRequest.
const MessagesInactiveChatsTypeID = 0xa927fec5
MessagesInactiveChatsTypeID is TL type id of MessagesInactiveChats.
const MessagesInstallStickerSetRequestTypeID = 0xc78fe460
MessagesInstallStickerSetRequestTypeID is TL type id of MessagesInstallStickerSetRequest.
const MessagesMarkDialogUnreadRequestTypeID = 0xc286d98f
MessagesMarkDialogUnreadRequestTypeID is TL type id of MessagesMarkDialogUnreadRequest.
const MessagesMessageEditDataTypeID = 0x26b5dde6
MessagesMessageEditDataTypeID is TL type id of MessagesMessageEditData.
const MessagesMessageViewsTypeID = 0xb6c4f543
MessagesMessageViewsTypeID is TL type id of MessagesMessageViews.
const MessagesMessagesNotModifiedTypeID = 0x74535f21
MessagesMessagesNotModifiedTypeID is TL type id of MessagesMessagesNotModified.
const MessagesMessagesSliceTypeID = 0x3a54685e
MessagesMessagesSliceTypeID is TL type id of MessagesMessagesSlice.
const MessagesMessagesTypeID = 0x8c718e87
MessagesMessagesTypeID is TL type id of MessagesMessages.
const MessagesMigrateChatRequestTypeID = 0x15a3b8e3
MessagesMigrateChatRequestTypeID is TL type id of MessagesMigrateChatRequest.
const MessagesPeerDialogsTypeID = 0x3371c354
MessagesPeerDialogsTypeID is TL type id of MessagesPeerDialogs.
const MessagesReadDiscussionRequestTypeID = 0xf731a9f4
MessagesReadDiscussionRequestTypeID is TL type id of MessagesReadDiscussionRequest.
const MessagesReadEncryptedHistoryRequestTypeID = 0x7f4b690a
MessagesReadEncryptedHistoryRequestTypeID is TL type id of MessagesReadEncryptedHistoryRequest.
const MessagesReadFeaturedStickersRequestTypeID = 0x5b118126
MessagesReadFeaturedStickersRequestTypeID is TL type id of MessagesReadFeaturedStickersRequest.
const MessagesReadHistoryRequestTypeID = 0xe306d3a
MessagesReadHistoryRequestTypeID is TL type id of MessagesReadHistoryRequest.
const MessagesReadMentionsRequestTypeID = 0xf0189d3
MessagesReadMentionsRequestTypeID is TL type id of MessagesReadMentionsRequest.
const MessagesReadMessageContentsRequestTypeID = 0x36a73f77
MessagesReadMessageContentsRequestTypeID is TL type id of MessagesReadMessageContentsRequest.
const MessagesReceivedMessagesRequestTypeID = 0x5a954c0
MessagesReceivedMessagesRequestTypeID is TL type id of MessagesReceivedMessagesRequest.
const MessagesReceivedQueueRequestTypeID = 0x55a5bb66
MessagesReceivedQueueRequestTypeID is TL type id of MessagesReceivedQueueRequest.
const MessagesRecentStickersNotModifiedTypeID = 0xb17f890
MessagesRecentStickersNotModifiedTypeID is TL type id of MessagesRecentStickersNotModified.
const MessagesRecentStickersTypeID = 0x22f3afb3
MessagesRecentStickersTypeID is TL type id of MessagesRecentStickers.
const MessagesReorderPinnedDialogsRequestTypeID = 0x3b1adf37
MessagesReorderPinnedDialogsRequestTypeID is TL type id of MessagesReorderPinnedDialogsRequest.
const MessagesReorderStickerSetsRequestTypeID = 0x78337739
MessagesReorderStickerSetsRequestTypeID is TL type id of MessagesReorderStickerSetsRequest.
const MessagesReportEncryptedSpamRequestTypeID = 0x4b0c8c0f
MessagesReportEncryptedSpamRequestTypeID is TL type id of MessagesReportEncryptedSpamRequest.
const MessagesReportRequestTypeID = 0xbd82b658
MessagesReportRequestTypeID is TL type id of MessagesReportRequest.
const MessagesReportSpamRequestTypeID = 0xcf1592db
MessagesReportSpamRequestTypeID is TL type id of MessagesReportSpamRequest.
const MessagesRequestEncryptionRequestTypeID = 0xf64daf43
MessagesRequestEncryptionRequestTypeID is TL type id of MessagesRequestEncryptionRequest.
const MessagesRequestUrlAuthRequestTypeID = 0xe33f5613
MessagesRequestUrlAuthRequestTypeID is TL type id of MessagesRequestUrlAuthRequest.
const MessagesSaveDraftRequestTypeID = 0xbc39e14b
MessagesSaveDraftRequestTypeID is TL type id of MessagesSaveDraftRequest.
const MessagesSaveGifRequestTypeID = 0x327a30cb
MessagesSaveGifRequestTypeID is TL type id of MessagesSaveGifRequest.
const MessagesSaveRecentStickerRequestTypeID = 0x392718f8
MessagesSaveRecentStickerRequestTypeID is TL type id of MessagesSaveRecentStickerRequest.
const MessagesSavedGifsNotModifiedTypeID = 0xe8025ca2
MessagesSavedGifsNotModifiedTypeID is TL type id of MessagesSavedGifsNotModified.
const MessagesSavedGifsTypeID = 0x2e0709a5
MessagesSavedGifsTypeID is TL type id of MessagesSavedGifs.
const MessagesSearchCounterTypeID = 0xe844ebff
MessagesSearchCounterTypeID is TL type id of MessagesSearchCounter.
const MessagesSearchGlobalRequestTypeID = 0x4bc6589a
MessagesSearchGlobalRequestTypeID is TL type id of MessagesSearchGlobalRequest.
const MessagesSearchRequestTypeID = 0xc352eec
MessagesSearchRequestTypeID is TL type id of MessagesSearchRequest.
const MessagesSearchStickerSetsRequestTypeID = 0xc2b7d08b
MessagesSearchStickerSetsRequestTypeID is TL type id of MessagesSearchStickerSetsRequest.
const MessagesSendEncryptedFileRequestTypeID = 0x5559481d
MessagesSendEncryptedFileRequestTypeID is TL type id of MessagesSendEncryptedFileRequest.
const MessagesSendEncryptedRequestTypeID = 0x44fa7a15
MessagesSendEncryptedRequestTypeID is TL type id of MessagesSendEncryptedRequest.
const MessagesSendEncryptedServiceRequestTypeID = 0x32d439a4
MessagesSendEncryptedServiceRequestTypeID is TL type id of MessagesSendEncryptedServiceRequest.
const MessagesSendInlineBotResultRequestTypeID = 0x220815b0
MessagesSendInlineBotResultRequestTypeID is TL type id of MessagesSendInlineBotResultRequest.
const MessagesSendMediaRequestTypeID = 0x3491eba9
MessagesSendMediaRequestTypeID is TL type id of MessagesSendMediaRequest.
const MessagesSendMessageRequestTypeID = 0x520c3870
MessagesSendMessageRequestTypeID is TL type id of MessagesSendMessageRequest.
const MessagesSendMultiMediaRequestTypeID = 0xcc0110cb
MessagesSendMultiMediaRequestTypeID is TL type id of MessagesSendMultiMediaRequest.
const MessagesSendScheduledMessagesRequestTypeID = 0xbd38850a
MessagesSendScheduledMessagesRequestTypeID is TL type id of MessagesSendScheduledMessagesRequest.
const MessagesSendScreenshotNotificationRequestTypeID = 0xc97df020
MessagesSendScreenshotNotificationRequestTypeID is TL type id of MessagesSendScreenshotNotificationRequest.
const MessagesSendVoteRequestTypeID = 0x10ea6184
MessagesSendVoteRequestTypeID is TL type id of MessagesSendVoteRequest.
const MessagesSentEncryptedFileTypeID = 0x9493ff32
MessagesSentEncryptedFileTypeID is TL type id of MessagesSentEncryptedFile.
const MessagesSentEncryptedMessageTypeID = 0x560f8935
MessagesSentEncryptedMessageTypeID is TL type id of MessagesSentEncryptedMessage.
const MessagesSetBotCallbackAnswerRequestTypeID = 0xd58f130a
MessagesSetBotCallbackAnswerRequestTypeID is TL type id of MessagesSetBotCallbackAnswerRequest.
const MessagesSetBotPrecheckoutResultsRequestTypeID = 0x9c2dd95
MessagesSetBotPrecheckoutResultsRequestTypeID is TL type id of MessagesSetBotPrecheckoutResultsRequest.
const MessagesSetBotShippingResultsRequestTypeID = 0xe5f672fa
MessagesSetBotShippingResultsRequestTypeID is TL type id of MessagesSetBotShippingResultsRequest.
const MessagesSetEncryptedTypingRequestTypeID = 0x791451ed
MessagesSetEncryptedTypingRequestTypeID is TL type id of MessagesSetEncryptedTypingRequest.
const MessagesSetGameScoreRequestTypeID = 0x8ef8ecc0
MessagesSetGameScoreRequestTypeID is TL type id of MessagesSetGameScoreRequest.
const MessagesSetInlineBotResultsRequestTypeID = 0xeb5ea206
MessagesSetInlineBotResultsRequestTypeID is TL type id of MessagesSetInlineBotResultsRequest.
const MessagesSetInlineGameScoreRequestTypeID = 0x15ad9f64
MessagesSetInlineGameScoreRequestTypeID is TL type id of MessagesSetInlineGameScoreRequest.
const MessagesSetTypingRequestTypeID = 0x58943ee2
MessagesSetTypingRequestTypeID is TL type id of MessagesSetTypingRequest.
const MessagesStartBotRequestTypeID = 0xe6df7378
MessagesStartBotRequestTypeID is TL type id of MessagesStartBotRequest.
const MessagesStickerSetInstallResultArchiveTypeID = 0x35e410a8
MessagesStickerSetInstallResultArchiveTypeID is TL type id of MessagesStickerSetInstallResultArchive.
const MessagesStickerSetInstallResultSuccessTypeID = 0x38641628
MessagesStickerSetInstallResultSuccessTypeID is TL type id of MessagesStickerSetInstallResultSuccess.
const MessagesStickerSetTypeID = 0xb60a24a6
MessagesStickerSetTypeID is TL type id of MessagesStickerSet.
const MessagesStickersNotModifiedTypeID = 0xf1749a22
MessagesStickersNotModifiedTypeID is TL type id of MessagesStickersNotModified.
const MessagesStickersTypeID = 0xe4599bbd
MessagesStickersTypeID is TL type id of MessagesStickers.
const MessagesToggleDialogPinRequestTypeID = 0xa731e257
MessagesToggleDialogPinRequestTypeID is TL type id of MessagesToggleDialogPinRequest.
const MessagesToggleStickerSetsRequestTypeID = 0xb5052fea
MessagesToggleStickerSetsRequestTypeID is TL type id of MessagesToggleStickerSetsRequest.
const MessagesUninstallStickerSetRequestTypeID = 0xf96e55de
MessagesUninstallStickerSetRequestTypeID is TL type id of MessagesUninstallStickerSetRequest.
const MessagesUnpinAllMessagesRequestTypeID = 0xf025bc8b
MessagesUnpinAllMessagesRequestTypeID is TL type id of MessagesUnpinAllMessagesRequest.
const MessagesUpdateDialogFilterRequestTypeID = 0x1ad4a04a
MessagesUpdateDialogFilterRequestTypeID is TL type id of MessagesUpdateDialogFilterRequest.
const MessagesUpdateDialogFiltersOrderRequestTypeID = 0xc563c1e4
MessagesUpdateDialogFiltersOrderRequestTypeID is TL type id of MessagesUpdateDialogFiltersOrderRequest.
const MessagesUpdatePinnedMessageRequestTypeID = 0xd2aaf7ec
MessagesUpdatePinnedMessageRequestTypeID is TL type id of MessagesUpdatePinnedMessageRequest.
const MessagesUploadEncryptedFileRequestTypeID = 0x5057c497
MessagesUploadEncryptedFileRequestTypeID is TL type id of MessagesUploadEncryptedFileRequest.
const MessagesUploadMediaRequestTypeID = 0x519bc2b1
MessagesUploadMediaRequestTypeID is TL type id of MessagesUploadMediaRequest.
const MessagesVotesListTypeID = 0x823f649
MessagesVotesListTypeID is TL type id of MessagesVotesList.
const NearestDcTypeID = 0x8e1a1775
NearestDcTypeID is TL type id of NearestDc.
const NotifyBroadcastsTypeID = 0xd612e8ef
NotifyBroadcastsTypeID is TL type id of NotifyBroadcasts.
const NotifyChatsTypeID = 0xc007cec3
NotifyChatsTypeID is TL type id of NotifyChats.
const NotifyPeerTypeID = 0x9fd40bd8
NotifyPeerTypeID is TL type id of NotifyPeer.
const NotifyUsersTypeID = 0xb4c83b4c
NotifyUsersTypeID is TL type id of NotifyUsers.
const NullTypeID = 0x56730bcc
NullTypeID is TL type id of Null.
const PageBlockAnchorTypeID = 0xce0d37b0
PageBlockAnchorTypeID is TL type id of PageBlockAnchor.
const PageBlockAudioTypeID = 0x804361ea
PageBlockAudioTypeID is TL type id of PageBlockAudio.
const PageBlockAuthorDateTypeID = 0xbaafe5e0
PageBlockAuthorDateTypeID is TL type id of PageBlockAuthorDate.
const PageBlockBlockquoteTypeID = 0x263d7c26
PageBlockBlockquoteTypeID is TL type id of PageBlockBlockquote.
const PageBlockChannelTypeID = 0xef1751b5
PageBlockChannelTypeID is TL type id of PageBlockChannel.
const PageBlockCollageTypeID = 0x65a0fa4d
PageBlockCollageTypeID is TL type id of PageBlockCollage.
const PageBlockCoverTypeID = 0x39f23300
PageBlockCoverTypeID is TL type id of PageBlockCover.
const PageBlockDetailsTypeID = 0x76768bed
PageBlockDetailsTypeID is TL type id of PageBlockDetails.
const PageBlockDividerTypeID = 0xdb20b188
PageBlockDividerTypeID is TL type id of PageBlockDivider.
const PageBlockEmbedPostTypeID = 0xf259a80b
PageBlockEmbedPostTypeID is TL type id of PageBlockEmbedPost.
const PageBlockEmbedTypeID = 0xa8718dc5
PageBlockEmbedTypeID is TL type id of PageBlockEmbed.
PageBlockFooterTypeID is TL type id of PageBlockFooter.
const PageBlockHeaderTypeID = 0xbfd064ec
PageBlockHeaderTypeID is TL type id of PageBlockHeader.
const PageBlockKickerTypeID = 0x1e148390
PageBlockKickerTypeID is TL type id of PageBlockKicker.
const PageBlockListTypeID = 0xe4e88011
PageBlockListTypeID is TL type id of PageBlockList.
const PageBlockMapTypeID = 0xa44f3ef6
PageBlockMapTypeID is TL type id of PageBlockMap.
const PageBlockOrderedListTypeID = 0x9a8ae1e1
PageBlockOrderedListTypeID is TL type id of PageBlockOrderedList.
const PageBlockParagraphTypeID = 0x467a0766
PageBlockParagraphTypeID is TL type id of PageBlockParagraph.
const PageBlockPhotoTypeID = 0x1759c560
PageBlockPhotoTypeID is TL type id of PageBlockPhoto.
const PageBlockPreformattedTypeID = 0xc070d93e
PageBlockPreformattedTypeID is TL type id of PageBlockPreformatted.
const PageBlockPullquoteTypeID = 0x4f4456d3
PageBlockPullquoteTypeID is TL type id of PageBlockPullquote.
const PageBlockRelatedArticlesTypeID = 0x16115a96
PageBlockRelatedArticlesTypeID is TL type id of PageBlockRelatedArticles.
const PageBlockSlideshowTypeID = 0x31f9590
PageBlockSlideshowTypeID is TL type id of PageBlockSlideshow.
const PageBlockSubheaderTypeID = 0xf12bb6e1
PageBlockSubheaderTypeID is TL type id of PageBlockSubheader.
const PageBlockSubtitleTypeID = 0x8ffa9a1f
PageBlockSubtitleTypeID is TL type id of PageBlockSubtitle.
const PageBlockTableTypeID = 0xbf4dea82
PageBlockTableTypeID is TL type id of PageBlockTable.
const PageBlockTitleTypeID = 0x70abc3fd
PageBlockTitleTypeID is TL type id of PageBlockTitle.
const PageBlockUnsupportedTypeID = 0x13567e8a
PageBlockUnsupportedTypeID is TL type id of PageBlockUnsupported.
const PageBlockVideoTypeID = 0x7c8fe7b6
PageBlockVideoTypeID is TL type id of PageBlockVideo.
const PageCaptionTypeID = 0x6f747657
PageCaptionTypeID is TL type id of PageCaption.
const PageListItemBlocksTypeID = 0x25e073fc
PageListItemBlocksTypeID is TL type id of PageListItemBlocks.
const PageListItemTextTypeID = 0xb92fb6cd
PageListItemTextTypeID is TL type id of PageListItemText.
const PageListOrderedItemBlocksTypeID = 0x98dd8936
PageListOrderedItemBlocksTypeID is TL type id of PageListOrderedItemBlocks.
const PageListOrderedItemTextTypeID = 0x5e068047
PageListOrderedItemTextTypeID is TL type id of PageListOrderedItemText.
const PageRelatedArticleTypeID = 0xb390dc08
PageRelatedArticleTypeID is TL type id of PageRelatedArticle.
const PageTableCellTypeID = 0x34566b6a
PageTableCellTypeID is TL type id of PageTableCell.
const PageTableRowTypeID = 0xe0c0c5e5
PageTableRowTypeID is TL type id of PageTableRow.
const PageTypeID = 0x98657f0d
PageTypeID is TL type id of Page.
const PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowTypeID = 0x3a912d4a
PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPowTypeID is TL type id of PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow.
const PasswordKdfAlgoUnknownTypeID = 0xd45ab096
PasswordKdfAlgoUnknownTypeID is TL type id of PasswordKdfAlgoUnknown.
const PaymentChargeTypeID = 0xea02c27e
PaymentChargeTypeID is TL type id of PaymentCharge.
const PaymentRequestedInfoTypeID = 0x909c3f94
PaymentRequestedInfoTypeID is TL type id of PaymentRequestedInfo.
const PaymentSavedCredentialsCardTypeID = 0xcdc27a1f
PaymentSavedCredentialsCardTypeID is TL type id of PaymentSavedCredentialsCard.
const PaymentsBankCardDataTypeID = 0x3e24e573
PaymentsBankCardDataTypeID is TL type id of PaymentsBankCardData.
const PaymentsClearSavedInfoRequestTypeID = 0xd83d70c1
PaymentsClearSavedInfoRequestTypeID is TL type id of PaymentsClearSavedInfoRequest.
const PaymentsGetBankCardDataRequestTypeID = 0x2e79d779
PaymentsGetBankCardDataRequestTypeID is TL type id of PaymentsGetBankCardDataRequest.
const PaymentsGetPaymentFormRequestTypeID = 0x99f09745
PaymentsGetPaymentFormRequestTypeID is TL type id of PaymentsGetPaymentFormRequest.
const PaymentsGetPaymentReceiptRequestTypeID = 0xa092a980
PaymentsGetPaymentReceiptRequestTypeID is TL type id of PaymentsGetPaymentReceiptRequest.
const PaymentsGetSavedInfoRequestTypeID = 0x227d824b
PaymentsGetSavedInfoRequestTypeID is TL type id of PaymentsGetSavedInfoRequest.
const PaymentsPaymentFormTypeID = 0x3f56aea3
PaymentsPaymentFormTypeID is TL type id of PaymentsPaymentForm.
const PaymentsPaymentReceiptTypeID = 0x500911e1
PaymentsPaymentReceiptTypeID is TL type id of PaymentsPaymentReceipt.
const PaymentsPaymentResultTypeID = 0x4e5f810d
PaymentsPaymentResultTypeID is TL type id of PaymentsPaymentResult.
const PaymentsPaymentVerificationNeededTypeID = 0xd8411139
PaymentsPaymentVerificationNeededTypeID is TL type id of PaymentsPaymentVerificationNeeded.
const PaymentsSavedInfoTypeID = 0xfb8fe43c
PaymentsSavedInfoTypeID is TL type id of PaymentsSavedInfo.
const PaymentsSendPaymentFormRequestTypeID = 0x2b8879b3
PaymentsSendPaymentFormRequestTypeID is TL type id of PaymentsSendPaymentFormRequest.
const PaymentsValidateRequestedInfoRequestTypeID = 0x770a8e74
PaymentsValidateRequestedInfoRequestTypeID is TL type id of PaymentsValidateRequestedInfoRequest.
const PaymentsValidatedRequestedInfoTypeID = 0xd1451883
PaymentsValidatedRequestedInfoTypeID is TL type id of PaymentsValidatedRequestedInfo.
const PeerBlockedTypeID = 0xe8fd8014
PeerBlockedTypeID is TL type id of PeerBlocked.
const PeerChannelTypeID = 0xbddde532
PeerChannelTypeID is TL type id of PeerChannel.
const PeerChatTypeID = 0xbad0e5bb
PeerChatTypeID is TL type id of PeerChat.
const PeerLocatedTypeID = 0xca461b5d
PeerLocatedTypeID is TL type id of PeerLocated.
const PeerNotifySettingsTypeID = 0xaf509d20
PeerNotifySettingsTypeID is TL type id of PeerNotifySettings.
const PeerSelfLocatedTypeID = 0xf8ec284b
PeerSelfLocatedTypeID is TL type id of PeerSelfLocated.
const PeerSettingsTypeID = 0x733f2961
PeerSettingsTypeID is TL type id of PeerSettings.
const PeerUserTypeID = 0x9db1bc6d
PeerUserTypeID is TL type id of PeerUser.
const PhoneAcceptCallRequestTypeID = 0x3bd2b4a0
PhoneAcceptCallRequestTypeID is TL type id of PhoneAcceptCallRequest.
const PhoneCallAcceptedTypeID = 0x997c454a
PhoneCallAcceptedTypeID is TL type id of PhoneCallAccepted.
const PhoneCallDiscardReasonBusyTypeID = 0xfaf7e8c9
PhoneCallDiscardReasonBusyTypeID is TL type id of PhoneCallDiscardReasonBusy.
const PhoneCallDiscardReasonDisconnectTypeID = 0xe095c1a0
PhoneCallDiscardReasonDisconnectTypeID is TL type id of PhoneCallDiscardReasonDisconnect.
const PhoneCallDiscardReasonHangupTypeID = 0x57adc690
PhoneCallDiscardReasonHangupTypeID is TL type id of PhoneCallDiscardReasonHangup.
const PhoneCallDiscardReasonMissedTypeID = 0x85e42301
PhoneCallDiscardReasonMissedTypeID is TL type id of PhoneCallDiscardReasonMissed.
const PhoneCallDiscardedTypeID = 0x50ca4de1
PhoneCallDiscardedTypeID is TL type id of PhoneCallDiscarded.
const PhoneCallEmptyTypeID = 0x5366c915
PhoneCallEmptyTypeID is TL type id of PhoneCallEmpty.
const PhoneCallProtocolTypeID = 0xfc878fc8
PhoneCallProtocolTypeID is TL type id of PhoneCallProtocol.
const PhoneCallRequestedTypeID = 0x87eabb53
PhoneCallRequestedTypeID is TL type id of PhoneCallRequested.
const PhoneCallTypeID = 0x8742ae7f
PhoneCallTypeID is TL type id of PhoneCall.
const PhoneCallWaitingTypeID = 0x1b8f4ad1
PhoneCallWaitingTypeID is TL type id of PhoneCallWaiting.
const PhoneConfirmCallRequestTypeID = 0x2efe1722
PhoneConfirmCallRequestTypeID is TL type id of PhoneConfirmCallRequest.
const PhoneConnectionTypeID = 0x9d4c17c0
PhoneConnectionTypeID is TL type id of PhoneConnection.
const PhoneConnectionWebrtcTypeID = 0x635fe375
PhoneConnectionWebrtcTypeID is TL type id of PhoneConnectionWebrtc.
const PhoneDiscardCallRequestTypeID = 0xb2cbc1c0
PhoneDiscardCallRequestTypeID is TL type id of PhoneDiscardCallRequest.
const PhoneGetCallConfigRequestTypeID = 0x55451fa9
PhoneGetCallConfigRequestTypeID is TL type id of PhoneGetCallConfigRequest.
const PhonePhoneCallTypeID = 0xec82e140
PhonePhoneCallTypeID is TL type id of PhonePhoneCall.
const PhoneReceivedCallRequestTypeID = 0x17d54f61
PhoneReceivedCallRequestTypeID is TL type id of PhoneReceivedCallRequest.
const PhoneRequestCallRequestTypeID = 0x42ff96ed
PhoneRequestCallRequestTypeID is TL type id of PhoneRequestCallRequest.
const PhoneSaveCallDebugRequestTypeID = 0x277add7e
PhoneSaveCallDebugRequestTypeID is TL type id of PhoneSaveCallDebugRequest.
const PhoneSendSignalingDataRequestTypeID = 0xff7a9383
PhoneSendSignalingDataRequestTypeID is TL type id of PhoneSendSignalingDataRequest.
const PhoneSetCallRatingRequestTypeID = 0x59ead627
PhoneSetCallRatingRequestTypeID is TL type id of PhoneSetCallRatingRequest.
const PhotoCachedSizeTypeID = 0xe9a734fa
PhotoCachedSizeTypeID is TL type id of PhotoCachedSize.
const PhotoEmptyTypeID = 0x2331b22d
PhotoEmptyTypeID is TL type id of PhotoEmpty.
const PhotoPathSizeTypeID = 0xd8214d41
PhotoPathSizeTypeID is TL type id of PhotoPathSize.
const PhotoSizeEmptyTypeID = 0xe17e23c
PhotoSizeEmptyTypeID is TL type id of PhotoSizeEmpty.
const PhotoSizeProgressiveTypeID = 0x5aa86a51
PhotoSizeProgressiveTypeID is TL type id of PhotoSizeProgressive.
const PhotoSizeTypeID = 0x77bfb61b
PhotoSizeTypeID is TL type id of PhotoSize.
const PhotoStrippedSizeTypeID = 0xe0b0bc2e
PhotoStrippedSizeTypeID is TL type id of PhotoStrippedSize.
const PhotoTypeID = 0xfb197a65
PhotoTypeID is TL type id of Photo.
const PhotosDeletePhotosRequestTypeID = 0x87cf7f2f
PhotosDeletePhotosRequestTypeID is TL type id of PhotosDeletePhotosRequest.
const PhotosGetUserPhotosRequestTypeID = 0x91cd32a8
PhotosGetUserPhotosRequestTypeID is TL type id of PhotosGetUserPhotosRequest.
const PhotosPhotoTypeID = 0x20212ca8
PhotosPhotoTypeID is TL type id of PhotosPhoto.
const PhotosPhotosSliceTypeID = 0x15051f54
PhotosPhotosSliceTypeID is TL type id of PhotosPhotosSlice.
const PhotosPhotosTypeID = 0x8dca6aa5
PhotosPhotosTypeID is TL type id of PhotosPhotos.
const PhotosUpdateProfilePhotoRequestTypeID = 0x72d4742c
PhotosUpdateProfilePhotoRequestTypeID is TL type id of PhotosUpdateProfilePhotoRequest.
const PhotosUploadProfilePhotoRequestTypeID = 0x89f30f69
PhotosUploadProfilePhotoRequestTypeID is TL type id of PhotosUploadProfilePhotoRequest.
const PollAnswerTypeID = 0x6ca9c2e9
PollAnswerTypeID is TL type id of PollAnswer.
const PollAnswerVotersTypeID = 0x3b6ddad2
PollAnswerVotersTypeID is TL type id of PollAnswerVoters.
const PollResultsTypeID = 0xbadcc1a3
PollResultsTypeID is TL type id of PollResults.
const PollTypeID = 0x86e18161
PollTypeID is TL type id of Poll.
const PopularContactTypeID = 0x5ce14175
PopularContactTypeID is TL type id of PopularContact.
const PostAddressTypeID = 0x1e8caaeb
PostAddressTypeID is TL type id of PostAddress.
const PrivacyKeyAddedByPhoneTypeID = 0x42ffd42b
PrivacyKeyAddedByPhoneTypeID is TL type id of PrivacyKeyAddedByPhone.
const PrivacyKeyChatInviteTypeID = 0x500e6dfa
PrivacyKeyChatInviteTypeID is TL type id of PrivacyKeyChatInvite.
const PrivacyKeyForwardsTypeID = 0x69ec56a3
PrivacyKeyForwardsTypeID is TL type id of PrivacyKeyForwards.
const PrivacyKeyPhoneCallTypeID = 0x3d662b7b
PrivacyKeyPhoneCallTypeID is TL type id of PrivacyKeyPhoneCall.
const PrivacyKeyPhoneNumberTypeID = 0xd19ae46d
PrivacyKeyPhoneNumberTypeID is TL type id of PrivacyKeyPhoneNumber.
const PrivacyKeyPhoneP2PTypeID = 0x39491cc8
PrivacyKeyPhoneP2PTypeID is TL type id of PrivacyKeyPhoneP2P.
const PrivacyKeyProfilePhotoTypeID = 0x96151fed
PrivacyKeyProfilePhotoTypeID is TL type id of PrivacyKeyProfilePhoto.
const PrivacyKeyStatusTimestampTypeID = 0xbc2eab30
PrivacyKeyStatusTimestampTypeID is TL type id of PrivacyKeyStatusTimestamp.
const PrivacyValueAllowAllTypeID = 0x65427b82
PrivacyValueAllowAllTypeID is TL type id of PrivacyValueAllowAll.
const PrivacyValueAllowChatParticipantsTypeID = 0x18be796b
PrivacyValueAllowChatParticipantsTypeID is TL type id of PrivacyValueAllowChatParticipants.
const PrivacyValueAllowContactsTypeID = 0xfffe1bac
PrivacyValueAllowContactsTypeID is TL type id of PrivacyValueAllowContacts.
const PrivacyValueAllowUsersTypeID = 0x4d5bbe0c
PrivacyValueAllowUsersTypeID is TL type id of PrivacyValueAllowUsers.
const PrivacyValueDisallowAllTypeID = 0x8b73e763
PrivacyValueDisallowAllTypeID is TL type id of PrivacyValueDisallowAll.
const PrivacyValueDisallowChatParticipantsTypeID = 0xacae0690
PrivacyValueDisallowChatParticipantsTypeID is TL type id of PrivacyValueDisallowChatParticipants.
const PrivacyValueDisallowContactsTypeID = 0xf888fa1a
PrivacyValueDisallowContactsTypeID is TL type id of PrivacyValueDisallowContacts.
const PrivacyValueDisallowUsersTypeID = 0xc7f49b7
PrivacyValueDisallowUsersTypeID is TL type id of PrivacyValueDisallowUsers.
const ReceivedNotifyMessageTypeID = 0xa384b779
ReceivedNotifyMessageTypeID is TL type id of ReceivedNotifyMessage.
const RecentMeUrlChatInviteTypeID = 0xeb49081d
RecentMeUrlChatInviteTypeID is TL type id of RecentMeUrlChatInvite.
const RecentMeUrlChatTypeID = 0xa01b22f9
RecentMeUrlChatTypeID is TL type id of RecentMeUrlChat.
const RecentMeUrlStickerSetTypeID = 0xbc0a57dc
RecentMeUrlStickerSetTypeID is TL type id of RecentMeUrlStickerSet.
const RecentMeUrlUnknownTypeID = 0x46e1d13d
RecentMeUrlUnknownTypeID is TL type id of RecentMeUrlUnknown.
const RecentMeUrlUserTypeID = 0x8dbc3336
RecentMeUrlUserTypeID is TL type id of RecentMeUrlUser.
const ReplyInlineMarkupTypeID = 0x48a30254
ReplyInlineMarkupTypeID is TL type id of ReplyInlineMarkup.
const ReplyKeyboardForceReplyTypeID = 0xf4108aa0
ReplyKeyboardForceReplyTypeID is TL type id of ReplyKeyboardForceReply.
const ReplyKeyboardHideTypeID = 0xa03e5b85
ReplyKeyboardHideTypeID is TL type id of ReplyKeyboardHide.
const ReplyKeyboardMarkupTypeID = 0x3502758c
ReplyKeyboardMarkupTypeID is TL type id of ReplyKeyboardMarkup.
const RestrictionReasonTypeID = 0xd072acb4
RestrictionReasonTypeID is TL type id of RestrictionReason.
const SavedPhoneContactTypeID = 0x1142bd56
SavedPhoneContactTypeID is TL type id of SavedPhoneContact.
const SecureCredentialsEncryptedTypeID = 0x33f0ea47
SecureCredentialsEncryptedTypeID is TL type id of SecureCredentialsEncrypted.
const SecureDataTypeID = 0x8aeabec3
SecureDataTypeID is TL type id of SecureData.
const SecureFileEmptyTypeID = 0x64199744
SecureFileEmptyTypeID is TL type id of SecureFileEmpty.
const SecureFileTypeID = 0xe0277a62
SecureFileTypeID is TL type id of SecureFile.
const SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000TypeID = 0xbbf2dda0
SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000TypeID is TL type id of SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000.
const SecurePasswordKdfAlgoSHA512TypeID = 0x86471d92
SecurePasswordKdfAlgoSHA512TypeID is TL type id of SecurePasswordKdfAlgoSHA512.
const SecurePasswordKdfAlgoUnknownTypeID = 0x4a8537
SecurePasswordKdfAlgoUnknownTypeID is TL type id of SecurePasswordKdfAlgoUnknown.
const SecurePlainEmailTypeID = 0x21ec5a5f
SecurePlainEmailTypeID is TL type id of SecurePlainEmail.
const SecurePlainPhoneTypeID = 0x7d6099dd
SecurePlainPhoneTypeID is TL type id of SecurePlainPhone.
const SecureRequiredTypeOneOfTypeID = 0x27477b4
SecureRequiredTypeOneOfTypeID is TL type id of SecureRequiredTypeOneOf.
const SecureRequiredTypeTypeID = 0x829d99da
SecureRequiredTypeTypeID is TL type id of SecureRequiredType.
const SecureSecretSettingsTypeID = 0x1527bcac
SecureSecretSettingsTypeID is TL type id of SecureSecretSettings.
const SecureValueErrorDataTypeID = 0xe8a40bd9
SecureValueErrorDataTypeID is TL type id of SecureValueErrorData.
const SecureValueErrorFileTypeID = 0x7a700873
SecureValueErrorFileTypeID is TL type id of SecureValueErrorFile.
const SecureValueErrorFilesTypeID = 0x666220e9
SecureValueErrorFilesTypeID is TL type id of SecureValueErrorFiles.
const SecureValueErrorFrontSideTypeID = 0xbe3dfa
SecureValueErrorFrontSideTypeID is TL type id of SecureValueErrorFrontSide.
const SecureValueErrorReverseSideTypeID = 0x868a2aa5
SecureValueErrorReverseSideTypeID is TL type id of SecureValueErrorReverseSide.
const SecureValueErrorSelfieTypeID = 0xe537ced6
SecureValueErrorSelfieTypeID is TL type id of SecureValueErrorSelfie.
const SecureValueErrorTranslationFileTypeID = 0xa1144770
SecureValueErrorTranslationFileTypeID is TL type id of SecureValueErrorTranslationFile.
const SecureValueErrorTranslationFilesTypeID = 0x34636dd8
SecureValueErrorTranslationFilesTypeID is TL type id of SecureValueErrorTranslationFiles.
const SecureValueErrorTypeID = 0x869d758f
SecureValueErrorTypeID is TL type id of SecureValueError.
const SecureValueHashTypeID = 0xed1ecdb0
SecureValueHashTypeID is TL type id of SecureValueHash.
const SecureValueTypeAddressTypeID = 0xcbe31e26
SecureValueTypeAddressTypeID is TL type id of SecureValueTypeAddress.
const SecureValueTypeBankStatementTypeID = 0x89137c0d
SecureValueTypeBankStatementTypeID is TL type id of SecureValueTypeBankStatement.
const SecureValueTypeDriverLicenseTypeID = 0x6e425c4
SecureValueTypeDriverLicenseTypeID is TL type id of SecureValueTypeDriverLicense.
const SecureValueTypeEmailTypeID = 0x8e3ca7ee
SecureValueTypeEmailTypeID is TL type id of SecureValueTypeEmail.
const SecureValueTypeID = 0x187fa0ca
SecureValueTypeID is TL type id of SecureValue.
const SecureValueTypeIdentityCardTypeID = 0xa0d0744b
SecureValueTypeIdentityCardTypeID is TL type id of SecureValueTypeIdentityCard.
const SecureValueTypeInternalPassportTypeID = 0x99a48f23
SecureValueTypeInternalPassportTypeID is TL type id of SecureValueTypeInternalPassport.
const SecureValueTypePassportRegistrationTypeID = 0x99e3806a
SecureValueTypePassportRegistrationTypeID is TL type id of SecureValueTypePassportRegistration.
const SecureValueTypePassportTypeID = 0x3dac6a00
SecureValueTypePassportTypeID is TL type id of SecureValueTypePassport.
const SecureValueTypePersonalDetailsTypeID = 0x9d2a81e3
SecureValueTypePersonalDetailsTypeID is TL type id of SecureValueTypePersonalDetails.
const SecureValueTypePhoneTypeID = 0xb320aadb
SecureValueTypePhoneTypeID is TL type id of SecureValueTypePhone.
const SecureValueTypeRentalAgreementTypeID = 0x8b883488
SecureValueTypeRentalAgreementTypeID is TL type id of SecureValueTypeRentalAgreement.
const SecureValueTypeTemporaryRegistrationTypeID = 0xea02ec33
SecureValueTypeTemporaryRegistrationTypeID is TL type id of SecureValueTypeTemporaryRegistration.
const SecureValueTypeUtilityBillTypeID = 0xfc36954e
SecureValueTypeUtilityBillTypeID is TL type id of SecureValueTypeUtilityBill.
const SendMessageCancelActionTypeID = 0xfd5ec8f5
SendMessageCancelActionTypeID is TL type id of SendMessageCancelAction.
const SendMessageChooseContactActionTypeID = 0x628cbc6f
SendMessageChooseContactActionTypeID is TL type id of SendMessageChooseContactAction.
const SendMessageGamePlayActionTypeID = 0xdd6a8f48
SendMessageGamePlayActionTypeID is TL type id of SendMessageGamePlayAction.
const SendMessageGeoLocationActionTypeID = 0x176f8ba1
SendMessageGeoLocationActionTypeID is TL type id of SendMessageGeoLocationAction.
const SendMessageRecordAudioActionTypeID = 0xd52f73f7
SendMessageRecordAudioActionTypeID is TL type id of SendMessageRecordAudioAction.
const SendMessageRecordRoundActionTypeID = 0x88f27fbc
SendMessageRecordRoundActionTypeID is TL type id of SendMessageRecordRoundAction.
const SendMessageRecordVideoActionTypeID = 0xa187d66f
SendMessageRecordVideoActionTypeID is TL type id of SendMessageRecordVideoAction.
const SendMessageTypingActionTypeID = 0x16bf744e
SendMessageTypingActionTypeID is TL type id of SendMessageTypingAction.
const SendMessageUploadAudioActionTypeID = 0xf351d7ab
SendMessageUploadAudioActionTypeID is TL type id of SendMessageUploadAudioAction.
const SendMessageUploadDocumentActionTypeID = 0xaa0cd9e4
SendMessageUploadDocumentActionTypeID is TL type id of SendMessageUploadDocumentAction.
const SendMessageUploadPhotoActionTypeID = 0xd1d34a26
SendMessageUploadPhotoActionTypeID is TL type id of SendMessageUploadPhotoAction.
const SendMessageUploadRoundActionTypeID = 0x243e1c66
SendMessageUploadRoundActionTypeID is TL type id of SendMessageUploadRoundAction.
const SendMessageUploadVideoActionTypeID = 0xe9763aec
SendMessageUploadVideoActionTypeID is TL type id of SendMessageUploadVideoAction.
const ShippingOptionTypeID = 0xb6213cdf
ShippingOptionTypeID is TL type id of ShippingOption.
const StatsAbsValueAndPrevTypeID = 0xcb43acde
StatsAbsValueAndPrevTypeID is TL type id of StatsAbsValueAndPrev.
const StatsBroadcastStatsTypeID = 0xbdf78394
StatsBroadcastStatsTypeID is TL type id of StatsBroadcastStats.
const StatsDateRangeDaysTypeID = 0xb637edaf
StatsDateRangeDaysTypeID is TL type id of StatsDateRangeDays.
const StatsGetBroadcastStatsRequestTypeID = 0xab42441a
StatsGetBroadcastStatsRequestTypeID is TL type id of StatsGetBroadcastStatsRequest.
const StatsGetMegagroupStatsRequestTypeID = 0xdcdf8607
StatsGetMegagroupStatsRequestTypeID is TL type id of StatsGetMegagroupStatsRequest.
const StatsGetMessagePublicForwardsRequestTypeID = 0x5630281b
StatsGetMessagePublicForwardsRequestTypeID is TL type id of StatsGetMessagePublicForwardsRequest.
const StatsGetMessageStatsRequestTypeID = 0xb6e0a3f5
StatsGetMessageStatsRequestTypeID is TL type id of StatsGetMessageStatsRequest.
const StatsGraphAsyncTypeID = 0x4a27eb2d
StatsGraphAsyncTypeID is TL type id of StatsGraphAsync.
const StatsGraphErrorTypeID = 0xbedc9822
StatsGraphErrorTypeID is TL type id of StatsGraphError.
const StatsGraphTypeID = 0x8ea464b6
StatsGraphTypeID is TL type id of StatsGraph.
const StatsGroupTopAdminTypeID = 0x6014f412
StatsGroupTopAdminTypeID is TL type id of StatsGroupTopAdmin.
const StatsGroupTopInviterTypeID = 0x31962a4c
StatsGroupTopInviterTypeID is TL type id of StatsGroupTopInviter.
const StatsGroupTopPosterTypeID = 0x18f3d0f7
StatsGroupTopPosterTypeID is TL type id of StatsGroupTopPoster.
const StatsLoadAsyncGraphRequestTypeID = 0x621d5fa0
StatsLoadAsyncGraphRequestTypeID is TL type id of StatsLoadAsyncGraphRequest.
const StatsMegagroupStatsTypeID = 0xef7ff916
StatsMegagroupStatsTypeID is TL type id of StatsMegagroupStats.
const StatsMessageStatsTypeID = 0x8999f295
StatsMessageStatsTypeID is TL type id of StatsMessageStats.
const StatsPercentValueTypeID = 0xcbce2fe0
StatsPercentValueTypeID is TL type id of StatsPercentValue.
const StatsURLTypeID = 0x47a971e0
StatsURLTypeID is TL type id of StatsURL.
const StickerPackTypeID = 0x12b299d4
StickerPackTypeID is TL type id of StickerPack.
const StickerSetCoveredTypeID = 0x6410a5d2
StickerSetCoveredTypeID is TL type id of StickerSetCovered.
const StickerSetMultiCoveredTypeID = 0x3407e51b
StickerSetMultiCoveredTypeID is TL type id of StickerSetMultiCovered.
const StickerSetTypeID = 0xeeb46f27
StickerSetTypeID is TL type id of StickerSet.
const StickersAddStickerToSetRequestTypeID = 0x8653febe
StickersAddStickerToSetRequestTypeID is TL type id of StickersAddStickerToSetRequest.
const StickersChangeStickerPositionRequestTypeID = 0xffb6d4ca
StickersChangeStickerPositionRequestTypeID is TL type id of StickersChangeStickerPositionRequest.
const StickersCreateStickerSetRequestTypeID = 0xf1036780
StickersCreateStickerSetRequestTypeID is TL type id of StickersCreateStickerSetRequest.
const StickersRemoveStickerFromSetRequestTypeID = 0xf7760f51
StickersRemoveStickerFromSetRequestTypeID is TL type id of StickersRemoveStickerFromSetRequest.
const StickersSetStickerSetThumbRequestTypeID = 0x9a364e30
StickersSetStickerSetThumbRequestTypeID is TL type id of StickersSetStickerSetThumbRequest.
const StorageFileGifTypeID = 0xcae1aadf
StorageFileGifTypeID is TL type id of StorageFileGif.
const StorageFileJpegTypeID = 0x7efe0e
StorageFileJpegTypeID is TL type id of StorageFileJpeg.
const StorageFileMovTypeID = 0x4b09ebbc
StorageFileMovTypeID is TL type id of StorageFileMov.
const StorageFileMp3TypeID = 0x528a0677
StorageFileMp3TypeID is TL type id of StorageFileMp3.
const StorageFileMp4TypeID = 0xb3cea0e4
StorageFileMp4TypeID is TL type id of StorageFileMp4.
const StorageFilePartialTypeID = 0x40bc6f52
StorageFilePartialTypeID is TL type id of StorageFilePartial.
const StorageFilePdfTypeID = 0xae1e508d
StorageFilePdfTypeID is TL type id of StorageFilePdf.
const StorageFilePngTypeID = 0xa4f63c0
StorageFilePngTypeID is TL type id of StorageFilePng.
const StorageFileUnknownTypeID = 0xaa963b05
StorageFileUnknownTypeID is TL type id of StorageFileUnknown.
const StorageFileWebpTypeID = 0x1081464c
StorageFileWebpTypeID is TL type id of StorageFileWebp.
const TextAnchorTypeID = 0x35553762
TextAnchorTypeID is TL type id of TextAnchor.
const TextBoldTypeID = 0x6724abc4
TextBoldTypeID is TL type id of TextBold.
const TextConcatTypeID = 0x7e6260d7
TextConcatTypeID is TL type id of TextConcat.
const TextEmailTypeID = 0xde5a0dd6
TextEmailTypeID is TL type id of TextEmail.
const TextEmptyTypeID = 0xdc3d824f
TextEmptyTypeID is TL type id of TextEmpty.
const TextFixedTypeID = 0x6c3f19b9
TextFixedTypeID is TL type id of TextFixed.
const TextImageTypeID = 0x81ccf4f
TextImageTypeID is TL type id of TextImage.
const TextItalicTypeID = 0xd912a59c
TextItalicTypeID is TL type id of TextItalic.
const TextMarkedTypeID = 0x34b8621
TextMarkedTypeID is TL type id of TextMarked.
const TextPhoneTypeID = 0x1ccb966a
TextPhoneTypeID is TL type id of TextPhone.
const TextPlainTypeID = 0x744694e0
TextPlainTypeID is TL type id of TextPlain.
const TextStrikeTypeID = 0x9bf8bb95
TextStrikeTypeID is TL type id of TextStrike.
const TextSubscriptTypeID = 0xed6a8504
TextSubscriptTypeID is TL type id of TextSubscript.
const TextSuperscriptTypeID = 0xc7fb5e01
TextSuperscriptTypeID is TL type id of TextSuperscript.
const TextUnderlineTypeID = 0xc12622c4
TextUnderlineTypeID is TL type id of TextUnderline.
const TextUrlTypeID = 0x3c2884c1
TextUrlTypeID is TL type id of TextUrl.
const ThemeSettingsTypeID = 0x9c14984a
ThemeSettingsTypeID is TL type id of ThemeSettings.
const ThemeTypeID = 0x28f1114
ThemeTypeID is TL type id of Theme.
const TopPeerCategoryBotsInlineTypeID = 0x148677e2
TopPeerCategoryBotsInlineTypeID is TL type id of TopPeerCategoryBotsInline.
const TopPeerCategoryBotsPMTypeID = 0xab661b5b
TopPeerCategoryBotsPMTypeID is TL type id of TopPeerCategoryBotsPM.
const TopPeerCategoryChannelsTypeID = 0x161d9628
TopPeerCategoryChannelsTypeID is TL type id of TopPeerCategoryChannels.
const TopPeerCategoryCorrespondentsTypeID = 0x637b7ed
TopPeerCategoryCorrespondentsTypeID is TL type id of TopPeerCategoryCorrespondents.
const TopPeerCategoryForwardChatsTypeID = 0xfbeec0f0
TopPeerCategoryForwardChatsTypeID is TL type id of TopPeerCategoryForwardChats.
const TopPeerCategoryForwardUsersTypeID = 0xa8406ca9
TopPeerCategoryForwardUsersTypeID is TL type id of TopPeerCategoryForwardUsers.
const TopPeerCategoryGroupsTypeID = 0xbd17a14a
TopPeerCategoryGroupsTypeID is TL type id of TopPeerCategoryGroups.
const TopPeerCategoryPeersTypeID = 0xfb834291
TopPeerCategoryPeersTypeID is TL type id of TopPeerCategoryPeers.
const TopPeerCategoryPhoneCallsTypeID = 0x1e76a78c
TopPeerCategoryPhoneCallsTypeID is TL type id of TopPeerCategoryPhoneCalls.
const TopPeerTypeID = 0xedcdc05b
TopPeerTypeID is TL type id of TopPeer.
const TrueTypeID = 0x3fedd339
TrueTypeID is TL type id of True.
const UpdateBotCallbackQueryTypeID = 0xe73547e1
UpdateBotCallbackQueryTypeID is TL type id of UpdateBotCallbackQuery.
const UpdateBotInlineQueryTypeID = 0x54826690
UpdateBotInlineQueryTypeID is TL type id of UpdateBotInlineQuery.
const UpdateBotInlineSendTypeID = 0xe48f964
UpdateBotInlineSendTypeID is TL type id of UpdateBotInlineSend.
const UpdateBotPrecheckoutQueryTypeID = 0x5d2f3aa9
UpdateBotPrecheckoutQueryTypeID is TL type id of UpdateBotPrecheckoutQuery.
const UpdateBotShippingQueryTypeID = 0xe0cdc940
UpdateBotShippingQueryTypeID is TL type id of UpdateBotShippingQuery.
const UpdateBotWebhookJSONQueryTypeID = 0x9b9240a6
UpdateBotWebhookJSONQueryTypeID is TL type id of UpdateBotWebhookJSONQuery.
const UpdateBotWebhookJSONTypeID = 0x8317c0c3
UpdateBotWebhookJSONTypeID is TL type id of UpdateBotWebhookJSON.
const UpdateChannelAvailableMessagesTypeID = 0x70db6837
UpdateChannelAvailableMessagesTypeID is TL type id of UpdateChannelAvailableMessages.
const UpdateChannelMessageForwardsTypeID = 0x6e8a84df
UpdateChannelMessageForwardsTypeID is TL type id of UpdateChannelMessageForwards.
const UpdateChannelMessageViewsTypeID = 0x98a12b4b
UpdateChannelMessageViewsTypeID is TL type id of UpdateChannelMessageViews.
const UpdateChannelParticipantTypeID = 0x65d2b464
UpdateChannelParticipantTypeID is TL type id of UpdateChannelParticipant.
const UpdateChannelReadMessagesContentsTypeID = 0x89893b45
UpdateChannelReadMessagesContentsTypeID is TL type id of UpdateChannelReadMessagesContents.
const UpdateChannelTooLongTypeID = 0xeb0467fb
UpdateChannelTooLongTypeID is TL type id of UpdateChannelTooLong.
const UpdateChannelTypeID = 0xb6d45656
UpdateChannelTypeID is TL type id of UpdateChannel.
const UpdateChannelUserTypingTypeID = 0xff2abe9f
UpdateChannelUserTypingTypeID is TL type id of UpdateChannelUserTyping.
const UpdateChannelWebPageTypeID = 0x40771900
UpdateChannelWebPageTypeID is TL type id of UpdateChannelWebPage.
const UpdateChatDefaultBannedRightsTypeID = 0x54c01850
UpdateChatDefaultBannedRightsTypeID is TL type id of UpdateChatDefaultBannedRights.
const UpdateChatParticipantAddTypeID = 0xea4b0e5c
UpdateChatParticipantAddTypeID is TL type id of UpdateChatParticipantAdd.
const UpdateChatParticipantAdminTypeID = 0xb6901959
UpdateChatParticipantAdminTypeID is TL type id of UpdateChatParticipantAdmin.
const UpdateChatParticipantDeleteTypeID = 0x6e5f8c22
UpdateChatParticipantDeleteTypeID is TL type id of UpdateChatParticipantDelete.
const UpdateChatParticipantsTypeID = 0x7761198
UpdateChatParticipantsTypeID is TL type id of UpdateChatParticipants.
const UpdateChatUserTypingTypeID = 0x9a65ea1f
UpdateChatUserTypingTypeID is TL type id of UpdateChatUserTyping.
const UpdateConfigTypeID = 0xa229dd06
UpdateConfigTypeID is TL type id of UpdateConfig.
const UpdateContactsResetTypeID = 0x7084a7be
UpdateContactsResetTypeID is TL type id of UpdateContactsReset.
const UpdateDcOptionsTypeID = 0x8e5e9873
UpdateDcOptionsTypeID is TL type id of UpdateDcOptions.
const UpdateDeleteChannelMessagesTypeID = 0xc37521c9
UpdateDeleteChannelMessagesTypeID is TL type id of UpdateDeleteChannelMessages.
const UpdateDeleteMessagesTypeID = 0xa20db0e5
UpdateDeleteMessagesTypeID is TL type id of UpdateDeleteMessages.
const UpdateDeleteScheduledMessagesTypeID = 0x90866cee
UpdateDeleteScheduledMessagesTypeID is TL type id of UpdateDeleteScheduledMessages.
const UpdateDialogFilterOrderTypeID = 0xa5d72105
UpdateDialogFilterOrderTypeID is TL type id of UpdateDialogFilterOrder.
const UpdateDialogFilterTypeID = 0x26ffde7d
UpdateDialogFilterTypeID is TL type id of UpdateDialogFilter.
const UpdateDialogFiltersTypeID = 0x3504914f
UpdateDialogFiltersTypeID is TL type id of UpdateDialogFilters.
const UpdateDialogPinnedTypeID = 0x6e6fe51c
UpdateDialogPinnedTypeID is TL type id of UpdateDialogPinned.
const UpdateDialogUnreadMarkTypeID = 0xe16459c3
UpdateDialogUnreadMarkTypeID is TL type id of UpdateDialogUnreadMark.
const UpdateDraftMessageTypeID = 0xee2bb969
UpdateDraftMessageTypeID is TL type id of UpdateDraftMessage.
const UpdateEditChannelMessageTypeID = 0x1b3f4df7
UpdateEditChannelMessageTypeID is TL type id of UpdateEditChannelMessage.
const UpdateEditMessageTypeID = 0xe40370a3
UpdateEditMessageTypeID is TL type id of UpdateEditMessage.
const UpdateEncryptedChatTypingTypeID = 0x1710f156
UpdateEncryptedChatTypingTypeID is TL type id of UpdateEncryptedChatTyping.
const UpdateEncryptedMessagesReadTypeID = 0x38fe25b7
UpdateEncryptedMessagesReadTypeID is TL type id of UpdateEncryptedMessagesRead.
const UpdateEncryptionTypeID = 0xb4a2e88d
UpdateEncryptionTypeID is TL type id of UpdateEncryption.
const UpdateFavedStickersTypeID = 0xe511996d
UpdateFavedStickersTypeID is TL type id of UpdateFavedStickers.
const UpdateFolderPeersTypeID = 0x19360dc0
UpdateFolderPeersTypeID is TL type id of UpdateFolderPeers.
const UpdateGeoLiveViewedTypeID = 0x871fb939
UpdateGeoLiveViewedTypeID is TL type id of UpdateGeoLiveViewed.
const UpdateInlineBotCallbackQueryTypeID = 0xf9d27a5a
UpdateInlineBotCallbackQueryTypeID is TL type id of UpdateInlineBotCallbackQuery.
const UpdateLangPackTooLongTypeID = 0x46560264
UpdateLangPackTooLongTypeID is TL type id of UpdateLangPackTooLong.
const UpdateLangPackTypeID = 0x56022f4d
UpdateLangPackTypeID is TL type id of UpdateLangPack.
const UpdateLoginTokenTypeID = 0x564fe691
UpdateLoginTokenTypeID is TL type id of UpdateLoginToken.
const UpdateMessageIDTypeID = 0x4e90bfd6
UpdateMessageIDTypeID is TL type id of UpdateMessageID.
const UpdateMessagePollTypeID = 0xaca1657b
UpdateMessagePollTypeID is TL type id of UpdateMessagePoll.
const UpdateMessagePollVoteTypeID = 0x42f88f2c
UpdateMessagePollVoteTypeID is TL type id of UpdateMessagePollVote.
const UpdateNewChannelMessageTypeID = 0x62ba04d9
UpdateNewChannelMessageTypeID is TL type id of UpdateNewChannelMessage.
const UpdateNewEncryptedMessageTypeID = 0x12bcbd9a
UpdateNewEncryptedMessageTypeID is TL type id of UpdateNewEncryptedMessage.
const UpdateNewMessageTypeID = 0x1f2b0afd
UpdateNewMessageTypeID is TL type id of UpdateNewMessage.
const UpdateNewScheduledMessageTypeID = 0x39a51dfb
UpdateNewScheduledMessageTypeID is TL type id of UpdateNewScheduledMessage.
const UpdateNewStickerSetTypeID = 0x688a30aa
UpdateNewStickerSetTypeID is TL type id of UpdateNewStickerSet.
const UpdateNotifySettingsTypeID = 0xbec268ef
UpdateNotifySettingsTypeID is TL type id of UpdateNotifySettings.
const UpdatePeerBlockedTypeID = 0x246a4b22
UpdatePeerBlockedTypeID is TL type id of UpdatePeerBlocked.
const UpdatePeerLocatedTypeID = 0xb4afcfb0
UpdatePeerLocatedTypeID is TL type id of UpdatePeerLocated.
const UpdatePeerSettingsTypeID = 0x6a7e7366
UpdatePeerSettingsTypeID is TL type id of UpdatePeerSettings.
const UpdatePhoneCallSignalingDataTypeID = 0x2661bf09
UpdatePhoneCallSignalingDataTypeID is TL type id of UpdatePhoneCallSignalingData.
const UpdatePhoneCallTypeID = 0xab0f6b1e
UpdatePhoneCallTypeID is TL type id of UpdatePhoneCall.
const UpdatePinnedChannelMessagesTypeID = 0x8588878b
UpdatePinnedChannelMessagesTypeID is TL type id of UpdatePinnedChannelMessages.
const UpdatePinnedDialogsTypeID = 0xfa0f3ca2
UpdatePinnedDialogsTypeID is TL type id of UpdatePinnedDialogs.
const UpdatePinnedMessagesTypeID = 0xed85eab5
UpdatePinnedMessagesTypeID is TL type id of UpdatePinnedMessages.
const UpdatePrivacyTypeID = 0xee3b272a
UpdatePrivacyTypeID is TL type id of UpdatePrivacy.
const UpdatePtsChangedTypeID = 0x3354678f
UpdatePtsChangedTypeID is TL type id of UpdatePtsChanged.
const UpdateReadChannelDiscussionInboxTypeID = 0x1cc7de54
UpdateReadChannelDiscussionInboxTypeID is TL type id of UpdateReadChannelDiscussionInbox.
const UpdateReadChannelDiscussionOutboxTypeID = 0x4638a26c
UpdateReadChannelDiscussionOutboxTypeID is TL type id of UpdateReadChannelDiscussionOutbox.
const UpdateReadChannelInboxTypeID = 0x330b5424
UpdateReadChannelInboxTypeID is TL type id of UpdateReadChannelInbox.
const UpdateReadChannelOutboxTypeID = 0x25d6c9c7
UpdateReadChannelOutboxTypeID is TL type id of UpdateReadChannelOutbox.
const UpdateReadFeaturedStickersTypeID = 0x571d2742
UpdateReadFeaturedStickersTypeID is TL type id of UpdateReadFeaturedStickers.
const UpdateReadHistoryInboxTypeID = 0x9c974fdf
UpdateReadHistoryInboxTypeID is TL type id of UpdateReadHistoryInbox.
const UpdateReadHistoryOutboxTypeID = 0x2f2f21bf
UpdateReadHistoryOutboxTypeID is TL type id of UpdateReadHistoryOutbox.
const UpdateReadMessagesContentsTypeID = 0x68c13933
UpdateReadMessagesContentsTypeID is TL type id of UpdateReadMessagesContents.
const UpdateRecentStickersTypeID = 0x9a422c20
UpdateRecentStickersTypeID is TL type id of UpdateRecentStickers.
const UpdateSavedGifsTypeID = 0x9375341e
UpdateSavedGifsTypeID is TL type id of UpdateSavedGifs.
const UpdateServiceNotificationTypeID = 0xebe46819
UpdateServiceNotificationTypeID is TL type id of UpdateServiceNotification.
const UpdateShortChatMessageTypeID = 0x402d5dbb
UpdateShortChatMessageTypeID is TL type id of UpdateShortChatMessage.
const UpdateShortMessageTypeID = 0x2296d2c8
UpdateShortMessageTypeID is TL type id of UpdateShortMessage.
const UpdateShortSentMessageTypeID = 0x11f1331c
UpdateShortSentMessageTypeID is TL type id of UpdateShortSentMessage.
const UpdateShortTypeID = 0x78d4dec1
UpdateShortTypeID is TL type id of UpdateShort.
const UpdateStickerSetsOrderTypeID = 0xbb2d201
UpdateStickerSetsOrderTypeID is TL type id of UpdateStickerSetsOrder.
const UpdateStickerSetsTypeID = 0x43ae3dec
UpdateStickerSetsTypeID is TL type id of UpdateStickerSets.
const UpdateThemeTypeID = 0x8216fba3
UpdateThemeTypeID is TL type id of UpdateTheme.
const UpdateUserNameTypeID = 0xa7332b73
UpdateUserNameTypeID is TL type id of UpdateUserName.
const UpdateUserPhoneTypeID = 0x12b9417b
UpdateUserPhoneTypeID is TL type id of UpdateUserPhone.
const UpdateUserPhotoTypeID = 0x95313b0c
UpdateUserPhotoTypeID is TL type id of UpdateUserPhoto.
const UpdateUserStatusTypeID = 0x1bfbd823
UpdateUserStatusTypeID is TL type id of UpdateUserStatus.
const UpdateUserTypingTypeID = 0x5c486927
UpdateUserTypingTypeID is TL type id of UpdateUserTyping.
const UpdateWebPageTypeID = 0x7f891213
UpdateWebPageTypeID is TL type id of UpdateWebPage.
const UpdatesChannelDifferenceEmptyTypeID = 0x3e11affb
UpdatesChannelDifferenceEmptyTypeID is TL type id of UpdatesChannelDifferenceEmpty.
const UpdatesChannelDifferenceTooLongTypeID = 0xa4bcc6fe
UpdatesChannelDifferenceTooLongTypeID is TL type id of UpdatesChannelDifferenceTooLong.
const UpdatesChannelDifferenceTypeID = 0x2064674e
UpdatesChannelDifferenceTypeID is TL type id of UpdatesChannelDifference.
const UpdatesCombinedTypeID = 0x725b04c3
UpdatesCombinedTypeID is TL type id of UpdatesCombined.
const UpdatesDifferenceEmptyTypeID = 0x5d75a138
UpdatesDifferenceEmptyTypeID is TL type id of UpdatesDifferenceEmpty.
const UpdatesDifferenceSliceTypeID = 0xa8fb1981
UpdatesDifferenceSliceTypeID is TL type id of UpdatesDifferenceSlice.
const UpdatesDifferenceTooLongTypeID = 0x4afe8f6d
UpdatesDifferenceTooLongTypeID is TL type id of UpdatesDifferenceTooLong.
const UpdatesDifferenceTypeID = 0xf49ca0
UpdatesDifferenceTypeID is TL type id of UpdatesDifference.
const UpdatesGetChannelDifferenceRequestTypeID = 0x3173d78
UpdatesGetChannelDifferenceRequestTypeID is TL type id of UpdatesGetChannelDifferenceRequest.
const UpdatesGetDifferenceRequestTypeID = 0x25939651
UpdatesGetDifferenceRequestTypeID is TL type id of UpdatesGetDifferenceRequest.
const UpdatesGetStateRequestTypeID = 0xedd4882a
UpdatesGetStateRequestTypeID is TL type id of UpdatesGetStateRequest.
const UpdatesStateTypeID = 0xa56c2a3e
UpdatesStateTypeID is TL type id of UpdatesState.
const UpdatesTooLongTypeID = 0xe317af7e
UpdatesTooLongTypeID is TL type id of UpdatesTooLong.
const UpdatesTypeID = 0x74ae4240
UpdatesTypeID is TL type id of Updates.
const UploadCdnFileReuploadNeededTypeID = 0xeea8e46e
UploadCdnFileReuploadNeededTypeID is TL type id of UploadCdnFileReuploadNeeded.
const UploadCdnFileTypeID = 0xa99fca4f
UploadCdnFileTypeID is TL type id of UploadCdnFile.
const UploadFileCdnRedirectTypeID = 0xf18cda44
UploadFileCdnRedirectTypeID is TL type id of UploadFileCdnRedirect.
const UploadFileTypeID = 0x96a18d5
UploadFileTypeID is TL type id of UploadFile.
const UploadGetCdnFileHashesRequestTypeID = 0x4da54231
UploadGetCdnFileHashesRequestTypeID is TL type id of UploadGetCdnFileHashesRequest.
const UploadGetCdnFileRequestTypeID = 0x2000bcc3
UploadGetCdnFileRequestTypeID is TL type id of UploadGetCdnFileRequest.
const UploadGetFileHashesRequestTypeID = 0xc7025931
UploadGetFileHashesRequestTypeID is TL type id of UploadGetFileHashesRequest.
const UploadGetFileRequestTypeID = 0xb15a9afc
UploadGetFileRequestTypeID is TL type id of UploadGetFileRequest.
const UploadGetWebFileRequestTypeID = 0x24e6818d
UploadGetWebFileRequestTypeID is TL type id of UploadGetWebFileRequest.
const UploadReuploadCdnFileRequestTypeID = 0x9b2754a8
UploadReuploadCdnFileRequestTypeID is TL type id of UploadReuploadCdnFileRequest.
const UploadSaveBigFilePartRequestTypeID = 0xde7b673d
UploadSaveBigFilePartRequestTypeID is TL type id of UploadSaveBigFilePartRequest.
const UploadSaveFilePartRequestTypeID = 0xb304a621
UploadSaveFilePartRequestTypeID is TL type id of UploadSaveFilePartRequest.
const UploadWebFileTypeID = 0x21e753bc
UploadWebFileTypeID is TL type id of UploadWebFile.
const UrlAuthResultAcceptedTypeID = 0x8f8c0e4e
UrlAuthResultAcceptedTypeID is TL type id of UrlAuthResultAccepted.
const UrlAuthResultDefaultTypeID = 0xa9d6db1f
UrlAuthResultDefaultTypeID is TL type id of UrlAuthResultDefault.
const UrlAuthResultRequestTypeID = 0x92d33a0e
UrlAuthResultRequestTypeID is TL type id of UrlAuthResultRequest.
const UserEmptyTypeID = 0x200250ba
UserEmptyTypeID is TL type id of UserEmpty.
const UserFullTypeID = 0xedf17c12
UserFullTypeID is TL type id of UserFull.
const UserProfilePhotoEmptyTypeID = 0x4f11bae1
UserProfilePhotoEmptyTypeID is TL type id of UserProfilePhotoEmpty.
const UserProfilePhotoTypeID = 0x69d3ab26
UserProfilePhotoTypeID is TL type id of UserProfilePhoto.
const UserStatusEmptyTypeID = 0x9d05049
UserStatusEmptyTypeID is TL type id of UserStatusEmpty.
const UserStatusLastMonthTypeID = 0x77ebc742
UserStatusLastMonthTypeID is TL type id of UserStatusLastMonth.
const UserStatusLastWeekTypeID = 0x7bf09fc
UserStatusLastWeekTypeID is TL type id of UserStatusLastWeek.
const UserStatusOfflineTypeID = 0x8c703f
UserStatusOfflineTypeID is TL type id of UserStatusOffline.
const UserStatusOnlineTypeID = 0xedb93949
UserStatusOnlineTypeID is TL type id of UserStatusOnline.
const UserStatusRecentlyTypeID = 0xe26f42f1
UserStatusRecentlyTypeID is TL type id of UserStatusRecently.
const UserTypeID = 0x938458c1
UserTypeID is TL type id of User.
const UsersGetFullUserRequestTypeID = 0xca30a5b1
UsersGetFullUserRequestTypeID is TL type id of UsersGetFullUserRequest.
const UsersGetUsersRequestTypeID = 0xd91a548
UsersGetUsersRequestTypeID is TL type id of UsersGetUsersRequest.
const UsersSetSecureValueErrorsRequestTypeID = 0x90c894b5
UsersSetSecureValueErrorsRequestTypeID is TL type id of UsersSetSecureValueErrorsRequest.
const VideoSizeTypeID = 0xe831c556
VideoSizeTypeID is TL type id of VideoSize.
const WallPaperNoFileTypeID = 0x8af40b25
WallPaperNoFileTypeID is TL type id of WallPaperNoFile.
const WallPaperSettingsTypeID = 0x5086cf8
WallPaperSettingsTypeID is TL type id of WallPaperSettings.
const WallPaperTypeID = 0xa437c3ed
WallPaperTypeID is TL type id of WallPaper.
const WebAuthorizationTypeID = 0xcac943f2
WebAuthorizationTypeID is TL type id of WebAuthorization.
const WebDocumentNoProxyTypeID = 0xf9c8bcc6
WebDocumentNoProxyTypeID is TL type id of WebDocumentNoProxy.
const WebDocumentTypeID = 0x1c570ed1
WebDocumentTypeID is TL type id of WebDocument.
const WebPageAttributeThemeTypeID = 0x54b56617
WebPageAttributeThemeTypeID is TL type id of WebPageAttributeTheme.
const WebPageEmptyTypeID = 0xeb1477e8
WebPageEmptyTypeID is TL type id of WebPageEmpty.
const WebPageNotModifiedTypeID = 0x7311ca11
WebPageNotModifiedTypeID is TL type id of WebPageNotModified.
const WebPagePendingTypeID = 0xc586da1c
WebPagePendingTypeID is TL type id of WebPagePending.
const WebPageTypeID = 0xe89c45b2
WebPageTypeID is TL type id of WebPage.
Variables ¶
This section is empty.
Functions ¶
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`.
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`.
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`.
type AccountCancelPasswordEmailRequest ¶
type AccountCancelPasswordEmailRequest struct {
}
AccountCancelPasswordEmailRequest represents TL type `account.cancelPasswordEmail#c1cbd5b6`.
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`.
type AccountCheckUsernameRequest ¶
type AccountCheckUsernameRequest struct {
// Username field of AccountCheckUsernameRequest.
Username string
}
AccountCheckUsernameRequest represents TL type `account.checkUsername#2714d86c`.
type AccountConfirmPasswordEmailRequest ¶
type AccountConfirmPasswordEmailRequest struct {
// Code field of AccountConfirmPasswordEmailRequest.
Code string
}
AccountConfirmPasswordEmailRequest represents TL type `account.confirmPasswordEmail#8fdf1920`.
type AccountConfirmPhoneRequest ¶
type AccountConfirmPhoneRequest struct {
// PhoneCodeHash field of AccountConfirmPhoneRequest.
PhoneCodeHash string
// PhoneCode field of AccountConfirmPhoneRequest.
PhoneCode string
}
AccountConfirmPhoneRequest represents TL type `account.confirmPhone#5f2178c3`.
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`.
type AccountDeleteAccountRequest ¶
type AccountDeleteAccountRequest struct {
// Reason field of AccountDeleteAccountRequest.
Reason string
}
AccountDeleteAccountRequest represents TL type `account.deleteAccount#418d4e0b`.
type AccountDeleteSecureValueRequest ¶
type AccountDeleteSecureValueRequest struct {
// Types field of AccountDeleteSecureValueRequest.
Types []SecureValueTypeClass
}
AccountDeleteSecureValueRequest represents TL type `account.deleteSecureValue#b880bc4b`.
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 ¶
func (f *AccountFinishTakeoutSessionRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AccountFinishTakeoutSessionRequest) Encode ¶
func (f *AccountFinishTakeoutSessionRequest) Encode(b *bin.Buffer) error
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`.
type AccountGetAllSecureValuesRequest ¶
type AccountGetAllSecureValuesRequest struct {
}
AccountGetAllSecureValuesRequest represents TL type `account.getAllSecureValues#b288bc7d`.
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`.
type AccountGetAuthorizationsRequest ¶
type AccountGetAuthorizationsRequest struct {
}
AccountGetAuthorizationsRequest represents TL type `account.getAuthorizations#e320c158`.
type AccountGetAutoDownloadSettingsRequest ¶
type AccountGetAutoDownloadSettingsRequest struct {
}
AccountGetAutoDownloadSettingsRequest represents TL type `account.getAutoDownloadSettings#56da0b3f`.
type AccountGetContactSignUpNotificationRequest ¶
type AccountGetContactSignUpNotificationRequest struct {
}
AccountGetContactSignUpNotificationRequest represents TL type `account.getContactSignUpNotification#9f07c728`.
type AccountGetContentSettingsRequest ¶
type AccountGetContentSettingsRequest struct {
}
AccountGetContentSettingsRequest represents TL type `account.getContentSettings#8b9b4dae`.
type AccountGetGlobalPrivacySettingsRequest ¶
type AccountGetGlobalPrivacySettingsRequest struct {
}
AccountGetGlobalPrivacySettingsRequest represents TL type `account.getGlobalPrivacySettings#eb2b4cf6`.
type AccountGetMultiWallPapersRequest ¶
type AccountGetMultiWallPapersRequest struct {
// Wallpapers field of AccountGetMultiWallPapersRequest.
Wallpapers []InputWallPaperClass
}
AccountGetMultiWallPapersRequest represents TL type `account.getMultiWallPapers#65ad71dc`.
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 ¶
func (g *AccountGetNotifyExceptionsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AccountGetNotifyExceptionsRequest) Encode ¶
func (g *AccountGetNotifyExceptionsRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*AccountGetNotifyExceptionsRequest) GetPeer ¶
func (g *AccountGetNotifyExceptionsRequest) GetPeer() (value InputNotifyPeerClass, ok bool)
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 ¶
func (g *AccountGetNotifyExceptionsRequest) SetPeer(value InputNotifyPeerClass)
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`.
type AccountGetPasswordRequest ¶
type AccountGetPasswordRequest struct {
}
AccountGetPasswordRequest represents TL type `account.getPassword#548a30f5`.
type AccountGetPasswordSettingsRequest ¶
type AccountGetPasswordSettingsRequest struct {
// Password field of AccountGetPasswordSettingsRequest.
Password InputCheckPasswordSRPClass
}
AccountGetPasswordSettingsRequest represents TL type `account.getPasswordSettings#9cd4eaf9`.
type AccountGetPrivacyRequest ¶
type AccountGetPrivacyRequest struct {
// Key field of AccountGetPrivacyRequest.
Key InputPrivacyKeyClass
}
AccountGetPrivacyRequest represents TL type `account.getPrivacy#dadbc950`.
type AccountGetSecureValueRequest ¶
type AccountGetSecureValueRequest struct {
// Types field of AccountGetSecureValueRequest.
Types []SecureValueTypeClass
}
AccountGetSecureValueRequest represents TL type `account.getSecureValue#73665bc2`.
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`.
type AccountGetThemesRequest ¶
type AccountGetThemesRequest struct {
// Format field of AccountGetThemesRequest.
Format string
// Hash field of AccountGetThemesRequest.
Hash int
}
AccountGetThemesRequest represents TL type `account.getThemes#285946f8`.
type AccountGetTmpPasswordRequest ¶
type AccountGetTmpPasswordRequest struct {
// Password field of AccountGetTmpPasswordRequest.
Password InputCheckPasswordSRPClass
// Period field of AccountGetTmpPasswordRequest.
Period int
}
AccountGetTmpPasswordRequest represents TL type `account.getTmpPassword#449e0b51`.
type AccountGetWallPaperRequest ¶
type AccountGetWallPaperRequest struct {
// Wallpaper field of AccountGetWallPaperRequest.
Wallpaper InputWallPaperClass
}
AccountGetWallPaperRequest represents TL type `account.getWallPaper#fc8ddbea`.
type AccountGetWallPapersRequest ¶
type AccountGetWallPapersRequest struct {
// Hash field of AccountGetWallPapersRequest.
Hash int
}
AccountGetWallPapersRequest represents TL type `account.getWallPapers#aabb1763`.
type AccountGetWebAuthorizationsRequest ¶
type AccountGetWebAuthorizationsRequest struct {
}
AccountGetWebAuthorizationsRequest represents TL type `account.getWebAuthorizations#182e6d6f`.
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 ¶
func (i *AccountInitTakeoutSessionRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AccountInitTakeoutSessionRequest) Encode ¶
func (i *AccountInitTakeoutSessionRequest) Encode(b *bin.Buffer) error
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 ¶
func (i *AccountInstallThemeRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AccountInstallThemeRequest) Encode ¶
func (i *AccountInstallThemeRequest) Encode(b *bin.Buffer) error
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`.
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 ¶
func (p *AccountPasswordInputSettings) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AccountPasswordInputSettings) Encode ¶
func (p *AccountPasswordInputSettings) Encode(b *bin.Buffer) error
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 ¶
func (p *AccountPasswordInputSettings) SetNewAlgo(value PasswordKdfAlgoClass)
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`.
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 ¶
func (r *AccountRegisterDeviceRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AccountRegisterDeviceRequest) Encode ¶
func (r *AccountRegisterDeviceRequest) Encode(b *bin.Buffer) error
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`.
type AccountResendPasswordEmailRequest ¶
type AccountResendPasswordEmailRequest struct {
}
AccountResendPasswordEmailRequest represents TL type `account.resendPasswordEmail#7a7f2a15`.
type AccountResetAuthorizationRequest ¶
type AccountResetAuthorizationRequest struct {
// Hash field of AccountResetAuthorizationRequest.
Hash int64
}
AccountResetAuthorizationRequest represents TL type `account.resetAuthorization#df77f3bc`.
type AccountResetNotifySettingsRequest ¶
type AccountResetNotifySettingsRequest struct {
}
AccountResetNotifySettingsRequest represents TL type `account.resetNotifySettings#db7e1747`.
type AccountResetWallPapersRequest ¶
type AccountResetWallPapersRequest struct {
}
AccountResetWallPapersRequest represents TL type `account.resetWallPapers#bb3b9804`.
type AccountResetWebAuthorizationRequest ¶
type AccountResetWebAuthorizationRequest struct {
// Hash field of AccountResetWebAuthorizationRequest.
Hash int64
}
AccountResetWebAuthorizationRequest represents TL type `account.resetWebAuthorization#2d01b9ef`.
type AccountResetWebAuthorizationsRequest ¶
type AccountResetWebAuthorizationsRequest struct {
}
AccountResetWebAuthorizationsRequest represents TL type `account.resetWebAuthorizations#682d2594`.
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 ¶
func (s *AccountSaveAutoDownloadSettingsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AccountSaveAutoDownloadSettingsRequest) Encode ¶
func (s *AccountSaveAutoDownloadSettingsRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*AccountSaveAutoDownloadSettingsRequest) SetHigh ¶
func (s *AccountSaveAutoDownloadSettingsRequest) SetHigh(value bool)
SetHigh sets value of High conditional field.
func (*AccountSaveAutoDownloadSettingsRequest) SetLow ¶
func (s *AccountSaveAutoDownloadSettingsRequest) SetLow(value bool)
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`.
type AccountSaveThemeRequest ¶
type AccountSaveThemeRequest struct {
// Theme field of AccountSaveThemeRequest.
Theme InputThemeClass
// Unsave field of AccountSaveThemeRequest.
Unsave bool
}
AccountSaveThemeRequest represents TL type `account.saveTheme#f257106c`.
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`.
type AccountSendChangePhoneCodeRequest ¶
type AccountSendChangePhoneCodeRequest struct {
// PhoneNumber field of AccountSendChangePhoneCodeRequest.
PhoneNumber string
// Settings field of AccountSendChangePhoneCodeRequest.
Settings CodeSettings
}
AccountSendChangePhoneCodeRequest represents TL type `account.sendChangePhoneCode#82574ae5`.
type AccountSendConfirmPhoneCodeRequest ¶
type AccountSendConfirmPhoneCodeRequest struct {
// Hash field of AccountSendConfirmPhoneCodeRequest.
Hash string
// Settings field of AccountSendConfirmPhoneCodeRequest.
Settings CodeSettings
}
AccountSendConfirmPhoneCodeRequest represents TL type `account.sendConfirmPhoneCode#1b3faa88`.
type AccountSendVerifyEmailCodeRequest ¶
type AccountSendVerifyEmailCodeRequest struct {
// Email field of AccountSendVerifyEmailCodeRequest.
Email string
}
AccountSendVerifyEmailCodeRequest represents TL type `account.sendVerifyEmailCode#7011509f`.
type AccountSendVerifyPhoneCodeRequest ¶
type AccountSendVerifyPhoneCodeRequest struct {
// PhoneNumber field of AccountSendVerifyPhoneCodeRequest.
PhoneNumber string
// Settings field of AccountSendVerifyPhoneCodeRequest.
Settings CodeSettings
}
AccountSendVerifyPhoneCodeRequest represents TL type `account.sendVerifyPhoneCode#a5a356f9`.
type AccountSentEmailCode ¶
type AccountSentEmailCode struct {
// EmailPattern field of AccountSentEmailCode.
EmailPattern string
// Length field of AccountSentEmailCode.
Length int
}
AccountSentEmailCode represents TL type `account.sentEmailCode#811f854f`.
type AccountSetAccountTTLRequest ¶
type AccountSetAccountTTLRequest struct {
// TTL field of AccountSetAccountTTLRequest.
TTL AccountDaysTTL
}
AccountSetAccountTTLRequest represents TL type `account.setAccountTTL#2442485e`.
type AccountSetContactSignUpNotificationRequest ¶
type AccountSetContactSignUpNotificationRequest struct {
// Silent field of AccountSetContactSignUpNotificationRequest.
Silent bool
}
AccountSetContactSignUpNotificationRequest represents TL type `account.setContactSignUpNotification#cff43f61`.
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 ¶
func (s *AccountSetContentSettingsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AccountSetContentSettingsRequest) Encode ¶
func (s *AccountSetContentSettingsRequest) Encode(b *bin.Buffer) error
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`.
type AccountSetPrivacyRequest ¶
type AccountSetPrivacyRequest struct {
// Key field of AccountSetPrivacyRequest.
Key InputPrivacyKeyClass
// Rules field of AccountSetPrivacyRequest.
Rules []InputPrivacyRuleClass
}
AccountSetPrivacyRequest represents TL type `account.setPrivacy#c9f81ce8`.
type AccountTakeout ¶
type AccountTakeout struct {
// ID field of AccountTakeout.
ID int64
}
AccountTakeout represents TL type `account.takeout#4dba4501`.
type AccountThemes ¶
type AccountThemes struct {
// Hash field of AccountThemes.
Hash int
// Themes field of AccountThemes.
Themes []Theme
}
AccountThemes represents TL type `account.themes#7f676421`.
type AccountThemesBox ¶
type AccountThemesBox struct {
Themes AccountThemesClass
}
AccountThemes boxes the AccountThemesClass providing a helper.
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`.
type AccountTmpPassword ¶
type AccountTmpPassword struct {
// TmpPassword field of AccountTmpPassword.
TmpPassword []byte
// ValidUntil field of AccountTmpPassword.
ValidUntil int
}
AccountTmpPassword represents TL type `account.tmpPassword#db64fd34`.
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`.
type AccountUpdateDeviceLockedRequest ¶
type AccountUpdateDeviceLockedRequest struct {
// Period field of AccountUpdateDeviceLockedRequest.
Period int
}
AccountUpdateDeviceLockedRequest represents TL type `account.updateDeviceLocked#38df3532`.
type AccountUpdateNotifySettingsRequest ¶
type AccountUpdateNotifySettingsRequest struct {
// Peer field of AccountUpdateNotifySettingsRequest.
Peer InputNotifyPeerClass
// Settings field of AccountUpdateNotifySettingsRequest.
Settings InputPeerNotifySettings
}
AccountUpdateNotifySettingsRequest represents TL type `account.updateNotifySettings#84be5b93`.
type AccountUpdatePasswordSettingsRequest ¶
type AccountUpdatePasswordSettingsRequest struct {
// Password field of AccountUpdatePasswordSettingsRequest.
Password InputCheckPasswordSRPClass
// NewSettings field of AccountUpdatePasswordSettingsRequest.
NewSettings AccountPasswordInputSettings
}
AccountUpdatePasswordSettingsRequest represents TL type `account.updatePasswordSettings#a59b102f`.
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 ¶
func (u *AccountUpdateProfileRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AccountUpdateProfileRequest) Encode ¶
func (u *AccountUpdateProfileRequest) Encode(b *bin.Buffer) error
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`.
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`.
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`.
type AccountVerifyEmailRequest ¶
type AccountVerifyEmailRequest struct {
// Email field of AccountVerifyEmailRequest.
Email string
// Code field of AccountVerifyEmailRequest.
Code string
}
AccountVerifyEmailRequest represents TL type `account.verifyEmail#ecba39db`.
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`.
type AccountWallPapers ¶
type AccountWallPapers struct {
// Hash field of AccountWallPapers.
Hash int
// Wallpapers field of AccountWallPapers.
Wallpapers []WallPaperClass
}
AccountWallPapers represents TL type `account.wallPapers#702b65a9`.
type AccountWallPapersBox ¶
type AccountWallPapersBox struct {
WallPapers AccountWallPapersClass
}
AccountWallPapers boxes the AccountWallPapersClass providing a helper.
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`.
type AccountWebAuthorizations ¶
type AccountWebAuthorizations struct {
// Authorizations field of AccountWebAuthorizations.
Authorizations []WebAuthorization
// Users field of AccountWebAuthorizations.
Users []UserClass
}
AccountWebAuthorizations represents TL type `account.webAuthorizations#ed56c9fc`.
type AuthAcceptLoginTokenRequest ¶
type AuthAcceptLoginTokenRequest struct {
// Token field of AuthAcceptLoginTokenRequest.
Token []byte
}
AuthAcceptLoginTokenRequest represents TL type `auth.acceptLoginToken#e894ad4d`.
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.
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 ¶
func (a *AuthAuthorizationSignUpRequired) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*AuthAuthorizationSignUpRequired) Encode ¶
func (a *AuthAuthorizationSignUpRequired) Encode(b *bin.Buffer) error
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`.
type AuthCancelCodeRequest ¶
type AuthCancelCodeRequest struct {
// PhoneNumber field of AuthCancelCodeRequest.
PhoneNumber string
// PhoneCodeHash field of AuthCancelCodeRequest.
PhoneCodeHash string
}
AuthCancelCodeRequest represents TL type `auth.cancelCode#1f040578`.
type AuthCheckPasswordRequest ¶
type AuthCheckPasswordRequest struct {
// Password field of AuthCheckPasswordRequest.
Password InputCheckPasswordSRPClass
}
AuthCheckPasswordRequest represents TL type `auth.checkPassword#d18b4d16`.
type AuthCodeTypeBox ¶
type AuthCodeTypeBox struct {
CodeType AuthCodeTypeClass
}
AuthCodeType boxes the AuthCodeTypeClass providing a helper.
type AuthCodeTypeCall ¶
type AuthCodeTypeCall struct {
}
AuthCodeTypeCall represents TL type `auth.codeTypeCall#741cd3e3`.
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`.
type AuthCodeTypeSms ¶
type AuthCodeTypeSms struct {
}
AuthCodeTypeSms represents TL type `auth.codeTypeSms#72a3158c`.
type AuthDropTempAuthKeysRequest ¶
type AuthDropTempAuthKeysRequest struct {
// ExceptAuthKeys field of AuthDropTempAuthKeysRequest.
ExceptAuthKeys []int64
}
AuthDropTempAuthKeysRequest represents TL type `auth.dropTempAuthKeys#8e48a188`.
type AuthExportAuthorizationRequest ¶
type AuthExportAuthorizationRequest struct {
// DCID field of AuthExportAuthorizationRequest.
DCID int
}
AuthExportAuthorizationRequest represents TL type `auth.exportAuthorization#e5bfffcd`.
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`.
type AuthExportedAuthorization ¶
type AuthExportedAuthorization struct {
// ID field of AuthExportedAuthorization.
ID int
// Bytes field of AuthExportedAuthorization.
Bytes []byte
}
AuthExportedAuthorization represents TL type `auth.exportedAuthorization#df969c2d`.
type AuthImportAuthorizationRequest ¶
type AuthImportAuthorizationRequest struct {
// ID field of AuthImportAuthorizationRequest.
ID int
// Bytes field of AuthImportAuthorizationRequest.
Bytes []byte
}
AuthImportAuthorizationRequest represents TL type `auth.importAuthorization#e3ef9613`.
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`.
type AuthImportLoginTokenRequest ¶
type AuthImportLoginTokenRequest struct {
// Token field of AuthImportLoginTokenRequest.
Token []byte
}
AuthImportLoginTokenRequest represents TL type `auth.importLoginToken#95ac5ce4`.
type AuthLogOutRequest ¶
type AuthLogOutRequest struct {
}
AuthLogOutRequest represents TL type `auth.logOut#5717da40`.
type AuthLoginToken ¶
type AuthLoginToken struct {
// Expires field of AuthLoginToken.
Expires int
// Token field of AuthLoginToken.
Token []byte
}
AuthLoginToken represents TL type `auth.loginToken#629f1980`.
type AuthLoginTokenBox ¶
type AuthLoginTokenBox struct {
LoginToken AuthLoginTokenClass
}
AuthLoginToken boxes the AuthLoginTokenClass providing a helper.
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`.
type AuthLoginTokenSuccess ¶
type AuthLoginTokenSuccess struct {
// Authorization field of AuthLoginTokenSuccess.
Authorization AuthAuthorizationClass
}
AuthLoginTokenSuccess represents TL type `auth.loginTokenSuccess#390d5c5e`.
type AuthPasswordRecovery ¶
type AuthPasswordRecovery struct {
// EmailPattern field of AuthPasswordRecovery.
EmailPattern string
}
AuthPasswordRecovery represents TL type `auth.passwordRecovery#137948a5`.
type AuthRecoverPasswordRequest ¶
type AuthRecoverPasswordRequest struct {
// Code field of AuthRecoverPasswordRequest.
Code string
}
AuthRecoverPasswordRequest represents TL type `auth.recoverPassword#4ea56e92`.
type AuthRequestPasswordRecoveryRequest ¶
type AuthRequestPasswordRecoveryRequest struct {
}
AuthRequestPasswordRecoveryRequest represents TL type `auth.requestPasswordRecovery#d897bc66`.
type AuthResendCodeRequest ¶
type AuthResendCodeRequest struct {
// PhoneNumber field of AuthResendCodeRequest.
PhoneNumber string
// PhoneCodeHash field of AuthResendCodeRequest.
PhoneCodeHash string
}
AuthResendCodeRequest represents TL type `auth.resendCode#3ef1a9bf`.
type AuthResetAuthorizationsRequest ¶
type AuthResetAuthorizationsRequest struct {
}
AuthResetAuthorizationsRequest represents TL type `auth.resetAuthorizations#9fab0d1a`.
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`.
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`.
type AuthSentCodeTypeBox ¶
type AuthSentCodeTypeBox struct {
SentCodeType AuthSentCodeTypeClass
}
AuthSentCodeType boxes the AuthSentCodeTypeClass providing a helper.
type AuthSentCodeTypeCall ¶
type AuthSentCodeTypeCall struct {
// Length field of AuthSentCodeTypeCall.
Length int
}
AuthSentCodeTypeCall represents TL type `auth.sentCodeTypeCall#5353e5a7`.
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`.
type AuthSentCodeTypeSms ¶
type AuthSentCodeTypeSms struct {
// Length field of AuthSentCodeTypeSms.
Length int
}
AuthSentCodeTypeSms represents TL type `auth.sentCodeTypeSms#c000bba2`.
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`.
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`.
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`.
type BaseThemeArctic ¶
type BaseThemeArctic struct {
}
BaseThemeArctic represents TL type `baseThemeArctic#5b11125a`.
type BaseThemeBox ¶
type BaseThemeBox struct {
BaseTheme BaseThemeClass
}
BaseTheme boxes the BaseThemeClass providing a helper.
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`.
type BaseThemeDay ¶
type BaseThemeDay struct {
}
BaseThemeDay represents TL type `baseThemeDay#fbd81688`.
type BaseThemeNight ¶
type BaseThemeNight struct {
}
BaseThemeNight represents TL type `baseThemeNight#b7b31ea8`.
type BaseThemeTinted ¶
type BaseThemeTinted struct {
}
BaseThemeTinted represents TL type `baseThemeTinted#6d5f77ee`.
type BoolBox ¶
type BoolBox struct {
Bool BoolClass
}
Bool boxes the BoolClass providing a helper.
type BoolClass ¶
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)
}
type BoolFalse ¶
type BoolFalse struct {
}
BoolFalse represents TL type `boolFalse#bc799737`.
type BoolTrue ¶
type BoolTrue struct {
}
BoolTrue represents TL type `boolTrue#997275b5`.
type BotCommand ¶
type BotCommand struct {
// Command field of BotCommand.
Command string
// Description field of BotCommand.
Description string
}
BotCommand represents TL type `botCommand#c27ac8c7`.
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`.
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.
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.
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`.
type BotsSendCustomRequestRequest ¶
type BotsSendCustomRequestRequest struct {
// CustomMethod field of BotsSendCustomRequestRequest.
CustomMethod string
// Params field of BotsSendCustomRequestRequest.
Params DataJSON
}
BotsSendCustomRequestRequest represents TL type `bots.sendCustomRequest#aa2769ed`.
type BotsSetBotCommandsRequest ¶
type BotsSetBotCommandsRequest struct {
// Commands field of BotsSetBotCommandsRequest.
Commands []BotCommand
}
BotsSetBotCommandsRequest represents TL type `bots.setBotCommands#805d46f6`.
type CdnConfig ¶
type CdnConfig struct {
// PublicKeys field of CdnConfig.
PublicKeys []CdnPublicKey
}
CdnConfig represents TL type `cdnConfig#5725e40a`.
type CdnPublicKey ¶
type CdnPublicKey struct {
// DCID field of CdnPublicKey.
DCID int
// PublicKey field of CdnPublicKey.
PublicKey string
}
CdnPublicKey represents TL type `cdnPublicKey#c982eaba`.
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) GetAccessHash ¶
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 ¶
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 ¶
GetUsername returns value of Username conditional field and boolean which is true if field was set.
func (*Channel) SetAccessHash ¶
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 ¶
SetBroadcast sets value of Broadcast conditional field.
func (*Channel) SetCallActive ¶
SetCallActive sets value of CallActive conditional field.
func (*Channel) SetCreator ¶
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) SetHasLink ¶
SetHasLink sets value of HasLink conditional field.
func (*Channel) SetMegagroup ¶
SetMegagroup sets value of Megagroup conditional field.
func (*Channel) SetParticipantsCount ¶
SetParticipantsCount sets value of ParticipantsCount conditional field.
func (*Channel) SetRestricted ¶
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) SetSignatures ¶
SetSignatures sets value of Signatures conditional field.
func (*Channel) SetSlowmodeEnabled ¶
SetSlowmodeEnabled sets value of SlowmodeEnabled conditional field.
func (*Channel) SetUsername ¶
SetUsername sets value of Username conditional field.
func (*Channel) SetVerified ¶
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`.
type ChannelAdminLogEventActionBox ¶
type ChannelAdminLogEventActionBox struct {
ChannelAdminLogEventAction ChannelAdminLogEventActionClass
}
ChannelAdminLogEventAction boxes the ChannelAdminLogEventActionClass providing a helper.
type ChannelAdminLogEventActionChangeAbout ¶
type ChannelAdminLogEventActionChangeAbout struct {
// PrevValue field of ChannelAdminLogEventActionChangeAbout.
PrevValue string
// NewValue field of ChannelAdminLogEventActionChangeAbout.
NewValue string
}
ChannelAdminLogEventActionChangeAbout represents TL type `channelAdminLogEventActionChangeAbout#55188a2e`.
type ChannelAdminLogEventActionChangeLinkedChat ¶
type ChannelAdminLogEventActionChangeLinkedChat struct {
// PrevValue field of ChannelAdminLogEventActionChangeLinkedChat.
PrevValue int
// NewValue field of ChannelAdminLogEventActionChangeLinkedChat.
NewValue int
}
ChannelAdminLogEventActionChangeLinkedChat represents TL type `channelAdminLogEventActionChangeLinkedChat#a26f881b`.
type ChannelAdminLogEventActionChangeLocation ¶
type ChannelAdminLogEventActionChangeLocation struct {
// PrevValue field of ChannelAdminLogEventActionChangeLocation.
PrevValue ChannelLocationClass
// NewValue field of ChannelAdminLogEventActionChangeLocation.
NewValue ChannelLocationClass
}
ChannelAdminLogEventActionChangeLocation represents TL type `channelAdminLogEventActionChangeLocation#e6b76ae`.
type ChannelAdminLogEventActionChangePhoto ¶
type ChannelAdminLogEventActionChangePhoto struct {
// PrevPhoto field of ChannelAdminLogEventActionChangePhoto.
PrevPhoto PhotoClass
// NewPhoto field of ChannelAdminLogEventActionChangePhoto.
NewPhoto PhotoClass
}
ChannelAdminLogEventActionChangePhoto represents TL type `channelAdminLogEventActionChangePhoto#434bd2af`.
type ChannelAdminLogEventActionChangeStickerSet ¶
type ChannelAdminLogEventActionChangeStickerSet struct {
// PrevStickerset field of ChannelAdminLogEventActionChangeStickerSet.
PrevStickerset InputStickerSetClass
// NewStickerset field of ChannelAdminLogEventActionChangeStickerSet.
NewStickerset InputStickerSetClass
}
ChannelAdminLogEventActionChangeStickerSet represents TL type `channelAdminLogEventActionChangeStickerSet#b1c3caa7`.
type ChannelAdminLogEventActionChangeTitle ¶
type ChannelAdminLogEventActionChangeTitle struct {
// PrevValue field of ChannelAdminLogEventActionChangeTitle.
PrevValue string
// NewValue field of ChannelAdminLogEventActionChangeTitle.
NewValue string
}
ChannelAdminLogEventActionChangeTitle represents TL type `channelAdminLogEventActionChangeTitle#e6dfb825`.
type ChannelAdminLogEventActionChangeUsername ¶
type ChannelAdminLogEventActionChangeUsername struct {
// PrevValue field of ChannelAdminLogEventActionChangeUsername.
PrevValue string
// NewValue field of ChannelAdminLogEventActionChangeUsername.
NewValue string
}
ChannelAdminLogEventActionChangeUsername represents TL type `channelAdminLogEventActionChangeUsername#6a4afc38`.
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`.
type ChannelAdminLogEventActionDeleteMessage ¶
type ChannelAdminLogEventActionDeleteMessage struct {
// Message field of ChannelAdminLogEventActionDeleteMessage.
Message MessageClass
}
ChannelAdminLogEventActionDeleteMessage represents TL type `channelAdminLogEventActionDeleteMessage#42e047bb`.
type ChannelAdminLogEventActionEditMessage ¶
type ChannelAdminLogEventActionEditMessage struct {
// PrevMessage field of ChannelAdminLogEventActionEditMessage.
PrevMessage MessageClass
// NewMessage field of ChannelAdminLogEventActionEditMessage.
NewMessage MessageClass
}
ChannelAdminLogEventActionEditMessage represents TL type `channelAdminLogEventActionEditMessage#709b2405`.
type ChannelAdminLogEventActionParticipantInvite ¶
type ChannelAdminLogEventActionParticipantInvite struct {
// Participant field of ChannelAdminLogEventActionParticipantInvite.
Participant ChannelParticipantClass
}
ChannelAdminLogEventActionParticipantInvite represents TL type `channelAdminLogEventActionParticipantInvite#e31c34d8`.
type ChannelAdminLogEventActionParticipantJoin ¶
type ChannelAdminLogEventActionParticipantJoin struct {
}
ChannelAdminLogEventActionParticipantJoin represents TL type `channelAdminLogEventActionParticipantJoin#183040d3`.
type ChannelAdminLogEventActionParticipantLeave ¶
type ChannelAdminLogEventActionParticipantLeave struct {
}
ChannelAdminLogEventActionParticipantLeave represents TL type `channelAdminLogEventActionParticipantLeave#f89777f2`.
type ChannelAdminLogEventActionParticipantToggleAdmin ¶
type ChannelAdminLogEventActionParticipantToggleAdmin struct {
// PrevParticipant field of ChannelAdminLogEventActionParticipantToggleAdmin.
PrevParticipant ChannelParticipantClass
// NewParticipant field of ChannelAdminLogEventActionParticipantToggleAdmin.
NewParticipant ChannelParticipantClass
}
ChannelAdminLogEventActionParticipantToggleAdmin represents TL type `channelAdminLogEventActionParticipantToggleAdmin#d5676710`.
type ChannelAdminLogEventActionParticipantToggleBan ¶
type ChannelAdminLogEventActionParticipantToggleBan struct {
// PrevParticipant field of ChannelAdminLogEventActionParticipantToggleBan.
PrevParticipant ChannelParticipantClass
// NewParticipant field of ChannelAdminLogEventActionParticipantToggleBan.
NewParticipant ChannelParticipantClass
}
ChannelAdminLogEventActionParticipantToggleBan represents TL type `channelAdminLogEventActionParticipantToggleBan#e6d83d7e`.
type ChannelAdminLogEventActionStopPoll ¶
type ChannelAdminLogEventActionStopPoll struct {
// Message field of ChannelAdminLogEventActionStopPoll.
Message MessageClass
}
ChannelAdminLogEventActionStopPoll represents TL type `channelAdminLogEventActionStopPoll#8f079643`.
type ChannelAdminLogEventActionToggleInvites ¶
type ChannelAdminLogEventActionToggleInvites struct {
// NewValue field of ChannelAdminLogEventActionToggleInvites.
NewValue bool
}
ChannelAdminLogEventActionToggleInvites represents TL type `channelAdminLogEventActionToggleInvites#1b7907ae`.
type ChannelAdminLogEventActionTogglePreHistoryHidden ¶
type ChannelAdminLogEventActionTogglePreHistoryHidden struct {
// NewValue field of ChannelAdminLogEventActionTogglePreHistoryHidden.
NewValue bool
}
ChannelAdminLogEventActionTogglePreHistoryHidden represents TL type `channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1`.
type ChannelAdminLogEventActionToggleSignatures ¶
type ChannelAdminLogEventActionToggleSignatures struct {
// NewValue field of ChannelAdminLogEventActionToggleSignatures.
NewValue bool
}
ChannelAdminLogEventActionToggleSignatures represents TL type `channelAdminLogEventActionToggleSignatures#26ae0971`.
type ChannelAdminLogEventActionToggleSlowMode ¶
type ChannelAdminLogEventActionToggleSlowMode struct {
// PrevValue field of ChannelAdminLogEventActionToggleSlowMode.
PrevValue int
// NewValue field of ChannelAdminLogEventActionToggleSlowMode.
NewValue int
}
ChannelAdminLogEventActionToggleSlowMode represents TL type `channelAdminLogEventActionToggleSlowMode#53909779`.
type ChannelAdminLogEventActionUpdatePinned ¶
type ChannelAdminLogEventActionUpdatePinned struct {
// Message field of ChannelAdminLogEventActionUpdatePinned.
Message MessageClass
}
ChannelAdminLogEventActionUpdatePinned represents TL type `channelAdminLogEventActionUpdatePinned#e9e82c18`.
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 ¶
func (c *ChannelAdminLogEventsFilter) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ChannelAdminLogEventsFilter) Encode ¶
func (c *ChannelAdminLogEventsFilter) Encode(b *bin.Buffer) error
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`.
type ChannelLocationBox ¶
type ChannelLocationBox struct {
ChannelLocation ChannelLocationClass
}
ChannelLocation boxes the ChannelLocationClass providing a helper.
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`.
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.
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`.
type ChannelParticipant ¶
type ChannelParticipant struct {
// UserID field of ChannelParticipant.
UserID int
// Date field of ChannelParticipant.
Date int
}
ChannelParticipant represents TL type `channelParticipant#15ebac1d`.
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.
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`.
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`.
type ChannelParticipantsAdmins ¶
type ChannelParticipantsAdmins struct {
}
ChannelParticipantsAdmins represents TL type `channelParticipantsAdmins#b4608969`.
type ChannelParticipantsBanned ¶
type ChannelParticipantsBanned struct {
// Q field of ChannelParticipantsBanned.
Q string
}
ChannelParticipantsBanned represents TL type `channelParticipantsBanned#1427a5e1`.
type ChannelParticipantsBots ¶
type ChannelParticipantsBots struct {
}
ChannelParticipantsBots represents TL type `channelParticipantsBots#b0d1865b`.
type ChannelParticipantsContacts ¶
type ChannelParticipantsContacts struct {
// Q field of ChannelParticipantsContacts.
Q string
}
ChannelParticipantsContacts represents TL type `channelParticipantsContacts#bb6ae88d`.
type ChannelParticipantsFilterBox ¶
type ChannelParticipantsFilterBox struct {
ChannelParticipantsFilter ChannelParticipantsFilterClass
}
ChannelParticipantsFilter boxes the ChannelParticipantsFilterClass providing a helper.
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`.
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 ¶
func (c *ChannelParticipantsMentions) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ChannelParticipantsMentions) Encode ¶
func (c *ChannelParticipantsMentions) Encode(b *bin.Buffer) error
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`.
type ChannelParticipantsSearch ¶
type ChannelParticipantsSearch struct {
// Q field of ChannelParticipantsSearch.
Q string
}
ChannelParticipantsSearch represents TL type `channelParticipantsSearch#656ac4b`.
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`.
type ChannelsChannelParticipant ¶
type ChannelsChannelParticipant struct {
// Participant field of ChannelsChannelParticipant.
Participant ChannelParticipantClass
// Users field of ChannelsChannelParticipant.
Users []UserClass
}
ChannelsChannelParticipant represents TL type `channels.channelParticipant#d0d9b163`.
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`.
type ChannelsChannelParticipantsBox ¶
type ChannelsChannelParticipantsBox struct {
ChannelParticipants ChannelsChannelParticipantsClass
}
ChannelsChannelParticipants boxes the ChannelsChannelParticipantsClass providing a helper.
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`.
type ChannelsCheckUsernameRequest ¶
type ChannelsCheckUsernameRequest struct {
// Channel field of ChannelsCheckUsernameRequest.
Channel InputChannelClass
// Username field of ChannelsCheckUsernameRequest.
Username string
}
ChannelsCheckUsernameRequest represents TL type `channels.checkUsername#10e6bd2c`.
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 ¶
func (c *ChannelsCreateChannelRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ChannelsCreateChannelRequest) Encode ¶
func (c *ChannelsCreateChannelRequest) Encode(b *bin.Buffer) error
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`.
type ChannelsDeleteHistoryRequest ¶
type ChannelsDeleteHistoryRequest struct {
// Channel field of ChannelsDeleteHistoryRequest.
Channel InputChannelClass
// MaxID field of ChannelsDeleteHistoryRequest.
MaxID int
}
ChannelsDeleteHistoryRequest represents TL type `channels.deleteHistory#af369d42`.
type ChannelsDeleteMessagesRequest ¶
type ChannelsDeleteMessagesRequest struct {
// Channel field of ChannelsDeleteMessagesRequest.
Channel InputChannelClass
// ID field of ChannelsDeleteMessagesRequest.
ID []int
}
ChannelsDeleteMessagesRequest represents TL type `channels.deleteMessages#84c1fd4e`.
type ChannelsDeleteUserHistoryRequest ¶
type ChannelsDeleteUserHistoryRequest struct {
// Channel field of ChannelsDeleteUserHistoryRequest.
Channel InputChannelClass
// UserID field of ChannelsDeleteUserHistoryRequest.
UserID InputUserClass
}
ChannelsDeleteUserHistoryRequest represents TL type `channels.deleteUserHistory#d10dd71b`.
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`.
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`.
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`.
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`.
type ChannelsEditPhotoRequest ¶
type ChannelsEditPhotoRequest struct {
// Channel field of ChannelsEditPhotoRequest.
Channel InputChannelClass
// Photo field of ChannelsEditPhotoRequest.
Photo InputChatPhotoClass
}
ChannelsEditPhotoRequest represents TL type `channels.editPhoto#f12e57c9`.
type ChannelsEditTitleRequest ¶
type ChannelsEditTitleRequest struct {
// Channel field of ChannelsEditTitleRequest.
Channel InputChannelClass
// Title field of ChannelsEditTitleRequest.
Title string
}
ChannelsEditTitleRequest represents TL type `channels.editTitle#566decd0`.
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 ¶
func (e *ChannelsExportMessageLinkRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ChannelsExportMessageLinkRequest) Encode ¶
func (e *ChannelsExportMessageLinkRequest) Encode(b *bin.Buffer) error
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 ¶
func (g *ChannelsGetAdminLogRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ChannelsGetAdminLogRequest) Encode ¶
func (g *ChannelsGetAdminLogRequest) Encode(b *bin.Buffer) error
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 ¶
func (g *ChannelsGetAdminedPublicChannelsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ChannelsGetAdminedPublicChannelsRequest) Encode ¶
func (g *ChannelsGetAdminedPublicChannelsRequest) Encode(b *bin.Buffer) error
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`.
type ChannelsGetFullChannelRequest ¶
type ChannelsGetFullChannelRequest struct {
// Channel field of ChannelsGetFullChannelRequest.
Channel InputChannelClass
}
ChannelsGetFullChannelRequest represents TL type `channels.getFullChannel#8736a09`.
type ChannelsGetGroupsForDiscussionRequest ¶
type ChannelsGetGroupsForDiscussionRequest struct {
}
ChannelsGetGroupsForDiscussionRequest represents TL type `channels.getGroupsForDiscussion#f5dad378`.
type ChannelsGetInactiveChannelsRequest ¶
type ChannelsGetInactiveChannelsRequest struct {
}
ChannelsGetInactiveChannelsRequest represents TL type `channels.getInactiveChannels#11e831ee`.
type ChannelsGetLeftChannelsRequest ¶
type ChannelsGetLeftChannelsRequest struct {
// Offset field of ChannelsGetLeftChannelsRequest.
Offset int
}
ChannelsGetLeftChannelsRequest represents TL type `channels.getLeftChannels#8341ecc0`.
type ChannelsGetMessagesRequest ¶
type ChannelsGetMessagesRequest struct {
// Channel field of ChannelsGetMessagesRequest.
Channel InputChannelClass
// ID field of ChannelsGetMessagesRequest.
ID []InputMessageClass
}
ChannelsGetMessagesRequest represents TL type `channels.getMessages#ad8c9a23`.
type ChannelsGetParticipantRequest ¶
type ChannelsGetParticipantRequest struct {
// Channel field of ChannelsGetParticipantRequest.
Channel InputChannelClass
// UserID field of ChannelsGetParticipantRequest.
UserID InputUserClass
}
ChannelsGetParticipantRequest represents TL type `channels.getParticipant#546dd7a6`.
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`.
type ChannelsInviteToChannelRequest ¶
type ChannelsInviteToChannelRequest struct {
// Channel field of ChannelsInviteToChannelRequest.
Channel InputChannelClass
// Users field of ChannelsInviteToChannelRequest.
Users []InputUserClass
}
ChannelsInviteToChannelRequest represents TL type `channels.inviteToChannel#199f3a6c`.
type ChannelsJoinChannelRequest ¶
type ChannelsJoinChannelRequest struct {
// Channel field of ChannelsJoinChannelRequest.
Channel InputChannelClass
}
ChannelsJoinChannelRequest represents TL type `channels.joinChannel#24b524c5`.
type ChannelsLeaveChannelRequest ¶
type ChannelsLeaveChannelRequest struct {
// Channel field of ChannelsLeaveChannelRequest.
Channel InputChannelClass
}
ChannelsLeaveChannelRequest represents TL type `channels.leaveChannel#f836aa95`.
type ChannelsReadHistoryRequest ¶
type ChannelsReadHistoryRequest struct {
// Channel field of ChannelsReadHistoryRequest.
Channel InputChannelClass
// MaxID field of ChannelsReadHistoryRequest.
MaxID int
}
ChannelsReadHistoryRequest represents TL type `channels.readHistory#cc104937`.
type ChannelsReadMessageContentsRequest ¶
type ChannelsReadMessageContentsRequest struct {
// Channel field of ChannelsReadMessageContentsRequest.
Channel InputChannelClass
// ID field of ChannelsReadMessageContentsRequest.
ID []int
}
ChannelsReadMessageContentsRequest represents TL type `channels.readMessageContents#eab5dc38`.
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`.
type ChannelsSetDiscussionGroupRequest ¶
type ChannelsSetDiscussionGroupRequest struct {
// Broadcast field of ChannelsSetDiscussionGroupRequest.
Broadcast InputChannelClass
// Group field of ChannelsSetDiscussionGroupRequest.
Group InputChannelClass
}
ChannelsSetDiscussionGroupRequest represents TL type `channels.setDiscussionGroup#40582bb2`.
type ChannelsSetStickersRequest ¶
type ChannelsSetStickersRequest struct {
// Channel field of ChannelsSetStickersRequest.
Channel InputChannelClass
// Stickerset field of ChannelsSetStickersRequest.
Stickerset InputStickerSetClass
}
ChannelsSetStickersRequest represents TL type `channels.setStickers#ea8ca4f9`.
type ChannelsTogglePreHistoryHiddenRequest ¶
type ChannelsTogglePreHistoryHiddenRequest struct {
// Channel field of ChannelsTogglePreHistoryHiddenRequest.
Channel InputChannelClass
// Enabled field of ChannelsTogglePreHistoryHiddenRequest.
Enabled bool
}
ChannelsTogglePreHistoryHiddenRequest represents TL type `channels.togglePreHistoryHidden#eabbb94c`.
type ChannelsToggleSignaturesRequest ¶
type ChannelsToggleSignaturesRequest struct {
// Channel field of ChannelsToggleSignaturesRequest.
Channel InputChannelClass
// Enabled field of ChannelsToggleSignaturesRequest.
Enabled bool
}
ChannelsToggleSignaturesRequest represents TL type `channels.toggleSignatures#1f69b606`.
type ChannelsToggleSlowModeRequest ¶
type ChannelsToggleSlowModeRequest struct {
// Channel field of ChannelsToggleSlowModeRequest.
Channel InputChannelClass
// Seconds field of ChannelsToggleSlowModeRequest.
Seconds int
}
ChannelsToggleSlowModeRequest represents TL type `channels.toggleSlowMode#edd49ef0`.
type ChannelsUpdateUsernameRequest ¶
type ChannelsUpdateUsernameRequest struct {
// Channel field of ChannelsUpdateUsernameRequest.
Channel InputChannelClass
// Username field of ChannelsUpdateUsernameRequest.
Username string
}
ChannelsUpdateUsernameRequest represents TL type `channels.updateUsername#3514b3de`.
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) 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 ¶
SetCreator sets value of Creator conditional field.
func (*Chat) SetDeactivated ¶
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) 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 (*ChatBannedRights) SetEmbedLinks ¶
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.
type ChatClass ¶
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)
}
type ChatEmpty ¶
type ChatEmpty struct {
// ID field of ChatEmpty.
ID int
}
ChatEmpty represents TL type `chatEmpty#9ba2d800`.
type ChatForbidden ¶
type ChatForbidden struct {
// ID field of ChatForbidden.
ID int
// Title field of ChatForbidden.
Title string
}
ChatForbidden represents TL type `chatForbidden#7328bdb`.
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) GetBotInfo ¶
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 ¶
GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.
func (*ChatFull) GetPinnedMsgID ¶
GetPinnedMsgID returns value of PinnedMsgID conditional field and boolean which is true if field was set.
func (*ChatFull) SetBotInfo ¶
SetBotInfo sets value of BotInfo conditional field.
func (*ChatFull) SetCanSetUsername ¶
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 ¶
SetFolderID sets value of FolderID conditional field.
func (*ChatFull) SetHasScheduled ¶
SetHasScheduled sets value of HasScheduled conditional field.
func (*ChatFull) SetPinnedMsgID ¶
SetPinnedMsgID sets value of PinnedMsgID conditional field.
type ChatFullBox ¶
type ChatFullBox struct {
ChatFull ChatFullClass
}
ChatFull boxes the ChatFullClass providing a helper.
type ChatFullClass ¶
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`.
type ChatInviteBox ¶
type ChatInviteBox struct {
ChatInvite ChatInviteClass
}
ChatInvite boxes the ChatInviteClass providing a helper.
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`.
type ChatInviteExported ¶
type ChatInviteExported struct {
// Link field of ChatInviteExported.
Link string
}
ChatInviteExported represents TL type `chatInviteExported#fc2e05bc`.
type ChatInvitePeek ¶
type ChatInvitePeek struct {
// Chat field of ChatInvitePeek.
Chat ChatClass
// Expires field of ChatInvitePeek.
Expires int
}
ChatInvitePeek represents TL type `chatInvitePeek#61695cb0`.
type ChatOnlines ¶
type ChatOnlines struct {
// Onlines field of ChatOnlines.
Onlines int
}
ChatOnlines represents TL type `chatOnlines#f041e250`.
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`.
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`.
type ChatParticipantBox ¶
type ChatParticipantBox struct {
ChatParticipant ChatParticipantClass
}
ChatParticipant boxes the ChatParticipantClass providing a helper.
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`.
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`.
type ChatParticipantsBox ¶
type ChatParticipantsBox struct {
ChatParticipants ChatParticipantsClass
}
ChatParticipants boxes the ChatParticipantsClass providing a helper.
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) SetHasVideo ¶
SetHasVideo sets value of HasVideo conditional field.
type ChatPhotoBox ¶
type ChatPhotoBox struct {
ChatPhoto ChatPhotoClass
}
ChatPhoto boxes the ChatPhotoClass providing a helper.
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`.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implement methods for calling functions from TL schema via Invoker.
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 ¶
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 (*Client) ChannelsExportMessageLink ¶
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 ¶
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 ¶
func (c *Client) MessagesInstallStickerSet(ctx context.Context, request *MessagesInstallStickerSetRequest) (MessagesStickerSetInstallResultClass, error)
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 ¶
func (c *Client) MessagesSendEncrypted(ctx context.Context, request *MessagesSendEncryptedRequest) (MessagesSentEncryptedMessageClass, error)
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) GetAutoupdateURLPrefix ¶
GetAutoupdateURLPrefix returns value of AutoupdateURLPrefix conditional field and boolean which is true if field was set.
func (*Config) GetBaseLangPackVersion ¶
GetBaseLangPackVersion returns value of BaseLangPackVersion conditional field and boolean which is true if field was set.
func (*Config) GetGifSearchUsername ¶
GetGifSearchUsername returns value of GifSearchUsername conditional field and boolean which is true if field was set.
func (*Config) GetImgSearchUsername ¶
GetImgSearchUsername returns value of ImgSearchUsername conditional field and boolean which is true if field was set.
func (*Config) GetLangPackVersion ¶
GetLangPackVersion returns value of LangPackVersion conditional field and boolean which is true if field was set.
func (*Config) GetStaticMapsProvider ¶
GetStaticMapsProvider returns value of StaticMapsProvider conditional field and boolean which is true if field was set.
func (*Config) GetSuggestedLangCode ¶
GetSuggestedLangCode returns value of SuggestedLangCode conditional field and boolean which is true if field was set.
func (*Config) GetTmpSessions ¶
GetTmpSessions returns value of TmpSessions conditional field and boolean which is true if field was set.
func (*Config) GetVenueSearchUsername ¶
GetVenueSearchUsername returns value of VenueSearchUsername conditional field and boolean which is true if field was set.
func (*Config) SetAutoupdateURLPrefix ¶
SetAutoupdateURLPrefix sets value of AutoupdateURLPrefix conditional field.
func (*Config) SetBaseLangPackVersion ¶
SetBaseLangPackVersion sets value of BaseLangPackVersion conditional field.
func (*Config) SetBlockedMode ¶
SetBlockedMode sets value of BlockedMode conditional field.
func (*Config) SetDefaultP2PContacts ¶
SetDefaultP2PContacts sets value of DefaultP2PContacts conditional field.
func (*Config) SetGifSearchUsername ¶
SetGifSearchUsername sets value of GifSearchUsername conditional field.
func (*Config) SetIgnorePhoneEntities ¶
SetIgnorePhoneEntities sets value of IgnorePhoneEntities conditional field.
func (*Config) SetImgSearchUsername ¶
SetImgSearchUsername sets value of ImgSearchUsername conditional field.
func (*Config) SetLangPackVersion ¶
SetLangPackVersion sets value of LangPackVersion conditional field.
func (*Config) SetPFSEnabled ¶
SetPFSEnabled sets value of PFSEnabled conditional field.
func (*Config) SetPhonecallsEnabled ¶
SetPhonecallsEnabled sets value of PhonecallsEnabled conditional field.
func (*Config) SetPreloadFeaturedStickers ¶
SetPreloadFeaturedStickers sets value of PreloadFeaturedStickers conditional field.
func (*Config) SetRevokePmInbox ¶
SetRevokePmInbox sets value of RevokePmInbox conditional field.
func (*Config) SetStaticMapsProvider ¶
SetStaticMapsProvider sets value of StaticMapsProvider conditional field.
func (*Config) SetSuggestedLangCode ¶
SetSuggestedLangCode sets value of SuggestedLangCode conditional field.
func (*Config) SetTmpSessions ¶
SetTmpSessions sets value of TmpSessions conditional field.
func (*Config) SetVenueSearchUsername ¶
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`.
type ContactStatus ¶
type ContactStatus struct {
// UserID field of ContactStatus.
UserID int
// Status field of ContactStatus.
Status UserStatusClass
}
ContactStatus represents TL type `contactStatus#d3680c61`.
type ContactsAcceptContactRequest ¶
type ContactsAcceptContactRequest struct {
// ID field of ContactsAcceptContactRequest.
ID InputUserClass
}
ContactsAcceptContactRequest represents TL type `contacts.acceptContact#f831a20f`.
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 ¶
func (b *ContactsBlockFromRepliesRequest) Decode(buf *bin.Buffer) error
Decode implements bin.Decoder.
func (*ContactsBlockFromRepliesRequest) Encode ¶
func (b *ContactsBlockFromRepliesRequest) Encode(buf *bin.Buffer) error
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`.
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`.
type ContactsBlockedBox ¶
type ContactsBlockedBox struct {
Blocked ContactsBlockedClass
}
ContactsBlocked boxes the ContactsBlockedClass providing a helper.
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`.
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`.
type ContactsContactsBox ¶
type ContactsContactsBox struct {
Contacts ContactsContactsClass
}
ContactsContacts boxes the ContactsContactsClass providing a helper.
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`.
type ContactsDeleteByPhonesRequest ¶
type ContactsDeleteByPhonesRequest struct {
// Phones field of ContactsDeleteByPhonesRequest.
Phones []string
}
ContactsDeleteByPhonesRequest represents TL type `contacts.deleteByPhones#1013fd9e`.
type ContactsDeleteContactsRequest ¶
type ContactsDeleteContactsRequest struct {
// ID field of ContactsDeleteContactsRequest.
ID []InputUserClass
}
ContactsDeleteContactsRequest represents TL type `contacts.deleteContacts#96a0e00`.
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`.
type ContactsGetBlockedRequest ¶
type ContactsGetBlockedRequest struct {
// Offset field of ContactsGetBlockedRequest.
Offset int
// Limit field of ContactsGetBlockedRequest.
Limit int
}
ContactsGetBlockedRequest represents TL type `contacts.getBlocked#f57c350f`.
type ContactsGetContactIDsRequest ¶
type ContactsGetContactIDsRequest struct {
// Hash field of ContactsGetContactIDsRequest.
Hash int
}
ContactsGetContactIDsRequest represents TL type `contacts.getContactIDs#2caa4a42`.
type ContactsGetContactsRequest ¶
type ContactsGetContactsRequest struct {
// Hash field of ContactsGetContactsRequest.
Hash int
}
ContactsGetContactsRequest represents TL type `contacts.getContacts#c023849f`.
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`.
type ContactsGetStatusesRequest ¶
type ContactsGetStatusesRequest struct {
}
ContactsGetStatusesRequest represents TL type `contacts.getStatuses#c4a353ee`.
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 ¶
func (g *ContactsGetTopPeersRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ContactsGetTopPeersRequest) Encode ¶
func (g *ContactsGetTopPeersRequest) Encode(b *bin.Buffer) error
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`.
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`.
type ContactsResetSavedRequest ¶
type ContactsResetSavedRequest struct {
}
ContactsResetSavedRequest represents TL type `contacts.resetSaved#879537f1`.
type ContactsResetTopPeerRatingRequest ¶
type ContactsResetTopPeerRatingRequest struct {
// Category field of ContactsResetTopPeerRatingRequest.
Category TopPeerCategoryClass
// Peer field of ContactsResetTopPeerRatingRequest.
Peer InputPeerClass
}
ContactsResetTopPeerRatingRequest represents TL type `contacts.resetTopPeerRating#1ae373ac`.
type ContactsResolveUsernameRequest ¶
type ContactsResolveUsernameRequest struct {
// Username field of ContactsResolveUsernameRequest.
Username string
}
ContactsResolveUsernameRequest represents TL type `contacts.resolveUsername#f93ccba3`.
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`.
type ContactsSearchRequest ¶
type ContactsSearchRequest struct {
// Q field of ContactsSearchRequest.
Q string
// Limit field of ContactsSearchRequest.
Limit int
}
ContactsSearchRequest represents TL type `contacts.search#11f812d8`.
type ContactsToggleTopPeersRequest ¶
type ContactsToggleTopPeersRequest struct {
// Enabled field of ContactsToggleTopPeersRequest.
Enabled bool
}
ContactsToggleTopPeersRequest represents TL type `contacts.toggleTopPeers#8514bdda`.
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`.
type ContactsTopPeersBox ¶
type ContactsTopPeersBox struct {
TopPeers ContactsTopPeersClass
}
ContactsTopPeers boxes the ContactsTopPeersClass providing a helper.
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`.
type ContactsTopPeersNotModified ¶
type ContactsTopPeersNotModified struct {
}
ContactsTopPeersNotModified represents TL type `contacts.topPeersNotModified#de266ef5`.
type ContactsUnblockRequest ¶
type ContactsUnblockRequest struct {
// ID field of ContactsUnblockRequest.
ID InputPeerClass
}
ContactsUnblockRequest represents TL type `contacts.unblock#bea65d50`.
type DataJSON ¶
type DataJSON struct {
// Data field of DataJSON.
Data string
}
DataJSON represents TL type `dataJSON#7d748d04`.
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) GetSecret ¶
GetSecret returns value of Secret conditional field and boolean which is true if field was set.
func (*DcOption) SetMediaOnly ¶
SetMediaOnly sets value of MediaOnly conditional field.
func (*DcOption) SetTcpoOnly ¶
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) 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 ¶
GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.
func (*Dialog) GetPts ¶
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 ¶
SetFolderID sets value of FolderID conditional field.
func (*Dialog) SetUnreadMark ¶
SetUnreadMark sets value of UnreadMark conditional field.
type DialogBox ¶
type DialogBox struct {
Dialog DialogClass
}
Dialog boxes the DialogClass providing a helper.
type DialogClass ¶
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`.
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`.
type DialogPeerBox ¶
type DialogPeerBox struct {
DialogPeer DialogPeerClass
}
DialogPeer boxes the DialogPeerClass providing a helper.
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`.
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) 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 ¶
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 ¶
SetVideoThumbs sets value of VideoThumbs conditional field.
type DocumentAttributeAnimated ¶
type DocumentAttributeAnimated struct {
}
DocumentAttributeAnimated represents TL type `documentAttributeAnimated#11b58939`.
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.
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`.
type DocumentAttributeHasStickers ¶
type DocumentAttributeHasStickers struct {
}
DocumentAttributeHasStickers represents TL type `documentAttributeHasStickers#9801d2f7`.
type DocumentAttributeImageSize ¶
type DocumentAttributeImageSize struct {
// W field of DocumentAttributeImageSize.
W int
// H field of DocumentAttributeImageSize.
H int
}
DocumentAttributeImageSize represents TL type `documentAttributeImageSize#6c37c15c`.
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.
type DocumentClass ¶
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`.
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.
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`.
type EmojiKeywordBox ¶
type EmojiKeywordBox struct {
EmojiKeyword EmojiKeywordClass
}
EmojiKeyword boxes the EmojiKeywordClass providing a helper.
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`.
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`.
type EmojiLanguage ¶
type EmojiLanguage struct {
// LangCode field of EmojiLanguage.
LangCode string
}
EmojiLanguage represents TL type `emojiLanguage#b3fb5361`.
type EmojiURL ¶
type EmojiURL struct {
// URL field of EmojiURL.
URL string
}
EmojiURL represents TL type `emojiURL#a575739d`.
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`.
type EncryptedChatBox ¶
type EncryptedChatBox struct {
EncryptedChat EncryptedChatClass
}
EncryptedChat boxes the EncryptedChatClass providing a helper.
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`.
type EncryptedChatEmpty ¶
type EncryptedChatEmpty struct {
// ID field of EncryptedChatEmpty.
ID int
}
EncryptedChatEmpty represents TL type `encryptedChatEmpty#ab7ec0a0`.
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`.
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`.
type EncryptedFileBox ¶
type EncryptedFileBox struct {
EncryptedFile EncryptedFileClass
}
EncryptedFile boxes the EncryptedFileClass providing a helper.
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`.
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`.
type EncryptedMessageBox ¶
type EncryptedMessageBox struct {
EncryptedMessage EncryptedMessageClass
}
EncryptedMessage boxes the EncryptedMessageClass providing a helper.
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`.
type ExportedChatInviteBox ¶
type ExportedChatInviteBox struct {
ExportedChatInvite ExportedChatInviteClass
}
ExportedChatInvite boxes the ExportedChatInviteClass providing a helper.
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 ¶
type ExportedMessageLink struct {
// Link field of ExportedMessageLink.
Link string
// HTML field of ExportedMessageLink.
HTML string
}
ExportedMessageLink represents TL type `exportedMessageLink#5dab1af4`.
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`.
type FileLocationToBeDeprecated ¶
type FileLocationToBeDeprecated struct {
// VolumeID field of FileLocationToBeDeprecated.
VolumeID int64
// LocalID field of FileLocationToBeDeprecated.
LocalID int
}
FileLocationToBeDeprecated represents TL type `fileLocationToBeDeprecated#bc7fc6cd`.
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) 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 ¶
SetAutofillNewBroadcasts sets value of AutofillNewBroadcasts conditional field.
func (*Folder) SetAutofillNewCorrespondents ¶
SetAutofillNewCorrespondents sets value of AutofillNewCorrespondents conditional field.
func (*Folder) SetAutofillPublicGroups ¶
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`.
type FoldersDeleteFolderRequest ¶
type FoldersDeleteFolderRequest struct {
// FolderID field of FoldersDeleteFolderRequest.
FolderID int
}
FoldersDeleteFolderRequest represents TL type `folders.deleteFolder#1c295881`.
type FoldersEditPeerFoldersRequest ¶
type FoldersEditPeerFoldersRequest struct {
// FolderPeers field of FoldersEditPeerFoldersRequest.
FolderPeers []InputFolderPeer
}
FoldersEditPeerFoldersRequest represents TL type `folders.editPeerFolders#6847d0ab`.
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) 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) GetAccuracyRadius ¶
GetAccuracyRadius returns value of AccuracyRadius conditional field and boolean which is true if field was set.
func (*GeoPoint) SetAccuracyRadius ¶
SetAccuracyRadius sets value of AccuracyRadius conditional field.
type GeoPointBox ¶
type GeoPointBox struct {
GeoPoint GeoPointClass
}
GeoPoint boxes the GeoPointClass providing a helper.
type GeoPointClass ¶
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`.
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`.
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.
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`.
type HelpCountriesListBox ¶
type HelpCountriesListBox struct {
CountriesList HelpCountriesListClass
}
HelpCountriesList boxes the HelpCountriesListClass providing a helper.
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`.
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.
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`.
type HelpDismissSuggestionRequest ¶
type HelpDismissSuggestionRequest struct {
// Suggestion field of HelpDismissSuggestionRequest.
Suggestion string
}
HelpDismissSuggestionRequest represents TL type `help.dismissSuggestion#77fa99f`.
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`.
type HelpGetAppChangelogRequest ¶
type HelpGetAppChangelogRequest struct {
// PrevAppVersion field of HelpGetAppChangelogRequest.
PrevAppVersion string
}
HelpGetAppChangelogRequest represents TL type `help.getAppChangelog#9010ef6f`.
type HelpGetAppConfigRequest ¶
type HelpGetAppConfigRequest struct {
}
HelpGetAppConfigRequest represents TL type `help.getAppConfig#98914110`.
type HelpGetAppUpdateRequest ¶
type HelpGetAppUpdateRequest struct {
// Source field of HelpGetAppUpdateRequest.
Source string
}
HelpGetAppUpdateRequest represents TL type `help.getAppUpdate#522d5a7d`.
type HelpGetCdnConfigRequest ¶
type HelpGetCdnConfigRequest struct {
}
HelpGetCdnConfigRequest represents TL type `help.getCdnConfig#52029342`.
type HelpGetConfigRequest ¶
type HelpGetConfigRequest struct {
}
HelpGetConfigRequest represents TL type `help.getConfig#c4f9186b`.
type HelpGetCountriesListRequest ¶
type HelpGetCountriesListRequest struct {
// LangCode field of HelpGetCountriesListRequest.
LangCode string
// Hash field of HelpGetCountriesListRequest.
Hash int
}
HelpGetCountriesListRequest represents TL type `help.getCountriesList#735787a8`.
type HelpGetDeepLinkInfoRequest ¶
type HelpGetDeepLinkInfoRequest struct {
// Path field of HelpGetDeepLinkInfoRequest.
Path string
}
HelpGetDeepLinkInfoRequest represents TL type `help.getDeepLinkInfo#3fedc75f`.
type HelpGetInviteTextRequest ¶
type HelpGetInviteTextRequest struct {
}
HelpGetInviteTextRequest represents TL type `help.getInviteText#4d392343`.
type HelpGetNearestDcRequest ¶
type HelpGetNearestDcRequest struct {
}
HelpGetNearestDcRequest represents TL type `help.getNearestDc#1fb33026`.
type HelpGetPassportConfigRequest ¶
type HelpGetPassportConfigRequest struct {
// Hash field of HelpGetPassportConfigRequest.
Hash int
}
HelpGetPassportConfigRequest represents TL type `help.getPassportConfig#c661ad08`.
type HelpGetPromoDataRequest ¶
type HelpGetPromoDataRequest struct {
}
HelpGetPromoDataRequest represents TL type `help.getPromoData#c0977421`.
type HelpGetRecentMeUrlsRequest ¶
type HelpGetRecentMeUrlsRequest struct {
// Referer field of HelpGetRecentMeUrlsRequest.
Referer string
}
HelpGetRecentMeUrlsRequest represents TL type `help.getRecentMeUrls#3dc0f114`.
type HelpGetSupportNameRequest ¶
type HelpGetSupportNameRequest struct {
}
HelpGetSupportNameRequest represents TL type `help.getSupportName#d360e72c`.
type HelpGetSupportRequest ¶
type HelpGetSupportRequest struct {
}
HelpGetSupportRequest represents TL type `help.getSupport#9cdf08cd`.
type HelpGetTermsOfServiceUpdateRequest ¶
type HelpGetTermsOfServiceUpdateRequest struct {
}
HelpGetTermsOfServiceUpdateRequest represents TL type `help.getTermsOfServiceUpdate#2ca51fd1`.
type HelpGetUserInfoRequest ¶
type HelpGetUserInfoRequest struct {
// UserID field of HelpGetUserInfoRequest.
UserID InputUserClass
}
HelpGetUserInfoRequest represents TL type `help.getUserInfo#38a08d3`.
type HelpHidePromoDataRequest ¶
type HelpHidePromoDataRequest struct {
// Peer field of HelpHidePromoDataRequest.
Peer InputPeerClass
}
HelpHidePromoDataRequest represents TL type `help.hidePromoData#1e251c95`.
type HelpInviteText ¶
type HelpInviteText struct {
// Message field of HelpInviteText.
Message string
}
HelpInviteText represents TL type `help.inviteText#18cb9f78`.
type HelpNoAppUpdate ¶
type HelpNoAppUpdate struct {
}
HelpNoAppUpdate represents TL type `help.noAppUpdate#c45a6536`.
type HelpPassportConfig ¶
type HelpPassportConfig struct {
// Hash field of HelpPassportConfig.
Hash int
// CountriesLangs field of HelpPassportConfig.
CountriesLangs DataJSON
}
HelpPassportConfig represents TL type `help.passportConfig#a098d6af`.
type HelpPassportConfigBox ¶
type HelpPassportConfigBox struct {
PassportConfig HelpPassportConfigClass
}
HelpPassportConfig boxes the HelpPassportConfigClass providing a helper.
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`.
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.
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`.
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`.
type HelpSaveAppLogRequest ¶
type HelpSaveAppLogRequest struct {
// Events field of HelpSaveAppLogRequest.
Events []InputAppEvent
}
HelpSaveAppLogRequest represents TL type `help.saveAppLog#6f02f748`.
type HelpSetBotUpdatesStatusRequest ¶
type HelpSetBotUpdatesStatusRequest struct {
// PendingUpdatesCount field of HelpSetBotUpdatesStatusRequest.
PendingUpdatesCount int
// Message field of HelpSetBotUpdatesStatusRequest.
Message string
}
HelpSetBotUpdatesStatusRequest represents TL type `help.setBotUpdatesStatus#ec22cfcd`.
type HelpSupport ¶
type HelpSupport struct {
// PhoneNumber field of HelpSupport.
PhoneNumber string
// User field of HelpSupport.
User UserClass
}
HelpSupport represents TL type `help.support#17c6b5f6`.
type HelpSupportName ¶
type HelpSupportName struct {
// Name field of HelpSupportName.
Name string
}
HelpSupportName represents TL type `help.supportName#8c05f1c9`.
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`.
type HelpTermsOfServiceUpdateBox ¶
type HelpTermsOfServiceUpdateBox struct {
TermsOfServiceUpdate HelpTermsOfServiceUpdateClass
}
HelpTermsOfServiceUpdate boxes the HelpTermsOfServiceUpdateClass providing a helper.
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`.
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`.
type HelpUserInfoBox ¶
type HelpUserInfoBox struct {
UserInfo HelpUserInfoClass
}
HelpUserInfo boxes the HelpUserInfoClass providing a helper.
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`.
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`.
type ImportedContact ¶
type ImportedContact struct {
// UserID field of ImportedContact.
UserID int
// ClientID field of ImportedContact.
ClientID int64
}
ImportedContact represents TL type `importedContact#d0028438`.
type InlineBotSwitchPM ¶
type InlineBotSwitchPM struct {
// Text field of InlineBotSwitchPM.
Text string
// StartParam field of InlineBotSwitchPM.
StartParam string
}
InlineBotSwitchPM represents TL type `inlineBotSwitchPM#3c20629f`.
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`.
type InputBotInlineMessageBox ¶
type InputBotInlineMessageBox struct {
InputBotInlineMessage InputBotInlineMessageClass
}
InputBotInlineMessage boxes the InputBotInlineMessageClass providing a helper.
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`.
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 ¶
func (i *InputBotInlineMessageMediaAuto) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InputBotInlineMessageMediaAuto) Encode ¶
func (i *InputBotInlineMessageMediaAuto) Encode(b *bin.Buffer) error
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 ¶
func (i *InputBotInlineMessageMediaContact) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InputBotInlineMessageMediaContact) Encode ¶
func (i *InputBotInlineMessageMediaContact) Encode(b *bin.Buffer) error
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 ¶
func (i *InputBotInlineMessageMediaGeo) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InputBotInlineMessageMediaGeo) Encode ¶
func (i *InputBotInlineMessageMediaGeo) Encode(b *bin.Buffer) error
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 ¶
func (i *InputBotInlineMessageMediaVenue) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InputBotInlineMessageMediaVenue) Encode ¶
func (i *InputBotInlineMessageMediaVenue) Encode(b *bin.Buffer) error
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.
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 ¶
func (i *InputBotInlineResultDocument) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InputBotInlineResultDocument) Encode ¶
func (i *InputBotInlineResultDocument) Encode(b *bin.Buffer) error
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`.
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`.
type InputChannel ¶
type InputChannel struct {
// ChannelID field of InputChannel.
ChannelID int
// AccessHash field of InputChannel.
AccessHash int64
}
InputChannel represents TL type `inputChannel#afeb712e`.
type InputChannelBox ¶
type InputChannelBox struct {
InputChannel InputChannelClass
}
InputChannel boxes the InputChannelClass providing a helper.
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`.
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`.
type InputChatPhoto ¶
type InputChatPhoto struct {
// ID field of InputChatPhoto.
ID InputPhotoClass
}
InputChatPhoto represents TL type `inputChatPhoto#8953ad37`.
type InputChatPhotoBox ¶
type InputChatPhotoBox struct {
InputChatPhoto InputChatPhotoClass
}
InputChatPhoto boxes the InputChatPhotoClass providing a helper.
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`.
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`.
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`.
type InputCheckPasswordSRPBox ¶
type InputCheckPasswordSRPBox struct {
InputCheckPasswordSRP InputCheckPasswordSRPClass
}
InputCheckPasswordSRP boxes the InputCheckPasswordSRPClass providing a helper.
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`.
type InputDialogPeer ¶
type InputDialogPeer struct {
// Peer field of InputDialogPeer.
Peer InputPeerClass
}
InputDialogPeer represents TL type `inputDialogPeer#fcaafeb7`.
type InputDialogPeerBox ¶
type InputDialogPeerBox struct {
InputDialogPeer InputDialogPeerClass
}
InputDialogPeer boxes the InputDialogPeerClass providing a helper.
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`.
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`.
type InputDocumentBox ¶
type InputDocumentBox struct {
InputDocument InputDocumentClass
}
InputDocument boxes the InputDocumentClass providing a helper.
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`.
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`.
type InputEncryptedChat ¶
type InputEncryptedChat struct {
// ChatID field of InputEncryptedChat.
ChatID int
// AccessHash field of InputEncryptedChat.
AccessHash int64
}
InputEncryptedChat represents TL type `inputEncryptedChat#f141b5e1`.
type InputEncryptedFile ¶
type InputEncryptedFile struct {
// ID field of InputEncryptedFile.
ID int64
// AccessHash field of InputEncryptedFile.
AccessHash int64
}
InputEncryptedFile represents TL type `inputEncryptedFile#5a17b5e5`.
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`.
type InputEncryptedFileBox ¶
type InputEncryptedFileBox struct {
InputEncryptedFile InputEncryptedFileClass
}
InputEncryptedFile boxes the InputEncryptedFileClass providing a helper.
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`.
type InputEncryptedFileLocation ¶
type InputEncryptedFileLocation struct {
// ID field of InputEncryptedFileLocation.
ID int64
// AccessHash field of InputEncryptedFileLocation.
AccessHash int64
}
InputEncryptedFileLocation represents TL type `inputEncryptedFileLocation#f5235d55`.
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`.
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`.
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`.
type InputFileBox ¶
type InputFileBox struct {
InputFile InputFileClass
}
InputFile boxes the InputFileClass providing a helper.
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`.
type InputFileLocationBox ¶
type InputFileLocationBox struct {
InputFileLocation InputFileLocationClass
}
InputFileLocation boxes the InputFileLocationClass providing a helper.
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`.
type InputGameBox ¶
type InputGameBox struct {
InputGame InputGameClass
}
InputGame boxes the InputGameClass providing a helper.
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`.
type InputGameShortName ¶
type InputGameShortName struct {
// BotID field of InputGameShortName.
BotID InputUserClass
// ShortName field of InputGameShortName.
ShortName string
}
InputGameShortName represents TL type `inputGameShortName#c331e80a`.
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.
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`.
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 ¶
func (i *InputKeyboardButtonUrlAuth) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InputKeyboardButtonUrlAuth) Encode ¶
func (i *InputKeyboardButtonUrlAuth) Encode(b *bin.Buffer) error
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.
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`.
type InputMediaDice ¶
type InputMediaDice struct {
// Emoticon field of InputMediaDice.
Emoticon string
}
InputMediaDice represents TL type `inputMediaDice#e66fbf7b`.
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 ¶
func (i *InputMediaDocumentExternal) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InputMediaDocumentExternal) Encode ¶
func (i *InputMediaDocumentExternal) Encode(b *bin.Buffer) error
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`.
type InputMediaGame ¶
type InputMediaGame struct {
// ID field of InputMediaGame.
ID InputGameClass
}
InputMediaGame represents TL type `inputMediaGame#d33f43f3`.
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`.
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 ¶
func (i *InputMediaUploadedDocument) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InputMediaUploadedDocument) Encode ¶
func (i *InputMediaUploadedDocument) Encode(b *bin.Buffer) error
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`.
type InputMessageBox ¶
type InputMessageBox struct {
InputMessage InputMessageClass
}
InputMessage boxes the InputMessageClass providing a helper.
type InputMessageCallbackQuery ¶
type InputMessageCallbackQuery struct {
// ID field of InputMessageCallbackQuery.
ID int
// QueryID field of InputMessageCallbackQuery.
QueryID int64
}
InputMessageCallbackQuery represents TL type `inputMessageCallbackQuery#acfa1a7e`.
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`.
type InputMessageID ¶
type InputMessageID struct {
// ID field of InputMessageID.
ID int
}
InputMessageID represents TL type `inputMessageID#a676a322`.
type InputMessagePinned ¶
type InputMessagePinned struct {
}
InputMessagePinned represents TL type `inputMessagePinned#86872538`.
type InputMessageReplyTo ¶
type InputMessageReplyTo struct {
// ID field of InputMessageReplyTo.
ID int
}
InputMessageReplyTo represents TL type `inputMessageReplyTo#bad88395`.
type InputMessagesFilterChatPhotos ¶
type InputMessagesFilterChatPhotos struct {
}
InputMessagesFilterChatPhotos represents TL type `inputMessagesFilterChatPhotos#3a20ecb8`.
type InputMessagesFilterContacts ¶
type InputMessagesFilterContacts struct {
}
InputMessagesFilterContacts represents TL type `inputMessagesFilterContacts#e062db83`.
type InputMessagesFilterDocument ¶
type InputMessagesFilterDocument struct {
}
InputMessagesFilterDocument represents TL type `inputMessagesFilterDocument#9eddf188`.
type InputMessagesFilterEmpty ¶
type InputMessagesFilterEmpty struct {
}
InputMessagesFilterEmpty represents TL type `inputMessagesFilterEmpty#57e2f66c`.
type InputMessagesFilterGeo ¶
type InputMessagesFilterGeo struct {
}
InputMessagesFilterGeo represents TL type `inputMessagesFilterGeo#e7026d0d`.
type InputMessagesFilterGif ¶
type InputMessagesFilterGif struct {
}
InputMessagesFilterGif represents TL type `inputMessagesFilterGif#ffc86587`.
type InputMessagesFilterMusic ¶
type InputMessagesFilterMusic struct {
}
InputMessagesFilterMusic represents TL type `inputMessagesFilterMusic#3751b49e`.
type InputMessagesFilterMyMentions ¶
type InputMessagesFilterMyMentions struct {
}
InputMessagesFilterMyMentions represents TL type `inputMessagesFilterMyMentions#c1f8e69a`.
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 ¶
func (i *InputMessagesFilterPhoneCalls) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InputMessagesFilterPhoneCalls) Encode ¶
func (i *InputMessagesFilterPhoneCalls) Encode(b *bin.Buffer) error
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`.
type InputMessagesFilterPhotos ¶
type InputMessagesFilterPhotos struct {
}
InputMessagesFilterPhotos represents TL type `inputMessagesFilterPhotos#9609a51c`.
type InputMessagesFilterPinned ¶
type InputMessagesFilterPinned struct {
}
InputMessagesFilterPinned represents TL type `inputMessagesFilterPinned#1bb00451`.
type InputMessagesFilterRoundVideo ¶
type InputMessagesFilterRoundVideo struct {
}
InputMessagesFilterRoundVideo represents TL type `inputMessagesFilterRoundVideo#b549da53`.
type InputMessagesFilterRoundVoice ¶
type InputMessagesFilterRoundVoice struct {
}
InputMessagesFilterRoundVoice represents TL type `inputMessagesFilterRoundVoice#7a7c17a4`.
type InputMessagesFilterUrl ¶
type InputMessagesFilterUrl struct {
}
InputMessagesFilterUrl represents TL type `inputMessagesFilterUrl#7ef0dd87`.
type InputMessagesFilterVideo ¶
type InputMessagesFilterVideo struct {
}
InputMessagesFilterVideo represents TL type `inputMessagesFilterVideo#9fc00e65`.
type InputMessagesFilterVoice ¶
type InputMessagesFilterVoice struct {
}
InputMessagesFilterVoice represents TL type `inputMessagesFilterVoice#50f5c392`.
type InputNotifyBroadcasts ¶
type InputNotifyBroadcasts struct {
}
InputNotifyBroadcasts represents TL type `inputNotifyBroadcasts#b1db7c7e`.
type InputNotifyChats ¶
type InputNotifyChats struct {
}
InputNotifyChats represents TL type `inputNotifyChats#4a95e84e`.
type InputNotifyPeer ¶
type InputNotifyPeer struct {
// Peer field of InputNotifyPeer.
Peer InputPeerClass
}
InputNotifyPeer represents TL type `inputNotifyPeer#b8bc5b0c`.
type InputNotifyPeerBox ¶
type InputNotifyPeerBox struct {
InputNotifyPeer InputNotifyPeerClass
}
InputNotifyPeer boxes the InputNotifyPeerClass providing a helper.
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`.
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`.
type InputPaymentCredentialsApplePay ¶
type InputPaymentCredentialsApplePay struct {
// PaymentData field of InputPaymentCredentialsApplePay.
PaymentData DataJSON
}
InputPaymentCredentialsApplePay represents TL type `inputPaymentCredentialsApplePay#aa1c39f`.
type InputPaymentCredentialsBox ¶
type InputPaymentCredentialsBox struct {
InputPaymentCredentials InputPaymentCredentialsClass
}
InputPaymentCredentials boxes the InputPaymentCredentialsClass providing a helper.
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`.
type InputPeerBox ¶
type InputPeerBox struct {
InputPeer InputPeerClass
}
InputPeer boxes the InputPeerClass providing a helper.
type InputPeerChannel ¶
type InputPeerChannel struct {
// ChannelID field of InputPeerChannel.
ChannelID int
// AccessHash field of InputPeerChannel.
AccessHash int64
}
InputPeerChannel represents TL type `inputPeerChannel#20adaef8`.
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`.
type InputPeerChat ¶
type InputPeerChat struct {
// ChatID field of InputPeerChat.
ChatID int
}
InputPeerChat represents TL type `inputPeerChat#179be863`.
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`.
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 ¶
func (i *InputPeerPhotoFileLocation) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InputPeerPhotoFileLocation) Encode ¶
func (i *InputPeerPhotoFileLocation) Encode(b *bin.Buffer) error
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`.
type InputPeerUser ¶
type InputPeerUser struct {
// UserID field of InputPeerUser.
UserID int
// AccessHash field of InputPeerUser.
AccessHash int64
}
InputPeerUser represents TL type `inputPeerUser#7b8e7de6`.
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`.
type InputPhoneCall ¶
type InputPhoneCall struct {
// ID field of InputPhoneCall.
ID int64
// AccessHash field of InputPhoneCall.
AccessHash int64
}
InputPhoneCall represents TL type `inputPhoneCall#1e36fded`.
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`.
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`.
type InputPhotoBox ¶
type InputPhotoBox struct {
InputPhoto InputPhotoClass
}
InputPhoto boxes the InputPhotoClass providing a helper.
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`.
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`.
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`.
type InputPrivacyKeyAddedByPhone ¶
type InputPrivacyKeyAddedByPhone struct {
}
InputPrivacyKeyAddedByPhone represents TL type `inputPrivacyKeyAddedByPhone#d1219bdd`.
type InputPrivacyKeyBox ¶
type InputPrivacyKeyBox struct {
InputPrivacyKey InputPrivacyKeyClass
}
InputPrivacyKey boxes the InputPrivacyKeyClass providing a helper.
type InputPrivacyKeyChatInvite ¶
type InputPrivacyKeyChatInvite struct {
}
InputPrivacyKeyChatInvite represents TL type `inputPrivacyKeyChatInvite#bdfb0426`.
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`.
type InputPrivacyKeyPhoneCall ¶
type InputPrivacyKeyPhoneCall struct {
}
InputPrivacyKeyPhoneCall represents TL type `inputPrivacyKeyPhoneCall#fabadc5f`.
type InputPrivacyKeyPhoneNumber ¶
type InputPrivacyKeyPhoneNumber struct {
}
InputPrivacyKeyPhoneNumber represents TL type `inputPrivacyKeyPhoneNumber#352dafa`.
type InputPrivacyKeyPhoneP2P ¶
type InputPrivacyKeyPhoneP2P struct {
}
InputPrivacyKeyPhoneP2P represents TL type `inputPrivacyKeyPhoneP2P#db9e70d2`.
type InputPrivacyKeyProfilePhoto ¶
type InputPrivacyKeyProfilePhoto struct {
}
InputPrivacyKeyProfilePhoto represents TL type `inputPrivacyKeyProfilePhoto#5719bacc`.
type InputPrivacyKeyStatusTimestamp ¶
type InputPrivacyKeyStatusTimestamp struct {
}
InputPrivacyKeyStatusTimestamp represents TL type `inputPrivacyKeyStatusTimestamp#4f96cb18`.
type InputPrivacyRuleBox ¶
type InputPrivacyRuleBox struct {
InputPrivacyRule InputPrivacyRuleClass
}
InputPrivacyRule boxes the InputPrivacyRuleClass providing a helper.
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`.
type InputPrivacyValueAllowChatParticipants ¶
type InputPrivacyValueAllowChatParticipants struct {
// Chats field of InputPrivacyValueAllowChatParticipants.
Chats []int
}
InputPrivacyValueAllowChatParticipants represents TL type `inputPrivacyValueAllowChatParticipants#4c81c1ba`.
type InputPrivacyValueAllowContacts ¶
type InputPrivacyValueAllowContacts struct {
}
InputPrivacyValueAllowContacts represents TL type `inputPrivacyValueAllowContacts#d09e07b`.
type InputPrivacyValueAllowUsers ¶
type InputPrivacyValueAllowUsers struct {
// Users field of InputPrivacyValueAllowUsers.
Users []InputUserClass
}
InputPrivacyValueAllowUsers represents TL type `inputPrivacyValueAllowUsers#131cc67f`.
type InputPrivacyValueDisallowAll ¶
type InputPrivacyValueDisallowAll struct {
}
InputPrivacyValueDisallowAll represents TL type `inputPrivacyValueDisallowAll#d66b66c9`.
type InputPrivacyValueDisallowChatParticipants ¶
type InputPrivacyValueDisallowChatParticipants struct {
// Chats field of InputPrivacyValueDisallowChatParticipants.
Chats []int
}
InputPrivacyValueDisallowChatParticipants represents TL type `inputPrivacyValueDisallowChatParticipants#d82363af`.
type InputPrivacyValueDisallowContacts ¶
type InputPrivacyValueDisallowContacts struct {
}
InputPrivacyValueDisallowContacts represents TL type `inputPrivacyValueDisallowContacts#ba52007`.
type InputPrivacyValueDisallowUsers ¶
type InputPrivacyValueDisallowUsers struct {
// Users field of InputPrivacyValueDisallowUsers.
Users []InputUserClass
}
InputPrivacyValueDisallowUsers represents TL type `inputPrivacyValueDisallowUsers#90110467`.
type InputReportReasonChildAbuse ¶
type InputReportReasonChildAbuse struct {
}
InputReportReasonChildAbuse represents TL type `inputReportReasonChildAbuse#adf44ee3`.
type InputReportReasonCopyright ¶
type InputReportReasonCopyright struct {
}
InputReportReasonCopyright represents TL type `inputReportReasonCopyright#9b89f93a`.
type InputReportReasonGeoIrrelevant ¶
type InputReportReasonGeoIrrelevant struct {
}
InputReportReasonGeoIrrelevant represents TL type `inputReportReasonGeoIrrelevant#dbd4feed`.
type InputReportReasonOther ¶
type InputReportReasonOther struct {
// Text field of InputReportReasonOther.
Text string
}
InputReportReasonOther represents TL type `inputReportReasonOther#e1746d0a`.
type InputReportReasonPornography ¶
type InputReportReasonPornography struct {
}
InputReportReasonPornography represents TL type `inputReportReasonPornography#2e59d922`.
type InputReportReasonSpam ¶
type InputReportReasonSpam struct {
}
InputReportReasonSpam represents TL type `inputReportReasonSpam#58dbcab8`.
type InputReportReasonViolence ¶
type InputReportReasonViolence struct {
}
InputReportReasonViolence represents TL type `inputReportReasonViolence#1e22c78d`.
type InputSecureFile ¶
type InputSecureFile struct {
// ID field of InputSecureFile.
ID int64
// AccessHash field of InputSecureFile.
AccessHash int64
}
InputSecureFile represents TL type `inputSecureFile#5367e5be`.
type InputSecureFileBox ¶
type InputSecureFileBox struct {
InputSecureFile InputSecureFileClass
}
InputSecureFile boxes the InputSecureFileClass providing a helper.
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`.
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`.
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`.
type InputStickerSetBox ¶
type InputStickerSetBox struct {
InputStickerSet InputStickerSetClass
}
InputStickerSet boxes the InputStickerSetClass providing a helper.
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`.
type InputStickerSetEmpty ¶
type InputStickerSetEmpty struct {
}
InputStickerSetEmpty represents TL type `inputStickerSetEmpty#ffb62b95`.
type InputStickerSetID ¶
type InputStickerSetID struct {
// ID field of InputStickerSetID.
ID int64
// AccessHash field of InputStickerSetID.
AccessHash int64
}
InputStickerSetID represents TL type `inputStickerSetID#9de7a269`.
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`.
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`.
type InputStickeredMediaBox ¶
type InputStickeredMediaBox struct {
InputStickeredMedia InputStickeredMediaClass
}
InputStickeredMedia boxes the InputStickeredMediaClass providing a helper.
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`.
type InputStickeredMediaPhoto ¶
type InputStickeredMediaPhoto struct {
// ID field of InputStickeredMediaPhoto.
ID InputPhotoClass
}
InputStickeredMediaPhoto represents TL type `inputStickeredMediaPhoto#4a992157`.
type InputTakeoutFileLocation ¶
type InputTakeoutFileLocation struct {
}
InputTakeoutFileLocation represents TL type `inputTakeoutFileLocation#29be5899`.
type InputTheme ¶
type InputTheme struct {
// ID field of InputTheme.
ID int64
// AccessHash field of InputTheme.
AccessHash int64
}
InputTheme represents TL type `inputTheme#3c5693e9`.
type InputThemeBox ¶
type InputThemeBox struct {
InputTheme InputThemeClass
}
InputTheme boxes the InputThemeClass providing a helper.
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`.
type InputUser ¶
type InputUser struct {
// UserID field of InputUser.
UserID int
// AccessHash field of InputUser.
AccessHash int64
}
InputUser represents TL type `inputUser#d8292816`.
type InputUserBox ¶
type InputUserBox struct {
InputUser InputUserClass
}
InputUser boxes the InputUserClass providing a helper.
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`.
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`.
type InputUserSelf ¶
type InputUserSelf struct {
}
InputUserSelf represents TL type `inputUserSelf#f7c1b13f`.
type InputWallPaper ¶
type InputWallPaper struct {
// ID field of InputWallPaper.
ID int64
// AccessHash field of InputWallPaper.
AccessHash int64
}
InputWallPaper represents TL type `inputWallPaper#e630b979`.
type InputWallPaperBox ¶
type InputWallPaperBox struct {
InputWallPaper InputWallPaperClass
}
InputWallPaper boxes the InputWallPaperClass providing a helper.
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`.
type InputWallPaperSlug ¶
type InputWallPaperSlug struct {
// Slug field of InputWallPaperSlug.
Slug string
}
InputWallPaperSlug represents TL type `inputWallPaperSlug#72091c80`.
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`.
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`.
type InputWebFileLocation ¶
type InputWebFileLocation struct {
// URL field of InputWebFileLocation.
URL string
// AccessHash field of InputWebFileLocation.
AccessHash int64
}
InputWebFileLocation represents TL type `inputWebFileLocation#c239d686`.
type InputWebFileLocationBox ¶
type InputWebFileLocationBox struct {
InputWebFileLocation InputWebFileLocationClass
}
InputWebFileLocation boxes the InputWebFileLocationClass providing a helper.
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) SetEmailRequested ¶
SetEmailRequested sets value of EmailRequested conditional field.
func (*Invoice) SetEmailToProvider ¶
SetEmailToProvider sets value of EmailToProvider conditional field.
func (*Invoice) SetFlexible ¶
SetFlexible sets value of Flexible conditional field.
func (*Invoice) SetNameRequested ¶
SetNameRequested sets value of NameRequested conditional field.
func (*Invoice) SetPhoneRequested ¶
SetPhoneRequested sets value of PhoneRequested conditional field.
func (*Invoice) SetPhoneToProvider ¶
SetPhoneToProvider sets value of PhoneToProvider conditional field.
func (*Invoice) SetShippingAddressRequested ¶
SetShippingAddressRequested sets value of ShippingAddressRequested 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.
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`.
type JsonBool ¶
type JsonBool struct {
// Value field of JsonBool.
Value bool
}
JsonBool represents TL type `jsonBool#c7345e6a`.
type JsonNull ¶
type JsonNull struct {
}
JsonNull represents TL type `jsonNull#3f6d7b68`.
type JsonNumber ¶
type JsonNumber struct {
// Value field of JsonNumber.
Value float64
}
JsonNumber represents TL type `jsonNumber#2be0dfa4`.
type JsonObject ¶
type JsonObject struct {
// Value field of JsonObject.
Value []JsonObjectValue
}
JsonObject represents TL type `jsonObject#99c1d49d`.
type JsonObjectValue ¶
type JsonObjectValue struct {
// Key field of JsonObjectValue.
Key string
// Value field of JsonObjectValue.
Value JSONValueClass
}
JsonObjectValue represents TL type `jsonObjectValue#c0de1bd9`.
type JsonString ¶
type JsonString struct {
// Value field of JsonString.
Value string
}
JsonString represents TL type `jsonString#b71e767a`.
type KeyboardButton ¶
type KeyboardButton struct {
// Text field of KeyboardButton.
Text string
}
KeyboardButton represents TL type `keyboardButton#a2fa4880`.
type KeyboardButtonBox ¶
type KeyboardButtonBox struct {
KeyboardButton KeyboardButtonClass
}
KeyboardButton boxes the KeyboardButtonClass providing a helper.
type KeyboardButtonBuy ¶
type KeyboardButtonBuy struct {
// Text field of KeyboardButtonBuy.
Text string
}
KeyboardButtonBuy represents TL type `keyboardButtonBuy#afd93fbb`.
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`.
type KeyboardButtonRequestGeoLocation ¶
type KeyboardButtonRequestGeoLocation struct {
// Text field of KeyboardButtonRequestGeoLocation.
Text string
}
KeyboardButtonRequestGeoLocation represents TL type `keyboardButtonRequestGeoLocation#fc796b3f`.
type KeyboardButtonRequestPhone ¶
type KeyboardButtonRequestPhone struct {
// Text field of KeyboardButtonRequestPhone.
Text string
}
KeyboardButtonRequestPhone represents TL type `keyboardButtonRequestPhone#b16a6c29`.
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`.
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 ¶
func (k *KeyboardButtonSwitchInline) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*KeyboardButtonSwitchInline) Encode ¶
func (k *KeyboardButtonSwitchInline) Encode(b *bin.Buffer) error
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`.
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`.
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`.
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`.
type LangPackStringBox ¶
type LangPackStringBox struct {
LangPackString LangPackStringClass
}
LangPackString boxes the LangPackStringClass providing a helper.
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`.
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`.
type LangpackGetLangPackRequest ¶
type LangpackGetLangPackRequest struct {
// LangPack field of LangpackGetLangPackRequest.
LangPack string
// LangCode field of LangpackGetLangPackRequest.
LangCode string
}
LangpackGetLangPackRequest represents TL type `langpack.getLangPack#f2f2330a`.
type LangpackGetLanguageRequest ¶
type LangpackGetLanguageRequest struct {
// LangPack field of LangpackGetLanguageRequest.
LangPack string
// LangCode field of LangpackGetLanguageRequest.
LangCode string
}
LangpackGetLanguageRequest represents TL type `langpack.getLanguage#6a596502`.
type LangpackGetLanguagesRequest ¶
type LangpackGetLanguagesRequest struct {
// LangPack field of LangpackGetLanguagesRequest.
LangPack string
}
LangpackGetLanguagesRequest represents TL type `langpack.getLanguages#42c6978f`.
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`.
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`.
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) GetEditDate ¶
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 ¶
GetForwards returns value of Forwards conditional field and boolean which is true if field was set.
func (*Message) GetFromID ¶
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 ¶
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 ¶
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 ¶
GetViaBotID returns value of ViaBotID conditional field and boolean which is true if field was set.
func (*Message) GetViews ¶
GetViews returns value of Views conditional field and boolean which is true if field was set.
func (*Message) SetEditDate ¶
SetEditDate sets value of EditDate conditional field.
func (*Message) SetEditHide ¶
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 ¶
SetForwards sets value of Forwards conditional field.
func (*Message) SetFromScheduled ¶
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 ¶
SetGroupedID sets value of GroupedID conditional field.
func (*Message) SetMedia ¶
func (m *Message) SetMedia(value MessageMediaClass)
SetMedia sets value of Media conditional field.
func (*Message) SetMediaUnread ¶
SetMediaUnread sets value of MediaUnread conditional field.
func (*Message) SetMentioned ¶
SetMentioned sets value of Mentioned conditional field.
func (*Message) SetPostAuthor ¶
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) SetViaBotID ¶
SetViaBotID sets value of ViaBotID conditional field.
type MessageActionBotAllowed ¶
type MessageActionBotAllowed struct {
// Domain field of MessageActionBotAllowed.
Domain string
}
MessageActionBotAllowed represents TL type `messageActionBotAllowed#abe9affe`.
type MessageActionBox ¶
type MessageActionBox struct {
MessageAction MessageActionClass
}
MessageAction boxes the MessageActionClass providing a helper.
type MessageActionChannelCreate ¶
type MessageActionChannelCreate struct {
// Title field of MessageActionChannelCreate.
Title string
}
MessageActionChannelCreate represents TL type `messageActionChannelCreate#95d2ac92`.
type MessageActionChannelMigrateFrom ¶
type MessageActionChannelMigrateFrom struct {
// Title field of MessageActionChannelMigrateFrom.
Title string
// ChatID field of MessageActionChannelMigrateFrom.
ChatID int
}
MessageActionChannelMigrateFrom represents TL type `messageActionChannelMigrateFrom#b055eaee`.
type MessageActionChatAddUser ¶
type MessageActionChatAddUser struct {
// Users field of MessageActionChatAddUser.
Users []int
}
MessageActionChatAddUser represents TL type `messageActionChatAddUser#488a7337`.
type MessageActionChatCreate ¶
type MessageActionChatCreate struct {
// Title field of MessageActionChatCreate.
Title string
// Users field of MessageActionChatCreate.
Users []int
}
MessageActionChatCreate represents TL type `messageActionChatCreate#a6638b9a`.
type MessageActionChatDeletePhoto ¶
type MessageActionChatDeletePhoto struct {
}
MessageActionChatDeletePhoto represents TL type `messageActionChatDeletePhoto#95e3fbef`.
type MessageActionChatDeleteUser ¶
type MessageActionChatDeleteUser struct {
// UserID field of MessageActionChatDeleteUser.
UserID int
}
MessageActionChatDeleteUser represents TL type `messageActionChatDeleteUser#b2ae9b0c`.
type MessageActionChatEditPhoto ¶
type MessageActionChatEditPhoto struct {
// Photo field of MessageActionChatEditPhoto.
Photo PhotoClass
}
MessageActionChatEditPhoto represents TL type `messageActionChatEditPhoto#7fcb13a8`.
type MessageActionChatEditTitle ¶
type MessageActionChatEditTitle struct {
// Title field of MessageActionChatEditTitle.
Title string
}
MessageActionChatEditTitle represents TL type `messageActionChatEditTitle#b5a1ce5a`.
type MessageActionChatJoinedByLink ¶
type MessageActionChatJoinedByLink struct {
// InviterID field of MessageActionChatJoinedByLink.
InviterID int
}
MessageActionChatJoinedByLink represents TL type `messageActionChatJoinedByLink#f89cf5e8`.
type MessageActionChatMigrateTo ¶
type MessageActionChatMigrateTo struct {
// ChannelID field of MessageActionChatMigrateTo.
ChannelID int
}
MessageActionChatMigrateTo represents TL type `messageActionChatMigrateTo#51bdb021`.
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`.
type MessageActionCustomAction ¶
type MessageActionCustomAction struct {
// Message field of MessageActionCustomAction.
Message string
}
MessageActionCustomAction represents TL type `messageActionCustomAction#fae69f56`.
type MessageActionEmpty ¶
type MessageActionEmpty struct {
}
MessageActionEmpty represents TL type `messageActionEmpty#b6aef7b0`.
type MessageActionGameScore ¶
type MessageActionGameScore struct {
// GameID field of MessageActionGameScore.
GameID int64
// Score field of MessageActionGameScore.
Score int
}
MessageActionGameScore represents TL type `messageActionGameScore#92a72876`.
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`.
type MessageActionHistoryClear ¶
type MessageActionHistoryClear struct {
}
MessageActionHistoryClear represents TL type `messageActionHistoryClear#9fbab604`.
type MessageActionPaymentSent ¶
type MessageActionPaymentSent struct {
// Currency field of MessageActionPaymentSent.
Currency string
// TotalAmount field of MessageActionPaymentSent.
TotalAmount int64
}
MessageActionPaymentSent represents TL type `messageActionPaymentSent#40699cd0`.
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 ¶
func (m *MessageActionPaymentSentMe) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageActionPaymentSentMe) Encode ¶
func (m *MessageActionPaymentSentMe) Encode(b *bin.Buffer) error
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 ¶
func (m *MessageActionPaymentSentMe) SetInfo(value PaymentRequestedInfo)
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 ¶
func (m *MessageActionPhoneCall) SetReason(value PhoneCallDiscardReasonClass)
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`.
type MessageActionScreenshotTaken ¶
type MessageActionScreenshotTaken struct {
}
MessageActionScreenshotTaken represents TL type `messageActionScreenshotTaken#4792929b`.
type MessageActionSecureValuesSent ¶
type MessageActionSecureValuesSent struct {
// Types field of MessageActionSecureValuesSent.
Types []SecureValueTypeClass
}
MessageActionSecureValuesSent represents TL type `messageActionSecureValuesSent#d95c6154`.
type MessageActionSecureValuesSentMe ¶
type MessageActionSecureValuesSentMe struct {
// Values field of MessageActionSecureValuesSentMe.
Values []SecureValue
// Credentials field of MessageActionSecureValuesSentMe.
Credentials SecureCredentialsEncrypted
}
MessageActionSecureValuesSentMe represents TL type `messageActionSecureValuesSentMe#1b287353`.
type MessageBox ¶
type MessageBox struct {
Message MessageClass
}
Message boxes the MessageClass providing a helper.
type MessageClass ¶
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`.
type MessageEntityBankCard ¶
type MessageEntityBankCard struct {
// Offset field of MessageEntityBankCard.
Offset int
// Length field of MessageEntityBankCard.
Length int
}
MessageEntityBankCard represents TL type `messageEntityBankCard#761e6af4`.
type MessageEntityBlockquote ¶
type MessageEntityBlockquote struct {
// Offset field of MessageEntityBlockquote.
Offset int
// Length field of MessageEntityBlockquote.
Length int
}
MessageEntityBlockquote represents TL type `messageEntityBlockquote#20df5d0`.
type MessageEntityBold ¶
type MessageEntityBold struct {
// Offset field of MessageEntityBold.
Offset int
// Length field of MessageEntityBold.
Length int
}
MessageEntityBold represents TL type `messageEntityBold#bd610bc9`.
type MessageEntityBotCommand ¶
type MessageEntityBotCommand struct {
// Offset field of MessageEntityBotCommand.
Offset int
// Length field of MessageEntityBotCommand.
Length int
}
MessageEntityBotCommand represents TL type `messageEntityBotCommand#6cef8ac7`.
type MessageEntityBox ¶
type MessageEntityBox struct {
MessageEntity MessageEntityClass
}
MessageEntity boxes the MessageEntityClass providing a helper.
type MessageEntityCashtag ¶
type MessageEntityCashtag struct {
// Offset field of MessageEntityCashtag.
Offset int
// Length field of MessageEntityCashtag.
Length int
}
MessageEntityCashtag represents TL type `messageEntityCashtag#4c4e743f`.
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`.
type MessageEntityEmail ¶
type MessageEntityEmail struct {
// Offset field of MessageEntityEmail.
Offset int
// Length field of MessageEntityEmail.
Length int
}
MessageEntityEmail represents TL type `messageEntityEmail#64e475c2`.
type MessageEntityHashtag ¶
type MessageEntityHashtag struct {
// Offset field of MessageEntityHashtag.
Offset int
// Length field of MessageEntityHashtag.
Length int
}
MessageEntityHashtag represents TL type `messageEntityHashtag#6f635b0d`.
type MessageEntityItalic ¶
type MessageEntityItalic struct {
// Offset field of MessageEntityItalic.
Offset int
// Length field of MessageEntityItalic.
Length int
}
MessageEntityItalic represents TL type `messageEntityItalic#826f8b60`.
type MessageEntityMention ¶
type MessageEntityMention struct {
// Offset field of MessageEntityMention.
Offset int
// Length field of MessageEntityMention.
Length int
}
MessageEntityMention represents TL type `messageEntityMention#fa04579d`.
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`.
type MessageEntityPhone ¶
type MessageEntityPhone struct {
// Offset field of MessageEntityPhone.
Offset int
// Length field of MessageEntityPhone.
Length int
}
MessageEntityPhone represents TL type `messageEntityPhone#9b69e34b`.
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`.
type MessageEntityStrike ¶
type MessageEntityStrike struct {
// Offset field of MessageEntityStrike.
Offset int
// Length field of MessageEntityStrike.
Length int
}
MessageEntityStrike represents TL type `messageEntityStrike#bf0693d4`.
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`.
type MessageEntityUnderline ¶
type MessageEntityUnderline struct {
// Offset field of MessageEntityUnderline.
Offset int
// Length field of MessageEntityUnderline.
Length int
}
MessageEntityUnderline represents TL type `messageEntityUnderline#9c4e7e8b`.
type MessageEntityUnknown ¶
type MessageEntityUnknown struct {
// Offset field of MessageEntityUnknown.
Offset int
// Length field of MessageEntityUnknown.
Length int
}
MessageEntityUnknown represents TL type `messageEntityUnknown#bb92ba95`.
type MessageEntityUrl ¶
type MessageEntityUrl struct {
// Offset field of MessageEntityUrl.
Offset int
// Length field of MessageEntityUrl.
Length int
}
MessageEntityUrl represents TL type `messageEntityUrl#6ed02538`.
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`.
type MessageMediaBox ¶
type MessageMediaBox struct {
MessageMedia MessageMediaClass
}
MessageMedia boxes the MessageMediaClass providing a helper.
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`.
type MessageMediaDice ¶
type MessageMediaDice struct {
// Value field of MessageMediaDice.
Value int
// Emoticon field of MessageMediaDice.
Emoticon string
}
MessageMediaDice represents TL type `messageMediaDice#3f7ee58b`.
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`.
type MessageMediaGame ¶
type MessageMediaGame struct {
// Game field of MessageMediaGame.
Game Game
}
MessageMediaGame represents TL type `messageMediaGame#fdb19008`.
type MessageMediaGeo ¶
type MessageMediaGeo struct {
// Geo field of MessageMediaGeo.
Geo GeoPointClass
}
MessageMediaGeo represents TL type `messageMediaGeo#56e0d474`.
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`.
type MessageMediaUnsupported ¶
type MessageMediaUnsupported struct {
}
MessageMediaUnsupported represents TL type `messageMediaUnsupported#9f84f49e`.
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`.
type MessageMediaWebPage ¶
type MessageMediaWebPage struct {
// Webpage field of MessageMediaWebPage.
Webpage WebPageClass
}
MessageMediaWebPage represents TL type `messageMediaWebPage#a32dd600`.
type MessageRange ¶
type MessageRange struct {
// MinID field of MessageRange.
MinID int
// MaxID field of MessageRange.
MaxID int
}
MessageRange represents TL type `messageRange#ae30253`.
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`.
type MessageUserVoteBox ¶
type MessageUserVoteBox struct {
MessageUserVote MessageUserVoteClass
}
MessageUserVote boxes the MessageUserVoteClass providing a helper.
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`.
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`.
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`.
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 ¶
func (a *MessagesAcceptUrlAuthRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesAcceptUrlAuthRequest) Encode ¶
func (a *MessagesAcceptUrlAuthRequest) Encode(b *bin.Buffer) error
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`.
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`.
type MessagesAffectedMessages ¶
type MessagesAffectedMessages struct {
// Pts field of MessagesAffectedMessages.
Pts int
// PtsCount field of MessagesAffectedMessages.
PtsCount int
}
MessagesAffectedMessages represents TL type `messages.affectedMessages#84d19185`.
type MessagesAllStickers ¶
type MessagesAllStickers struct {
// Hash field of MessagesAllStickers.
Hash int
// Sets field of MessagesAllStickers.
Sets []StickerSet
}
MessagesAllStickers represents TL type `messages.allStickers#edfd405f`.
type MessagesAllStickersBox ¶
type MessagesAllStickersBox struct {
AllStickers MessagesAllStickersClass
}
MessagesAllStickers boxes the MessagesAllStickersClass providing a helper.
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`.
type MessagesArchivedStickers ¶
type MessagesArchivedStickers struct {
// Count field of MessagesArchivedStickers.
Count int
// Sets field of MessagesArchivedStickers.
Sets []StickerSetCoveredClass
}
MessagesArchivedStickers represents TL type `messages.archivedStickers#4fcba9c8`.
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`.
type MessagesChats ¶
type MessagesChats struct {
// Chats field of MessagesChats.
Chats []ChatClass
}
MessagesChats represents TL type `messages.chats#64ff9fd5`.
type MessagesChatsBox ¶
type MessagesChatsBox struct {
Chats MessagesChatsClass
}
MessagesChats boxes the MessagesChatsClass providing a helper.
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`.
type MessagesCheckChatInviteRequest ¶
type MessagesCheckChatInviteRequest struct {
// Hash field of MessagesCheckChatInviteRequest.
Hash string
}
MessagesCheckChatInviteRequest represents TL type `messages.checkChatInvite#3eadb1bb`.
type MessagesClearAllDraftsRequest ¶
type MessagesClearAllDraftsRequest struct {
}
MessagesClearAllDraftsRequest represents TL type `messages.clearAllDrafts#7e58ee9c`.
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 ¶
func (c *MessagesClearRecentStickersRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesClearRecentStickersRequest) Encode ¶
func (c *MessagesClearRecentStickersRequest) Encode(b *bin.Buffer) error
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`.
type MessagesDeleteChatUserRequest ¶
type MessagesDeleteChatUserRequest struct {
// ChatID field of MessagesDeleteChatUserRequest.
ChatID int
// UserID field of MessagesDeleteChatUserRequest.
UserID InputUserClass
}
MessagesDeleteChatUserRequest represents TL type `messages.deleteChatUser#e0611f16`.
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 ¶
func (d *MessagesDeleteHistoryRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesDeleteHistoryRequest) Encode ¶
func (d *MessagesDeleteHistoryRequest) Encode(b *bin.Buffer) error
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 ¶
func (d *MessagesDeleteMessagesRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesDeleteMessagesRequest) Encode ¶
func (d *MessagesDeleteMessagesRequest) Encode(b *bin.Buffer) error
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`.
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`.
type MessagesDhConfigBox ¶
type MessagesDhConfigBox struct {
DhConfig MessagesDhConfigClass
}
MessagesDhConfig boxes the MessagesDhConfigClass providing a helper.
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`.
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`.
type MessagesDialogsBox ¶
type MessagesDialogsBox struct {
Dialogs MessagesDialogsClass
}
MessagesDialogs boxes the MessagesDialogsClass providing a helper.
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`.
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`.
type MessagesDiscardEncryptionRequest ¶
type MessagesDiscardEncryptionRequest struct {
// ChatID field of MessagesDiscardEncryptionRequest.
ChatID int
}
MessagesDiscardEncryptionRequest represents TL type `messages.discardEncryption#edd923c5`.
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`.
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`.
type MessagesEditChatDefaultBannedRightsRequest ¶
type MessagesEditChatDefaultBannedRightsRequest struct {
// Peer field of MessagesEditChatDefaultBannedRightsRequest.
Peer InputPeerClass
// BannedRights field of MessagesEditChatDefaultBannedRightsRequest.
BannedRights ChatBannedRights
}
MessagesEditChatDefaultBannedRightsRequest represents TL type `messages.editChatDefaultBannedRights#a5866b41`.
type MessagesEditChatPhotoRequest ¶
type MessagesEditChatPhotoRequest struct {
// ChatID field of MessagesEditChatPhotoRequest.
ChatID int
// Photo field of MessagesEditChatPhotoRequest.
Photo InputChatPhotoClass
}
MessagesEditChatPhotoRequest represents TL type `messages.editChatPhoto#ca4c79d8`.
type MessagesEditChatTitleRequest ¶
type MessagesEditChatTitleRequest struct {
// ChatID field of MessagesEditChatTitleRequest.
ChatID int
// Title field of MessagesEditChatTitleRequest.
Title string
}
MessagesEditChatTitleRequest represents TL type `messages.editChatTitle#dc452855`.
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 ¶
func (e *MessagesEditInlineBotMessageRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesEditInlineBotMessageRequest) Encode ¶
func (e *MessagesEditInlineBotMessageRequest) Encode(b *bin.Buffer) error
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 ¶
func (e *MessagesEditInlineBotMessageRequest) SetEntities(value []MessageEntityClass)
SetEntities sets value of Entities conditional field.
func (*MessagesEditInlineBotMessageRequest) SetMedia ¶
func (e *MessagesEditInlineBotMessageRequest) SetMedia(value InputMediaClass)
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 ¶
func (e *MessagesEditMessageRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesEditMessageRequest) Encode ¶
func (e *MessagesEditMessageRequest) Encode(b *bin.Buffer) error
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`.
type MessagesFaveStickerRequest ¶
type MessagesFaveStickerRequest struct {
// ID field of MessagesFaveStickerRequest.
ID InputDocumentClass
// Unfave field of MessagesFaveStickerRequest.
Unfave bool
}
MessagesFaveStickerRequest represents TL type `messages.faveSticker#b9ffc55b`.
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`.
type MessagesFavedStickersBox ¶
type MessagesFavedStickersBox struct {
FavedStickers MessagesFavedStickersClass
}
MessagesFavedStickers boxes the MessagesFavedStickersClass providing a helper.
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`.
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`.
type MessagesFeaturedStickersBox ¶
type MessagesFeaturedStickersBox struct {
FeaturedStickers MessagesFeaturedStickersClass
}
MessagesFeaturedStickers boxes the MessagesFeaturedStickersClass providing a helper.
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`.
type MessagesFilterBox ¶
type MessagesFilterBox struct {
MessagesFilter MessagesFilterClass
}
MessagesFilter boxes the MessagesFilterClass providing a helper.
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 ¶
func (f *MessagesForwardMessagesRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesForwardMessagesRequest) Encode ¶
func (f *MessagesForwardMessagesRequest) Encode(b *bin.Buffer) error
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`.
type MessagesFoundStickerSetsBox ¶
type MessagesFoundStickerSetsBox struct {
FoundStickerSets MessagesFoundStickerSetsClass
}
MessagesFoundStickerSets boxes the MessagesFoundStickerSetsClass providing a helper.
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`.
type MessagesGetAllChatsRequest ¶
type MessagesGetAllChatsRequest struct {
// ExceptIds field of MessagesGetAllChatsRequest.
ExceptIds []int
}
MessagesGetAllChatsRequest represents TL type `messages.getAllChats#eba80ff0`.
type MessagesGetAllDraftsRequest ¶
type MessagesGetAllDraftsRequest struct {
}
MessagesGetAllDraftsRequest represents TL type `messages.getAllDrafts#6a3f8d65`.
type MessagesGetAllStickersRequest ¶
type MessagesGetAllStickersRequest struct {
// Hash field of MessagesGetAllStickersRequest.
Hash int
}
MessagesGetAllStickersRequest represents TL type `messages.getAllStickers#1c9618b1`.
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 ¶
func (g *MessagesGetArchivedStickersRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesGetArchivedStickersRequest) Encode ¶
func (g *MessagesGetArchivedStickersRequest) Encode(b *bin.Buffer) error
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`.
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 ¶
func (g *MessagesGetBotCallbackAnswerRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesGetBotCallbackAnswerRequest) Encode ¶
func (g *MessagesGetBotCallbackAnswerRequest) Encode(b *bin.Buffer) error
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 ¶
func (g *MessagesGetBotCallbackAnswerRequest) GetPassword() (value InputCheckPasswordSRPClass, ok bool)
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 ¶
func (g *MessagesGetBotCallbackAnswerRequest) SetPassword(value InputCheckPasswordSRPClass)
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`.
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`.
type MessagesGetDhConfigRequest ¶
type MessagesGetDhConfigRequest struct {
// Version field of MessagesGetDhConfigRequest.
Version int
// RandomLength field of MessagesGetDhConfigRequest.
RandomLength int
}
MessagesGetDhConfigRequest represents TL type `messages.getDhConfig#26cf8950`.
type MessagesGetDialogFiltersRequest ¶
type MessagesGetDialogFiltersRequest struct {
}
MessagesGetDialogFiltersRequest represents TL type `messages.getDialogFilters#f19ed96d`.
type MessagesGetDialogUnreadMarksRequest ¶
type MessagesGetDialogUnreadMarksRequest struct {
}
MessagesGetDialogUnreadMarksRequest represents TL type `messages.getDialogUnreadMarks#22e24e22`.
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`.
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`.
type MessagesGetEmojiKeywordsDifferenceRequest ¶
type MessagesGetEmojiKeywordsDifferenceRequest struct {
// LangCode field of MessagesGetEmojiKeywordsDifferenceRequest.
LangCode string
// FromVersion field of MessagesGetEmojiKeywordsDifferenceRequest.
FromVersion int
}
MessagesGetEmojiKeywordsDifferenceRequest represents TL type `messages.getEmojiKeywordsDifference#1508b6af`.
type MessagesGetEmojiKeywordsLanguagesRequest ¶
type MessagesGetEmojiKeywordsLanguagesRequest struct {
// LangCodes field of MessagesGetEmojiKeywordsLanguagesRequest.
LangCodes []string
}
MessagesGetEmojiKeywordsLanguagesRequest represents TL type `messages.getEmojiKeywordsLanguages#4e9963b2`.
type MessagesGetEmojiKeywordsRequest ¶
type MessagesGetEmojiKeywordsRequest struct {
// LangCode field of MessagesGetEmojiKeywordsRequest.
LangCode string
}
MessagesGetEmojiKeywordsRequest represents TL type `messages.getEmojiKeywords#35a0e062`.
type MessagesGetEmojiURLRequest ¶
type MessagesGetEmojiURLRequest struct {
// LangCode field of MessagesGetEmojiURLRequest.
LangCode string
}
MessagesGetEmojiURLRequest represents TL type `messages.getEmojiURL#d5b10c26`.
type MessagesGetFavedStickersRequest ¶
type MessagesGetFavedStickersRequest struct {
// Hash field of MessagesGetFavedStickersRequest.
Hash int
}
MessagesGetFavedStickersRequest represents TL type `messages.getFavedStickers#21ce0b0e`.
type MessagesGetFeaturedStickersRequest ¶
type MessagesGetFeaturedStickersRequest struct {
// Hash field of MessagesGetFeaturedStickersRequest.
Hash int
}
MessagesGetFeaturedStickersRequest represents TL type `messages.getFeaturedStickers#2dacca4f`.
type MessagesGetFullChatRequest ¶
type MessagesGetFullChatRequest struct {
// ChatID field of MessagesGetFullChatRequest.
ChatID int
}
MessagesGetFullChatRequest represents TL type `messages.getFullChat#3b831c66`.
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`.
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`.
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 ¶
func (g *MessagesGetInlineBotResultsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesGetInlineBotResultsRequest) Encode ¶
func (g *MessagesGetInlineBotResultsRequest) Encode(b *bin.Buffer) error
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 ¶
func (g *MessagesGetInlineBotResultsRequest) SetGeoPoint(value InputGeoPointClass)
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`.
type MessagesGetMaskStickersRequest ¶
type MessagesGetMaskStickersRequest struct {
// Hash field of MessagesGetMaskStickersRequest.
Hash int
}
MessagesGetMaskStickersRequest represents TL type `messages.getMaskStickers#65b8c79f`.
type MessagesGetMessageEditDataRequest ¶
type MessagesGetMessageEditDataRequest struct {
// Peer field of MessagesGetMessageEditDataRequest.
Peer InputPeerClass
// ID field of MessagesGetMessageEditDataRequest.
ID int
}
MessagesGetMessageEditDataRequest represents TL type `messages.getMessageEditData#fda68d36`.
type MessagesGetMessagesRequest ¶
type MessagesGetMessagesRequest struct {
// ID field of MessagesGetMessagesRequest.
ID []InputMessageClass
}
MessagesGetMessagesRequest represents TL type `messages.getMessages#63c66506`.
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`.
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`.
type MessagesGetOnlinesRequest ¶
type MessagesGetOnlinesRequest struct {
// Peer field of MessagesGetOnlinesRequest.
Peer InputPeerClass
}
MessagesGetOnlinesRequest represents TL type `messages.getOnlines#6e2be050`.
type MessagesGetPeerDialogsRequest ¶
type MessagesGetPeerDialogsRequest struct {
// Peers field of MessagesGetPeerDialogsRequest.
Peers []InputDialogPeerClass
}
MessagesGetPeerDialogsRequest represents TL type `messages.getPeerDialogs#e470bcfd`.
type MessagesGetPeerSettingsRequest ¶
type MessagesGetPeerSettingsRequest struct {
// Peer field of MessagesGetPeerSettingsRequest.
Peer InputPeerClass
}
MessagesGetPeerSettingsRequest represents TL type `messages.getPeerSettings#3672e09c`.
type MessagesGetPinnedDialogsRequest ¶
type MessagesGetPinnedDialogsRequest struct {
// FolderID field of MessagesGetPinnedDialogsRequest.
FolderID int
}
MessagesGetPinnedDialogsRequest represents TL type `messages.getPinnedDialogs#d6b94df2`.
type MessagesGetPollResultsRequest ¶
type MessagesGetPollResultsRequest struct {
// Peer field of MessagesGetPollResultsRequest.
Peer InputPeerClass
// MsgID field of MessagesGetPollResultsRequest.
MsgID int
}
MessagesGetPollResultsRequest represents TL type `messages.getPollResults#73bb643b`.
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 ¶
func (g *MessagesGetPollVotesRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesGetPollVotesRequest) Encode ¶
func (g *MessagesGetPollVotesRequest) Encode(b *bin.Buffer) error
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`.
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 ¶
func (g *MessagesGetRecentStickersRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesGetRecentStickersRequest) Encode ¶
func (g *MessagesGetRecentStickersRequest) Encode(b *bin.Buffer) error
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`.
type MessagesGetSavedGifsRequest ¶
type MessagesGetSavedGifsRequest struct {
// Hash field of MessagesGetSavedGifsRequest.
Hash int
}
MessagesGetSavedGifsRequest represents TL type `messages.getSavedGifs#83bf3d52`.
type MessagesGetScheduledHistoryRequest ¶
type MessagesGetScheduledHistoryRequest struct {
// Peer field of MessagesGetScheduledHistoryRequest.
Peer InputPeerClass
// Hash field of MessagesGetScheduledHistoryRequest.
Hash int
}
MessagesGetScheduledHistoryRequest represents TL type `messages.getScheduledHistory#e2c2685b`.
type MessagesGetScheduledMessagesRequest ¶
type MessagesGetScheduledMessagesRequest struct {
// Peer field of MessagesGetScheduledMessagesRequest.
Peer InputPeerClass
// ID field of MessagesGetScheduledMessagesRequest.
ID []int
}
MessagesGetScheduledMessagesRequest represents TL type `messages.getScheduledMessages#bdbb0464`.
type MessagesGetSearchCountersRequest ¶
type MessagesGetSearchCountersRequest struct {
// Peer field of MessagesGetSearchCountersRequest.
Peer InputPeerClass
// Filters field of MessagesGetSearchCountersRequest.
Filters []MessagesFilterClass
}
MessagesGetSearchCountersRequest represents TL type `messages.getSearchCounters#732eef00`.
type MessagesGetSplitRangesRequest ¶
type MessagesGetSplitRangesRequest struct {
}
MessagesGetSplitRangesRequest represents TL type `messages.getSplitRanges#1cff7e08`.
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 ¶
func (g *MessagesGetStatsURLRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesGetStatsURLRequest) Encode ¶
func (g *MessagesGetStatsURLRequest) Encode(b *bin.Buffer) error
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`.
type MessagesGetStickersRequest ¶
type MessagesGetStickersRequest struct {
// Emoticon field of MessagesGetStickersRequest.
Emoticon string
// Hash field of MessagesGetStickersRequest.
Hash int
}
MessagesGetStickersRequest represents TL type `messages.getStickers#43d4f2c`.
type MessagesGetSuggestedDialogFiltersRequest ¶
type MessagesGetSuggestedDialogFiltersRequest struct {
}
MessagesGetSuggestedDialogFiltersRequest represents TL type `messages.getSuggestedDialogFilters#a29cd42c`.
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`.
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 ¶
func (g *MessagesGetWebPagePreviewRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesGetWebPagePreviewRequest) Encode ¶
func (g *MessagesGetWebPagePreviewRequest) Encode(b *bin.Buffer) error
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`.
type MessagesHidePeerSettingsBarRequest ¶
type MessagesHidePeerSettingsBarRequest struct {
// Peer field of MessagesHidePeerSettingsBarRequest.
Peer InputPeerClass
}
MessagesHidePeerSettingsBarRequest represents TL type `messages.hidePeerSettingsBar#4facb138`.
type MessagesHighScores ¶
type MessagesHighScores struct {
// Scores field of MessagesHighScores.
Scores []HighScore
// Users field of MessagesHighScores.
Users []UserClass
}
MessagesHighScores represents TL type `messages.highScores#9a3bfd99`.
type MessagesImportChatInviteRequest ¶
type MessagesImportChatInviteRequest struct {
// Hash field of MessagesImportChatInviteRequest.
Hash string
}
MessagesImportChatInviteRequest represents TL type `messages.importChatInvite#6c50051c`.
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`.
type MessagesInstallStickerSetRequest ¶
type MessagesInstallStickerSetRequest struct {
// Stickerset field of MessagesInstallStickerSetRequest.
Stickerset InputStickerSetClass
// Archived field of MessagesInstallStickerSetRequest.
Archived bool
}
MessagesInstallStickerSetRequest represents TL type `messages.installStickerSet#c78fe460`.
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 ¶
func (m *MessagesMarkDialogUnreadRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesMarkDialogUnreadRequest) Encode ¶
func (m *MessagesMarkDialogUnreadRequest) Encode(b *bin.Buffer) error
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`.
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`.
type MessagesMessagesBox ¶
type MessagesMessagesBox struct {
Messages MessagesMessagesClass
}
MessagesMessages boxes the MessagesMessagesClass providing a helper.
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`.
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`.
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`.
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`.
type MessagesReadEncryptedHistoryRequest ¶
type MessagesReadEncryptedHistoryRequest struct {
// Peer field of MessagesReadEncryptedHistoryRequest.
Peer InputEncryptedChat
// MaxDate field of MessagesReadEncryptedHistoryRequest.
MaxDate int
}
MessagesReadEncryptedHistoryRequest represents TL type `messages.readEncryptedHistory#7f4b690a`.
type MessagesReadFeaturedStickersRequest ¶
type MessagesReadFeaturedStickersRequest struct {
// ID field of MessagesReadFeaturedStickersRequest.
ID []int64
}
MessagesReadFeaturedStickersRequest represents TL type `messages.readFeaturedStickers#5b118126`.
type MessagesReadHistoryRequest ¶
type MessagesReadHistoryRequest struct {
// Peer field of MessagesReadHistoryRequest.
Peer InputPeerClass
// MaxID field of MessagesReadHistoryRequest.
MaxID int
}
MessagesReadHistoryRequest represents TL type `messages.readHistory#e306d3a`.
type MessagesReadMentionsRequest ¶
type MessagesReadMentionsRequest struct {
// Peer field of MessagesReadMentionsRequest.
Peer InputPeerClass
}
MessagesReadMentionsRequest represents TL type `messages.readMentions#f0189d3`.
type MessagesReadMessageContentsRequest ¶
type MessagesReadMessageContentsRequest struct {
// ID field of MessagesReadMessageContentsRequest.
ID []int
}
MessagesReadMessageContentsRequest represents TL type `messages.readMessageContents#36a73f77`.
type MessagesReceivedMessagesRequest ¶
type MessagesReceivedMessagesRequest struct {
// MaxID field of MessagesReceivedMessagesRequest.
MaxID int
}
MessagesReceivedMessagesRequest represents TL type `messages.receivedMessages#5a954c0`.
type MessagesReceivedQueueRequest ¶
type MessagesReceivedQueueRequest struct {
// MaxQts field of MessagesReceivedQueueRequest.
MaxQts int
}
MessagesReceivedQueueRequest represents TL type `messages.receivedQueue#55a5bb66`.
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`.
type MessagesRecentStickersBox ¶
type MessagesRecentStickersBox struct {
RecentStickers MessagesRecentStickersClass
}
MessagesRecentStickers boxes the MessagesRecentStickersClass providing a helper.
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`.
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 ¶
func (r *MessagesReorderPinnedDialogsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesReorderPinnedDialogsRequest) Encode ¶
func (r *MessagesReorderPinnedDialogsRequest) Encode(b *bin.Buffer) error
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 ¶
func (r *MessagesReorderStickerSetsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesReorderStickerSetsRequest) Encode ¶
func (r *MessagesReorderStickerSetsRequest) Encode(b *bin.Buffer) error
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`.
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`.
type MessagesReportSpamRequest ¶
type MessagesReportSpamRequest struct {
// Peer field of MessagesReportSpamRequest.
Peer InputPeerClass
}
MessagesReportSpamRequest represents TL type `messages.reportSpam#cf1592db`.
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`.
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`.
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`.
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 ¶
func (s *MessagesSaveRecentStickerRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSaveRecentStickerRequest) Encode ¶
func (s *MessagesSaveRecentStickerRequest) Encode(b *bin.Buffer) error
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`.
type MessagesSavedGifsBox ¶
type MessagesSavedGifsBox struct {
SavedGifs MessagesSavedGifsClass
}
MessagesSavedGifs boxes the MessagesSavedGifsClass providing a helper.
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`.
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 ¶
func (s *MessagesSearchGlobalRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSearchGlobalRequest) Encode ¶
func (s *MessagesSearchGlobalRequest) Encode(b *bin.Buffer) error
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 ¶
func (s *MessagesSearchStickerSetsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSearchStickerSetsRequest) Encode ¶
func (s *MessagesSearchStickerSetsRequest) Encode(b *bin.Buffer) error
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 ¶
func (s *MessagesSendEncryptedFileRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSendEncryptedFileRequest) Encode ¶
func (s *MessagesSendEncryptedFileRequest) Encode(b *bin.Buffer) error
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 ¶
func (s *MessagesSendEncryptedRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSendEncryptedRequest) Encode ¶
func (s *MessagesSendEncryptedRequest) Encode(b *bin.Buffer) error
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`.
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 ¶
func (s *MessagesSendInlineBotResultRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSendInlineBotResultRequest) Encode ¶
func (s *MessagesSendInlineBotResultRequest) Encode(b *bin.Buffer) error
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 ¶
func (s *MessagesSendMessageRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSendMessageRequest) Encode ¶
func (s *MessagesSendMessageRequest) Encode(b *bin.Buffer) error
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 ¶
func (s *MessagesSendMultiMediaRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSendMultiMediaRequest) Encode ¶
func (s *MessagesSendMultiMediaRequest) Encode(b *bin.Buffer) error
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`.
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`.
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`.
type MessagesSentEncryptedFile ¶
type MessagesSentEncryptedFile struct {
// Date field of MessagesSentEncryptedFile.
Date int
// File field of MessagesSentEncryptedFile.
File EncryptedFileClass
}
MessagesSentEncryptedFile represents TL type `messages.sentEncryptedFile#9493ff32`.
type MessagesSentEncryptedMessage ¶
type MessagesSentEncryptedMessage struct {
// Date field of MessagesSentEncryptedMessage.
Date int
}
MessagesSentEncryptedMessage represents TL type `messages.sentEncryptedMessage#560f8935`.
type MessagesSentEncryptedMessageBox ¶
type MessagesSentEncryptedMessageBox struct {
SentEncryptedMessage MessagesSentEncryptedMessageClass
}
MessagesSentEncryptedMessage boxes the MessagesSentEncryptedMessageClass providing a helper.
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 ¶
func (s *MessagesSetBotCallbackAnswerRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSetBotCallbackAnswerRequest) Encode ¶
func (s *MessagesSetBotCallbackAnswerRequest) Encode(b *bin.Buffer) error
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 ¶
func (s *MessagesSetBotCallbackAnswerRequest) SetURL(value string)
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 ¶
func (s *MessagesSetBotPrecheckoutResultsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSetBotPrecheckoutResultsRequest) Encode ¶
func (s *MessagesSetBotPrecheckoutResultsRequest) Encode(b *bin.Buffer) error
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 ¶
func (s *MessagesSetBotPrecheckoutResultsRequest) SetError(value string)
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 ¶
func (s *MessagesSetBotShippingResultsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSetBotShippingResultsRequest) Encode ¶
func (s *MessagesSetBotShippingResultsRequest) Encode(b *bin.Buffer) error
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`.
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 ¶
func (s *MessagesSetGameScoreRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSetGameScoreRequest) Encode ¶
func (s *MessagesSetGameScoreRequest) Encode(b *bin.Buffer) error
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 ¶
func (s *MessagesSetInlineBotResultsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSetInlineBotResultsRequest) Encode ¶
func (s *MessagesSetInlineBotResultsRequest) Encode(b *bin.Buffer) error
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 ¶
func (s *MessagesSetInlineBotResultsRequest) SetSwitchPm(value InlineBotSwitchPM)
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 ¶
func (s *MessagesSetInlineGameScoreRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesSetInlineGameScoreRequest) Encode ¶
func (s *MessagesSetInlineGameScoreRequest) Encode(b *bin.Buffer) error
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`.
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`.
type MessagesStickerSetInstallResultArchive ¶
type MessagesStickerSetInstallResultArchive struct {
// Sets field of MessagesStickerSetInstallResultArchive.
Sets []StickerSetCoveredClass
}
MessagesStickerSetInstallResultArchive represents TL type `messages.stickerSetInstallResultArchive#35e410a8`.
type MessagesStickerSetInstallResultBox ¶
type MessagesStickerSetInstallResultBox struct {
StickerSetInstallResult MessagesStickerSetInstallResultClass
}
MessagesStickerSetInstallResult boxes the MessagesStickerSetInstallResultClass providing a helper.
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`.
type MessagesStickers ¶
type MessagesStickers struct {
// Hash field of MessagesStickers.
Hash int
// Stickers field of MessagesStickers.
Stickers []DocumentClass
}
MessagesStickers represents TL type `messages.stickers#e4599bbd`.
type MessagesStickersBox ¶
type MessagesStickersBox struct {
Stickers MessagesStickersClass
}
MessagesStickers boxes the MessagesStickersClass providing a helper.
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`.
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 ¶
func (t *MessagesToggleDialogPinRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesToggleDialogPinRequest) Encode ¶
func (t *MessagesToggleDialogPinRequest) Encode(b *bin.Buffer) error
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 ¶
func (t *MessagesToggleStickerSetsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesToggleStickerSetsRequest) Encode ¶
func (t *MessagesToggleStickerSetsRequest) Encode(b *bin.Buffer) error
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`.
type MessagesUnpinAllMessagesRequest ¶
type MessagesUnpinAllMessagesRequest struct {
// Peer field of MessagesUnpinAllMessagesRequest.
Peer InputPeerClass
}
MessagesUnpinAllMessagesRequest represents TL type `messages.unpinAllMessages#f025bc8b`.
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 ¶
func (u *MessagesUpdateDialogFilterRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesUpdateDialogFilterRequest) Encode ¶
func (u *MessagesUpdateDialogFilterRequest) Encode(b *bin.Buffer) error
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`.
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 ¶
func (u *MessagesUpdatePinnedMessageRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessagesUpdatePinnedMessageRequest) Encode ¶
func (u *MessagesUpdatePinnedMessageRequest) Encode(b *bin.Buffer) error
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`.
type MessagesUploadMediaRequest ¶
type MessagesUploadMediaRequest struct {
// Peer field of MessagesUploadMediaRequest.
Peer InputPeerClass
// Media field of MessagesUploadMediaRequest.
Media InputMediaClass
}
MessagesUploadMediaRequest represents TL type `messages.uploadMedia#519bc2b1`.
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`.
type NotifyBroadcasts ¶
type NotifyBroadcasts struct {
}
NotifyBroadcasts represents TL type `notifyBroadcasts#d612e8ef`.
type NotifyChats ¶
type NotifyChats struct {
}
NotifyChats represents TL type `notifyChats#c007cec3`.
type NotifyPeer ¶
type NotifyPeer struct {
// Peer field of NotifyPeer.
Peer PeerClass
}
NotifyPeer represents TL type `notifyPeer#9fd40bd8`.
type NotifyPeerBox ¶
type NotifyPeerBox struct {
NotifyPeer NotifyPeerClass
}
NotifyPeer boxes the NotifyPeerClass providing a helper.
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`.
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) GetViews ¶
GetViews returns value of Views conditional field and boolean which is true if field was set.
type PageBlockAnchor ¶
type PageBlockAnchor struct {
// Name field of PageBlockAnchor.
Name string
}
PageBlockAnchor represents TL type `pageBlockAnchor#ce0d37b0`.
type PageBlockAudio ¶
type PageBlockAudio struct {
// AudioID field of PageBlockAudio.
AudioID int64
// Caption field of PageBlockAudio.
Caption PageCaption
}
PageBlockAudio represents TL type `pageBlockAudio#804361ea`.
type PageBlockAuthorDate ¶
type PageBlockAuthorDate struct {
// Author field of PageBlockAuthorDate.
Author RichTextClass
// PublishedDate field of PageBlockAuthorDate.
PublishedDate int
}
PageBlockAuthorDate represents TL type `pageBlockAuthorDate#baafe5e0`.
type PageBlockBlockquote ¶
type PageBlockBlockquote struct {
// Text field of PageBlockBlockquote.
Text RichTextClass
// Caption field of PageBlockBlockquote.
Caption RichTextClass
}
PageBlockBlockquote represents TL type `pageBlockBlockquote#263d7c26`.
type PageBlockBox ¶
type PageBlockBox struct {
PageBlock PageBlockClass
}
PageBlock boxes the PageBlockClass providing a helper.
type PageBlockChannel ¶
type PageBlockChannel struct {
// Channel field of PageBlockChannel.
Channel ChatClass
}
PageBlockChannel represents TL type `pageBlockChannel#ef1751b5`.
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`.
type PageBlockCover ¶
type PageBlockCover struct {
// Cover field of PageBlockCover.
Cover PageBlockClass
}
PageBlockCover represents TL type `pageBlockCover#39f23300`.
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`.
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`.
type PageBlockFooter ¶
type PageBlockFooter struct {
Text RichTextClass
}
PageBlockFooter represents TL type `pageBlockFooter#48870999`.
type PageBlockHeader ¶
type PageBlockHeader struct {
// Text field of PageBlockHeader.
Text RichTextClass
}
PageBlockHeader represents TL type `pageBlockHeader#bfd064ec`.
type PageBlockKicker ¶
type PageBlockKicker struct {
// Text field of PageBlockKicker.
Text RichTextClass
}
PageBlockKicker represents TL type `pageBlockKicker#1e148390`.
type PageBlockList ¶
type PageBlockList struct {
// Items field of PageBlockList.
Items []PageListItemClass
}
PageBlockList represents TL type `pageBlockList#e4e88011`.
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`.
type PageBlockOrderedList ¶
type PageBlockOrderedList struct {
// Items field of PageBlockOrderedList.
Items []PageListOrderedItemClass
}
PageBlockOrderedList represents TL type `pageBlockOrderedList#9a8ae1e1`.
type PageBlockParagraph ¶
type PageBlockParagraph struct {
// Text field of PageBlockParagraph.
Text RichTextClass
}
PageBlockParagraph represents TL type `pageBlockParagraph#467a0766`.
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`.
type PageBlockPullquote ¶
type PageBlockPullquote struct {
// Text field of PageBlockPullquote.
Text RichTextClass
// Caption field of PageBlockPullquote.
Caption RichTextClass
}
PageBlockPullquote represents TL type `pageBlockPullquote#4f4456d3`.
type PageBlockRelatedArticles ¶
type PageBlockRelatedArticles struct {
// Title field of PageBlockRelatedArticles.
Title RichTextClass
// Articles field of PageBlockRelatedArticles.
Articles []PageRelatedArticle
}
PageBlockRelatedArticles represents TL type `pageBlockRelatedArticles#16115a96`.
type PageBlockSlideshow ¶
type PageBlockSlideshow struct {
// Items field of PageBlockSlideshow.
Items []PageBlockClass
// Caption field of PageBlockSlideshow.
Caption PageCaption
}
PageBlockSlideshow represents TL type `pageBlockSlideshow#31f9590`.
type PageBlockSubheader ¶
type PageBlockSubheader struct {
// Text field of PageBlockSubheader.
Text RichTextClass
}
PageBlockSubheader represents TL type `pageBlockSubheader#f12bb6e1`.
type PageBlockSubtitle ¶
type PageBlockSubtitle struct {
// Text field of PageBlockSubtitle.
Text RichTextClass
}
PageBlockSubtitle represents TL type `pageBlockSubtitle#8ffa9a1f`.
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`.
type PageBlockUnsupported ¶
type PageBlockUnsupported struct {
}
PageBlockUnsupported represents TL type `pageBlockUnsupported#13567e8a`.
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`.
type PageListItemBlocks ¶
type PageListItemBlocks struct {
// Blocks field of PageListItemBlocks.
Blocks []PageBlockClass
}
PageListItemBlocks represents TL type `pageListItemBlocks#25e073fc`.
type PageListItemBox ¶
type PageListItemBox struct {
PageListItem PageListItemClass
}
PageListItem boxes the PageListItemClass providing a helper.
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`.
type PageListOrderedItemBlocks ¶
type PageListOrderedItemBlocks struct {
// Num field of PageListOrderedItemBlocks.
Num string
// Blocks field of PageListOrderedItemBlocks.
Blocks []PageBlockClass
}
PageListOrderedItemBlocks represents TL type `pageListOrderedItemBlocks#98dd8936`.
type PageListOrderedItemBox ¶
type PageListOrderedItemBox struct {
PageListOrderedItem PageListOrderedItemClass
}
PageListOrderedItem boxes the PageListOrderedItemClass providing a helper.
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`.
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`.
type PasswordKdfAlgoBox ¶
type PasswordKdfAlgoBox struct {
PasswordKdfAlgo PasswordKdfAlgoClass
}
PasswordKdfAlgo boxes the PasswordKdfAlgoClass providing a helper.
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`.
type PasswordKdfAlgoUnknown ¶
type PasswordKdfAlgoUnknown struct {
}
PasswordKdfAlgoUnknown represents TL type `passwordKdfAlgoUnknown#d45ab096`.
type PaymentCharge ¶
type PaymentCharge struct {
// ID field of PaymentCharge.
ID string
// ProviderChargeID field of PaymentCharge.
ProviderChargeID string
}
PaymentCharge represents TL type `paymentCharge#ea02c27e`.
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`.
type PaymentsBankCardData ¶
type PaymentsBankCardData struct {
// Title field of PaymentsBankCardData.
Title string
// OpenUrls field of PaymentsBankCardData.
OpenUrls []BankCardOpenUrl
}
PaymentsBankCardData represents TL type `payments.bankCardData#3e24e573`.
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 ¶
func (c *PaymentsClearSavedInfoRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*PaymentsClearSavedInfoRequest) Encode ¶
func (c *PaymentsClearSavedInfoRequest) Encode(b *bin.Buffer) error
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`.
type PaymentsGetPaymentFormRequest ¶
type PaymentsGetPaymentFormRequest struct {
// MsgID field of PaymentsGetPaymentFormRequest.
MsgID int
}
PaymentsGetPaymentFormRequest represents TL type `payments.getPaymentForm#99f09745`.
type PaymentsGetPaymentReceiptRequest ¶
type PaymentsGetPaymentReceiptRequest struct {
// MsgID field of PaymentsGetPaymentReceiptRequest.
MsgID int
}
PaymentsGetPaymentReceiptRequest represents TL type `payments.getPaymentReceipt#a092a980`.
type PaymentsGetSavedInfoRequest ¶
type PaymentsGetSavedInfoRequest struct {
}
PaymentsGetSavedInfoRequest represents TL type `payments.getSavedInfo#227d824b`.
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`.
type PaymentsPaymentResultBox ¶
type PaymentsPaymentResultBox struct {
PaymentResult PaymentsPaymentResultClass
}
PaymentsPaymentResult boxes the PaymentsPaymentResultClass providing a helper.
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`.
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 ¶
func (s *PaymentsSendPaymentFormRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*PaymentsSendPaymentFormRequest) Encode ¶
func (s *PaymentsSendPaymentFormRequest) Encode(b *bin.Buffer) error
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 ¶
func (v *PaymentsValidateRequestedInfoRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*PaymentsValidateRequestedInfoRequest) Encode ¶
func (v *PaymentsValidateRequestedInfoRequest) Encode(b *bin.Buffer) error
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 ¶
func (v *PaymentsValidatedRequestedInfo) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*PaymentsValidatedRequestedInfo) Encode ¶
func (v *PaymentsValidatedRequestedInfo) Encode(b *bin.Buffer) error
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`.
type PeerBox ¶
type PeerBox struct {
Peer PeerClass
}
Peer boxes the PeerClass providing a helper.
type PeerChannel ¶
type PeerChannel struct {
// ChannelID field of PeerChannel.
ChannelID int
}
PeerChannel represents TL type `peerChannel#bddde532`.
type PeerChat ¶
type PeerChat struct {
// ChatID field of PeerChat.
ChatID int
}
PeerChat represents TL type `peerChat#bad0e5bb`.
type PeerClass ¶
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)
}
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`.
type PeerLocatedBox ¶
type PeerLocatedBox struct {
PeerLocated PeerLocatedClass
}
PeerLocated boxes the PeerLocatedClass providing a helper.
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`.
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 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`.
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`.
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) SetP2PAllowed ¶
SetP2PAllowed sets value of P2PAllowed 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.
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.
type PhoneCallDiscardReasonBusy ¶
type PhoneCallDiscardReasonBusy struct {
}
PhoneCallDiscardReasonBusy represents TL type `phoneCallDiscardReasonBusy#faf7e8c9`.
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`.
type PhoneCallDiscardReasonHangup ¶
type PhoneCallDiscardReasonHangup struct {
}
PhoneCallDiscardReasonHangup represents TL type `phoneCallDiscardReasonHangup#57adc690`.
type PhoneCallDiscardReasonMissed ¶
type PhoneCallDiscardReasonMissed struct {
}
PhoneCallDiscardReasonMissed represents TL type `phoneCallDiscardReasonMissed#85e42301`.
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`.
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`.
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`.
type PhoneConnectionBox ¶
type PhoneConnectionBox struct {
PhoneConnection PhoneConnectionClass
}
PhoneConnection boxes the PhoneConnectionClass providing a helper.
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`.
type PhonePhoneCall ¶
type PhonePhoneCall struct {
// PhoneCall field of PhonePhoneCall.
PhoneCall PhoneCallClass
// Users field of PhonePhoneCall.
Users []UserClass
}
PhonePhoneCall represents TL type `phone.phoneCall#ec82e140`.
type PhoneReceivedCallRequest ¶
type PhoneReceivedCallRequest struct {
// Peer field of PhoneReceivedCallRequest.
Peer InputPhoneCall
}
PhoneReceivedCallRequest represents TL type `phone.receivedCall#17d54f61`.
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`.
type PhoneSendSignalingDataRequest ¶
type PhoneSendSignalingDataRequest struct {
// Peer field of PhoneSendSignalingDataRequest.
Peer InputPhoneCall
// Data field of PhoneSendSignalingDataRequest.
Data []byte
}
PhoneSendSignalingDataRequest represents TL type `phone.sendSignalingData#ff7a9383`.
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) GetVideoSizes ¶
GetVideoSizes returns value of VideoSizes conditional field and boolean which is true if field was set.
func (*Photo) SetHasStickers ¶
SetHasStickers sets value of HasStickers conditional field.
func (*Photo) SetVideoSizes ¶
SetVideoSizes sets value of VideoSizes conditional field.
type PhotoBox ¶
type PhotoBox struct {
Photo PhotoClass
}
Photo boxes the PhotoClass providing a helper.
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`.
type PhotoClass ¶
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`.
type PhotoPathSize ¶
type PhotoPathSize struct {
// Type field of PhotoPathSize.
Type string
// Bytes field of PhotoPathSize.
Bytes []byte
}
PhotoPathSize represents TL type `photoPathSize#d8214d41`.
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`.
type PhotoSizeBox ¶
type PhotoSizeBox struct {
PhotoSize PhotoSizeClass
}
PhotoSize boxes the PhotoSizeClass providing a helper.
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`.
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`.
type PhotoStrippedSize ¶
type PhotoStrippedSize struct {
// Type field of PhotoStrippedSize.
Type string
// Bytes field of PhotoStrippedSize.
Bytes []byte
}
PhotoStrippedSize represents TL type `photoStrippedSize#e0b0bc2e`.
type PhotosDeletePhotosRequest ¶
type PhotosDeletePhotosRequest struct {
// ID field of PhotosDeletePhotosRequest.
ID []InputPhotoClass
}
PhotosDeletePhotosRequest represents TL type `photos.deletePhotos#87cf7f2f`.
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`.
type PhotosPhoto ¶
type PhotosPhoto struct {
// Photo field of PhotosPhoto.
Photo PhotoClass
// Users field of PhotosPhoto.
Users []UserClass
}
PhotosPhoto represents TL type `photos.photo#20212ca8`.
type PhotosPhotos ¶
type PhotosPhotos struct {
// Photos field of PhotosPhotos.
Photos []PhotoClass
// Users field of PhotosPhotos.
Users []UserClass
}
PhotosPhotos represents TL type `photos.photos#8dca6aa5`.
type PhotosPhotosBox ¶
type PhotosPhotosBox struct {
Photos PhotosPhotosClass
}
PhotosPhotos boxes the PhotosPhotosClass providing a helper.
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`.
type PhotosUpdateProfilePhotoRequest ¶
type PhotosUpdateProfilePhotoRequest struct {
// ID field of PhotosUpdateProfilePhotoRequest.
ID InputPhotoClass
}
PhotosUpdateProfilePhotoRequest represents TL type `photos.updateProfilePhoto#72d4742c`.
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 ¶
func (u *PhotosUploadProfilePhotoRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*PhotosUploadProfilePhotoRequest) Encode ¶
func (u *PhotosUploadProfilePhotoRequest) Encode(b *bin.Buffer) error
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 ¶
func (u *PhotosUploadProfilePhotoRequest) SetFile(value InputFileClass)
SetFile sets value of File conditional field.
func (*PhotosUploadProfilePhotoRequest) SetVideo ¶
func (u *PhotosUploadProfilePhotoRequest) SetVideo(value InputFileClass)
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) GetCloseDate ¶
GetCloseDate returns value of CloseDate conditional field and boolean which is true if field was set.
func (*Poll) GetClosePeriod ¶
GetClosePeriod returns value of ClosePeriod conditional field and boolean which is true if field was set.
func (*Poll) SetCloseDate ¶
SetCloseDate sets value of CloseDate conditional field.
func (*Poll) SetClosePeriod ¶
SetClosePeriod sets value of ClosePeriod conditional field.
func (*Poll) SetMultipleChoice ¶
SetMultipleChoice sets value of MultipleChoice conditional field.
func (*Poll) SetPublicVoters ¶
SetPublicVoters sets value of PublicVoters 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`.
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`.
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`.
type PrivacyKeyAddedByPhone ¶
type PrivacyKeyAddedByPhone struct {
}
PrivacyKeyAddedByPhone represents TL type `privacyKeyAddedByPhone#42ffd42b`.
type PrivacyKeyBox ¶
type PrivacyKeyBox struct {
PrivacyKey PrivacyKeyClass
}
PrivacyKey boxes the PrivacyKeyClass providing a helper.
type PrivacyKeyChatInvite ¶
type PrivacyKeyChatInvite struct {
}
PrivacyKeyChatInvite represents TL type `privacyKeyChatInvite#500e6dfa`.
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`.
type PrivacyKeyPhoneCall ¶
type PrivacyKeyPhoneCall struct {
}
PrivacyKeyPhoneCall represents TL type `privacyKeyPhoneCall#3d662b7b`.
type PrivacyKeyPhoneNumber ¶
type PrivacyKeyPhoneNumber struct {
}
PrivacyKeyPhoneNumber represents TL type `privacyKeyPhoneNumber#d19ae46d`.
type PrivacyKeyPhoneP2P ¶
type PrivacyKeyPhoneP2P struct {
}
PrivacyKeyPhoneP2P represents TL type `privacyKeyPhoneP2P#39491cc8`.
type PrivacyKeyProfilePhoto ¶
type PrivacyKeyProfilePhoto struct {
}
PrivacyKeyProfilePhoto represents TL type `privacyKeyProfilePhoto#96151fed`.
type PrivacyKeyStatusTimestamp ¶
type PrivacyKeyStatusTimestamp struct {
}
PrivacyKeyStatusTimestamp represents TL type `privacyKeyStatusTimestamp#bc2eab30`.
type PrivacyRuleBox ¶
type PrivacyRuleBox struct {
PrivacyRule PrivacyRuleClass
}
PrivacyRule boxes the PrivacyRuleClass providing a helper.
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`.
type PrivacyValueAllowChatParticipants ¶
type PrivacyValueAllowChatParticipants struct {
// Chats field of PrivacyValueAllowChatParticipants.
Chats []int
}
PrivacyValueAllowChatParticipants represents TL type `privacyValueAllowChatParticipants#18be796b`.
type PrivacyValueAllowContacts ¶
type PrivacyValueAllowContacts struct {
}
PrivacyValueAllowContacts represents TL type `privacyValueAllowContacts#fffe1bac`.
type PrivacyValueAllowUsers ¶
type PrivacyValueAllowUsers struct {
// Users field of PrivacyValueAllowUsers.
Users []int
}
PrivacyValueAllowUsers represents TL type `privacyValueAllowUsers#4d5bbe0c`.
type PrivacyValueDisallowAll ¶
type PrivacyValueDisallowAll struct {
}
PrivacyValueDisallowAll represents TL type `privacyValueDisallowAll#8b73e763`.
type PrivacyValueDisallowChatParticipants ¶
type PrivacyValueDisallowChatParticipants struct {
// Chats field of PrivacyValueDisallowChatParticipants.
Chats []int
}
PrivacyValueDisallowChatParticipants represents TL type `privacyValueDisallowChatParticipants#acae0690`.
type PrivacyValueDisallowContacts ¶
type PrivacyValueDisallowContacts struct {
}
PrivacyValueDisallowContacts represents TL type `privacyValueDisallowContacts#f888fa1a`.
type PrivacyValueDisallowUsers ¶
type PrivacyValueDisallowUsers struct {
// Users field of PrivacyValueDisallowUsers.
Users []int
}
PrivacyValueDisallowUsers represents TL type `privacyValueDisallowUsers#c7f49b7`.
type ReceivedNotifyMessage ¶
type ReceivedNotifyMessage struct {
// ID field of ReceivedNotifyMessage.
ID int
// Flags field of ReceivedNotifyMessage.
Flags int
}
ReceivedNotifyMessage represents TL type `receivedNotifyMessage#a384b779`.
type RecentMeUrlBox ¶
type RecentMeUrlBox struct {
RecentMeUrl RecentMeUrlClass
}
RecentMeUrl boxes the RecentMeUrlClass providing a helper.
type RecentMeUrlChat ¶
type RecentMeUrlChat struct {
// URL field of RecentMeUrlChat.
URL string
// ChatID field of RecentMeUrlChat.
ChatID int
}
RecentMeUrlChat represents TL type `recentMeUrlChat#a01b22f9`.
type RecentMeUrlChatInvite ¶
type RecentMeUrlChatInvite struct {
// URL field of RecentMeUrlChatInvite.
URL string
// ChatInvite field of RecentMeUrlChatInvite.
ChatInvite ChatInviteClass
}
RecentMeUrlChatInvite represents TL type `recentMeUrlChatInvite#eb49081d`.
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`.
type RecentMeUrlUnknown ¶
type RecentMeUrlUnknown struct {
// URL field of RecentMeUrlUnknown.
URL string
}
RecentMeUrlUnknown represents TL type `recentMeUrlUnknown#46e1d13d`.
type RecentMeUrlUser ¶
type RecentMeUrlUser struct {
// URL field of RecentMeUrlUser.
URL string
// UserID field of RecentMeUrlUser.
UserID int
}
RecentMeUrlUser represents TL type `recentMeUrlUser#8dbc3336`.
type ReplyInlineMarkup ¶
type ReplyInlineMarkup struct {
// Rows field of ReplyInlineMarkup.
Rows []KeyboardButtonRow
}
ReplyInlineMarkup represents TL type `replyInlineMarkup#48a30254`.
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.
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.
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`.
type RichTextBox ¶
type RichTextBox struct {
RichText RichTextClass
}
RichText boxes the RichTextClass providing a helper.
type RichTextClass ¶
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`.
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`.
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`.
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`.
type SecureFileBox ¶
type SecureFileBox struct {
SecureFile SecureFileClass
}
SecureFile boxes the SecureFileClass providing a helper.
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`.
type SecurePasswordKdfAlgoBox ¶
type SecurePasswordKdfAlgoBox struct {
SecurePasswordKdfAlgo SecurePasswordKdfAlgoClass
}
SecurePasswordKdfAlgo boxes the SecurePasswordKdfAlgoClass providing a helper.
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`.
type SecurePasswordKdfAlgoSHA512 ¶
type SecurePasswordKdfAlgoSHA512 struct {
// Salt field of SecurePasswordKdfAlgoSHA512.
Salt []byte
}
SecurePasswordKdfAlgoSHA512 represents TL type `securePasswordKdfAlgoSHA512#86471d92`.
type SecurePasswordKdfAlgoUnknown ¶
type SecurePasswordKdfAlgoUnknown struct {
}
SecurePasswordKdfAlgoUnknown represents TL type `securePasswordKdfAlgoUnknown#4a8537`.
type SecurePlainDataBox ¶
type SecurePlainDataBox struct {
SecurePlainData SecurePlainDataClass
}
SecurePlainData boxes the SecurePlainDataClass providing a helper.
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`.
type SecurePlainPhone ¶
type SecurePlainPhone struct {
// Phone field of SecurePlainPhone.
Phone string
}
SecurePlainPhone represents TL type `securePlainPhone#7d6099dd`.
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.
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`.
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`.
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`.
type SecureValueErrorBox ¶
type SecureValueErrorBox struct {
SecureValueError SecureValueErrorClass
}
SecureValueError boxes the SecureValueErrorClass providing a helper.
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`.
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`.
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`.
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`.
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`.
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`.
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`.
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`.
type SecureValueHash ¶
type SecureValueHash struct {
// Type field of SecureValueHash.
Type SecureValueTypeClass
// Hash field of SecureValueHash.
Hash []byte
}
SecureValueHash represents TL type `secureValueHash#ed1ecdb0`.
type SecureValueTypeAddress ¶
type SecureValueTypeAddress struct {
}
SecureValueTypeAddress represents TL type `secureValueTypeAddress#cbe31e26`.
type SecureValueTypeBankStatement ¶
type SecureValueTypeBankStatement struct {
}
SecureValueTypeBankStatement represents TL type `secureValueTypeBankStatement#89137c0d`.
type SecureValueTypeBox ¶
type SecureValueTypeBox struct {
SecureValueType SecureValueTypeClass
}
SecureValueType boxes the SecureValueTypeClass providing a helper.
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`.
type SecureValueTypeEmail ¶
type SecureValueTypeEmail struct {
}
SecureValueTypeEmail represents TL type `secureValueTypeEmail#8e3ca7ee`.
type SecureValueTypeIdentityCard ¶
type SecureValueTypeIdentityCard struct {
}
SecureValueTypeIdentityCard represents TL type `secureValueTypeIdentityCard#a0d0744b`.
type SecureValueTypeInternalPassport ¶
type SecureValueTypeInternalPassport struct {
}
SecureValueTypeInternalPassport represents TL type `secureValueTypeInternalPassport#99a48f23`.
type SecureValueTypePassport ¶
type SecureValueTypePassport struct {
}
SecureValueTypePassport represents TL type `secureValueTypePassport#3dac6a00`.
type SecureValueTypePassportRegistration ¶
type SecureValueTypePassportRegistration struct {
}
SecureValueTypePassportRegistration represents TL type `secureValueTypePassportRegistration#99e3806a`.
type SecureValueTypePersonalDetails ¶
type SecureValueTypePersonalDetails struct {
}
SecureValueTypePersonalDetails represents TL type `secureValueTypePersonalDetails#9d2a81e3`.
type SecureValueTypePhone ¶
type SecureValueTypePhone struct {
}
SecureValueTypePhone represents TL type `secureValueTypePhone#b320aadb`.
type SecureValueTypeRentalAgreement ¶
type SecureValueTypeRentalAgreement struct {
}
SecureValueTypeRentalAgreement represents TL type `secureValueTypeRentalAgreement#8b883488`.
type SecureValueTypeTemporaryRegistration ¶
type SecureValueTypeTemporaryRegistration struct {
}
SecureValueTypeTemporaryRegistration represents TL type `secureValueTypeTemporaryRegistration#ea02ec33`.
type SecureValueTypeUtilityBill ¶
type SecureValueTypeUtilityBill struct {
}
SecureValueTypeUtilityBill represents TL type `secureValueTypeUtilityBill#fc36954e`.
type SendMessageActionBox ¶
type SendMessageActionBox struct {
SendMessageAction SendMessageActionClass
}
SendMessageAction boxes the SendMessageActionClass providing a helper.
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`.
type SendMessageChooseContactAction ¶
type SendMessageChooseContactAction struct {
}
SendMessageChooseContactAction represents TL type `sendMessageChooseContactAction#628cbc6f`.
type SendMessageGamePlayAction ¶
type SendMessageGamePlayAction struct {
}
SendMessageGamePlayAction represents TL type `sendMessageGamePlayAction#dd6a8f48`.
type SendMessageGeoLocationAction ¶
type SendMessageGeoLocationAction struct {
}
SendMessageGeoLocationAction represents TL type `sendMessageGeoLocationAction#176f8ba1`.
type SendMessageRecordAudioAction ¶
type SendMessageRecordAudioAction struct {
}
SendMessageRecordAudioAction represents TL type `sendMessageRecordAudioAction#d52f73f7`.
type SendMessageRecordRoundAction ¶
type SendMessageRecordRoundAction struct {
}
SendMessageRecordRoundAction represents TL type `sendMessageRecordRoundAction#88f27fbc`.
type SendMessageRecordVideoAction ¶
type SendMessageRecordVideoAction struct {
}
SendMessageRecordVideoAction represents TL type `sendMessageRecordVideoAction#a187d66f`.
type SendMessageTypingAction ¶
type SendMessageTypingAction struct {
}
SendMessageTypingAction represents TL type `sendMessageTypingAction#16bf744e`.
type SendMessageUploadAudioAction ¶
type SendMessageUploadAudioAction struct {
// Progress field of SendMessageUploadAudioAction.
Progress int
}
SendMessageUploadAudioAction represents TL type `sendMessageUploadAudioAction#f351d7ab`.
type SendMessageUploadDocumentAction ¶
type SendMessageUploadDocumentAction struct {
// Progress field of SendMessageUploadDocumentAction.
Progress int
}
SendMessageUploadDocumentAction represents TL type `sendMessageUploadDocumentAction#aa0cd9e4`.
type SendMessageUploadPhotoAction ¶
type SendMessageUploadPhotoAction struct {
// Progress field of SendMessageUploadPhotoAction.
Progress int
}
SendMessageUploadPhotoAction represents TL type `sendMessageUploadPhotoAction#d1d34a26`.
type SendMessageUploadRoundAction ¶
type SendMessageUploadRoundAction struct {
// Progress field of SendMessageUploadRoundAction.
Progress int
}
SendMessageUploadRoundAction represents TL type `sendMessageUploadRoundAction#243e1c66`.
type SendMessageUploadVideoAction ¶
type SendMessageUploadVideoAction struct {
// Progress field of SendMessageUploadVideoAction.
Progress int
}
SendMessageUploadVideoAction represents TL type `sendMessageUploadVideoAction#e9763aec`.
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`.
type StatsAbsValueAndPrev ¶
type StatsAbsValueAndPrev struct {
// Current field of StatsAbsValueAndPrev.
Current float64
// Previous field of StatsAbsValueAndPrev.
Previous float64
}
StatsAbsValueAndPrev represents TL type `statsAbsValueAndPrev#cb43acde`.
type StatsBroadcastStats ¶
type StatsBroadcastStats struct {
// Period field of StatsBroadcastStats.
Period StatsDateRangeDays
// Followers field of StatsBroadcastStats.
Followers StatsAbsValueAndPrev
// ViewsPerPost field of StatsBroadcastStats.
ViewsPerPost StatsAbsValueAndPrev
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`.
type StatsDateRangeDays ¶
type StatsDateRangeDays struct {
// MinDate field of StatsDateRangeDays.
MinDate int
// MaxDate field of StatsDateRangeDays.
MaxDate int
}
StatsDateRangeDays represents TL type `statsDateRangeDays#b637edaf`.
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 ¶
func (g *StatsGetBroadcastStatsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*StatsGetBroadcastStatsRequest) Encode ¶
func (g *StatsGetBroadcastStatsRequest) Encode(b *bin.Buffer) error
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 ¶
func (g *StatsGetMegagroupStatsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*StatsGetMegagroupStatsRequest) Encode ¶
func (g *StatsGetMegagroupStatsRequest) Encode(b *bin.Buffer) error
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`.
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 ¶
func (g *StatsGetMessageStatsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*StatsGetMessageStatsRequest) Encode ¶
func (g *StatsGetMessageStatsRequest) Encode(b *bin.Buffer) error
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`.
type StatsGraphBox ¶
type StatsGraphBox struct {
StatsGraph StatsGraphClass
}
StatsGraph boxes the StatsGraphClass providing a helper.
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`.
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`.
type StatsGroupTopInviter ¶
type StatsGroupTopInviter struct {
// UserID field of StatsGroupTopInviter.
UserID int
// Invitations field of StatsGroupTopInviter.
Invitations int
}
StatsGroupTopInviter represents TL type `statsGroupTopInviter#31962a4c`.
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`.
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 ¶
func (l *StatsLoadAsyncGraphRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*StatsLoadAsyncGraphRequest) Encode ¶
func (l *StatsLoadAsyncGraphRequest) Encode(b *bin.Buffer) error
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`.
type StatsMessageStats ¶
type StatsMessageStats struct {
// ViewsGraph field of StatsMessageStats.
ViewsGraph StatsGraphClass
}
StatsMessageStats represents TL type `stats.messageStats#8999f295`.
type StatsPercentValue ¶
type StatsPercentValue struct {
// Part field of StatsPercentValue.
Part float64
// Total field of StatsPercentValue.
Total float64
}
StatsPercentValue represents TL type `statsPercentValue#cbce2fe0`.
type StatsURL ¶
type StatsURL struct {
// URL field of StatsURL.
URL string
}
StatsURL represents TL type `statsURL#47a971e0`.
type StickerPack ¶
type StickerPack struct {
// Emoticon field of StickerPack.
Emoticon string
// Documents field of StickerPack.
Documents []int64
}
StickerPack represents TL type `stickerPack#12b299d4`.
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`.
type StickerSetCoveredBox ¶
type StickerSetCoveredBox struct {
StickerSetCovered StickerSetCoveredClass
}
StickerSetCovered boxes the StickerSetCoveredClass providing a helper.
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`.
type StickersAddStickerToSetRequest ¶
type StickersAddStickerToSetRequest struct {
// Stickerset field of StickersAddStickerToSetRequest.
Stickerset InputStickerSetClass
// Sticker field of StickersAddStickerToSetRequest.
Sticker InputStickerSetItem
}
StickersAddStickerToSetRequest represents TL type `stickers.addStickerToSet#8653febe`.
type StickersChangeStickerPositionRequest ¶
type StickersChangeStickerPositionRequest struct {
// Sticker field of StickersChangeStickerPositionRequest.
Sticker InputDocumentClass
// Position field of StickersChangeStickerPositionRequest.
Position int
}
StickersChangeStickerPositionRequest represents TL type `stickers.changeStickerPosition#ffb6d4ca`.
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 ¶
func (c *StickersCreateStickerSetRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*StickersCreateStickerSetRequest) Encode ¶
func (c *StickersCreateStickerSetRequest) Encode(b *bin.Buffer) error
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 ¶
func (c *StickersCreateStickerSetRequest) SetThumb(value InputDocumentClass)
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`.
type StickersSetStickerSetThumbRequest ¶
type StickersSetStickerSetThumbRequest struct {
// Stickerset field of StickersSetStickerSetThumbRequest.
Stickerset InputStickerSetClass
// Thumb field of StickersSetStickerSetThumbRequest.
Thumb InputDocumentClass
}
StickersSetStickerSetThumbRequest represents TL type `stickers.setStickerSetThumb#9a364e30`.
type StorageFileGif ¶
type StorageFileGif struct {
}
StorageFileGif represents TL type `storage.fileGif#cae1aadf`.
type StorageFileJpeg ¶
type StorageFileJpeg struct {
}
StorageFileJpeg represents TL type `storage.fileJpeg#7efe0e`.
type StorageFileMov ¶
type StorageFileMov struct {
}
StorageFileMov represents TL type `storage.fileMov#4b09ebbc`.
type StorageFileMp3 ¶
type StorageFileMp3 struct {
}
StorageFileMp3 represents TL type `storage.fileMp3#528a0677`.
type StorageFileMp4 ¶
type StorageFileMp4 struct {
}
StorageFileMp4 represents TL type `storage.fileMp4#b3cea0e4`.
type StorageFilePartial ¶
type StorageFilePartial struct {
}
StorageFilePartial represents TL type `storage.filePartial#40bc6f52`.
type StorageFilePdf ¶
type StorageFilePdf struct {
}
StorageFilePdf represents TL type `storage.filePdf#ae1e508d`.
type StorageFilePng ¶
type StorageFilePng struct {
}
StorageFilePng represents TL type `storage.filePng#a4f63c0`.
type StorageFileTypeBox ¶
type StorageFileTypeBox struct {
FileType StorageFileTypeClass
}
StorageFileType boxes the StorageFileTypeClass providing a helper.
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`.
type StorageFileWebp ¶
type StorageFileWebp struct {
}
StorageFileWebp represents TL type `storage.fileWebp#1081464c`.
type TextAnchor ¶
type TextAnchor struct {
// Text field of TextAnchor.
Text RichTextClass
// Name field of TextAnchor.
Name string
}
TextAnchor represents TL type `textAnchor#35553762`.
type TextBold ¶
type TextBold struct {
// Text field of TextBold.
Text RichTextClass
}
TextBold represents TL type `textBold#6724abc4`.
type TextConcat ¶
type TextConcat struct {
// Texts field of TextConcat.
Texts []RichTextClass
}
TextConcat represents TL type `textConcat#7e6260d7`.
type TextEmail ¶
type TextEmail struct {
// Text field of TextEmail.
Text RichTextClass
// Email field of TextEmail.
Email string
}
TextEmail represents TL type `textEmail#de5a0dd6`.
type TextEmpty ¶
type TextEmpty struct {
}
TextEmpty represents TL type `textEmpty#dc3d824f`.
type TextFixed ¶
type TextFixed struct {
// Text field of TextFixed.
Text RichTextClass
}
TextFixed represents TL type `textFixed#6c3f19b9`.
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`.
type TextItalic ¶
type TextItalic struct {
// Text field of TextItalic.
Text RichTextClass
}
TextItalic represents TL type `textItalic#d912a59c`.
type TextMarked ¶
type TextMarked struct {
// Text field of TextMarked.
Text RichTextClass
}
TextMarked represents TL type `textMarked#34b8621`.
type TextPhone ¶
type TextPhone struct {
// Text field of TextPhone.
Text RichTextClass
// Phone field of TextPhone.
Phone string
}
TextPhone represents TL type `textPhone#1ccb966a`.
type TextPlain ¶
type TextPlain struct {
// Text field of TextPlain.
Text string
}
TextPlain represents TL type `textPlain#744694e0`.
type TextStrike ¶
type TextStrike struct {
// Text field of TextStrike.
Text RichTextClass
}
TextStrike represents TL type `textStrike#9bf8bb95`.
type TextSubscript ¶
type TextSubscript struct {
// Text field of TextSubscript.
Text RichTextClass
}
TextSubscript represents TL type `textSubscript#ed6a8504`.
type TextSuperscript ¶
type TextSuperscript struct {
// Text field of TextSuperscript.
Text RichTextClass
}
TextSuperscript represents TL type `textSuperscript#c7fb5e01`.
type TextUnderline ¶
type TextUnderline struct {
// Text field of TextUnderline.
Text RichTextClass
}
TextUnderline represents TL type `textUnderline#c12622c4`.
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`.
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) 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 ¶
SetCreator sets value of Creator conditional field.
func (*Theme) SetDefault ¶
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`.
type TopPeerCategoryBotsInline ¶
type TopPeerCategoryBotsInline struct {
}
TopPeerCategoryBotsInline represents TL type `topPeerCategoryBotsInline#148677e2`.
type TopPeerCategoryBotsPM ¶
type TopPeerCategoryBotsPM struct {
}
TopPeerCategoryBotsPM represents TL type `topPeerCategoryBotsPM#ab661b5b`.
type TopPeerCategoryBox ¶
type TopPeerCategoryBox struct {
TopPeerCategory TopPeerCategoryClass
}
TopPeerCategory boxes the TopPeerCategoryClass providing a helper.
type TopPeerCategoryChannels ¶
type TopPeerCategoryChannels struct {
}
TopPeerCategoryChannels represents TL type `topPeerCategoryChannels#161d9628`.
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`.
type TopPeerCategoryForwardChats ¶
type TopPeerCategoryForwardChats struct {
}
TopPeerCategoryForwardChats represents TL type `topPeerCategoryForwardChats#fbeec0f0`.
type TopPeerCategoryForwardUsers ¶
type TopPeerCategoryForwardUsers struct {
}
TopPeerCategoryForwardUsers represents TL type `topPeerCategoryForwardUsers#a8406ca9`.
type TopPeerCategoryGroups ¶
type TopPeerCategoryGroups struct {
}
TopPeerCategoryGroups represents TL type `topPeerCategoryGroups#bd17a14a`.
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`.
type TopPeerCategoryPhoneCalls ¶
type TopPeerCategoryPhoneCalls struct {
}
TopPeerCategoryPhoneCalls represents TL type `topPeerCategoryPhoneCalls#1e76a78c`.
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 ¶
func (u *UpdateBotPrecheckoutQuery) SetInfo(value PaymentRequestedInfo)
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`.
type UpdateBotWebhookJSON ¶
type UpdateBotWebhookJSON struct {
// Data field of UpdateBotWebhookJSON.
Data DataJSON
}
UpdateBotWebhookJSON represents TL type `updateBotWebhookJSON#8317c0c3`.
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`.
type UpdateBox ¶
type UpdateBox struct {
Update UpdateClass
}
Update boxes the UpdateClass providing a helper.
type UpdateChannel ¶
type UpdateChannel struct {
// ChannelID field of UpdateChannel.
ChannelID int
}
UpdateChannel represents TL type `updateChannel#b6d45656`.
type UpdateChannelAvailableMessages ¶
type UpdateChannelAvailableMessages struct {
// ChannelID field of UpdateChannelAvailableMessages.
ChannelID int
// AvailableMinID field of UpdateChannelAvailableMessages.
AvailableMinID int
}
UpdateChannelAvailableMessages represents TL type `updateChannelAvailableMessages#70db6837`.
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`.
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`.
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`.
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`.
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`.
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`.
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`.
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`.
type UpdateChatParticipants ¶
type UpdateChatParticipants struct {
// Participants field of UpdateChatParticipants.
Participants ChatParticipantsClass
}
UpdateChatParticipants represents TL type `updateChatParticipants#7761198`.
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`.
type UpdateClass ¶
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`.
type UpdateContactsReset ¶
type UpdateContactsReset struct {
}
UpdateContactsReset represents TL type `updateContactsReset#7084a7be`.
type UpdateDcOptions ¶
type UpdateDcOptions struct {
// DCOptions field of UpdateDcOptions.
DCOptions []DcOption
}
UpdateDcOptions represents TL type `updateDcOptions#8e5e9873`.
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`.
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`.
type UpdateDeleteScheduledMessages ¶
type UpdateDeleteScheduledMessages struct {
// Peer field of UpdateDeleteScheduledMessages.
Peer PeerClass
// Messages field of UpdateDeleteScheduledMessages.
Messages []int
}
UpdateDeleteScheduledMessages represents TL type `updateDeleteScheduledMessages#90866cee`.
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`.
type UpdateDialogFilters ¶
type UpdateDialogFilters struct {
}
UpdateDialogFilters represents TL type `updateDialogFilters#3504914f`.
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`.
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`.
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`.
type UpdateEncryptedChatTyping ¶
type UpdateEncryptedChatTyping struct {
// ChatID field of UpdateEncryptedChatTyping.
ChatID int
}
UpdateEncryptedChatTyping represents TL type `updateEncryptedChatTyping#1710f156`.
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`.
type UpdateEncryption ¶
type UpdateEncryption struct {
// Chat field of UpdateEncryption.
Chat EncryptedChatClass
// Date field of UpdateEncryption.
Date int
}
UpdateEncryption represents TL type `updateEncryption#b4a2e88d`.
type UpdateFavedStickers ¶
type UpdateFavedStickers struct {
}
UpdateFavedStickers represents TL type `updateFavedStickers#e511996d`.
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`.
type UpdateGeoLiveViewed ¶
type UpdateGeoLiveViewed struct {
// Peer field of UpdateGeoLiveViewed.
Peer PeerClass
// MsgID field of UpdateGeoLiveViewed.
MsgID int
}
UpdateGeoLiveViewed represents TL type `updateGeoLiveViewed#871fb939`.
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 ¶
func (u *UpdateInlineBotCallbackQuery) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*UpdateInlineBotCallbackQuery) Encode ¶
func (u *UpdateInlineBotCallbackQuery) Encode(b *bin.Buffer) error
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`.
type UpdateLangPackTooLong ¶
type UpdateLangPackTooLong struct {
// LangCode field of UpdateLangPackTooLong.
LangCode string
}
UpdateLangPackTooLong represents TL type `updateLangPackTooLong#46560264`.
type UpdateLoginToken ¶
type UpdateLoginToken struct {
}
UpdateLoginToken represents TL type `updateLoginToken#564fe691`.
type UpdateMessageID ¶
type UpdateMessageID struct {
// ID field of UpdateMessageID.
ID int
// RandomID field of UpdateMessageID.
RandomID int64
}
UpdateMessageID represents TL type `updateMessageID#4e90bfd6`.
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`.
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`.
type UpdateNewEncryptedMessage ¶
type UpdateNewEncryptedMessage struct {
// Message field of UpdateNewEncryptedMessage.
Message EncryptedMessageClass
// Qts field of UpdateNewEncryptedMessage.
Qts int
}
UpdateNewEncryptedMessage represents TL type `updateNewEncryptedMessage#12bcbd9a`.
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`.
type UpdateNewScheduledMessage ¶
type UpdateNewScheduledMessage struct {
// Message field of UpdateNewScheduledMessage.
Message MessageClass
}
UpdateNewScheduledMessage represents TL type `updateNewScheduledMessage#39a51dfb`.
type UpdateNewStickerSet ¶
type UpdateNewStickerSet struct {
// Stickerset field of UpdateNewStickerSet.
Stickerset MessagesStickerSet
}
UpdateNewStickerSet represents TL type `updateNewStickerSet#688a30aa`.
type UpdateNotifySettings ¶
type UpdateNotifySettings struct {
// Peer field of UpdateNotifySettings.
Peer NotifyPeerClass
// NotifySettings field of UpdateNotifySettings.
NotifySettings PeerNotifySettings
}
UpdateNotifySettings represents TL type `updateNotifySettings#bec268ef`.
type UpdatePeerBlocked ¶
type UpdatePeerBlocked struct {
// PeerID field of UpdatePeerBlocked.
PeerID PeerClass
// Blocked field of UpdatePeerBlocked.
Blocked bool
}
UpdatePeerBlocked represents TL type `updatePeerBlocked#246a4b22`.
type UpdatePeerLocated ¶
type UpdatePeerLocated struct {
// Peers field of UpdatePeerLocated.
Peers []PeerLocatedClass
}
UpdatePeerLocated represents TL type `updatePeerLocated#b4afcfb0`.
type UpdatePeerSettings ¶
type UpdatePeerSettings struct {
// Peer field of UpdatePeerSettings.
Peer PeerClass
// Settings field of UpdatePeerSettings.
Settings PeerSettings
}
UpdatePeerSettings represents TL type `updatePeerSettings#6a7e7366`.
type UpdatePhoneCall ¶
type UpdatePhoneCall struct {
// PhoneCall field of UpdatePhoneCall.
PhoneCall PhoneCallClass
}
UpdatePhoneCall represents TL type `updatePhoneCall#ab0f6b1e`.
type UpdatePhoneCallSignalingData ¶
type UpdatePhoneCallSignalingData struct {
// PhoneCallID field of UpdatePhoneCallSignalingData.
PhoneCallID int64
// Data field of UpdatePhoneCallSignalingData.
Data []byte
}
UpdatePhoneCallSignalingData represents TL type `updatePhoneCallSignalingData#2661bf09`.
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 ¶
func (u *UpdatePinnedChannelMessages) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*UpdatePinnedChannelMessages) Encode ¶
func (u *UpdatePinnedChannelMessages) Encode(b *bin.Buffer) error
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`.
type UpdatePtsChanged ¶
type UpdatePtsChanged struct {
}
UpdatePtsChanged represents TL type `updatePtsChanged#3354678f`.
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 ¶
func (u *UpdateReadChannelDiscussionInbox) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*UpdateReadChannelDiscussionInbox) Encode ¶
func (u *UpdateReadChannelDiscussionInbox) Encode(b *bin.Buffer) error
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`.
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`.
type UpdateReadFeaturedStickers ¶
type UpdateReadFeaturedStickers struct {
}
UpdateReadFeaturedStickers represents TL type `updateReadFeaturedStickers#571d2742`.
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`.
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`.
type UpdateRecentStickers ¶
type UpdateRecentStickers struct {
}
UpdateRecentStickers represents TL type `updateRecentStickers#9a422c20`.
type UpdateSavedGifs ¶
type UpdateSavedGifs struct {
}
UpdateSavedGifs represents TL type `updateSavedGifs#9375341e`.
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`.
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`.
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`.
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`.
type UpdateUserPhone ¶
type UpdateUserPhone struct {
// UserID field of UpdateUserPhone.
UserID int
// Phone field of UpdateUserPhone.
Phone string
}
UpdateUserPhone represents TL type `updateUserPhone#12b9417b`.
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`.
type UpdateUserStatus ¶
type UpdateUserStatus struct {
// UserID field of UpdateUserStatus.
UserID int
// Status field of UpdateUserStatus.
Status UserStatusClass
}
UpdateUserStatus represents TL type `updateUserStatus#1bfbd823`.
type UpdateUserTyping ¶
type UpdateUserTyping struct {
// UserID field of UpdateUserTyping.
UserID int
// Action field of UpdateUserTyping.
Action SendMessageActionClass
}
UpdateUserTyping represents TL type `updateUserTyping#5c486927`.
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`.
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`.
type UpdatesBox ¶
type UpdatesBox struct {
Updates UpdatesClass
}
Updates boxes the UpdatesClass providing a helper.
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.
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 ¶
func (c *UpdatesChannelDifferenceEmpty) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*UpdatesChannelDifferenceEmpty) Encode ¶
func (c *UpdatesChannelDifferenceEmpty) Encode(b *bin.Buffer) error
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 ¶
func (c *UpdatesChannelDifferenceTooLong) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*UpdatesChannelDifferenceTooLong) Encode ¶
func (c *UpdatesChannelDifferenceTooLong) Encode(b *bin.Buffer) error
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 ¶
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`.
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`.
type UpdatesDifferenceBox ¶
type UpdatesDifferenceBox struct {
Difference UpdatesDifferenceClass
}
UpdatesDifference boxes the UpdatesDifferenceClass providing a helper.
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`.
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`.
type UpdatesDifferenceTooLong ¶
type UpdatesDifferenceTooLong struct {
// Pts field of UpdatesDifferenceTooLong.
Pts int
}
UpdatesDifferenceTooLong represents TL type `updates.differenceTooLong#4afe8f6d`.
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 ¶
func (g *UpdatesGetChannelDifferenceRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*UpdatesGetChannelDifferenceRequest) Encode ¶
func (g *UpdatesGetChannelDifferenceRequest) Encode(b *bin.Buffer) error
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 ¶
func (g *UpdatesGetDifferenceRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*UpdatesGetDifferenceRequest) Encode ¶
func (g *UpdatesGetDifferenceRequest) Encode(b *bin.Buffer) error
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`.
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`.
type UpdatesTooLong ¶
type UpdatesTooLong struct {
}
UpdatesTooLong represents TL type `updatesTooLong#e317af7e`.
type UploadCdnFile ¶
type UploadCdnFile struct {
// Bytes field of UploadCdnFile.
Bytes []byte
}
UploadCdnFile represents TL type `upload.cdnFile#a99fca4f`.
type UploadCdnFileBox ¶
type UploadCdnFileBox struct {
CdnFile UploadCdnFileClass
}
UploadCdnFile boxes the UploadCdnFileClass providing a helper.
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`.
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`.
type UploadFileBox ¶
type UploadFileBox struct {
File UploadFileClass
}
UploadFile boxes the UploadFileClass providing a helper.
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`.
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`.
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`.
type UploadGetFileHashesRequest ¶
type UploadGetFileHashesRequest struct {
// Location field of UploadGetFileHashesRequest.
Location InputFileLocationClass
// Offset field of UploadGetFileHashesRequest.
Offset int
}
UploadGetFileHashesRequest represents TL type `upload.getFileHashes#c7025931`.
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`.
type UploadReuploadCdnFileRequest ¶
type UploadReuploadCdnFileRequest struct {
// FileToken field of UploadReuploadCdnFileRequest.
FileToken []byte
// RequestToken field of UploadReuploadCdnFileRequest.
RequestToken []byte
}
UploadReuploadCdnFileRequest represents TL type `upload.reuploadCdnFile#9b2754a8`.
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`.
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`.
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`.
type UrlAuthResultAccepted ¶
type UrlAuthResultAccepted struct {
// URL field of UrlAuthResultAccepted.
URL string
}
UrlAuthResultAccepted represents TL type `urlAuthResultAccepted#8f8c0e4e`.
type UrlAuthResultBox ¶
type UrlAuthResultBox struct {
UrlAuthResult UrlAuthResultClass
}
UrlAuthResult boxes the UrlAuthResultClass providing a helper.
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`.
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) GetAccessHash ¶
GetAccessHash returns value of AccessHash conditional field and boolean which is true if field was set.
func (*User) GetBotInfoVersion ¶
GetBotInfoVersion returns value of BotInfoVersion conditional field and boolean which is true if field was set.
func (*User) GetBotInlinePlaceholder ¶
GetBotInlinePlaceholder returns value of BotInlinePlaceholder conditional field and boolean which is true if field was set.
func (*User) GetFirstName ¶
GetFirstName returns value of FirstName conditional field and boolean which is true if field was set.
func (*User) GetLangCode ¶
GetLangCode returns value of LangCode conditional field and boolean which is true if field was set.
func (*User) GetLastName ¶
GetLastName returns value of LastName conditional field and boolean which is true if field was set.
func (*User) GetPhone ¶
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 ¶
GetUsername returns value of Username conditional field and boolean which is true if field was set.
func (*User) SetAccessHash ¶
SetAccessHash sets value of AccessHash conditional field.
func (*User) SetApplyMinPhoto ¶
SetApplyMinPhoto sets value of ApplyMinPhoto conditional field.
func (*User) SetBotChatHistory ¶
SetBotChatHistory sets value of BotChatHistory conditional field.
func (*User) SetBotInfoVersion ¶
SetBotInfoVersion sets value of BotInfoVersion conditional field.
func (*User) SetBotInlineGeo ¶
SetBotInlineGeo sets value of BotInlineGeo conditional field.
func (*User) SetBotInlinePlaceholder ¶
SetBotInlinePlaceholder sets value of BotInlinePlaceholder conditional field.
func (*User) SetBotNochats ¶
SetBotNochats sets value of BotNochats conditional field.
func (*User) SetContact ¶
SetContact sets value of Contact conditional field.
func (*User) SetDeleted ¶
SetDeleted sets value of Deleted conditional field.
func (*User) SetFirstName ¶
SetFirstName sets value of FirstName conditional field.
func (*User) SetLangCode ¶
SetLangCode sets value of LangCode conditional field.
func (*User) SetLastName ¶
SetLastName sets value of LastName conditional field.
func (*User) SetMutualContact ¶
SetMutualContact sets value of MutualContact conditional field.
func (*User) SetPhoto ¶
func (u *User) SetPhoto(value UserProfilePhotoClass)
SetPhoto sets value of Photo conditional field.
func (*User) SetRestricted ¶
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) SetStatus ¶
func (u *User) SetStatus(value UserStatusClass)
SetStatus sets value of Status conditional field.
func (*User) SetSupport ¶
SetSupport sets value of Support conditional field.
func (*User) SetUsername ¶
SetUsername sets value of Username conditional field.
func (*User) SetVerified ¶
SetVerified sets value of Verified conditional field.
type UserBox ¶
type UserBox struct {
User UserClass
}
User boxes the UserClass providing a helper.
type UserClass ¶
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)
}
type UserEmpty ¶
type UserEmpty struct {
// ID field of UserEmpty.
ID int
}
UserEmpty represents TL type `userEmpty#200250ba`.
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) GetAbout ¶
GetAbout returns value of About conditional field and boolean which is true if field was set.
func (*UserFull) GetBotInfo ¶
GetBotInfo returns value of BotInfo conditional field and boolean which is true if field was set.
func (*UserFull) GetFolderID ¶
GetFolderID returns value of FolderID conditional field and boolean which is true if field was set.
func (*UserFull) GetPinnedMsgID ¶
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) SetBlocked ¶
SetBlocked sets value of Blocked conditional field.
func (*UserFull) SetBotInfo ¶
SetBotInfo sets value of BotInfo conditional field.
func (*UserFull) SetCanPinMessage ¶
SetCanPinMessage sets value of CanPinMessage conditional field.
func (*UserFull) SetFolderID ¶
SetFolderID sets value of FolderID conditional field.
func (*UserFull) SetHasScheduled ¶
SetHasScheduled sets value of HasScheduled conditional field.
func (*UserFull) SetPhoneCallsAvailable ¶
SetPhoneCallsAvailable sets value of PhoneCallsAvailable conditional field.
func (*UserFull) SetPhoneCallsPrivate ¶
SetPhoneCallsPrivate sets value of PhoneCallsPrivate conditional field.
func (*UserFull) SetPinnedMsgID ¶
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 ¶
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.
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`.
type UserStatusBox ¶
type UserStatusBox struct {
UserStatus UserStatusClass
}
UserStatus boxes the UserStatusClass providing a helper.
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`.
type UserStatusLastMonth ¶
type UserStatusLastMonth struct {
}
UserStatusLastMonth represents TL type `userStatusLastMonth#77ebc742`.
type UserStatusLastWeek ¶
type UserStatusLastWeek struct {
}
UserStatusLastWeek represents TL type `userStatusLastWeek#7bf09fc`.
type UserStatusOffline ¶
type UserStatusOffline struct {
// WasOnline field of UserStatusOffline.
WasOnline int
}
UserStatusOffline represents TL type `userStatusOffline#8c703f`.
type UserStatusOnline ¶
type UserStatusOnline struct {
// Expires field of UserStatusOnline.
Expires int
}
UserStatusOnline represents TL type `userStatusOnline#edb93949`.
type UserStatusRecently ¶
type UserStatusRecently struct {
}
UserStatusRecently represents TL type `userStatusRecently#e26f42f1`.
type UsersGetFullUserRequest ¶
type UsersGetFullUserRequest struct {
// ID field of UsersGetFullUserRequest.
ID InputUserClass
}
UsersGetFullUserRequest represents TL type `users.getFullUser#ca30a5b1`.
type UsersGetUsersRequest ¶
type UsersGetUsersRequest struct {
// ID field of UsersGetUsersRequest.
ID []InputUserClass
}
UsersGetUsersRequest represents TL type `users.getUsers#d91a548`.
type UsersSetSecureValueErrorsRequest ¶
type UsersSetSecureValueErrorsRequest struct {
// ID field of UsersSetSecureValueErrorsRequest.
ID InputUserClass
// Errors field of UsersSetSecureValueErrorsRequest.
Errors []SecureValueErrorClass
}
UsersSetSecureValueErrorsRequest represents TL type `users.setSecureValueErrors#90c894b5`.
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) GetVideoStartTs ¶
GetVideoStartTs returns value of VideoStartTs conditional field and boolean which is true if field was set.
func (*VideoSize) SetVideoStartTs ¶
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) 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 ¶
SetCreator sets value of Creator conditional field.
func (*WallPaper) SetDefault ¶
SetDefault sets value of Default conditional field.
func (*WallPaper) SetPattern ¶
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.
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`.
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`.
type WebDocumentBox ¶
type WebDocumentBox struct {
WebDocument WebDocumentClass
}
WebDocument boxes the WebDocumentClass providing a helper.
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`.
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) 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 ¶
GetAuthor returns value of Author conditional field and boolean which is true if field was set.
func (*WebPage) GetCachedPage ¶
GetCachedPage returns value of CachedPage conditional field and boolean which is true if field was set.
func (*WebPage) GetDescription ¶
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 ¶
GetDuration returns value of Duration conditional field and boolean which is true if field was set.
func (*WebPage) GetEmbedHeight ¶
GetEmbedHeight returns value of EmbedHeight conditional field and boolean which is true if field was set.
func (*WebPage) GetEmbedType ¶
GetEmbedType returns value of EmbedType conditional field and boolean which is true if field was set.
func (*WebPage) GetEmbedURL ¶
GetEmbedURL returns value of EmbedURL conditional field and boolean which is true if field was set.
func (*WebPage) GetEmbedWidth ¶
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 ¶
GetSiteName returns value of SiteName conditional field and boolean which is true if field was set.
func (*WebPage) GetTitle ¶
GetTitle returns value of Title conditional field and boolean which is true if field was set.
func (*WebPage) GetType ¶
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) SetCachedPage ¶
SetCachedPage sets value of CachedPage conditional field.
func (*WebPage) SetDescription ¶
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 ¶
SetDuration sets value of Duration conditional field.
func (*WebPage) SetEmbedHeight ¶
SetEmbedHeight sets value of EmbedHeight conditional field.
func (*WebPage) SetEmbedType ¶
SetEmbedType sets value of EmbedType conditional field.
func (*WebPage) SetEmbedURL ¶
SetEmbedURL sets value of EmbedURL conditional field.
func (*WebPage) SetEmbedWidth ¶
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 ¶
SetSiteName sets value of SiteName 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.
type WebPageClass ¶
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`.
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`.
Source Files
¶
- tg.go
- tl_account_accept_authorization_gen.go
- tl_account_authorization_form_gen.go
- tl_account_authorizations_gen.go
- tl_account_auto_download_settings_gen.go
- tl_account_cancel_password_email_gen.go
- tl_account_change_phone_gen.go
- tl_account_check_username_gen.go
- tl_account_confirm_password_email_gen.go
- tl_account_confirm_phone_gen.go
- tl_account_content_settings_gen.go
- tl_account_create_theme_gen.go
- tl_account_days_ttl_gen.go
- tl_account_delete_account_gen.go
- tl_account_delete_secure_value_gen.go
- tl_account_finish_takeout_session_gen.go
- tl_account_get_account_ttl_gen.go
- tl_account_get_all_secure_values_gen.go
- tl_account_get_authorization_form_gen.go
- tl_account_get_authorizations_gen.go
- tl_account_get_auto_download_settings_gen.go
- tl_account_get_contact_sign_up_notification_gen.go
- tl_account_get_content_settings_gen.go
- tl_account_get_global_privacy_settings_gen.go
- tl_account_get_multi_wall_papers_gen.go
- tl_account_get_notify_exceptions_gen.go
- tl_account_get_notify_settings_gen.go
- tl_account_get_password_gen.go
- tl_account_get_password_settings_gen.go
- tl_account_get_privacy_gen.go
- tl_account_get_secure_value_gen.go
- tl_account_get_theme_gen.go
- tl_account_get_themes_gen.go
- tl_account_get_tmp_password_gen.go
- tl_account_get_wall_paper_gen.go
- tl_account_get_wall_papers_gen.go
- tl_account_get_web_authorizations_gen.go
- tl_account_init_takeout_session_gen.go
- tl_account_install_theme_gen.go
- tl_account_install_wall_paper_gen.go
- tl_account_password_gen.go
- tl_account_password_input_settings_gen.go
- tl_account_password_settings_gen.go
- tl_account_privacy_rules_gen.go
- tl_account_register_device_gen.go
- tl_account_report_peer_gen.go
- tl_account_resend_password_email_gen.go
- tl_account_reset_authorization_gen.go
- tl_account_reset_notify_settings_gen.go
- tl_account_reset_wall_papers_gen.go
- tl_account_reset_web_authorization_gen.go
- tl_account_reset_web_authorizations_gen.go
- tl_account_save_auto_download_settings_gen.go
- tl_account_save_secure_value_gen.go
- tl_account_save_theme_gen.go
- tl_account_save_wall_paper_gen.go
- tl_account_send_change_phone_code_gen.go
- tl_account_send_confirm_phone_code_gen.go
- tl_account_send_verify_email_code_gen.go
- tl_account_send_verify_phone_code_gen.go
- tl_account_sent_email_code_gen.go
- tl_account_set_account_ttl_gen.go
- tl_account_set_contact_sign_up_notification_gen.go
- tl_account_set_content_settings_gen.go
- tl_account_set_global_privacy_settings_gen.go
- tl_account_set_privacy_gen.go
- tl_account_takeout_gen.go
- tl_account_themes_gen.go
- tl_account_tmp_password_gen.go
- tl_account_unregister_device_gen.go
- tl_account_update_device_locked_gen.go
- tl_account_update_notify_settings_gen.go
- tl_account_update_password_settings_gen.go
- tl_account_update_profile_gen.go
- tl_account_update_status_gen.go
- tl_account_update_theme_gen.go
- tl_account_update_username_gen.go
- tl_account_upload_theme_gen.go
- tl_account_upload_wall_paper_gen.go
- tl_account_verify_email_gen.go
- tl_account_verify_phone_gen.go
- tl_account_wall_papers_gen.go
- tl_account_web_authorizations_gen.go
- tl_auth_accept_login_token_gen.go
- tl_auth_authorization_gen.go
- tl_auth_bind_temp_auth_key_gen.go
- tl_auth_cancel_code_gen.go
- tl_auth_check_password_gen.go
- tl_auth_code_type_gen.go
- tl_auth_drop_temp_auth_keys_gen.go
- tl_auth_export_authorization_gen.go
- tl_auth_export_login_token_gen.go
- tl_auth_exported_authorization_gen.go
- tl_auth_import_authorization_gen.go
- tl_auth_import_bot_authorization_gen.go
- tl_auth_import_login_token_gen.go
- tl_auth_log_out_gen.go
- tl_auth_login_token_gen.go
- tl_auth_password_recovery_gen.go
- tl_auth_recover_password_gen.go
- tl_auth_request_password_recovery_gen.go
- tl_auth_resend_code_gen.go
- tl_auth_reset_authorizations_gen.go
- tl_auth_send_code_gen.go
- tl_auth_sent_code_gen.go
- tl_auth_sent_code_type_gen.go
- tl_auth_sign_in_gen.go
- tl_auth_sign_up_gen.go
- tl_authorization_gen.go
- tl_auto_download_settings_gen.go
- tl_bank_card_open_url_gen.go
- tl_base_theme_gen.go
- tl_bool_gen.go
- tl_bot_command_gen.go
- tl_bot_info_gen.go
- tl_bot_inline_message_gen.go
- tl_bot_inline_result_gen.go
- tl_bots_answer_webhook_json_query_gen.go
- tl_bots_send_custom_request_gen.go
- tl_bots_set_bot_commands_gen.go
- tl_cdn_config_gen.go
- tl_cdn_public_key_gen.go
- tl_channel_admin_log_event_action_gen.go
- tl_channel_admin_log_event_gen.go
- tl_channel_admin_log_events_filter_gen.go
- tl_channel_location_gen.go
- tl_channel_messages_filter_gen.go
- tl_channel_participant_gen.go
- tl_channel_participants_filter_gen.go
- tl_channels_admin_log_results_gen.go
- tl_channels_channel_participant_gen.go
- tl_channels_channel_participants_gen.go
- tl_channels_check_username_gen.go
- tl_channels_create_channel_gen.go
- tl_channels_delete_channel_gen.go
- tl_channels_delete_history_gen.go
- tl_channels_delete_messages_gen.go
- tl_channels_delete_user_history_gen.go
- tl_channels_edit_admin_gen.go
- tl_channels_edit_banned_gen.go
- tl_channels_edit_creator_gen.go
- tl_channels_edit_location_gen.go
- tl_channels_edit_photo_gen.go
- tl_channels_edit_title_gen.go
- tl_channels_export_message_link_gen.go
- tl_channels_get_admin_log_gen.go
- tl_channels_get_admined_public_channels_gen.go
- tl_channels_get_channels_gen.go
- tl_channels_get_full_channel_gen.go
- tl_channels_get_groups_for_discussion_gen.go
- tl_channels_get_inactive_channels_gen.go
- tl_channels_get_left_channels_gen.go
- tl_channels_get_messages_gen.go
- tl_channels_get_participant_gen.go
- tl_channels_get_participants_gen.go
- tl_channels_invite_to_channel_gen.go
- tl_channels_join_channel_gen.go
- tl_channels_leave_channel_gen.go
- tl_channels_read_history_gen.go
- tl_channels_read_message_contents_gen.go
- tl_channels_report_spam_gen.go
- tl_channels_set_discussion_group_gen.go
- tl_channels_set_stickers_gen.go
- tl_channels_toggle_pre_history_hidden_gen.go
- tl_channels_toggle_signatures_gen.go
- tl_channels_toggle_slow_mode_gen.go
- tl_channels_update_username_gen.go
- tl_chat_admin_rights_gen.go
- tl_chat_banned_rights_gen.go
- tl_chat_full_gen.go
- tl_chat_gen.go
- tl_chat_invite_gen.go
- tl_chat_onlines_gen.go
- tl_chat_participant_gen.go
- tl_chat_participants_gen.go
- tl_chat_photo_gen.go
- tl_client.go
- tl_code_settings_gen.go
- tl_config_gen.go
- tl_contact_gen.go
- tl_contact_status_gen.go
- tl_contacts_accept_contact_gen.go
- tl_contacts_add_contact_gen.go
- tl_contacts_block_from_replies_gen.go
- tl_contacts_block_gen.go
- tl_contacts_blocked_gen.go
- tl_contacts_contacts_gen.go
- tl_contacts_delete_by_phones_gen.go
- tl_contacts_delete_contacts_gen.go
- tl_contacts_found_gen.go
- tl_contacts_get_blocked_gen.go
- tl_contacts_get_contact_ids_gen.go
- tl_contacts_get_contacts_gen.go
- tl_contacts_get_located_gen.go
- tl_contacts_get_saved_gen.go
- tl_contacts_get_statuses_gen.go
- tl_contacts_get_top_peers_gen.go
- tl_contacts_import_contacts_gen.go
- tl_contacts_imported_contacts_gen.go
- tl_contacts_reset_saved_gen.go
- tl_contacts_reset_top_peer_rating_gen.go
- tl_contacts_resolve_username_gen.go
- tl_contacts_resolved_peer_gen.go
- tl_contacts_search_gen.go
- tl_contacts_toggle_top_peers_gen.go
- tl_contacts_top_peers_gen.go
- tl_contacts_unblock_gen.go
- tl_data_json_gen.go
- tl_dc_option_gen.go
- tl_dialog_filter_gen.go
- tl_dialog_filter_suggested_gen.go
- tl_dialog_gen.go
- tl_dialog_peer_gen.go
- tl_document_attribute_gen.go
- tl_document_gen.go
- tl_draft_message_gen.go
- tl_emoji_keyword_gen.go
- tl_emoji_keywords_difference_gen.go
- tl_emoji_language_gen.go
- tl_emoji_url_gen.go
- tl_encrypted_chat_gen.go
- tl_encrypted_file_gen.go
- tl_encrypted_message_gen.go
- tl_error_gen.go
- tl_exported_chat_invite_gen.go
- tl_exported_message_link_gen.go
- tl_file_hash_gen.go
- tl_file_location_to_be_deprecated_gen.go
- tl_folder_gen.go
- tl_folder_peer_gen.go
- tl_folders_delete_folder_gen.go
- tl_folders_edit_peer_folders_gen.go
- tl_game_gen.go
- tl_geo_point_gen.go
- tl_global_privacy_settings_gen.go
- tl_help_accept_terms_of_service_gen.go
- tl_help_app_update_gen.go
- tl_help_countries_list_gen.go
- tl_help_country_code_gen.go
- tl_help_country_gen.go
- tl_help_deep_link_info_gen.go
- tl_help_dismiss_suggestion_gen.go
- tl_help_edit_user_info_gen.go
- tl_help_get_app_changelog_gen.go
- tl_help_get_app_config_gen.go
- tl_help_get_app_update_gen.go
- tl_help_get_cdn_config_gen.go
- tl_help_get_config_gen.go
- tl_help_get_countries_list_gen.go
- tl_help_get_deep_link_info_gen.go
- tl_help_get_invite_text_gen.go
- tl_help_get_nearest_dc_gen.go
- tl_help_get_passport_config_gen.go
- tl_help_get_promo_data_gen.go
- tl_help_get_recent_me_urls_gen.go
- tl_help_get_support_gen.go
- tl_help_get_support_name_gen.go
- tl_help_get_terms_of_service_update_gen.go
- tl_help_get_user_info_gen.go
- tl_help_hide_promo_data_gen.go
- tl_help_invite_text_gen.go
- tl_help_passport_config_gen.go
- tl_help_promo_data_gen.go
- tl_help_recent_me_urls_gen.go
- tl_help_save_app_log_gen.go
- tl_help_set_bot_updates_status_gen.go
- tl_help_support_gen.go
- tl_help_support_name_gen.go
- tl_help_terms_of_service_gen.go
- tl_help_terms_of_service_update_gen.go
- tl_help_user_info_gen.go
- tl_high_score_gen.go
- tl_imported_contact_gen.go
- tl_inline_bot_switch_p_m_gen.go
- tl_input_app_event_gen.go
- tl_input_bot_inline_message_gen.go
- tl_input_bot_inline_message_id_gen.go
- tl_input_bot_inline_result_gen.go
- tl_input_channel_gen.go
- tl_input_chat_photo_gen.go
- tl_input_check_password_s_r_p_gen.go
- tl_input_client_proxy_gen.go
- tl_input_dialog_peer_gen.go
- tl_input_document_gen.go
- tl_input_encrypted_chat_gen.go
- tl_input_encrypted_file_gen.go
- tl_input_file_gen.go
- tl_input_file_location_gen.go
- tl_input_folder_peer_gen.go
- tl_input_game_gen.go
- tl_input_geo_point_gen.go
- tl_input_media_gen.go
- tl_input_message_gen.go
- tl_input_notify_peer_gen.go
- tl_input_payment_credentials_gen.go
- tl_input_peer_gen.go
- tl_input_peer_notify_settings_gen.go
- tl_input_phone_call_gen.go
- tl_input_phone_contact_gen.go
- tl_input_photo_gen.go
- tl_input_privacy_key_gen.go
- tl_input_privacy_rule_gen.go
- tl_input_secure_file_gen.go
- tl_input_secure_value_gen.go
- tl_input_single_media_gen.go
- tl_input_sticker_set_gen.go
- tl_input_sticker_set_item_gen.go
- tl_input_stickered_media_gen.go
- tl_input_theme_gen.go
- tl_input_theme_settings_gen.go
- tl_input_user_gen.go
- tl_input_wall_paper_gen.go
- tl_input_web_document_gen.go
- tl_input_web_file_location_gen.go
- tl_invoice_gen.go
- tl_json_object_value_gen.go
- tl_json_value_gen.go
- tl_keyboard_button_gen.go
- tl_keyboard_button_row_gen.go
- tl_labeled_price_gen.go
- tl_lang_pack_difference_gen.go
- tl_lang_pack_language_gen.go
- tl_lang_pack_string_gen.go
- tl_langpack_get_difference_gen.go
- tl_langpack_get_lang_pack_gen.go
- tl_langpack_get_language_gen.go
- tl_langpack_get_languages_gen.go
- tl_langpack_get_strings_gen.go
- tl_mask_coords_gen.go
- tl_message_action_gen.go
- tl_message_entity_gen.go
- tl_message_fwd_header_gen.go
- tl_message_gen.go
- tl_message_interaction_counters_gen.go
- tl_message_media_gen.go
- tl_message_range_gen.go
- tl_message_replies_gen.go
- tl_message_reply_header_gen.go
- tl_message_user_vote_gen.go
- tl_message_views_gen.go
- tl_messages_accept_encryption_gen.go
- tl_messages_accept_url_auth_gen.go
- tl_messages_add_chat_user_gen.go
- tl_messages_affected_history_gen.go
- tl_messages_affected_messages_gen.go
- tl_messages_all_stickers_gen.go
- tl_messages_archived_stickers_gen.go
- tl_messages_bot_callback_answer_gen.go
- tl_messages_bot_results_gen.go
- tl_messages_chat_full_gen.go
- tl_messages_chats_gen.go
- tl_messages_check_chat_invite_gen.go
- tl_messages_clear_all_drafts_gen.go
- tl_messages_clear_recent_stickers_gen.go
- tl_messages_create_chat_gen.go
- tl_messages_delete_chat_user_gen.go
- tl_messages_delete_history_gen.go
- tl_messages_delete_messages_gen.go
- tl_messages_delete_scheduled_messages_gen.go
- tl_messages_dh_config_gen.go
- tl_messages_dialogs_gen.go
- tl_messages_discard_encryption_gen.go
- tl_messages_discussion_message_gen.go
- tl_messages_edit_chat_about_gen.go
- tl_messages_edit_chat_admin_gen.go
- tl_messages_edit_chat_default_banned_rights_gen.go
- tl_messages_edit_chat_photo_gen.go
- tl_messages_edit_chat_title_gen.go
- tl_messages_edit_inline_bot_message_gen.go
- tl_messages_edit_message_gen.go
- tl_messages_export_chat_invite_gen.go
- tl_messages_fave_sticker_gen.go
- tl_messages_faved_stickers_gen.go
- tl_messages_featured_stickers_gen.go
- tl_messages_filter_gen.go
- tl_messages_forward_messages_gen.go
- tl_messages_found_sticker_sets_gen.go
- tl_messages_get_all_chats_gen.go
- tl_messages_get_all_drafts_gen.go
- tl_messages_get_all_stickers_gen.go
- tl_messages_get_archived_stickers_gen.go
- tl_messages_get_attached_stickers_gen.go
- tl_messages_get_bot_callback_answer_gen.go
- tl_messages_get_chats_gen.go
- tl_messages_get_common_chats_gen.go
- tl_messages_get_dh_config_gen.go
- tl_messages_get_dialog_filters_gen.go
- tl_messages_get_dialog_unread_marks_gen.go
- tl_messages_get_dialogs_gen.go
- tl_messages_get_discussion_message_gen.go
- tl_messages_get_document_by_hash_gen.go
- tl_messages_get_emoji_keywords_difference_gen.go
- tl_messages_get_emoji_keywords_gen.go
- tl_messages_get_emoji_keywords_languages_gen.go
- tl_messages_get_emoji_url_gen.go
- tl_messages_get_faved_stickers_gen.go
- tl_messages_get_featured_stickers_gen.go
- tl_messages_get_full_chat_gen.go
- tl_messages_get_game_high_scores_gen.go
- tl_messages_get_history_gen.go
- tl_messages_get_inline_bot_results_gen.go
- tl_messages_get_inline_game_high_scores_gen.go
- tl_messages_get_mask_stickers_gen.go
- tl_messages_get_message_edit_data_gen.go
- tl_messages_get_messages_gen.go
- tl_messages_get_messages_views_gen.go
- tl_messages_get_old_featured_stickers_gen.go
- tl_messages_get_onlines_gen.go
- tl_messages_get_peer_dialogs_gen.go
- tl_messages_get_peer_settings_gen.go
- tl_messages_get_pinned_dialogs_gen.go
- tl_messages_get_poll_results_gen.go
- tl_messages_get_poll_votes_gen.go
- tl_messages_get_recent_locations_gen.go
- tl_messages_get_recent_stickers_gen.go
- tl_messages_get_replies_gen.go
- tl_messages_get_saved_gifs_gen.go
- tl_messages_get_scheduled_history_gen.go
- tl_messages_get_scheduled_messages_gen.go
- tl_messages_get_search_counters_gen.go
- tl_messages_get_split_ranges_gen.go
- tl_messages_get_stats_url_gen.go
- tl_messages_get_sticker_set_gen.go
- tl_messages_get_stickers_gen.go
- tl_messages_get_suggested_dialog_filters_gen.go
- tl_messages_get_unread_mentions_gen.go
- tl_messages_get_web_page_gen.go
- tl_messages_get_web_page_preview_gen.go
- tl_messages_hide_peer_settings_bar_gen.go
- tl_messages_high_scores_gen.go
- tl_messages_import_chat_invite_gen.go
- tl_messages_inactive_chats_gen.go
- tl_messages_install_sticker_set_gen.go
- tl_messages_mark_dialog_unread_gen.go
- tl_messages_message_edit_data_gen.go
- tl_messages_message_views_gen.go
- tl_messages_messages_gen.go
- tl_messages_migrate_chat_gen.go
- tl_messages_peer_dialogs_gen.go
- tl_messages_read_discussion_gen.go
- tl_messages_read_encrypted_history_gen.go
- tl_messages_read_featured_stickers_gen.go
- tl_messages_read_history_gen.go
- tl_messages_read_mentions_gen.go
- tl_messages_read_message_contents_gen.go
- tl_messages_received_messages_gen.go
- tl_messages_received_queue_gen.go
- tl_messages_recent_stickers_gen.go
- tl_messages_reorder_pinned_dialogs_gen.go
- tl_messages_reorder_sticker_sets_gen.go
- tl_messages_report_encrypted_spam_gen.go
- tl_messages_report_gen.go
- tl_messages_report_spam_gen.go
- tl_messages_request_encryption_gen.go
- tl_messages_request_url_auth_gen.go
- tl_messages_save_draft_gen.go
- tl_messages_save_gif_gen.go
- tl_messages_save_recent_sticker_gen.go
- tl_messages_saved_gifs_gen.go
- tl_messages_search_counter_gen.go
- tl_messages_search_gen.go
- tl_messages_search_global_gen.go
- tl_messages_search_sticker_sets_gen.go
- tl_messages_send_encrypted_file_gen.go
- tl_messages_send_encrypted_gen.go
- tl_messages_send_encrypted_service_gen.go
- tl_messages_send_inline_bot_result_gen.go
- tl_messages_send_media_gen.go
- tl_messages_send_message_gen.go
- tl_messages_send_multi_media_gen.go
- tl_messages_send_scheduled_messages_gen.go
- tl_messages_send_screenshot_notification_gen.go
- tl_messages_send_vote_gen.go
- tl_messages_sent_encrypted_message_gen.go
- tl_messages_set_bot_callback_answer_gen.go
- tl_messages_set_bot_precheckout_results_gen.go
- tl_messages_set_bot_shipping_results_gen.go
- tl_messages_set_encrypted_typing_gen.go
- tl_messages_set_game_score_gen.go
- tl_messages_set_inline_bot_results_gen.go
- tl_messages_set_inline_game_score_gen.go
- tl_messages_set_typing_gen.go
- tl_messages_start_bot_gen.go
- tl_messages_sticker_set_gen.go
- tl_messages_sticker_set_install_result_gen.go
- tl_messages_stickers_gen.go
- tl_messages_toggle_dialog_pin_gen.go
- tl_messages_toggle_sticker_sets_gen.go
- tl_messages_uninstall_sticker_set_gen.go
- tl_messages_unpin_all_messages_gen.go
- tl_messages_update_dialog_filter_gen.go
- tl_messages_update_dialog_filters_order_gen.go
- tl_messages_update_pinned_message_gen.go
- tl_messages_upload_encrypted_file_gen.go
- tl_messages_upload_media_gen.go
- tl_messages_votes_list_gen.go
- tl_nearest_dc_gen.go
- tl_notify_peer_gen.go
- tl_null_gen.go
- tl_page_block_gen.go
- tl_page_caption_gen.go
- tl_page_gen.go
- tl_page_list_item_gen.go
- tl_page_list_ordered_item_gen.go
- tl_page_related_article_gen.go
- tl_page_table_cell_gen.go
- tl_page_table_row_gen.go
- tl_password_kdf_algo_gen.go
- tl_payment_charge_gen.go
- tl_payment_requested_info_gen.go
- tl_payment_saved_credentials_card_gen.go
- tl_payments_bank_card_data_gen.go
- tl_payments_clear_saved_info_gen.go
- tl_payments_get_bank_card_data_gen.go
- tl_payments_get_payment_form_gen.go
- tl_payments_get_payment_receipt_gen.go
- tl_payments_get_saved_info_gen.go
- tl_payments_payment_form_gen.go
- tl_payments_payment_receipt_gen.go
- tl_payments_payment_result_gen.go
- tl_payments_saved_info_gen.go
- tl_payments_send_payment_form_gen.go
- tl_payments_validate_requested_info_gen.go
- tl_payments_validated_requested_info_gen.go
- tl_peer_blocked_gen.go
- tl_peer_gen.go
- tl_peer_located_gen.go
- tl_peer_notify_settings_gen.go
- tl_peer_settings_gen.go
- tl_phone_accept_call_gen.go
- tl_phone_call_discard_reason_gen.go
- tl_phone_call_gen.go
- tl_phone_call_protocol_gen.go
- tl_phone_confirm_call_gen.go
- tl_phone_connection_gen.go
- tl_phone_discard_call_gen.go
- tl_phone_get_call_config_gen.go
- tl_phone_phone_call_gen.go
- tl_phone_received_call_gen.go
- tl_phone_request_call_gen.go
- tl_phone_save_call_debug_gen.go
- tl_phone_send_signaling_data_gen.go
- tl_phone_set_call_rating_gen.go
- tl_photo_gen.go
- tl_photo_size_gen.go
- tl_photos_delete_photos_gen.go
- tl_photos_get_user_photos_gen.go
- tl_photos_photo_gen.go
- tl_photos_photos_gen.go
- tl_photos_update_profile_photo_gen.go
- tl_photos_upload_profile_photo_gen.go
- tl_poll_answer_gen.go
- tl_poll_answer_voters_gen.go
- tl_poll_gen.go
- tl_poll_results_gen.go
- tl_popular_contact_gen.go
- tl_post_address_gen.go
- tl_privacy_key_gen.go
- tl_privacy_rule_gen.go
- tl_received_notify_message_gen.go
- tl_recent_me_url_gen.go
- tl_registry_gen.go
- tl_reply_markup_gen.go
- tl_report_reason_gen.go
- tl_restriction_reason_gen.go
- tl_rich_text_gen.go
- tl_saved_phone_contact_gen.go
- tl_secure_credentials_encrypted_gen.go
- tl_secure_data_gen.go
- tl_secure_file_gen.go
- tl_secure_password_kdf_algo_gen.go
- tl_secure_plain_data_gen.go
- tl_secure_required_type_gen.go
- tl_secure_secret_settings_gen.go
- tl_secure_value_error_gen.go
- tl_secure_value_gen.go
- tl_secure_value_hash_gen.go
- tl_secure_value_type_gen.go
- tl_send_message_action_gen.go
- tl_shipping_option_gen.go
- tl_stats_abs_value_and_prev_gen.go
- tl_stats_broadcast_stats_gen.go
- tl_stats_date_range_days_gen.go
- tl_stats_get_broadcast_stats_gen.go
- tl_stats_get_megagroup_stats_gen.go
- tl_stats_get_message_public_forwards_gen.go
- tl_stats_get_message_stats_gen.go
- tl_stats_graph_gen.go
- tl_stats_group_top_admin_gen.go
- tl_stats_group_top_inviter_gen.go
- tl_stats_group_top_poster_gen.go
- tl_stats_load_async_graph_gen.go
- tl_stats_megagroup_stats_gen.go
- tl_stats_message_stats_gen.go
- tl_stats_percent_value_gen.go
- tl_stats_url_gen.go
- tl_sticker_pack_gen.go
- tl_sticker_set_covered_gen.go
- tl_sticker_set_gen.go
- tl_stickers_add_sticker_to_set_gen.go
- tl_stickers_change_sticker_position_gen.go
- tl_stickers_create_sticker_set_gen.go
- tl_stickers_remove_sticker_from_set_gen.go
- tl_stickers_set_sticker_set_thumb_gen.go
- tl_storage_file_type_gen.go
- tl_theme_gen.go
- tl_theme_settings_gen.go
- tl_top_peer_category_gen.go
- tl_top_peer_category_peers_gen.go
- tl_top_peer_gen.go
- tl_true_gen.go
- tl_update_gen.go
- tl_updates_channel_difference_gen.go
- tl_updates_difference_gen.go
- tl_updates_gen.go
- tl_updates_get_channel_difference_gen.go
- tl_updates_get_difference_gen.go
- tl_updates_get_state_gen.go
- tl_updates_state_gen.go
- tl_upload_cdn_file_gen.go
- tl_upload_file_gen.go
- tl_upload_get_cdn_file_gen.go
- tl_upload_get_cdn_file_hashes_gen.go
- tl_upload_get_file_gen.go
- tl_upload_get_file_hashes_gen.go
- tl_upload_get_web_file_gen.go
- tl_upload_reupload_cdn_file_gen.go
- tl_upload_save_big_file_part_gen.go
- tl_upload_save_file_part_gen.go
- tl_upload_web_file_gen.go
- tl_url_auth_result_gen.go
- tl_user_full_gen.go
- tl_user_gen.go
- tl_user_profile_photo_gen.go
- tl_user_status_gen.go
- tl_users_get_full_user_gen.go
- tl_users_get_users_gen.go
- tl_users_set_secure_value_errors_gen.go
- tl_video_size_gen.go
- tl_wall_paper_gen.go
- tl_wall_paper_settings_gen.go
- tl_web_authorization_gen.go
- tl_web_document_gen.go
- tl_web_page_attribute_theme_gen.go
- tl_web_page_gen.go