telegram

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

init.go нужен для того что бы иметь один единственный инит в пакете, и при этом не заставляет его генерироваться через generate-tl-files

Index

Constants

View Source
const (
	ApiVersion = 117
)

Variables

This section is empty.

Functions

func GenerateStructByConstructor

func GenerateStructByConstructor(constructorID uint32) (object serialize.TL, isEnum bool, err error)

Types

type AccessPointRule

type AccessPointRule struct {
	PhonePrefixRules string   `validate:"required"`
	DcId             int32    `validate:"required"`
	Ips              []IpPort `validate:"required"`
}

func (*AccessPointRule) CRC

func (e *AccessPointRule) CRC() uint32

func (*AccessPointRule) Encode

func (e *AccessPointRule) Encode() []byte

type AccountAcceptAuthorizationParams

type AccountAcceptAuthorizationParams struct {
	BotId       int32                       `validate:"required"`
	Scope       string                      `validate:"required"`
	PublicKey   string                      `validate:"required"`
	ValueHashes []*SecureValueHash          `validate:"required"`
	Credentials *SecureCredentialsEncrypted `validate:"required"`
}

func (*AccountAcceptAuthorizationParams) CRC

func (*AccountAcceptAuthorizationParams) Encode

func (e *AccountAcceptAuthorizationParams) Encode() []byte

type AccountAuthorizationForm

type AccountAuthorizationForm struct {
	RequiredTypes    []SecureRequiredType `validate:"required"`
	Values           []*SecureValue       `validate:"required"`
	Errors           []SecureValueError   `validate:"required"`
	Users            []User               `validate:"required"`
	PrivacyPolicyUrl string               `flag:"0"`
	// contains filtered or unexported fields
}

func (*AccountAuthorizationForm) CRC

func (*AccountAuthorizationForm) Encode

func (e *AccountAuthorizationForm) Encode() []byte

type AccountAuthorizations

type AccountAuthorizations struct {
	Authorizations []*Authorization `validate:"required"`
}

func (*AccountAuthorizations) CRC

func (e *AccountAuthorizations) CRC() uint32

func (*AccountAuthorizations) Encode

func (e *AccountAuthorizations) Encode() []byte

type AccountAutoDownloadSettings

type AccountAutoDownloadSettings struct {
	Low    *AutoDownloadSettings `validate:"required"`
	Medium *AutoDownloadSettings `validate:"required"`
	High   *AutoDownloadSettings `validate:"required"`
}

func (*AccountAutoDownloadSettings) CRC

func (*AccountAutoDownloadSettings) Encode

func (e *AccountAutoDownloadSettings) Encode() []byte

type AccountCancelPasswordEmailParams

type AccountCancelPasswordEmailParams struct{}

func (*AccountCancelPasswordEmailParams) CRC

func (*AccountCancelPasswordEmailParams) Encode

func (e *AccountCancelPasswordEmailParams) Encode() []byte

type AccountChangePhoneParams

type AccountChangePhoneParams struct {
	PhoneNumber   string `validate:"required"`
	PhoneCodeHash string `validate:"required"`
	PhoneCode     string `validate:"required"`
}

func (*AccountChangePhoneParams) CRC

func (*AccountChangePhoneParams) Encode

func (e *AccountChangePhoneParams) Encode() []byte

type AccountCheckUsernameParams

type AccountCheckUsernameParams struct {
	Username string `validate:"required"`
}

func (*AccountCheckUsernameParams) CRC

func (*AccountCheckUsernameParams) Encode

func (e *AccountCheckUsernameParams) Encode() []byte

type AccountConfirmPasswordEmailParams

type AccountConfirmPasswordEmailParams struct {
	Code string `validate:"required"`
}

func (*AccountConfirmPasswordEmailParams) CRC

func (*AccountConfirmPasswordEmailParams) Encode

type AccountConfirmPhoneParams

type AccountConfirmPhoneParams struct {
	PhoneCodeHash string `validate:"required"`
	PhoneCode     string `validate:"required"`
}

func (*AccountConfirmPhoneParams) CRC

func (*AccountConfirmPhoneParams) Encode

func (e *AccountConfirmPhoneParams) Encode() []byte

type AccountContentSettings

type AccountContentSettings struct {
	SensitiveEnabled   bool `flag:"0,encoded_in_bitflags"`
	SensitiveCanChange bool `flag:"1,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*AccountContentSettings) CRC

func (e *AccountContentSettings) CRC() uint32

func (*AccountContentSettings) Encode

func (e *AccountContentSettings) Encode() []byte

type AccountCreateThemeParams

type AccountCreateThemeParams struct {
	Slug     string              `validate:"required"`
	Title    string              `validate:"required"`
	Document InputDocument       `flag:"2"`
	Settings *InputThemeSettings `flag:"3"`
	// contains filtered or unexported fields
}

func (*AccountCreateThemeParams) CRC

func (*AccountCreateThemeParams) Encode

func (e *AccountCreateThemeParams) Encode() []byte

type AccountDaysTTL

type AccountDaysTTL struct {
	Days int32 `validate:"required"`
}

func (*AccountDaysTTL) CRC

func (e *AccountDaysTTL) CRC() uint32

func (*AccountDaysTTL) Encode

func (e *AccountDaysTTL) Encode() []byte

type AccountDeleteAccountParams

type AccountDeleteAccountParams struct {
	Reason string `validate:"required"`
}

func (*AccountDeleteAccountParams) CRC

func (*AccountDeleteAccountParams) Encode

func (e *AccountDeleteAccountParams) Encode() []byte

type AccountDeleteSecureValueParams

type AccountDeleteSecureValueParams struct {
	Types []SecureValueType `validate:"required"`
}

func (*AccountDeleteSecureValueParams) CRC

func (*AccountDeleteSecureValueParams) Encode

func (e *AccountDeleteSecureValueParams) Encode() []byte

type AccountFinishTakeoutSessionParams

type AccountFinishTakeoutSessionParams struct {
	Success bool `flag:"0,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*AccountFinishTakeoutSessionParams) CRC

func (*AccountFinishTakeoutSessionParams) Encode

type AccountGetAccountTTLParams

type AccountGetAccountTTLParams struct{}

func (*AccountGetAccountTTLParams) CRC

func (*AccountGetAccountTTLParams) Encode

func (e *AccountGetAccountTTLParams) Encode() []byte

type AccountGetAllSecureValuesParams

type AccountGetAllSecureValuesParams struct{}

func (*AccountGetAllSecureValuesParams) CRC

func (*AccountGetAllSecureValuesParams) Encode

func (e *AccountGetAllSecureValuesParams) Encode() []byte

type AccountGetAuthorizationFormParams

type AccountGetAuthorizationFormParams struct {
	BotId     int32  `validate:"required"`
	Scope     string `validate:"required"`
	PublicKey string `validate:"required"`
}

func (*AccountGetAuthorizationFormParams) CRC

func (*AccountGetAuthorizationFormParams) Encode

type AccountGetAuthorizationsParams

type AccountGetAuthorizationsParams struct{}

func (*AccountGetAuthorizationsParams) CRC

func (*AccountGetAuthorizationsParams) Encode

func (e *AccountGetAuthorizationsParams) Encode() []byte

type AccountGetAutoDownloadSettingsParams

type AccountGetAutoDownloadSettingsParams struct{}

func (*AccountGetAutoDownloadSettingsParams) CRC

func (*AccountGetAutoDownloadSettingsParams) Encode

type AccountGetContactSignUpNotificationParams

type AccountGetContactSignUpNotificationParams struct{}

func (*AccountGetContactSignUpNotificationParams) CRC

func (*AccountGetContactSignUpNotificationParams) Encode

type AccountGetContentSettingsParams

type AccountGetContentSettingsParams struct{}

func (*AccountGetContentSettingsParams) CRC

func (*AccountGetContentSettingsParams) Encode

func (e *AccountGetContentSettingsParams) Encode() []byte

type AccountGetGlobalPrivacySettingsParams

type AccountGetGlobalPrivacySettingsParams struct{}

func (*AccountGetGlobalPrivacySettingsParams) CRC

func (*AccountGetGlobalPrivacySettingsParams) Encode

type AccountGetMultiWallPapersParams

type AccountGetMultiWallPapersParams struct {
	Wallpapers []InputWallPaper `validate:"required"`
}

func (*AccountGetMultiWallPapersParams) CRC

func (*AccountGetMultiWallPapersParams) Encode

func (e *AccountGetMultiWallPapersParams) Encode() []byte

type AccountGetNotifyExceptionsParams

type AccountGetNotifyExceptionsParams struct {
	CompareSound bool            `flag:"1,encoded_in_bitflags"`
	Peer         InputNotifyPeer `flag:"0"`
	// contains filtered or unexported fields
}

func (*AccountGetNotifyExceptionsParams) CRC

func (*AccountGetNotifyExceptionsParams) Encode

func (e *AccountGetNotifyExceptionsParams) Encode() []byte

type AccountGetNotifySettingsParams

type AccountGetNotifySettingsParams struct {
	Peer InputNotifyPeer `validate:"required"`
}

func (*AccountGetNotifySettingsParams) CRC

func (*AccountGetNotifySettingsParams) Encode

func (e *AccountGetNotifySettingsParams) Encode() []byte

type AccountGetPasswordParams

type AccountGetPasswordParams struct{}

func (*AccountGetPasswordParams) CRC

func (*AccountGetPasswordParams) Encode

func (e *AccountGetPasswordParams) Encode() []byte

type AccountGetPasswordSettingsParams

type AccountGetPasswordSettingsParams struct {
	Password InputCheckPasswordSRP `validate:"required"`
}

func (*AccountGetPasswordSettingsParams) CRC

func (*AccountGetPasswordSettingsParams) Encode

func (e *AccountGetPasswordSettingsParams) Encode() []byte

type AccountGetPrivacyParams

type AccountGetPrivacyParams struct {
	Key InputPrivacyKey `validate:"required"`
}

func (*AccountGetPrivacyParams) CRC

func (*AccountGetPrivacyParams) Encode

func (e *AccountGetPrivacyParams) Encode() []byte

type AccountGetSecureValueParams

type AccountGetSecureValueParams struct {
	Types []SecureValueType `validate:"required"`
}

func (*AccountGetSecureValueParams) CRC

func (*AccountGetSecureValueParams) Encode

func (e *AccountGetSecureValueParams) Encode() []byte

type AccountGetThemeParams

type AccountGetThemeParams struct {
	Format     string     `validate:"required"`
	Theme      InputTheme `validate:"required"`
	DocumentId int64      `validate:"required"`
}

func (*AccountGetThemeParams) CRC

func (e *AccountGetThemeParams) CRC() uint32

func (*AccountGetThemeParams) Encode

func (e *AccountGetThemeParams) Encode() []byte

type AccountGetThemesParams

type AccountGetThemesParams struct {
	Format string `validate:"required"`
	Hash   int32  `validate:"required"`
}

func (*AccountGetThemesParams) CRC

func (e *AccountGetThemesParams) CRC() uint32

func (*AccountGetThemesParams) Encode

func (e *AccountGetThemesParams) Encode() []byte

type AccountGetTmpPasswordParams

type AccountGetTmpPasswordParams struct {
	Password InputCheckPasswordSRP `validate:"required"`
	Period   int32                 `validate:"required"`
}

func (*AccountGetTmpPasswordParams) CRC

func (*AccountGetTmpPasswordParams) Encode

func (e *AccountGetTmpPasswordParams) Encode() []byte

type AccountGetWallPaperParams

type AccountGetWallPaperParams struct {
	Wallpaper InputWallPaper `validate:"required"`
}

func (*AccountGetWallPaperParams) CRC

func (*AccountGetWallPaperParams) Encode

func (e *AccountGetWallPaperParams) Encode() []byte

type AccountGetWallPapersParams

type AccountGetWallPapersParams struct {
	Hash int32 `validate:"required"`
}

func (*AccountGetWallPapersParams) CRC

func (*AccountGetWallPapersParams) Encode

func (e *AccountGetWallPapersParams) Encode() []byte

type AccountGetWebAuthorizationsParams

type AccountGetWebAuthorizationsParams struct{}

func (*AccountGetWebAuthorizationsParams) CRC

func (*AccountGetWebAuthorizationsParams) Encode

type AccountInitTakeoutSessionParams

type AccountInitTakeoutSessionParams struct {
	Contacts          bool  `flag:"0,encoded_in_bitflags"`
	MessageUsers      bool  `flag:"1,encoded_in_bitflags"`
	MessageChats      bool  `flag:"2,encoded_in_bitflags"`
	MessageMegagroups bool  `flag:"3,encoded_in_bitflags"`
	MessageChannels   bool  `flag:"4,encoded_in_bitflags"`
	Files             bool  `flag:"5,encoded_in_bitflags"`
	FileMaxSize       int32 `flag:"5"`
	// contains filtered or unexported fields
}

func (*AccountInitTakeoutSessionParams) CRC

func (*AccountInitTakeoutSessionParams) Encode

func (e *AccountInitTakeoutSessionParams) Encode() []byte

type AccountInstallThemeParams

type AccountInstallThemeParams struct {
	Dark   bool       `flag:"0,encoded_in_bitflags"`
	Format string     `flag:"1"`
	Theme  InputTheme `flag:"1"`
	// contains filtered or unexported fields
}

func (*AccountInstallThemeParams) CRC

func (*AccountInstallThemeParams) Encode

func (e *AccountInstallThemeParams) Encode() []byte

type AccountInstallWallPaperParams

type AccountInstallWallPaperParams struct {
	Wallpaper InputWallPaper     `validate:"required"`
	Settings  *WallPaperSettings `validate:"required"`
}

func (*AccountInstallWallPaperParams) CRC

func (*AccountInstallWallPaperParams) Encode

func (e *AccountInstallWallPaperParams) Encode() []byte

type AccountPassword

type AccountPassword struct {
	HasRecovery             bool                  `flag:"0,encoded_in_bitflags"`
	HasSecureValues         bool                  `flag:"1,encoded_in_bitflags"`
	HasPassword             bool                  `flag:"2,encoded_in_bitflags"`
	CurrentAlgo             PasswordKdfAlgo       `flag:"2"`
	SrpB                    []byte                `flag:"2"`
	SrpId                   int64                 `flag:"2"`
	Hint                    string                `flag:"3"`
	EmailUnconfirmedPattern string                `flag:"4"`
	NewAlgo                 PasswordKdfAlgo       `validate:"required"`
	NewSecureAlgo           SecurePasswordKdfAlgo `validate:"required"`
	SecureRandom            []byte                `validate:"required"`
	// contains filtered or unexported fields
}

func (*AccountPassword) CRC

func (e *AccountPassword) CRC() uint32

func (*AccountPassword) Encode

func (e *AccountPassword) Encode() []byte

type AccountPasswordInputSettings

type AccountPasswordInputSettings struct {
	NewAlgo           PasswordKdfAlgo       `flag:"0"`
	NewPasswordHash   []byte                `flag:"0"`
	Hint              string                `flag:"0"`
	Email             string                `flag:"1"`
	NewSecureSettings *SecureSecretSettings `flag:"2"`
	// contains filtered or unexported fields
}

func (*AccountPasswordInputSettings) CRC

func (*AccountPasswordInputSettings) Encode

func (e *AccountPasswordInputSettings) Encode() []byte

type AccountPasswordSettings

type AccountPasswordSettings struct {
	Email          string                `flag:"0"`
	SecureSettings *SecureSecretSettings `flag:"1"`
	// contains filtered or unexported fields
}

func (*AccountPasswordSettings) CRC

func (*AccountPasswordSettings) Encode

func (e *AccountPasswordSettings) Encode() []byte

type AccountPrivacyRules

type AccountPrivacyRules struct {
	Rules []PrivacyRule `validate:"required"`
	Chats []Chat        `validate:"required"`
	Users []User        `validate:"required"`
}

func (*AccountPrivacyRules) CRC

func (e *AccountPrivacyRules) CRC() uint32

func (*AccountPrivacyRules) Encode

func (e *AccountPrivacyRules) Encode() []byte

type AccountRegisterDeviceParams

type AccountRegisterDeviceParams struct {
	NoMuted    bool    `flag:"0,encoded_in_bitflags"`
	TokenType  int32   `validate:"required"`
	Token      string  `validate:"required"`
	AppSandbox bool    `validate:"required"`
	Secret     []byte  `validate:"required"`
	OtherUids  []int32 `validate:"required"`
	// contains filtered or unexported fields
}

func (*AccountRegisterDeviceParams) CRC

func (*AccountRegisterDeviceParams) Encode

func (e *AccountRegisterDeviceParams) Encode() []byte

type AccountReportPeerParams

type AccountReportPeerParams struct {
	Peer   InputPeer    `validate:"required"`
	Reason ReportReason `validate:"required"`
}

func (*AccountReportPeerParams) CRC

func (*AccountReportPeerParams) Encode

func (e *AccountReportPeerParams) Encode() []byte

type AccountResendPasswordEmailParams

type AccountResendPasswordEmailParams struct{}

func (*AccountResendPasswordEmailParams) CRC

func (*AccountResendPasswordEmailParams) Encode

func (e *AccountResendPasswordEmailParams) Encode() []byte

type AccountResetAuthorizationParams

type AccountResetAuthorizationParams struct {
	Hash int64 `validate:"required"`
}

func (*AccountResetAuthorizationParams) CRC

func (*AccountResetAuthorizationParams) Encode

func (e *AccountResetAuthorizationParams) Encode() []byte

type AccountResetNotifySettingsParams

type AccountResetNotifySettingsParams struct{}

func (*AccountResetNotifySettingsParams) CRC

func (*AccountResetNotifySettingsParams) Encode

func (e *AccountResetNotifySettingsParams) Encode() []byte

type AccountResetWallPapersParams

type AccountResetWallPapersParams struct{}

func (*AccountResetWallPapersParams) CRC

func (*AccountResetWallPapersParams) Encode

func (e *AccountResetWallPapersParams) Encode() []byte

type AccountResetWebAuthorizationParams

type AccountResetWebAuthorizationParams struct {
	Hash int64 `validate:"required"`
}

func (*AccountResetWebAuthorizationParams) CRC

func (*AccountResetWebAuthorizationParams) Encode

type AccountResetWebAuthorizationsParams

type AccountResetWebAuthorizationsParams struct{}

func (*AccountResetWebAuthorizationsParams) CRC

func (*AccountResetWebAuthorizationsParams) Encode

type AccountSaveAutoDownloadSettingsParams

type AccountSaveAutoDownloadSettingsParams struct {
	Low      bool                  `flag:"0,encoded_in_bitflags"`
	High     bool                  `flag:"1,encoded_in_bitflags"`
	Settings *AutoDownloadSettings `validate:"required"`
	// contains filtered or unexported fields
}

func (*AccountSaveAutoDownloadSettingsParams) CRC

func (*AccountSaveAutoDownloadSettingsParams) Encode

type AccountSaveSecureValueParams

type AccountSaveSecureValueParams struct {
	Value          *InputSecureValue `validate:"required"`
	SecureSecretId int64             `validate:"required"`
}

func (*AccountSaveSecureValueParams) CRC

func (*AccountSaveSecureValueParams) Encode

func (e *AccountSaveSecureValueParams) Encode() []byte

type AccountSaveThemeParams

type AccountSaveThemeParams struct {
	Theme  InputTheme `validate:"required"`
	Unsave bool       `validate:"required"`
}

func (*AccountSaveThemeParams) CRC

func (e *AccountSaveThemeParams) CRC() uint32

func (*AccountSaveThemeParams) Encode

func (e *AccountSaveThemeParams) Encode() []byte

type AccountSaveWallPaperParams

type AccountSaveWallPaperParams struct {
	Wallpaper InputWallPaper     `validate:"required"`
	Unsave    bool               `validate:"required"`
	Settings  *WallPaperSettings `validate:"required"`
}

func (*AccountSaveWallPaperParams) CRC

func (*AccountSaveWallPaperParams) Encode

func (e *AccountSaveWallPaperParams) Encode() []byte

type AccountSendChangePhoneCodeParams

type AccountSendChangePhoneCodeParams struct {
	PhoneNumber string        `validate:"required"`
	Settings    *CodeSettings `validate:"required"`
}

func (*AccountSendChangePhoneCodeParams) CRC

func (*AccountSendChangePhoneCodeParams) Encode

func (e *AccountSendChangePhoneCodeParams) Encode() []byte

type AccountSendConfirmPhoneCodeParams

type AccountSendConfirmPhoneCodeParams struct {
	Hash     string        `validate:"required"`
	Settings *CodeSettings `validate:"required"`
}

func (*AccountSendConfirmPhoneCodeParams) CRC

func (*AccountSendConfirmPhoneCodeParams) Encode

type AccountSendVerifyEmailCodeParams

type AccountSendVerifyEmailCodeParams struct {
	Email string `validate:"required"`
}

func (*AccountSendVerifyEmailCodeParams) CRC

func (*AccountSendVerifyEmailCodeParams) Encode

func (e *AccountSendVerifyEmailCodeParams) Encode() []byte

type AccountSendVerifyPhoneCodeParams

type AccountSendVerifyPhoneCodeParams struct {
	PhoneNumber string        `validate:"required"`
	Settings    *CodeSettings `validate:"required"`
}

func (*AccountSendVerifyPhoneCodeParams) CRC

func (*AccountSendVerifyPhoneCodeParams) Encode

func (e *AccountSendVerifyPhoneCodeParams) Encode() []byte

type AccountSentEmailCode

type AccountSentEmailCode struct {
	EmailPattern string `validate:"required"`
	Length       int32  `validate:"required"`
}

func (*AccountSentEmailCode) CRC

func (e *AccountSentEmailCode) CRC() uint32

func (*AccountSentEmailCode) Encode

func (e *AccountSentEmailCode) Encode() []byte

type AccountSetAccountTTLParams

type AccountSetAccountTTLParams struct {
	Ttl *AccountDaysTTL `validate:"required"`
}

func (*AccountSetAccountTTLParams) CRC

func (*AccountSetAccountTTLParams) Encode

func (e *AccountSetAccountTTLParams) Encode() []byte

type AccountSetContactSignUpNotificationParams

type AccountSetContactSignUpNotificationParams struct {
	Silent bool `validate:"required"`
}

func (*AccountSetContactSignUpNotificationParams) CRC

func (*AccountSetContactSignUpNotificationParams) Encode

type AccountSetContentSettingsParams

type AccountSetContentSettingsParams struct {
	SensitiveEnabled bool `flag:"0,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*AccountSetContentSettingsParams) CRC

func (*AccountSetContentSettingsParams) Encode

func (e *AccountSetContentSettingsParams) Encode() []byte

type AccountSetGlobalPrivacySettingsParams

type AccountSetGlobalPrivacySettingsParams struct {
	Settings *GlobalPrivacySettings `validate:"required"`
}

func (*AccountSetGlobalPrivacySettingsParams) CRC

func (*AccountSetGlobalPrivacySettingsParams) Encode

type AccountSetPrivacyParams

type AccountSetPrivacyParams struct {
	Key   InputPrivacyKey    `validate:"required"`
	Rules []InputPrivacyRule `validate:"required"`
}

func (*AccountSetPrivacyParams) CRC

func (*AccountSetPrivacyParams) Encode

func (e *AccountSetPrivacyParams) Encode() []byte

type AccountTakeout

type AccountTakeout struct {
	Id int64 `validate:"required"`
}

func (*AccountTakeout) CRC

func (e *AccountTakeout) CRC() uint32

func (*AccountTakeout) Encode

func (e *AccountTakeout) Encode() []byte

type AccountThemes

type AccountThemes interface {
	serialize.TL
	ImplementsAccountThemes()
}

type AccountThemesNotModified

type AccountThemesNotModified struct{}

func (*AccountThemesNotModified) CRC

func (*AccountThemesNotModified) Encode

func (e *AccountThemesNotModified) Encode() []byte

func (*AccountThemesNotModified) ImplementsAccountThemes

func (*AccountThemesNotModified) ImplementsAccountThemes()

type AccountThemesObj

type AccountThemesObj struct {
	Hash   int32    `validate:"required"`
	Themes []*Theme `validate:"required"`
}

func (*AccountThemesObj) CRC

func (*AccountThemesObj) CRC() uint32

func (*AccountThemesObj) Encode

func (e *AccountThemesObj) Encode() []byte

func (*AccountThemesObj) ImplementsAccountThemes

func (*AccountThemesObj) ImplementsAccountThemes()

type AccountTmpPassword

type AccountTmpPassword struct {
	TmpPassword []byte `validate:"required"`
	ValidUntil  int32  `validate:"required"`
}

func (*AccountTmpPassword) CRC

func (e *AccountTmpPassword) CRC() uint32

func (*AccountTmpPassword) Encode

func (e *AccountTmpPassword) Encode() []byte

type AccountUnregisterDeviceParams

type AccountUnregisterDeviceParams struct {
	TokenType int32   `validate:"required"`
	Token     string  `validate:"required"`
	OtherUids []int32 `validate:"required"`
}

func (*AccountUnregisterDeviceParams) CRC

func (*AccountUnregisterDeviceParams) Encode

func (e *AccountUnregisterDeviceParams) Encode() []byte

type AccountUpdateDeviceLockedParams

type AccountUpdateDeviceLockedParams struct {
	Period int32 `validate:"required"`
}

func (*AccountUpdateDeviceLockedParams) CRC

func (*AccountUpdateDeviceLockedParams) Encode

func (e *AccountUpdateDeviceLockedParams) Encode() []byte

type AccountUpdateNotifySettingsParams

type AccountUpdateNotifySettingsParams struct {
	Peer     InputNotifyPeer          `validate:"required"`
	Settings *InputPeerNotifySettings `validate:"required"`
}

func (*AccountUpdateNotifySettingsParams) CRC

func (*AccountUpdateNotifySettingsParams) Encode

type AccountUpdatePasswordSettingsParams

type AccountUpdatePasswordSettingsParams struct {
	Password    InputCheckPasswordSRP         `validate:"required"`
	NewSettings *AccountPasswordInputSettings `validate:"required"`
}

func (*AccountUpdatePasswordSettingsParams) CRC

func (*AccountUpdatePasswordSettingsParams) Encode

type AccountUpdateProfileParams

type AccountUpdateProfileParams struct {
	FirstName string `flag:"0"`
	LastName  string `flag:"1"`
	About     string `flag:"2"`
	// contains filtered or unexported fields
}

func (*AccountUpdateProfileParams) CRC

func (*AccountUpdateProfileParams) Encode

func (e *AccountUpdateProfileParams) Encode() []byte

type AccountUpdateStatusParams

type AccountUpdateStatusParams struct {
	Offline bool `validate:"required"`
}

func (*AccountUpdateStatusParams) CRC

func (*AccountUpdateStatusParams) Encode

func (e *AccountUpdateStatusParams) Encode() []byte

type AccountUpdateThemeParams

type AccountUpdateThemeParams struct {
	Format   string              `validate:"required"`
	Theme    InputTheme          `validate:"required"`
	Slug     string              `flag:"0"`
	Title    string              `flag:"1"`
	Document InputDocument       `flag:"2"`
	Settings *InputThemeSettings `flag:"3"`
	// contains filtered or unexported fields
}

func (*AccountUpdateThemeParams) CRC

func (*AccountUpdateThemeParams) Encode

func (e *AccountUpdateThemeParams) Encode() []byte

type AccountUpdateUsernameParams

type AccountUpdateUsernameParams struct {
	Username string `validate:"required"`
}

func (*AccountUpdateUsernameParams) CRC

func (*AccountUpdateUsernameParams) Encode

func (e *AccountUpdateUsernameParams) Encode() []byte

type AccountUploadThemeParams

type AccountUploadThemeParams struct {
	File     InputFile `validate:"required"`
	Thumb    InputFile `flag:"0"`
	FileName string    `validate:"required"`
	MimeType string    `validate:"required"`
	// contains filtered or unexported fields
}

func (*AccountUploadThemeParams) CRC

func (*AccountUploadThemeParams) Encode

func (e *AccountUploadThemeParams) Encode() []byte

type AccountUploadWallPaperParams

type AccountUploadWallPaperParams struct {
	File     InputFile          `validate:"required"`
	MimeType string             `validate:"required"`
	Settings *WallPaperSettings `validate:"required"`
}

func (*AccountUploadWallPaperParams) CRC

func (*AccountUploadWallPaperParams) Encode

func (e *AccountUploadWallPaperParams) Encode() []byte

type AccountVerifyEmailParams

type AccountVerifyEmailParams struct {
	Email string `validate:"required"`
	Code  string `validate:"required"`
}

func (*AccountVerifyEmailParams) CRC

func (*AccountVerifyEmailParams) Encode

func (e *AccountVerifyEmailParams) Encode() []byte

type AccountVerifyPhoneParams

type AccountVerifyPhoneParams struct {
	PhoneNumber   string `validate:"required"`
	PhoneCodeHash string `validate:"required"`
	PhoneCode     string `validate:"required"`
}

func (*AccountVerifyPhoneParams) CRC

func (*AccountVerifyPhoneParams) Encode

func (e *AccountVerifyPhoneParams) Encode() []byte

type AccountWallPapers

type AccountWallPapers interface {
	serialize.TL
	ImplementsAccountWallPapers()
}

type AccountWallPapersNotModified

type AccountWallPapersNotModified struct{}

func (*AccountWallPapersNotModified) CRC

func (*AccountWallPapersNotModified) Encode

func (e *AccountWallPapersNotModified) Encode() []byte

func (*AccountWallPapersNotModified) ImplementsAccountWallPapers

func (*AccountWallPapersNotModified) ImplementsAccountWallPapers()

type AccountWallPapersObj

type AccountWallPapersObj struct {
	Hash       int32       `validate:"required"`
	Wallpapers []WallPaper `validate:"required"`
}

func (*AccountWallPapersObj) CRC

func (*AccountWallPapersObj) Encode

func (e *AccountWallPapersObj) Encode() []byte

func (*AccountWallPapersObj) ImplementsAccountWallPapers

func (*AccountWallPapersObj) ImplementsAccountWallPapers()

type AccountWebAuthorizations

type AccountWebAuthorizations struct {
	Authorizations []*WebAuthorization `validate:"required"`
	Users          []User              `validate:"required"`
}

func (*AccountWebAuthorizations) CRC

func (*AccountWebAuthorizations) Encode

func (e *AccountWebAuthorizations) Encode() []byte

type AuthAcceptLoginTokenParams

type AuthAcceptLoginTokenParams struct {
	Token []byte `validate:"required"`
}

func (*AuthAcceptLoginTokenParams) CRC

func (*AuthAcceptLoginTokenParams) Encode

func (e *AuthAcceptLoginTokenParams) Encode() []byte

type AuthAuthorization

type AuthAuthorization interface {
	serialize.TL
	ImplementsAuthAuthorization()
}

type AuthAuthorizationObj

type AuthAuthorizationObj struct {
	TmpSessions int32 `flag:"0"`
	User        User  `validate:"required"`
	// contains filtered or unexported fields
}

func (*AuthAuthorizationObj) CRC

func (*AuthAuthorizationObj) Encode

func (e *AuthAuthorizationObj) Encode() []byte

func (*AuthAuthorizationObj) ImplementsAuthAuthorization

func (*AuthAuthorizationObj) ImplementsAuthAuthorization()

type AuthAuthorizationSignUpRequired

type AuthAuthorizationSignUpRequired struct {
	TermsOfService *HelpTermsOfService `flag:"0"`
	// contains filtered or unexported fields
}

func (*AuthAuthorizationSignUpRequired) CRC

func (*AuthAuthorizationSignUpRequired) Encode

func (e *AuthAuthorizationSignUpRequired) Encode() []byte

func (*AuthAuthorizationSignUpRequired) ImplementsAuthAuthorization

func (*AuthAuthorizationSignUpRequired) ImplementsAuthAuthorization()

type AuthBindTempAuthKeyParams

type AuthBindTempAuthKeyParams struct {
	PermAuthKeyId    int64  `validate:"required"`
	Nonce            int64  `validate:"required"`
	ExpiresAt        int32  `validate:"required"`
	EncryptedMessage []byte `validate:"required"`
}

func (*AuthBindTempAuthKeyParams) CRC

func (*AuthBindTempAuthKeyParams) Encode

func (e *AuthBindTempAuthKeyParams) Encode() []byte

type AuthCancelCodeParams

type AuthCancelCodeParams struct {
	PhoneNumber   string `validate:"required"`
	PhoneCodeHash string `validate:"required"`
}

func (*AuthCancelCodeParams) CRC

func (e *AuthCancelCodeParams) CRC() uint32

func (*AuthCancelCodeParams) Encode

func (e *AuthCancelCodeParams) Encode() []byte

type AuthCheckPasswordParams

type AuthCheckPasswordParams struct {
	Password InputCheckPasswordSRP `validate:"required"`
}

func (*AuthCheckPasswordParams) CRC

func (*AuthCheckPasswordParams) Encode

func (e *AuthCheckPasswordParams) Encode() []byte

type AuthCodeType

type AuthCodeType uint32
const (
	AuthCodeTypeSms       AuthCodeType = 1923290508
	AuthCodeTypeCall      AuthCodeType = 1948046307
	AuthCodeTypeFlashCall AuthCodeType = 577556219
)

func (AuthCodeType) CRC

func (e AuthCodeType) CRC() uint32

func (AuthCodeType) Encode

func (e AuthCodeType) Encode() []byte

func (AuthCodeType) String

func (e AuthCodeType) String() string

type AuthDropTempAuthKeysParams

type AuthDropTempAuthKeysParams struct {
	ExceptAuthKeys []int64 `validate:"required"`
}

func (*AuthDropTempAuthKeysParams) CRC

func (*AuthDropTempAuthKeysParams) Encode

func (e *AuthDropTempAuthKeysParams) Encode() []byte

type AuthExportAuthorizationParams

type AuthExportAuthorizationParams struct {
	DcId int32 `validate:"required"`
}

func (*AuthExportAuthorizationParams) CRC

func (*AuthExportAuthorizationParams) Encode

func (e *AuthExportAuthorizationParams) Encode() []byte

type AuthExportLoginTokenParams

type AuthExportLoginTokenParams struct {
	ApiId     int32   `validate:"required"`
	ApiHash   string  `validate:"required"`
	ExceptIds []int32 `validate:"required"`
}

func (*AuthExportLoginTokenParams) CRC

func (*AuthExportLoginTokenParams) Encode

func (e *AuthExportLoginTokenParams) Encode() []byte

type AuthExportedAuthorization

type AuthExportedAuthorization struct {
	Id    int32  `validate:"required"`
	Bytes []byte `validate:"required"`
}

func (*AuthExportedAuthorization) CRC

func (*AuthExportedAuthorization) Encode

func (e *AuthExportedAuthorization) Encode() []byte

type AuthImportAuthorizationParams

type AuthImportAuthorizationParams struct {
	Id    int32  `validate:"required"`
	Bytes []byte `validate:"required"`
}

func (*AuthImportAuthorizationParams) CRC

func (*AuthImportAuthorizationParams) Encode

func (e *AuthImportAuthorizationParams) Encode() []byte

type AuthImportBotAuthorizationParams

type AuthImportBotAuthorizationParams struct {
	Flags        int32  `validate:"required"`
	ApiId        int32  `validate:"required"`
	ApiHash      string `validate:"required"`
	BotAuthToken string `validate:"required"`
}

func (*AuthImportBotAuthorizationParams) CRC

func (*AuthImportBotAuthorizationParams) Encode

func (e *AuthImportBotAuthorizationParams) Encode() []byte

type AuthImportLoginTokenParams

type AuthImportLoginTokenParams struct {
	Token []byte `validate:"required"`
}

func (*AuthImportLoginTokenParams) CRC

func (*AuthImportLoginTokenParams) Encode

func (e *AuthImportLoginTokenParams) Encode() []byte

type AuthLogOutParams

type AuthLogOutParams struct{}

func (*AuthLogOutParams) CRC

func (e *AuthLogOutParams) CRC() uint32

func (*AuthLogOutParams) Encode

func (e *AuthLogOutParams) Encode() []byte

type AuthLoginToken

type AuthLoginToken interface {
	serialize.TL
	ImplementsAuthLoginToken()
}

type AuthLoginTokenMigrateTo

type AuthLoginTokenMigrateTo struct {
	DcId  int32  `validate:"required"`
	Token []byte `validate:"required"`
}

func (*AuthLoginTokenMigrateTo) CRC

func (*AuthLoginTokenMigrateTo) Encode

func (e *AuthLoginTokenMigrateTo) Encode() []byte

func (*AuthLoginTokenMigrateTo) ImplementsAuthLoginToken

func (*AuthLoginTokenMigrateTo) ImplementsAuthLoginToken()

type AuthLoginTokenObj

type AuthLoginTokenObj struct {
	Expires int32  `validate:"required"`
	Token   []byte `validate:"required"`
}

func (*AuthLoginTokenObj) CRC

func (*AuthLoginTokenObj) CRC() uint32

func (*AuthLoginTokenObj) Encode

func (e *AuthLoginTokenObj) Encode() []byte

func (*AuthLoginTokenObj) ImplementsAuthLoginToken

func (*AuthLoginTokenObj) ImplementsAuthLoginToken()

type AuthLoginTokenSuccess

type AuthLoginTokenSuccess struct {
	Authorization AuthAuthorization `validate:"required"`
}

func (*AuthLoginTokenSuccess) CRC

func (*AuthLoginTokenSuccess) Encode

func (e *AuthLoginTokenSuccess) Encode() []byte

func (*AuthLoginTokenSuccess) ImplementsAuthLoginToken

func (*AuthLoginTokenSuccess) ImplementsAuthLoginToken()

type AuthPasswordRecovery

type AuthPasswordRecovery struct {
	EmailPattern string `validate:"required"`
}

func (*AuthPasswordRecovery) CRC

func (e *AuthPasswordRecovery) CRC() uint32

func (*AuthPasswordRecovery) Encode

func (e *AuthPasswordRecovery) Encode() []byte

type AuthRecoverPasswordParams

type AuthRecoverPasswordParams struct {
	Code string `validate:"required"`
}

func (*AuthRecoverPasswordParams) CRC

func (*AuthRecoverPasswordParams) Encode

func (e *AuthRecoverPasswordParams) Encode() []byte

type AuthRequestPasswordRecoveryParams

type AuthRequestPasswordRecoveryParams struct{}

func (*AuthRequestPasswordRecoveryParams) CRC

func (*AuthRequestPasswordRecoveryParams) Encode

type AuthResendCodeParams

type AuthResendCodeParams struct {
	PhoneNumber   string `validate:"required"`
	PhoneCodeHash string `validate:"required"`
}

func (*AuthResendCodeParams) CRC

func (e *AuthResendCodeParams) CRC() uint32

func (*AuthResendCodeParams) Encode

func (e *AuthResendCodeParams) Encode() []byte

type AuthResetAuthorizationsParams

type AuthResetAuthorizationsParams struct{}

func (*AuthResetAuthorizationsParams) CRC

func (*AuthResetAuthorizationsParams) Encode

func (e *AuthResetAuthorizationsParams) Encode() []byte

type AuthSendCodeParams

type AuthSendCodeParams struct {
	PhoneNumber string        `validate:"required"`
	ApiId       int32         `validate:"required"`
	ApiHash     string        `validate:"required"`
	Settings    *CodeSettings `validate:"required"`
}

func (*AuthSendCodeParams) CRC

func (e *AuthSendCodeParams) CRC() uint32

func (*AuthSendCodeParams) Encode

func (e *AuthSendCodeParams) Encode() []byte

type AuthSentCode

type AuthSentCode struct {
	Type          AuthSentCodeType `validate:"required"`
	PhoneCodeHash string           `validate:"required"`
	NextType      AuthCodeType     `flag:"1"`
	Timeout       int32            `flag:"2"`
	// contains filtered or unexported fields
}

func (*AuthSentCode) CRC

func (e *AuthSentCode) CRC() uint32

func (*AuthSentCode) Encode

func (e *AuthSentCode) Encode() []byte

type AuthSentCodeType

type AuthSentCodeType interface {
	serialize.TL
	ImplementsAuthSentCodeType()
}

type AuthSentCodeTypeApp

type AuthSentCodeTypeApp struct {
	Length int32 `validate:"required"`
}

func (*AuthSentCodeTypeApp) CRC

func (*AuthSentCodeTypeApp) CRC() uint32

func (*AuthSentCodeTypeApp) Encode

func (e *AuthSentCodeTypeApp) Encode() []byte

func (*AuthSentCodeTypeApp) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeApp) ImplementsAuthSentCodeType()

type AuthSentCodeTypeCall

type AuthSentCodeTypeCall struct {
	Length int32 `validate:"required"`
}

func (*AuthSentCodeTypeCall) CRC

func (*AuthSentCodeTypeCall) Encode

func (e *AuthSentCodeTypeCall) Encode() []byte

func (*AuthSentCodeTypeCall) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeCall) ImplementsAuthSentCodeType()

type AuthSentCodeTypeFlashCall

type AuthSentCodeTypeFlashCall struct {
	Pattern string `validate:"required"`
}

func (*AuthSentCodeTypeFlashCall) CRC

func (*AuthSentCodeTypeFlashCall) Encode

func (e *AuthSentCodeTypeFlashCall) Encode() []byte

func (*AuthSentCodeTypeFlashCall) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeFlashCall) ImplementsAuthSentCodeType()

type AuthSentCodeTypeSms

type AuthSentCodeTypeSms struct {
	Length int32 `validate:"required"`
}

func (*AuthSentCodeTypeSms) CRC

func (*AuthSentCodeTypeSms) CRC() uint32

func (*AuthSentCodeTypeSms) Encode

func (e *AuthSentCodeTypeSms) Encode() []byte

func (*AuthSentCodeTypeSms) ImplementsAuthSentCodeType

func (*AuthSentCodeTypeSms) ImplementsAuthSentCodeType()

type AuthSignInParams

type AuthSignInParams struct {
	PhoneNumber   string `validate:"required"`
	PhoneCodeHash string `validate:"required"`
	PhoneCode     string `validate:"required"`
}

func (*AuthSignInParams) CRC

func (e *AuthSignInParams) CRC() uint32

func (*AuthSignInParams) Encode

func (e *AuthSignInParams) Encode() []byte

type AuthSignUpParams

type AuthSignUpParams struct {
	PhoneNumber   string `validate:"required"`
	PhoneCodeHash string `validate:"required"`
	FirstName     string `validate:"required"`
	LastName      string `validate:"required"`
}

func (*AuthSignUpParams) CRC

func (e *AuthSignUpParams) CRC() uint32

func (*AuthSignUpParams) Encode

func (e *AuthSignUpParams) Encode() []byte

type Authorization

type Authorization struct {
	Current         bool   `flag:"0,encoded_in_bitflags"`
	OfficialApp     bool   `flag:"1,encoded_in_bitflags"`
	PasswordPending bool   `flag:"2,encoded_in_bitflags"`
	Hash            int64  `validate:"required"`
	DeviceModel     string `validate:"required"`
	Platform        string `validate:"required"`
	SystemVersion   string `validate:"required"`
	ApiId           int32  `validate:"required"`
	AppName         string `validate:"required"`
	AppVersion      string `validate:"required"`
	DateCreated     int32  `validate:"required"`
	DateActive      int32  `validate:"required"`
	Ip              string `validate:"required"`
	Country         string `validate:"required"`
	Region          string `validate:"required"`
	// contains filtered or unexported fields
}

func (*Authorization) CRC

func (e *Authorization) CRC() uint32

func (*Authorization) Encode

func (e *Authorization) Encode() []byte

type AutoDownloadSettings

type AutoDownloadSettings struct {
	Disabled              bool  `flag:"0,encoded_in_bitflags"`
	VideoPreloadLarge     bool  `flag:"1,encoded_in_bitflags"`
	AudioPreloadNext      bool  `flag:"2,encoded_in_bitflags"`
	PhonecallsLessData    bool  `flag:"3,encoded_in_bitflags"`
	PhotoSizeMax          int32 `validate:"required"`
	VideoSizeMax          int32 `validate:"required"`
	FileSizeMax           int32 `validate:"required"`
	VideoUploadMaxbitrate int32 `validate:"required"`
	// contains filtered or unexported fields
}

func (*AutoDownloadSettings) CRC

func (e *AutoDownloadSettings) CRC() uint32

func (*AutoDownloadSettings) Encode

func (e *AutoDownloadSettings) Encode() []byte

type BankCardOpenUrl

type BankCardOpenUrl struct {
	Url  string `validate:"required"`
	Name string `validate:"required"`
}

func (*BankCardOpenUrl) CRC

func (e *BankCardOpenUrl) CRC() uint32

func (*BankCardOpenUrl) Encode

func (e *BankCardOpenUrl) Encode() []byte

type BaseTheme

type BaseTheme uint32
const (
	BaseThemeClassic BaseTheme = 3282117730
	BaseThemeDay     BaseTheme = 4225242760
	BaseThemeNight   BaseTheme = 3081969320
	BaseThemeTinted  BaseTheme = 1834973166
	BaseThemeArctic  BaseTheme = 1527845466
)

func (BaseTheme) CRC

func (e BaseTheme) CRC() uint32

func (BaseTheme) Encode

func (e BaseTheme) Encode() []byte

func (BaseTheme) String

func (e BaseTheme) String() string

type BotCommand

type BotCommand struct {
	Command     string `validate:"required"`
	Description string `validate:"required"`
}

func (*BotCommand) CRC

func (e *BotCommand) CRC() uint32

func (*BotCommand) Encode

func (e *BotCommand) Encode() []byte

type BotInfo

type BotInfo struct {
	UserId      int32         `validate:"required"`
	Description string        `validate:"required"`
	Commands    []*BotCommand `validate:"required"`
}

func (*BotInfo) CRC

func (e *BotInfo) CRC() uint32

func (*BotInfo) Encode

func (e *BotInfo) Encode() []byte

type BotInlineMediaResult

type BotInlineMediaResult struct {
	Id          string           `validate:"required"`
	Type        string           `validate:"required"`
	Photo       Photo            `flag:"0"`
	Document    Document         `flag:"1"`
	Title       string           `flag:"2"`
	Description string           `flag:"3"`
	SendMessage BotInlineMessage `validate:"required"`
	// contains filtered or unexported fields
}

func (*BotInlineMediaResult) CRC

func (*BotInlineMediaResult) Encode

func (e *BotInlineMediaResult) Encode() []byte

func (*BotInlineMediaResult) ImplementsBotInlineResult

func (*BotInlineMediaResult) ImplementsBotInlineResult()

type BotInlineMessage

type BotInlineMessage interface {
	serialize.TL
	ImplementsBotInlineMessage()
}

type BotInlineMessageMediaAuto

type BotInlineMessageMediaAuto struct {
	Message     string          `validate:"required"`
	Entities    []MessageEntity `flag:"1"`
	ReplyMarkup ReplyMarkup     `flag:"2"`
	// contains filtered or unexported fields
}

func (*BotInlineMessageMediaAuto) CRC

func (*BotInlineMessageMediaAuto) Encode

func (e *BotInlineMessageMediaAuto) Encode() []byte

func (*BotInlineMessageMediaAuto) ImplementsBotInlineMessage

func (*BotInlineMessageMediaAuto) ImplementsBotInlineMessage()

type BotInlineMessageMediaContact

type BotInlineMessageMediaContact struct {
	PhoneNumber string      `validate:"required"`
	FirstName   string      `validate:"required"`
	LastName    string      `validate:"required"`
	Vcard       string      `validate:"required"`
	ReplyMarkup ReplyMarkup `flag:"2"`
	// contains filtered or unexported fields
}

func (*BotInlineMessageMediaContact) CRC

func (*BotInlineMessageMediaContact) Encode

func (e *BotInlineMessageMediaContact) Encode() []byte

func (*BotInlineMessageMediaContact) ImplementsBotInlineMessage

func (*BotInlineMessageMediaContact) ImplementsBotInlineMessage()

type BotInlineMessageMediaGeo

type BotInlineMessageMediaGeo struct {
	Geo         GeoPoint    `validate:"required"`
	Period      int32       `validate:"required"`
	ReplyMarkup ReplyMarkup `flag:"2"`
	// contains filtered or unexported fields
}

func (*BotInlineMessageMediaGeo) CRC

func (*BotInlineMessageMediaGeo) Encode

func (e *BotInlineMessageMediaGeo) Encode() []byte

func (*BotInlineMessageMediaGeo) ImplementsBotInlineMessage

func (*BotInlineMessageMediaGeo) ImplementsBotInlineMessage()

type BotInlineMessageMediaVenue

type BotInlineMessageMediaVenue struct {
	Geo         GeoPoint    `validate:"required"`
	Title       string      `validate:"required"`
	Address     string      `validate:"required"`
	Provider    string      `validate:"required"`
	VenueId     string      `validate:"required"`
	VenueType   string      `validate:"required"`
	ReplyMarkup ReplyMarkup `flag:"2"`
	// contains filtered or unexported fields
}

func (*BotInlineMessageMediaVenue) CRC

func (*BotInlineMessageMediaVenue) Encode

func (e *BotInlineMessageMediaVenue) Encode() []byte

func (*BotInlineMessageMediaVenue) ImplementsBotInlineMessage

func (*BotInlineMessageMediaVenue) ImplementsBotInlineMessage()

type BotInlineMessageText

type BotInlineMessageText struct {
	NoWebpage   bool            `flag:"0,encoded_in_bitflags"`
	Message     string          `validate:"required"`
	Entities    []MessageEntity `flag:"1"`
	ReplyMarkup ReplyMarkup     `flag:"2"`
	// contains filtered or unexported fields
}

func (*BotInlineMessageText) CRC

func (*BotInlineMessageText) Encode

func (e *BotInlineMessageText) Encode() []byte

func (*BotInlineMessageText) ImplementsBotInlineMessage

func (*BotInlineMessageText) ImplementsBotInlineMessage()

type BotInlineResult

type BotInlineResult interface {
	serialize.TL
	ImplementsBotInlineResult()
}

type BotInlineResultObj

type BotInlineResultObj struct {
	Id          string           `validate:"required"`
	Type        string           `validate:"required"`
	Title       string           `flag:"1"`
	Description string           `flag:"2"`
	Url         string           `flag:"3"`
	Thumb       WebDocument      `flag:"4"`
	Content     WebDocument      `flag:"5"`
	SendMessage BotInlineMessage `validate:"required"`
	// contains filtered or unexported fields
}

func (*BotInlineResultObj) CRC

func (*BotInlineResultObj) CRC() uint32

func (*BotInlineResultObj) Encode

func (e *BotInlineResultObj) Encode() []byte

func (*BotInlineResultObj) ImplementsBotInlineResult

func (*BotInlineResultObj) ImplementsBotInlineResult()

type BotsAnswerWebhookJSONQueryParams

type BotsAnswerWebhookJSONQueryParams struct {
	QueryId int64     `validate:"required"`
	Data    *DataJSON `validate:"required"`
}

func (*BotsAnswerWebhookJSONQueryParams) CRC

func (*BotsAnswerWebhookJSONQueryParams) Encode

func (e *BotsAnswerWebhookJSONQueryParams) Encode() []byte

type BotsSendCustomRequestParams

type BotsSendCustomRequestParams struct {
	CustomMethod string    `validate:"required"`
	Params       *DataJSON `validate:"required"`
}

func (*BotsSendCustomRequestParams) CRC

func (*BotsSendCustomRequestParams) Encode

func (e *BotsSendCustomRequestParams) Encode() []byte

type BotsSetBotCommandsParams

type BotsSetBotCommandsParams struct {
	Commands []*BotCommand `validate:"required"`
}

func (*BotsSetBotCommandsParams) CRC

func (*BotsSetBotCommandsParams) Encode

func (e *BotsSetBotCommandsParams) Encode() []byte

type CdnConfig

type CdnConfig struct {
	PublicKeys []*CdnPublicKey `validate:"required"`
}

func (*CdnConfig) CRC

func (e *CdnConfig) CRC() uint32

func (*CdnConfig) Encode

func (e *CdnConfig) Encode() []byte

type CdnPublicKey

type CdnPublicKey struct {
	DcId      int32  `validate:"required"`
	PublicKey string `validate:"required"`
}

func (*CdnPublicKey) CRC

func (e *CdnPublicKey) CRC() uint32

func (*CdnPublicKey) Encode

func (e *CdnPublicKey) Encode() []byte

type Channel

type Channel struct {
	Creator             bool                 `flag:"0,encoded_in_bitflags"`
	Left                bool                 `flag:"2,encoded_in_bitflags"`
	Broadcast           bool                 `flag:"5,encoded_in_bitflags"`
	Verified            bool                 `flag:"7,encoded_in_bitflags"`
	Megagroup           bool                 `flag:"8,encoded_in_bitflags"`
	Restricted          bool                 `flag:"9,encoded_in_bitflags"`
	Signatures          bool                 `flag:"11,encoded_in_bitflags"`
	Min                 bool                 `flag:"12,encoded_in_bitflags"`
	Scam                bool                 `flag:"19,encoded_in_bitflags"`
	HasLink             bool                 `flag:"20,encoded_in_bitflags"`
	HasGeo              bool                 `flag:"21,encoded_in_bitflags"`
	SlowmodeEnabled     bool                 `flag:"22,encoded_in_bitflags"`
	Id                  int32                `validate:"required"`
	AccessHash          int64                `flag:"13"`
	Title               string               `validate:"required"`
	Username            string               `flag:"6"`
	Photo               ChatPhoto            `validate:"required"`
	Date                int32                `validate:"required"`
	Version             int32                `validate:"required"`
	RestrictionReason   []*RestrictionReason `flag:"9"`
	AdminRights         *ChatAdminRights     `flag:"14"`
	BannedRights        *ChatBannedRights    `flag:"15"`
	DefaultBannedRights *ChatBannedRights    `flag:"18"`
	ParticipantsCount   int32                `flag:"17"`
	// contains filtered or unexported fields
}

func (*Channel) CRC

func (*Channel) CRC() uint32

func (*Channel) Encode

func (e *Channel) Encode() []byte

func (*Channel) ImplementsChat

func (*Channel) ImplementsChat()

type ChannelAdminLogEvent

type ChannelAdminLogEvent struct {
	Id     int64                      `validate:"required"`
	Date   int32                      `validate:"required"`
	UserId int32                      `validate:"required"`
	Action ChannelAdminLogEventAction `validate:"required"`
}

func (*ChannelAdminLogEvent) CRC

func (e *ChannelAdminLogEvent) CRC() uint32

func (*ChannelAdminLogEvent) Encode

func (e *ChannelAdminLogEvent) Encode() []byte

type ChannelAdminLogEventAction

type ChannelAdminLogEventAction interface {
	serialize.TL
	ImplementsChannelAdminLogEventAction()
}

type ChannelAdminLogEventActionChangeAbout

type ChannelAdminLogEventActionChangeAbout struct {
	PrevValue string `validate:"required"`
	NewValue  string `validate:"required"`
}

func (*ChannelAdminLogEventActionChangeAbout) CRC

func (*ChannelAdminLogEventActionChangeAbout) Encode

func (*ChannelAdminLogEventActionChangeAbout) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeAbout) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeLinkedChat

type ChannelAdminLogEventActionChangeLinkedChat struct {
	PrevValue int32 `validate:"required"`
	NewValue  int32 `validate:"required"`
}

func (*ChannelAdminLogEventActionChangeLinkedChat) CRC

func (*ChannelAdminLogEventActionChangeLinkedChat) Encode

func (*ChannelAdminLogEventActionChangeLinkedChat) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeLinkedChat) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeLocation

type ChannelAdminLogEventActionChangeLocation struct {
	PrevValue ChannelLocation `validate:"required"`
	NewValue  ChannelLocation `validate:"required"`
}

func (*ChannelAdminLogEventActionChangeLocation) CRC

func (*ChannelAdminLogEventActionChangeLocation) Encode

func (*ChannelAdminLogEventActionChangeLocation) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeLocation) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangePhoto

type ChannelAdminLogEventActionChangePhoto struct {
	PrevPhoto Photo `validate:"required"`
	NewPhoto  Photo `validate:"required"`
}

func (*ChannelAdminLogEventActionChangePhoto) CRC

func (*ChannelAdminLogEventActionChangePhoto) Encode

func (*ChannelAdminLogEventActionChangePhoto) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangePhoto) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeStickerSet

type ChannelAdminLogEventActionChangeStickerSet struct {
	PrevStickerset InputStickerSet `validate:"required"`
	NewStickerset  InputStickerSet `validate:"required"`
}

func (*ChannelAdminLogEventActionChangeStickerSet) CRC

func (*ChannelAdminLogEventActionChangeStickerSet) Encode

func (*ChannelAdminLogEventActionChangeStickerSet) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeStickerSet) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeTitle

type ChannelAdminLogEventActionChangeTitle struct {
	PrevValue string `validate:"required"`
	NewValue  string `validate:"required"`
}

func (*ChannelAdminLogEventActionChangeTitle) CRC

func (*ChannelAdminLogEventActionChangeTitle) Encode

func (*ChannelAdminLogEventActionChangeTitle) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeTitle) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionChangeUsername

type ChannelAdminLogEventActionChangeUsername struct {
	PrevValue string `validate:"required"`
	NewValue  string `validate:"required"`
}

func (*ChannelAdminLogEventActionChangeUsername) CRC

func (*ChannelAdminLogEventActionChangeUsername) Encode

func (*ChannelAdminLogEventActionChangeUsername) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionChangeUsername) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionDefaultBannedRights

type ChannelAdminLogEventActionDefaultBannedRights struct {
	PrevBannedRights *ChatBannedRights `validate:"required"`
	NewBannedRights  *ChatBannedRights `validate:"required"`
}

func (*ChannelAdminLogEventActionDefaultBannedRights) CRC

func (*ChannelAdminLogEventActionDefaultBannedRights) Encode

func (*ChannelAdminLogEventActionDefaultBannedRights) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionDefaultBannedRights) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionDeleteMessage

type ChannelAdminLogEventActionDeleteMessage struct {
	Message Message `validate:"required"`
}

func (*ChannelAdminLogEventActionDeleteMessage) CRC

func (*ChannelAdminLogEventActionDeleteMessage) Encode

func (*ChannelAdminLogEventActionDeleteMessage) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionDeleteMessage) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionEditMessage

type ChannelAdminLogEventActionEditMessage struct {
	PrevMessage Message `validate:"required"`
	NewMessage  Message `validate:"required"`
}

func (*ChannelAdminLogEventActionEditMessage) CRC

func (*ChannelAdminLogEventActionEditMessage) Encode

func (*ChannelAdminLogEventActionEditMessage) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionEditMessage) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantInvite

type ChannelAdminLogEventActionParticipantInvite struct {
	Participant ChannelParticipant `validate:"required"`
}

func (*ChannelAdminLogEventActionParticipantInvite) CRC

func (*ChannelAdminLogEventActionParticipantInvite) Encode

func (*ChannelAdminLogEventActionParticipantInvite) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantInvite) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantJoin

type ChannelAdminLogEventActionParticipantJoin struct{}

func (*ChannelAdminLogEventActionParticipantJoin) CRC

func (*ChannelAdminLogEventActionParticipantJoin) Encode

func (*ChannelAdminLogEventActionParticipantJoin) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantJoin) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantLeave

type ChannelAdminLogEventActionParticipantLeave struct{}

func (*ChannelAdminLogEventActionParticipantLeave) CRC

func (*ChannelAdminLogEventActionParticipantLeave) Encode

func (*ChannelAdminLogEventActionParticipantLeave) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantLeave) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantToggleAdmin

type ChannelAdminLogEventActionParticipantToggleAdmin struct {
	PrevParticipant ChannelParticipant `validate:"required"`
	NewParticipant  ChannelParticipant `validate:"required"`
}

func (*ChannelAdminLogEventActionParticipantToggleAdmin) CRC

func (*ChannelAdminLogEventActionParticipantToggleAdmin) Encode

func (*ChannelAdminLogEventActionParticipantToggleAdmin) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantToggleAdmin) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionParticipantToggleBan

type ChannelAdminLogEventActionParticipantToggleBan struct {
	PrevParticipant ChannelParticipant `validate:"required"`
	NewParticipant  ChannelParticipant `validate:"required"`
}

func (*ChannelAdminLogEventActionParticipantToggleBan) CRC

func (*ChannelAdminLogEventActionParticipantToggleBan) Encode

func (*ChannelAdminLogEventActionParticipantToggleBan) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionParticipantToggleBan) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionStopPoll

type ChannelAdminLogEventActionStopPoll struct {
	Message Message `validate:"required"`
}

func (*ChannelAdminLogEventActionStopPoll) CRC

func (*ChannelAdminLogEventActionStopPoll) Encode

func (*ChannelAdminLogEventActionStopPoll) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionStopPoll) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionToggleInvites

type ChannelAdminLogEventActionToggleInvites struct {
	NewValue bool `validate:"required"`
}

func (*ChannelAdminLogEventActionToggleInvites) CRC

func (*ChannelAdminLogEventActionToggleInvites) Encode

func (*ChannelAdminLogEventActionToggleInvites) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionToggleInvites) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionTogglePreHistoryHidden

type ChannelAdminLogEventActionTogglePreHistoryHidden struct {
	NewValue bool `validate:"required"`
}

func (*ChannelAdminLogEventActionTogglePreHistoryHidden) CRC

func (*ChannelAdminLogEventActionTogglePreHistoryHidden) Encode

func (*ChannelAdminLogEventActionTogglePreHistoryHidden) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionTogglePreHistoryHidden) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionToggleSignatures

type ChannelAdminLogEventActionToggleSignatures struct {
	NewValue bool `validate:"required"`
}

func (*ChannelAdminLogEventActionToggleSignatures) CRC

func (*ChannelAdminLogEventActionToggleSignatures) Encode

func (*ChannelAdminLogEventActionToggleSignatures) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionToggleSignatures) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionToggleSlowMode

type ChannelAdminLogEventActionToggleSlowMode struct {
	PrevValue int32 `validate:"required"`
	NewValue  int32 `validate:"required"`
}

func (*ChannelAdminLogEventActionToggleSlowMode) CRC

func (*ChannelAdminLogEventActionToggleSlowMode) Encode

func (*ChannelAdminLogEventActionToggleSlowMode) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionToggleSlowMode) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventActionUpdatePinned

type ChannelAdminLogEventActionUpdatePinned struct {
	Message Message `validate:"required"`
}

func (*ChannelAdminLogEventActionUpdatePinned) CRC

func (*ChannelAdminLogEventActionUpdatePinned) Encode

func (*ChannelAdminLogEventActionUpdatePinned) ImplementsChannelAdminLogEventAction

func (*ChannelAdminLogEventActionUpdatePinned) ImplementsChannelAdminLogEventAction()

type ChannelAdminLogEventsFilter

type ChannelAdminLogEventsFilter struct {
	Join     bool `flag:"0,encoded_in_bitflags"`
	Leave    bool `flag:"1,encoded_in_bitflags"`
	Invite   bool `flag:"2,encoded_in_bitflags"`
	Ban      bool `flag:"3,encoded_in_bitflags"`
	Unban    bool `flag:"4,encoded_in_bitflags"`
	Kick     bool `flag:"5,encoded_in_bitflags"`
	Unkick   bool `flag:"6,encoded_in_bitflags"`
	Promote  bool `flag:"7,encoded_in_bitflags"`
	Demote   bool `flag:"8,encoded_in_bitflags"`
	Info     bool `flag:"9,encoded_in_bitflags"`
	Settings bool `flag:"10,encoded_in_bitflags"`
	Pinned   bool `flag:"11,encoded_in_bitflags"`
	Edit     bool `flag:"12,encoded_in_bitflags"`
	Delete   bool `flag:"13,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*ChannelAdminLogEventsFilter) CRC

func (*ChannelAdminLogEventsFilter) Encode

func (e *ChannelAdminLogEventsFilter) Encode() []byte

type ChannelForbidden

type ChannelForbidden struct {
	Broadcast  bool   `flag:"5,encoded_in_bitflags"`
	Megagroup  bool   `flag:"8,encoded_in_bitflags"`
	Id         int32  `validate:"required"`
	AccessHash int64  `validate:"required"`
	Title      string `validate:"required"`
	UntilDate  int32  `flag:"16"`
	// contains filtered or unexported fields
}

func (*ChannelForbidden) CRC

func (*ChannelForbidden) CRC() uint32

func (*ChannelForbidden) Encode

func (e *ChannelForbidden) Encode() []byte

func (*ChannelForbidden) ImplementsChat

func (*ChannelForbidden) ImplementsChat()

type ChannelFull

type ChannelFull struct {
	CanViewParticipants  bool                `flag:"3,encoded_in_bitflags"`
	CanSetUsername       bool                `flag:"6,encoded_in_bitflags"`
	CanSetStickers       bool                `flag:"7,encoded_in_bitflags"`
	HiddenPrehistory     bool                `flag:"10,encoded_in_bitflags"`
	CanSetLocation       bool                `flag:"16,encoded_in_bitflags"`
	HasScheduled         bool                `flag:"19,encoded_in_bitflags"`
	CanViewStats         bool                `flag:"20,encoded_in_bitflags"`
	Id                   int32               `validate:"required"`
	About                string              `validate:"required"`
	ParticipantsCount    int32               `flag:"0"`
	AdminsCount          int32               `flag:"1"`
	KickedCount          int32               `flag:"2"`
	BannedCount          int32               `flag:"2"`
	OnlineCount          int32               `flag:"13"`
	ReadInboxMaxId       int32               `validate:"required"`
	ReadOutboxMaxId      int32               `validate:"required"`
	UnreadCount          int32               `validate:"required"`
	ChatPhoto            Photo               `validate:"required"`
	NotifySettings       *PeerNotifySettings `validate:"required"`
	ExportedInvite       ExportedChatInvite  `validate:"required"`
	BotInfo              []*BotInfo          `validate:"required"`
	MigratedFromChatId   int32               `flag:"4"`
	MigratedFromMaxId    int32               `flag:"4"`
	PinnedMsgId          int32               `flag:"5"`
	Stickerset           *StickerSet         `flag:"8"`
	AvailableMinId       int32               `flag:"9"`
	FolderId             int32               `flag:"11"`
	LinkedChatId         int32               `flag:"14"`
	Location             ChannelLocation     `flag:"15"`
	SlowmodeSeconds      int32               `flag:"17"`
	SlowmodeNextSendDate int32               `flag:"18"`
	StatsDc              int32               `flag:"12"`
	Pts                  int32               `validate:"required"`
	// contains filtered or unexported fields
}

func (*ChannelFull) CRC

func (*ChannelFull) CRC() uint32

func (*ChannelFull) Encode

func (e *ChannelFull) Encode() []byte

func (*ChannelFull) ImplementsChatFull

func (*ChannelFull) ImplementsChatFull()

type ChannelLocation

type ChannelLocation interface {
	serialize.TL
	ImplementsChannelLocation()
}

type ChannelLocationEmpty

type ChannelLocationEmpty struct{}

func (*ChannelLocationEmpty) CRC

func (*ChannelLocationEmpty) Encode

func (e *ChannelLocationEmpty) Encode() []byte

func (*ChannelLocationEmpty) ImplementsChannelLocation

func (*ChannelLocationEmpty) ImplementsChannelLocation()

type ChannelLocationObj

type ChannelLocationObj struct {
	GeoPoint GeoPoint `validate:"required"`
	Address  string   `validate:"required"`
}

func (*ChannelLocationObj) CRC

func (*ChannelLocationObj) CRC() uint32

func (*ChannelLocationObj) Encode

func (e *ChannelLocationObj) Encode() []byte

func (*ChannelLocationObj) ImplementsChannelLocation

func (*ChannelLocationObj) ImplementsChannelLocation()

type ChannelMessagesFilter

type ChannelMessagesFilter interface {
	serialize.TL
	ImplementsChannelMessagesFilter()
}

type ChannelMessagesFilterEmpty

type ChannelMessagesFilterEmpty struct{}

func (*ChannelMessagesFilterEmpty) CRC

func (*ChannelMessagesFilterEmpty) Encode

func (e *ChannelMessagesFilterEmpty) Encode() []byte

func (*ChannelMessagesFilterEmpty) ImplementsChannelMessagesFilter

func (*ChannelMessagesFilterEmpty) ImplementsChannelMessagesFilter()

type ChannelMessagesFilterObj

type ChannelMessagesFilterObj struct {
	ExcludeNewMessages bool            `flag:"1,encoded_in_bitflags"`
	Ranges             []*MessageRange `validate:"required"`
	// contains filtered or unexported fields
}

func (*ChannelMessagesFilterObj) CRC

func (*ChannelMessagesFilterObj) Encode

func (e *ChannelMessagesFilterObj) Encode() []byte

func (*ChannelMessagesFilterObj) ImplementsChannelMessagesFilter

func (*ChannelMessagesFilterObj) ImplementsChannelMessagesFilter()

type ChannelParticipant

type ChannelParticipant interface {
	serialize.TL
	ImplementsChannelParticipant()
}

type ChannelParticipantAdmin

type ChannelParticipantAdmin struct {
	CanEdit     bool             `flag:"0,encoded_in_bitflags"`
	Self        bool             `flag:"1,encoded_in_bitflags"`
	UserId      int32            `validate:"required"`
	InviterId   int32            `flag:"1"`
	PromotedBy  int32            `validate:"required"`
	Date        int32            `validate:"required"`
	AdminRights *ChatAdminRights `validate:"required"`
	Rank        string           `flag:"2"`
	// contains filtered or unexported fields
}

func (*ChannelParticipantAdmin) CRC

func (*ChannelParticipantAdmin) Encode

func (e *ChannelParticipantAdmin) Encode() []byte

func (*ChannelParticipantAdmin) ImplementsChannelParticipant

func (*ChannelParticipantAdmin) ImplementsChannelParticipant()

type ChannelParticipantBanned

type ChannelParticipantBanned struct {
	Left         bool              `flag:"0,encoded_in_bitflags"`
	UserId       int32             `validate:"required"`
	KickedBy     int32             `validate:"required"`
	Date         int32             `validate:"required"`
	BannedRights *ChatBannedRights `validate:"required"`
	// contains filtered or unexported fields
}

func (*ChannelParticipantBanned) CRC

func (*ChannelParticipantBanned) Encode

func (e *ChannelParticipantBanned) Encode() []byte

func (*ChannelParticipantBanned) ImplementsChannelParticipant

func (*ChannelParticipantBanned) ImplementsChannelParticipant()

type ChannelParticipantCreator

type ChannelParticipantCreator struct {
	UserId int32  `validate:"required"`
	Rank   string `flag:"0"`
	// contains filtered or unexported fields
}

func (*ChannelParticipantCreator) CRC

func (*ChannelParticipantCreator) Encode

func (e *ChannelParticipantCreator) Encode() []byte

func (*ChannelParticipantCreator) ImplementsChannelParticipant

func (*ChannelParticipantCreator) ImplementsChannelParticipant()

type ChannelParticipantObj

type ChannelParticipantObj struct {
	UserId int32 `validate:"required"`
	Date   int32 `validate:"required"`
}

func (*ChannelParticipantObj) CRC

func (*ChannelParticipantObj) Encode

func (e *ChannelParticipantObj) Encode() []byte

func (*ChannelParticipantObj) ImplementsChannelParticipant

func (*ChannelParticipantObj) ImplementsChannelParticipant()

type ChannelParticipantSelf

type ChannelParticipantSelf struct {
	UserId    int32 `validate:"required"`
	InviterId int32 `validate:"required"`
	Date      int32 `validate:"required"`
}

func (*ChannelParticipantSelf) CRC

func (*ChannelParticipantSelf) Encode

func (e *ChannelParticipantSelf) Encode() []byte

func (*ChannelParticipantSelf) ImplementsChannelParticipant

func (*ChannelParticipantSelf) ImplementsChannelParticipant()

type ChannelParticipantsAdmins

type ChannelParticipantsAdmins struct{}

func (*ChannelParticipantsAdmins) CRC

func (*ChannelParticipantsAdmins) Encode

func (e *ChannelParticipantsAdmins) Encode() []byte

func (*ChannelParticipantsAdmins) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsAdmins) ImplementsChannelParticipantsFilter()

type ChannelParticipantsBanned

type ChannelParticipantsBanned struct {
	Q string `validate:"required"`
}

func (*ChannelParticipantsBanned) CRC

func (*ChannelParticipantsBanned) Encode

func (e *ChannelParticipantsBanned) Encode() []byte

func (*ChannelParticipantsBanned) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsBanned) ImplementsChannelParticipantsFilter()

type ChannelParticipantsBots

type ChannelParticipantsBots struct{}

func (*ChannelParticipantsBots) CRC

func (*ChannelParticipantsBots) Encode

func (e *ChannelParticipantsBots) Encode() []byte

func (*ChannelParticipantsBots) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsBots) ImplementsChannelParticipantsFilter()

type ChannelParticipantsContacts

type ChannelParticipantsContacts struct {
	Q string `validate:"required"`
}

func (*ChannelParticipantsContacts) CRC

func (*ChannelParticipantsContacts) Encode

func (e *ChannelParticipantsContacts) Encode() []byte

func (*ChannelParticipantsContacts) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsContacts) ImplementsChannelParticipantsFilter()

type ChannelParticipantsFilter

type ChannelParticipantsFilter interface {
	serialize.TL
	ImplementsChannelParticipantsFilter()
}

type ChannelParticipantsKicked

type ChannelParticipantsKicked struct {
	Q string `validate:"required"`
}

func (*ChannelParticipantsKicked) CRC

func (*ChannelParticipantsKicked) Encode

func (e *ChannelParticipantsKicked) Encode() []byte

func (*ChannelParticipantsKicked) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsKicked) ImplementsChannelParticipantsFilter()

type ChannelParticipantsRecent

type ChannelParticipantsRecent struct{}

func (*ChannelParticipantsRecent) CRC

func (*ChannelParticipantsRecent) Encode

func (e *ChannelParticipantsRecent) Encode() []byte

func (*ChannelParticipantsRecent) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsRecent) ImplementsChannelParticipantsFilter()

type ChannelParticipantsSearch

type ChannelParticipantsSearch struct {
	Q string `validate:"required"`
}

func (*ChannelParticipantsSearch) CRC

func (*ChannelParticipantsSearch) Encode

func (e *ChannelParticipantsSearch) Encode() []byte

func (*ChannelParticipantsSearch) ImplementsChannelParticipantsFilter

func (*ChannelParticipantsSearch) ImplementsChannelParticipantsFilter()

type ChannelsAdminLogResults

type ChannelsAdminLogResults struct {
	Events []*ChannelAdminLogEvent `validate:"required"`
	Chats  []Chat                  `validate:"required"`
	Users  []User                  `validate:"required"`
}

func (*ChannelsAdminLogResults) CRC

func (*ChannelsAdminLogResults) Encode

func (e *ChannelsAdminLogResults) Encode() []byte

type ChannelsChannelParticipant

type ChannelsChannelParticipant struct {
	Participant ChannelParticipant `validate:"required"`
	Users       []User             `validate:"required"`
}

func (*ChannelsChannelParticipant) CRC

func (*ChannelsChannelParticipant) Encode

func (e *ChannelsChannelParticipant) Encode() []byte

type ChannelsChannelParticipants

type ChannelsChannelParticipants interface {
	serialize.TL
	ImplementsChannelsChannelParticipants()
}

type ChannelsChannelParticipantsNotModified

type ChannelsChannelParticipantsNotModified struct{}

func (*ChannelsChannelParticipantsNotModified) CRC

func (*ChannelsChannelParticipantsNotModified) Encode

func (*ChannelsChannelParticipantsNotModified) ImplementsChannelsChannelParticipants

func (*ChannelsChannelParticipantsNotModified) ImplementsChannelsChannelParticipants()

type ChannelsChannelParticipantsObj

type ChannelsChannelParticipantsObj struct {
	Count        int32                `validate:"required"`
	Participants []ChannelParticipant `validate:"required"`
	Users        []User               `validate:"required"`
}

func (*ChannelsChannelParticipantsObj) CRC

func (*ChannelsChannelParticipantsObj) Encode

func (e *ChannelsChannelParticipantsObj) Encode() []byte

func (*ChannelsChannelParticipantsObj) ImplementsChannelsChannelParticipants

func (*ChannelsChannelParticipantsObj) ImplementsChannelsChannelParticipants()

type ChannelsCheckUsernameParams

type ChannelsCheckUsernameParams struct {
	Channel  InputChannel `validate:"required"`
	Username string       `validate:"required"`
}

func (*ChannelsCheckUsernameParams) CRC

func (*ChannelsCheckUsernameParams) Encode

func (e *ChannelsCheckUsernameParams) Encode() []byte

type ChannelsCreateChannelParams

type ChannelsCreateChannelParams struct {
	Broadcast bool          `flag:"0,encoded_in_bitflags"`
	Megagroup bool          `flag:"1,encoded_in_bitflags"`
	Title     string        `validate:"required"`
	About     string        `validate:"required"`
	GeoPoint  InputGeoPoint `flag:"2"`
	Address   string        `flag:"2"`
	// contains filtered or unexported fields
}

func (*ChannelsCreateChannelParams) CRC

func (*ChannelsCreateChannelParams) Encode

func (e *ChannelsCreateChannelParams) Encode() []byte

type ChannelsDeleteChannelParams

type ChannelsDeleteChannelParams struct {
	Channel InputChannel `validate:"required"`
}

func (*ChannelsDeleteChannelParams) CRC

func (*ChannelsDeleteChannelParams) Encode

func (e *ChannelsDeleteChannelParams) Encode() []byte

type ChannelsDeleteHistoryParams

type ChannelsDeleteHistoryParams struct {
	Channel InputChannel `validate:"required"`
	MaxId   int32        `validate:"required"`
}

func (*ChannelsDeleteHistoryParams) CRC

func (*ChannelsDeleteHistoryParams) Encode

func (e *ChannelsDeleteHistoryParams) Encode() []byte

type ChannelsDeleteMessagesParams

type ChannelsDeleteMessagesParams struct {
	Channel InputChannel `validate:"required"`
	Id      []int32      `validate:"required"`
}

func (*ChannelsDeleteMessagesParams) CRC

func (*ChannelsDeleteMessagesParams) Encode

func (e *ChannelsDeleteMessagesParams) Encode() []byte

type ChannelsDeleteUserHistoryParams

type ChannelsDeleteUserHistoryParams struct {
	Channel InputChannel `validate:"required"`
	UserId  InputUser    `validate:"required"`
}

func (*ChannelsDeleteUserHistoryParams) CRC

func (*ChannelsDeleteUserHistoryParams) Encode

func (e *ChannelsDeleteUserHistoryParams) Encode() []byte

type ChannelsEditAdminParams

type ChannelsEditAdminParams struct {
	Channel     InputChannel     `validate:"required"`
	UserId      InputUser        `validate:"required"`
	AdminRights *ChatAdminRights `validate:"required"`
	Rank        string           `validate:"required"`
}

func (*ChannelsEditAdminParams) CRC

func (*ChannelsEditAdminParams) Encode

func (e *ChannelsEditAdminParams) Encode() []byte

type ChannelsEditBannedParams

type ChannelsEditBannedParams struct {
	Channel      InputChannel      `validate:"required"`
	UserId       InputUser         `validate:"required"`
	BannedRights *ChatBannedRights `validate:"required"`
}

func (*ChannelsEditBannedParams) CRC

func (*ChannelsEditBannedParams) Encode

func (e *ChannelsEditBannedParams) Encode() []byte

type ChannelsEditCreatorParams

type ChannelsEditCreatorParams struct {
	Channel  InputChannel          `validate:"required"`
	UserId   InputUser             `validate:"required"`
	Password InputCheckPasswordSRP `validate:"required"`
}

func (*ChannelsEditCreatorParams) CRC

func (*ChannelsEditCreatorParams) Encode

func (e *ChannelsEditCreatorParams) Encode() []byte

type ChannelsEditLocationParams

type ChannelsEditLocationParams struct {
	Channel  InputChannel  `validate:"required"`
	GeoPoint InputGeoPoint `validate:"required"`
	Address  string        `validate:"required"`
}

func (*ChannelsEditLocationParams) CRC

func (*ChannelsEditLocationParams) Encode

func (e *ChannelsEditLocationParams) Encode() []byte

type ChannelsEditPhotoParams

type ChannelsEditPhotoParams struct {
	Channel InputChannel   `validate:"required"`
	Photo   InputChatPhoto `validate:"required"`
}

func (*ChannelsEditPhotoParams) CRC

func (*ChannelsEditPhotoParams) Encode

func (e *ChannelsEditPhotoParams) Encode() []byte

type ChannelsEditTitleParams

type ChannelsEditTitleParams struct {
	Channel InputChannel `validate:"required"`
	Title   string       `validate:"required"`
}

func (*ChannelsEditTitleParams) CRC

func (*ChannelsEditTitleParams) Encode

func (e *ChannelsEditTitleParams) Encode() []byte

type ChannelsExportMessageLinkParams

type ChannelsExportMessageLinkParams struct {
	Channel InputChannel `validate:"required"`
	Id      int32        `validate:"required"`
	Grouped bool
}

func (*ChannelsExportMessageLinkParams) CRC

func (*ChannelsExportMessageLinkParams) Encode

func (e *ChannelsExportMessageLinkParams) Encode() []byte

type ChannelsGetAdminLogParams

type ChannelsGetAdminLogParams struct {
	Channel      InputChannel                 `validate:"required"`
	Q            string                       `validate:"required"`
	EventsFilter *ChannelAdminLogEventsFilter `flag:"0"`
	Admins       []InputUser                  `flag:"1"`
	MaxId        int64                        `validate:"required"`
	MinId        int64                        `validate:"required"`
	Limit        int32                        `validate:"required"`
	// contains filtered or unexported fields
}

func (*ChannelsGetAdminLogParams) CRC

func (*ChannelsGetAdminLogParams) Encode

func (e *ChannelsGetAdminLogParams) Encode() []byte

type ChannelsGetAdminedPublicChannelsParams

type ChannelsGetAdminedPublicChannelsParams struct {
	ByLocation bool `flag:"0,encoded_in_bitflags"`
	CheckLimit bool `flag:"1,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*ChannelsGetAdminedPublicChannelsParams) CRC

func (*ChannelsGetAdminedPublicChannelsParams) Encode

type ChannelsGetChannelsParams

type ChannelsGetChannelsParams struct {
	Id []InputChannel `validate:"required"`
}

func (*ChannelsGetChannelsParams) CRC

func (*ChannelsGetChannelsParams) Encode

func (e *ChannelsGetChannelsParams) Encode() []byte

type ChannelsGetFullChannelParams

type ChannelsGetFullChannelParams struct {
	Channel InputChannel `validate:"required"`
}

func (*ChannelsGetFullChannelParams) CRC

func (*ChannelsGetFullChannelParams) Encode

func (e *ChannelsGetFullChannelParams) Encode() []byte

type ChannelsGetGroupsForDiscussionParams

type ChannelsGetGroupsForDiscussionParams struct{}

func (*ChannelsGetGroupsForDiscussionParams) CRC

func (*ChannelsGetGroupsForDiscussionParams) Encode

type ChannelsGetInactiveChannelsParams

type ChannelsGetInactiveChannelsParams struct{}

func (*ChannelsGetInactiveChannelsParams) CRC

func (*ChannelsGetInactiveChannelsParams) Encode

type ChannelsGetLeftChannelsParams

type ChannelsGetLeftChannelsParams struct {
	Offset int32 `validate:"required"`
}

func (*ChannelsGetLeftChannelsParams) CRC

func (*ChannelsGetLeftChannelsParams) Encode

func (e *ChannelsGetLeftChannelsParams) Encode() []byte

type ChannelsGetMessagesParams

type ChannelsGetMessagesParams struct {
	Channel InputChannel   `validate:"required"`
	Id      []InputMessage `validate:"required"`
}

func (*ChannelsGetMessagesParams) CRC

func (*ChannelsGetMessagesParams) Encode

func (e *ChannelsGetMessagesParams) Encode() []byte

type ChannelsGetParticipantParams

type ChannelsGetParticipantParams struct {
	Channel InputChannel `validate:"required"`
	UserId  InputUser    `validate:"required"`
}

func (*ChannelsGetParticipantParams) CRC

func (*ChannelsGetParticipantParams) Encode

func (e *ChannelsGetParticipantParams) Encode() []byte

type ChannelsGetParticipantsParams

type ChannelsGetParticipantsParams struct {
	Channel InputChannel              `validate:"required"`
	Filter  ChannelParticipantsFilter `validate:"required"`
	Offset  int32
	Limit   int32
	Hash    int32
}

func (*ChannelsGetParticipantsParams) CRC

func (*ChannelsGetParticipantsParams) Encode

func (e *ChannelsGetParticipantsParams) Encode() []byte

type ChannelsInviteToChannelParams

type ChannelsInviteToChannelParams struct {
	Channel InputChannel `validate:"required"`
	Users   []InputUser  `validate:"required"`
}

func (*ChannelsInviteToChannelParams) CRC

func (*ChannelsInviteToChannelParams) Encode

func (e *ChannelsInviteToChannelParams) Encode() []byte

type ChannelsJoinChannelParams

type ChannelsJoinChannelParams struct {
	Channel InputChannel `validate:"required"`
}

func (*ChannelsJoinChannelParams) CRC

func (*ChannelsJoinChannelParams) Encode

func (e *ChannelsJoinChannelParams) Encode() []byte

type ChannelsLeaveChannelParams

type ChannelsLeaveChannelParams struct {
	Channel InputChannel `validate:"required"`
}

func (*ChannelsLeaveChannelParams) CRC

func (*ChannelsLeaveChannelParams) Encode

func (e *ChannelsLeaveChannelParams) Encode() []byte

type ChannelsReadHistoryParams

type ChannelsReadHistoryParams struct {
	Channel InputChannel `validate:"required"`
	MaxId   int32        `validate:"required"`
}

func (*ChannelsReadHistoryParams) CRC

func (*ChannelsReadHistoryParams) Encode

func (e *ChannelsReadHistoryParams) Encode() []byte

type ChannelsReadMessageContentsParams

type ChannelsReadMessageContentsParams struct {
	Channel InputChannel `validate:"required"`
	Id      []int32      `validate:"required"`
}

func (*ChannelsReadMessageContentsParams) CRC

func (*ChannelsReadMessageContentsParams) Encode

type ChannelsReportSpamParams

type ChannelsReportSpamParams struct {
	Channel InputChannel `validate:"required"`
	UserId  InputUser    `validate:"required"`
	Id      []int32      `validate:"required"`
}

func (*ChannelsReportSpamParams) CRC

func (*ChannelsReportSpamParams) Encode

func (e *ChannelsReportSpamParams) Encode() []byte

type ChannelsSetDiscussionGroupParams

type ChannelsSetDiscussionGroupParams struct {
	Broadcast InputChannel `validate:"required"`
	Group     InputChannel `validate:"required"`
}

func (*ChannelsSetDiscussionGroupParams) CRC

func (*ChannelsSetDiscussionGroupParams) Encode

func (e *ChannelsSetDiscussionGroupParams) Encode() []byte

type ChannelsSetStickersParams

type ChannelsSetStickersParams struct {
	Channel    InputChannel    `validate:"required"`
	Stickerset InputStickerSet `validate:"required"`
}

func (*ChannelsSetStickersParams) CRC

func (*ChannelsSetStickersParams) Encode

func (e *ChannelsSetStickersParams) Encode() []byte

type ChannelsTogglePreHistoryHiddenParams

type ChannelsTogglePreHistoryHiddenParams struct {
	Channel InputChannel `validate:"required"`
	Enabled bool         `validate:"required"`
}

func (*ChannelsTogglePreHistoryHiddenParams) CRC

func (*ChannelsTogglePreHistoryHiddenParams) Encode

type ChannelsToggleSignaturesParams

type ChannelsToggleSignaturesParams struct {
	Channel InputChannel `validate:"required"`
	Enabled bool         `validate:"required"`
}

func (*ChannelsToggleSignaturesParams) CRC

func (*ChannelsToggleSignaturesParams) Encode

func (e *ChannelsToggleSignaturesParams) Encode() []byte

type ChannelsToggleSlowModeParams

type ChannelsToggleSlowModeParams struct {
	Channel InputChannel `validate:"required"`
	Seconds int32        `validate:"required"`
}

func (*ChannelsToggleSlowModeParams) CRC

func (*ChannelsToggleSlowModeParams) Encode

func (e *ChannelsToggleSlowModeParams) Encode() []byte

type ChannelsUpdateUsernameParams

type ChannelsUpdateUsernameParams struct {
	Channel  InputChannel `validate:"required"`
	Username string       `validate:"required"`
}

func (*ChannelsUpdateUsernameParams) CRC

func (*ChannelsUpdateUsernameParams) Encode

func (e *ChannelsUpdateUsernameParams) Encode() []byte

type Chat

type Chat interface {
	serialize.TL
	ImplementsChat()
}

type ChatAdminRights

type ChatAdminRights struct {
	ChangeInfo     bool `flag:"0,encoded_in_bitflags"`
	PostMessages   bool `flag:"1,encoded_in_bitflags"`
	EditMessages   bool `flag:"2,encoded_in_bitflags"`
	DeleteMessages bool `flag:"3,encoded_in_bitflags"`
	BanUsers       bool `flag:"4,encoded_in_bitflags"`
	InviteUsers    bool `flag:"5,encoded_in_bitflags"`
	PinMessages    bool `flag:"7,encoded_in_bitflags"`
	AddAdmins      bool `flag:"9,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*ChatAdminRights) CRC

func (e *ChatAdminRights) CRC() uint32

func (*ChatAdminRights) Encode

func (e *ChatAdminRights) Encode() []byte

type ChatBannedRights

type ChatBannedRights struct {
	ViewMessages bool  `flag:"0,encoded_in_bitflags"`
	SendMessages bool  `flag:"1,encoded_in_bitflags"`
	SendMedia    bool  `flag:"2,encoded_in_bitflags"`
	SendStickers bool  `flag:"3,encoded_in_bitflags"`
	SendGifs     bool  `flag:"4,encoded_in_bitflags"`
	SendGames    bool  `flag:"5,encoded_in_bitflags"`
	SendInline   bool  `flag:"6,encoded_in_bitflags"`
	EmbedLinks   bool  `flag:"7,encoded_in_bitflags"`
	SendPolls    bool  `flag:"8,encoded_in_bitflags"`
	ChangeInfo   bool  `flag:"10,encoded_in_bitflags"`
	InviteUsers  bool  `flag:"15,encoded_in_bitflags"`
	PinMessages  bool  `flag:"17,encoded_in_bitflags"`
	UntilDate    int32 `validate:"required"`
	// contains filtered or unexported fields
}

func (*ChatBannedRights) CRC

func (e *ChatBannedRights) CRC() uint32

func (*ChatBannedRights) Encode

func (e *ChatBannedRights) Encode() []byte

type ChatEmpty

type ChatEmpty struct {
	Id int32 `validate:"required"`
}

func (*ChatEmpty) CRC

func (*ChatEmpty) CRC() uint32

func (*ChatEmpty) Encode

func (e *ChatEmpty) Encode() []byte

func (*ChatEmpty) ImplementsChat

func (*ChatEmpty) ImplementsChat()

type ChatForbidden

type ChatForbidden struct {
	Id    int32  `validate:"required"`
	Title string `validate:"required"`
}

func (*ChatForbidden) CRC

func (*ChatForbidden) CRC() uint32

func (*ChatForbidden) Encode

func (e *ChatForbidden) Encode() []byte

func (*ChatForbidden) ImplementsChat

func (*ChatForbidden) ImplementsChat()

type ChatFull

type ChatFull interface {
	serialize.TL
	ImplementsChatFull()
}

type ChatFullObj

type ChatFullObj struct {
	CanSetUsername bool                `flag:"7,encoded_in_bitflags"`
	HasScheduled   bool                `flag:"8,encoded_in_bitflags"`
	Id             int32               `validate:"required"`
	About          string              `validate:"required"`
	Participants   ChatParticipants    `validate:"required"`
	ChatPhoto      Photo               `flag:"2"`
	NotifySettings *PeerNotifySettings `validate:"required"`
	ExportedInvite ExportedChatInvite  `validate:"required"`
	BotInfo        []*BotInfo          `flag:"3"`
	PinnedMsgId    int32               `flag:"6"`
	FolderId       int32               `flag:"11"`
	// contains filtered or unexported fields
}

func (*ChatFullObj) CRC

func (*ChatFullObj) CRC() uint32

func (*ChatFullObj) Encode

func (e *ChatFullObj) Encode() []byte

func (*ChatFullObj) ImplementsChatFull

func (*ChatFullObj) ImplementsChatFull()

type ChatInvite

type ChatInvite interface {
	serialize.TL
	ImplementsChatInvite()
}

type ChatInviteAlready

type ChatInviteAlready struct {
	Chat Chat `validate:"required"`
}

func (*ChatInviteAlready) CRC

func (*ChatInviteAlready) CRC() uint32

func (*ChatInviteAlready) Encode

func (e *ChatInviteAlready) Encode() []byte

func (*ChatInviteAlready) ImplementsChatInvite

func (*ChatInviteAlready) ImplementsChatInvite()

type ChatInviteEmpty

type ChatInviteEmpty struct{}

func (*ChatInviteEmpty) CRC

func (*ChatInviteEmpty) CRC() uint32

func (*ChatInviteEmpty) Encode

func (e *ChatInviteEmpty) Encode() []byte

func (*ChatInviteEmpty) ImplementsExportedChatInvite

func (*ChatInviteEmpty) ImplementsExportedChatInvite()

type ChatInviteExported

type ChatInviteExported struct {
	Link string `validate:"required"`
}

func (*ChatInviteExported) CRC

func (*ChatInviteExported) CRC() uint32

func (*ChatInviteExported) Encode

func (e *ChatInviteExported) Encode() []byte

func (*ChatInviteExported) ImplementsExportedChatInvite

func (*ChatInviteExported) ImplementsExportedChatInvite()

type ChatInviteObj

type ChatInviteObj struct {
	Channel           bool   `flag:"0,encoded_in_bitflags"`
	Broadcast         bool   `flag:"1,encoded_in_bitflags"`
	Public            bool   `flag:"2,encoded_in_bitflags"`
	Megagroup         bool   `flag:"3,encoded_in_bitflags"`
	Title             string `validate:"required"`
	Photo             Photo  `validate:"required"`
	ParticipantsCount int32  `validate:"required"`
	Participants      []User `flag:"4"`
	// contains filtered or unexported fields
}

func (*ChatInviteObj) CRC

func (*ChatInviteObj) CRC() uint32

func (*ChatInviteObj) Encode

func (e *ChatInviteObj) Encode() []byte

func (*ChatInviteObj) ImplementsChatInvite

func (*ChatInviteObj) ImplementsChatInvite()

type ChatInvitePeek

type ChatInvitePeek struct {
	Chat    Chat  `validate:"required"`
	Expires int32 `validate:"required"`
}

func (*ChatInvitePeek) CRC

func (*ChatInvitePeek) CRC() uint32

func (*ChatInvitePeek) Encode

func (e *ChatInvitePeek) Encode() []byte

func (*ChatInvitePeek) ImplementsChatInvite

func (*ChatInvitePeek) ImplementsChatInvite()

type ChatObj

type ChatObj struct {
	Creator             bool              `flag:"0,encoded_in_bitflags"`
	Kicked              bool              `flag:"1,encoded_in_bitflags"`
	Left                bool              `flag:"2,encoded_in_bitflags"`
	Deactivated         bool              `flag:"5,encoded_in_bitflags"`
	Id                  int32             `validate:"required"`
	Title               string            `validate:"required"`
	Photo               ChatPhoto         `validate:"required"`
	ParticipantsCount   int32             `validate:"required"`
	Date                int32             `validate:"required"`
	Version             int32             `validate:"required"`
	MigratedTo          InputChannel      `flag:"6"`
	AdminRights         *ChatAdminRights  `flag:"14"`
	DefaultBannedRights *ChatBannedRights `flag:"18"`
	// contains filtered or unexported fields
}

func (*ChatObj) CRC

func (*ChatObj) CRC() uint32

func (*ChatObj) Encode

func (e *ChatObj) Encode() []byte

func (*ChatObj) ImplementsChat

func (*ChatObj) ImplementsChat()

type ChatOnlines

type ChatOnlines struct {
	Onlines int32 `validate:"required"`
}

func (*ChatOnlines) CRC

func (e *ChatOnlines) CRC() uint32

func (*ChatOnlines) Encode

func (e *ChatOnlines) Encode() []byte

type ChatParticipant

type ChatParticipant interface {
	serialize.TL
	ImplementsChatParticipant()
}

type ChatParticipantAdmin

type ChatParticipantAdmin struct {
	UserId    int32 `validate:"required"`
	InviterId int32 `validate:"required"`
	Date      int32 `validate:"required"`
}

func (*ChatParticipantAdmin) CRC

func (*ChatParticipantAdmin) Encode

func (e *ChatParticipantAdmin) Encode() []byte

func (*ChatParticipantAdmin) ImplementsChatParticipant

func (*ChatParticipantAdmin) ImplementsChatParticipant()

type ChatParticipantCreator

type ChatParticipantCreator struct {
	UserId int32 `validate:"required"`
}

func (*ChatParticipantCreator) CRC

func (*ChatParticipantCreator) Encode

func (e *ChatParticipantCreator) Encode() []byte

func (*ChatParticipantCreator) ImplementsChatParticipant

func (*ChatParticipantCreator) ImplementsChatParticipant()

type ChatParticipantObj

type ChatParticipantObj struct {
	UserId    int32 `validate:"required"`
	InviterId int32 `validate:"required"`
	Date      int32 `validate:"required"`
}

func (*ChatParticipantObj) CRC

func (*ChatParticipantObj) CRC() uint32

func (*ChatParticipantObj) Encode

func (e *ChatParticipantObj) Encode() []byte

func (*ChatParticipantObj) ImplementsChatParticipant

func (*ChatParticipantObj) ImplementsChatParticipant()

type ChatParticipants

type ChatParticipants interface {
	serialize.TL
	ImplementsChatParticipants()
}

type ChatParticipantsForbidden

type ChatParticipantsForbidden struct {
	ChatId          int32           `validate:"required"`
	SelfParticipant ChatParticipant `flag:"0"`
	// contains filtered or unexported fields
}

func (*ChatParticipantsForbidden) CRC

func (*ChatParticipantsForbidden) Encode

func (e *ChatParticipantsForbidden) Encode() []byte

func (*ChatParticipantsForbidden) ImplementsChatParticipants

func (*ChatParticipantsForbidden) ImplementsChatParticipants()

type ChatParticipantsObj

type ChatParticipantsObj struct {
	ChatId       int32             `validate:"required"`
	Participants []ChatParticipant `validate:"required"`
	Version      int32             `validate:"required"`
}

func (*ChatParticipantsObj) CRC

func (*ChatParticipantsObj) CRC() uint32

func (*ChatParticipantsObj) Encode

func (e *ChatParticipantsObj) Encode() []byte

func (*ChatParticipantsObj) ImplementsChatParticipants

func (*ChatParticipantsObj) ImplementsChatParticipants()

type ChatPhoto

type ChatPhoto interface {
	serialize.TL
	ImplementsChatPhoto()
}

type ChatPhotoEmpty

type ChatPhotoEmpty struct{}

func (*ChatPhotoEmpty) CRC

func (*ChatPhotoEmpty) CRC() uint32

func (*ChatPhotoEmpty) Encode

func (e *ChatPhotoEmpty) Encode() []byte

func (*ChatPhotoEmpty) ImplementsChatPhoto

func (*ChatPhotoEmpty) ImplementsChatPhoto()

type ChatPhotoObj

type ChatPhotoObj struct {
	HasVideo   bool          `flag:"0,encoded_in_bitflags"`
	PhotoSmall *FileLocation `validate:"required"`
	PhotoBig   *FileLocation `validate:"required"`
	DcId       int32         `validate:"required"`
	// contains filtered or unexported fields
}

func (*ChatPhotoObj) CRC

func (*ChatPhotoObj) CRC() uint32

func (*ChatPhotoObj) Encode

func (e *ChatPhotoObj) Encode() []byte

func (*ChatPhotoObj) ImplementsChatPhoto

func (*ChatPhotoObj) ImplementsChatPhoto()

type Client

type Client struct {
	*mtproto.MTProto
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c ClientConfig) (*Client, error)

func (*Client) AccountAcceptAuthorization

func (c *Client) AccountAcceptAuthorization(params *AccountAcceptAuthorizationParams) (*serialize.Bool, error)

func (*Client) AccountCancelPasswordEmail

func (c *Client) AccountCancelPasswordEmail() (*serialize.Bool, error)

func (*Client) AccountChangePhone

func (c *Client) AccountChangePhone(params *AccountChangePhoneParams) (User, error)

func (*Client) AccountCheckUsername

func (c *Client) AccountCheckUsername(params *AccountCheckUsernameParams) (*serialize.Bool, error)

func (*Client) AccountConfirmPasswordEmail

func (c *Client) AccountConfirmPasswordEmail(params *AccountConfirmPasswordEmailParams) (*serialize.Bool, error)

func (*Client) AccountConfirmPhone

func (c *Client) AccountConfirmPhone(params *AccountConfirmPhoneParams) (*serialize.Bool, error)

func (*Client) AccountCreateTheme

func (c *Client) AccountCreateTheme(params *AccountCreateThemeParams) (*Theme, error)

func (*Client) AccountDeleteAccount

func (c *Client) AccountDeleteAccount(params *AccountDeleteAccountParams) (*serialize.Bool, error)

func (*Client) AccountDeleteSecureValue

func (c *Client) AccountDeleteSecureValue(params *AccountDeleteSecureValueParams) (*serialize.Bool, error)

func (*Client) AccountFinishTakeoutSession

func (c *Client) AccountFinishTakeoutSession(params *AccountFinishTakeoutSessionParams) (*serialize.Bool, error)

func (*Client) AccountGetAccountTTL

func (c *Client) AccountGetAccountTTL() (*AccountDaysTTL, error)

func (*Client) AccountGetAllSecureValues

func (c *Client) AccountGetAllSecureValues() (*SecureValue, error)

func (*Client) AccountGetAuthorizationForm

func (c *Client) AccountGetAuthorizationForm(params *AccountGetAuthorizationFormParams) (*AccountAuthorizationForm, error)

func (*Client) AccountGetAuthorizations

func (c *Client) AccountGetAuthorizations() (*AccountAuthorizations, error)

func (*Client) AccountGetAutoDownloadSettings

func (c *Client) AccountGetAutoDownloadSettings() (*AccountAutoDownloadSettings, error)

func (*Client) AccountGetContactSignUpNotification

func (c *Client) AccountGetContactSignUpNotification() (*serialize.Bool, error)

func (*Client) AccountGetContentSettings

func (c *Client) AccountGetContentSettings() (*AccountContentSettings, error)

func (*Client) AccountGetGlobalPrivacySettings

func (c *Client) AccountGetGlobalPrivacySettings() (*GlobalPrivacySettings, error)

func (*Client) AccountGetMultiWallPapers

func (c *Client) AccountGetMultiWallPapers(params *AccountGetMultiWallPapersParams) (WallPaper, error)

func (*Client) AccountGetNotifyExceptions

func (c *Client) AccountGetNotifyExceptions(params *AccountGetNotifyExceptionsParams) (Updates, error)

func (*Client) AccountGetNotifySettings

func (c *Client) AccountGetNotifySettings(params *AccountGetNotifySettingsParams) (*PeerNotifySettings, error)

func (*Client) AccountGetPassword

func (c *Client) AccountGetPassword() (*AccountPassword, error)

func (*Client) AccountGetPasswordSettings

func (c *Client) AccountGetPasswordSettings(params *AccountGetPasswordSettingsParams) (*AccountPasswordSettings, error)

func (*Client) AccountGetPrivacy

func (c *Client) AccountGetPrivacy(params *AccountGetPrivacyParams) (*AccountPrivacyRules, error)

func (*Client) AccountGetSecureValue

func (c *Client) AccountGetSecureValue(params *AccountGetSecureValueParams) (*SecureValue, error)

func (*Client) AccountGetTheme

func (c *Client) AccountGetTheme(params *AccountGetThemeParams) (*Theme, error)

func (*Client) AccountGetThemes

func (c *Client) AccountGetThemes(params *AccountGetThemesParams) (AccountThemes, error)

func (*Client) AccountGetTmpPassword

func (c *Client) AccountGetTmpPassword(params *AccountGetTmpPasswordParams) (*AccountTmpPassword, error)

func (*Client) AccountGetWallPaper

func (c *Client) AccountGetWallPaper(params *AccountGetWallPaperParams) (WallPaper, error)

func (*Client) AccountGetWallPapers

func (c *Client) AccountGetWallPapers(params *AccountGetWallPapersParams) (AccountWallPapers, error)

func (*Client) AccountGetWebAuthorizations

func (c *Client) AccountGetWebAuthorizations() (*AccountWebAuthorizations, error)

func (*Client) AccountInitTakeoutSession

func (c *Client) AccountInitTakeoutSession(params *AccountInitTakeoutSessionParams) (*AccountTakeout, error)

func (*Client) AccountInstallTheme

func (c *Client) AccountInstallTheme(params *AccountInstallThemeParams) (*serialize.Bool, error)

func (*Client) AccountInstallWallPaper

func (c *Client) AccountInstallWallPaper(params *AccountInstallWallPaperParams) (*serialize.Bool, error)

func (*Client) AccountRegisterDevice

func (c *Client) AccountRegisterDevice(params *AccountRegisterDeviceParams) (*serialize.Bool, error)

func (*Client) AccountReportPeer

func (c *Client) AccountReportPeer(params *AccountReportPeerParams) (*serialize.Bool, error)

func (*Client) AccountResendPasswordEmail

func (c *Client) AccountResendPasswordEmail() (*serialize.Bool, error)

func (*Client) AccountResetAuthorization

func (c *Client) AccountResetAuthorization(params *AccountResetAuthorizationParams) (*serialize.Bool, error)

func (*Client) AccountResetNotifySettings

func (c *Client) AccountResetNotifySettings() (*serialize.Bool, error)

func (*Client) AccountResetWallPapers

func (c *Client) AccountResetWallPapers() (*serialize.Bool, error)

func (*Client) AccountResetWebAuthorization

func (c *Client) AccountResetWebAuthorization(params *AccountResetWebAuthorizationParams) (*serialize.Bool, error)

func (*Client) AccountResetWebAuthorizations

func (c *Client) AccountResetWebAuthorizations() (*serialize.Bool, error)

func (*Client) AccountSaveAutoDownloadSettings

func (c *Client) AccountSaveAutoDownloadSettings(params *AccountSaveAutoDownloadSettingsParams) (*serialize.Bool, error)

func (*Client) AccountSaveSecureValue

func (c *Client) AccountSaveSecureValue(params *AccountSaveSecureValueParams) (*SecureValue, error)

func (*Client) AccountSaveTheme

func (c *Client) AccountSaveTheme(params *AccountSaveThemeParams) (*serialize.Bool, error)

func (*Client) AccountSaveWallPaper

func (c *Client) AccountSaveWallPaper(params *AccountSaveWallPaperParams) (*serialize.Bool, error)

func (*Client) AccountSendChangePhoneCode

func (c *Client) AccountSendChangePhoneCode(params *AccountSendChangePhoneCodeParams) (*AuthSentCode, error)

func (*Client) AccountSendConfirmPhoneCode

func (c *Client) AccountSendConfirmPhoneCode(params *AccountSendConfirmPhoneCodeParams) (*AuthSentCode, error)

func (*Client) AccountSendVerifyEmailCode

func (c *Client) AccountSendVerifyEmailCode(params *AccountSendVerifyEmailCodeParams) (*AccountSentEmailCode, error)

func (*Client) AccountSendVerifyPhoneCode

func (c *Client) AccountSendVerifyPhoneCode(params *AccountSendVerifyPhoneCodeParams) (*AuthSentCode, error)

func (*Client) AccountSetAccountTTL

func (c *Client) AccountSetAccountTTL(params *AccountSetAccountTTLParams) (*serialize.Bool, error)

func (*Client) AccountSetContactSignUpNotification

func (c *Client) AccountSetContactSignUpNotification(params *AccountSetContactSignUpNotificationParams) (*serialize.Bool, error)

func (*Client) AccountSetContentSettings

func (c *Client) AccountSetContentSettings(params *AccountSetContentSettingsParams) (*serialize.Bool, error)

func (*Client) AccountSetGlobalPrivacySettings

func (c *Client) AccountSetGlobalPrivacySettings(params *AccountSetGlobalPrivacySettingsParams) (*GlobalPrivacySettings, error)

func (*Client) AccountSetPrivacy

func (c *Client) AccountSetPrivacy(params *AccountSetPrivacyParams) (*AccountPrivacyRules, error)

func (*Client) AccountUnregisterDevice

func (c *Client) AccountUnregisterDevice(params *AccountUnregisterDeviceParams) (*serialize.Bool, error)

func (*Client) AccountUpdateDeviceLocked

func (c *Client) AccountUpdateDeviceLocked(params *AccountUpdateDeviceLockedParams) (*serialize.Bool, error)

func (*Client) AccountUpdateNotifySettings

func (c *Client) AccountUpdateNotifySettings(params *AccountUpdateNotifySettingsParams) (*serialize.Bool, error)

func (*Client) AccountUpdatePasswordSettings

func (c *Client) AccountUpdatePasswordSettings(params *AccountUpdatePasswordSettingsParams) (*serialize.Bool, error)

func (*Client) AccountUpdateProfile

func (c *Client) AccountUpdateProfile(params *AccountUpdateProfileParams) (User, error)

func (*Client) AccountUpdateStatus

func (c *Client) AccountUpdateStatus(params *AccountUpdateStatusParams) (*serialize.Bool, error)

func (*Client) AccountUpdateTheme

func (c *Client) AccountUpdateTheme(params *AccountUpdateThemeParams) (*Theme, error)

func (*Client) AccountUpdateUsername

func (c *Client) AccountUpdateUsername(params *AccountUpdateUsernameParams) (User, error)

func (*Client) AccountUploadTheme

func (c *Client) AccountUploadTheme(params *AccountUploadThemeParams) (Document, error)

func (*Client) AccountUploadWallPaper

func (c *Client) AccountUploadWallPaper(params *AccountUploadWallPaperParams) (WallPaper, error)

func (*Client) AccountVerifyEmail

func (c *Client) AccountVerifyEmail(params *AccountVerifyEmailParams) (*serialize.Bool, error)

func (*Client) AccountVerifyPhone

func (c *Client) AccountVerifyPhone(params *AccountVerifyPhoneParams) (*serialize.Bool, error)

func (*Client) AuthAcceptLoginToken

func (c *Client) AuthAcceptLoginToken(params *AuthAcceptLoginTokenParams) (*Authorization, error)

func (*Client) AuthBindTempAuthKey

func (c *Client) AuthBindTempAuthKey(params *AuthBindTempAuthKeyParams) (*serialize.Bool, error)

func (*Client) AuthCancelCode

func (c *Client) AuthCancelCode(params *AuthCancelCodeParams) (*serialize.Bool, error)

func (*Client) AuthCheckPassword

func (c *Client) AuthCheckPassword(params *AuthCheckPasswordParams) (AuthAuthorization, error)

func (*Client) AuthDropTempAuthKeys

func (c *Client) AuthDropTempAuthKeys(params *AuthDropTempAuthKeysParams) (*serialize.Bool, error)

func (*Client) AuthExportAuthorization

func (c *Client) AuthExportAuthorization(params *AuthExportAuthorizationParams) (*AuthExportedAuthorization, error)

func (*Client) AuthExportLoginToken

func (c *Client) AuthExportLoginToken(params *AuthExportLoginTokenParams) (AuthLoginToken, error)

func (*Client) AuthImportAuthorization

func (c *Client) AuthImportAuthorization(params *AuthImportAuthorizationParams) (AuthAuthorization, error)

func (*Client) AuthImportBotAuthorization

func (c *Client) AuthImportBotAuthorization(params *AuthImportBotAuthorizationParams) (AuthAuthorization, error)

func (*Client) AuthImportLoginToken

func (c *Client) AuthImportLoginToken(params *AuthImportLoginTokenParams) (AuthLoginToken, error)

func (*Client) AuthLogOut

func (c *Client) AuthLogOut() (*serialize.Bool, error)

func (*Client) AuthRecoverPassword

func (c *Client) AuthRecoverPassword(params *AuthRecoverPasswordParams) (AuthAuthorization, error)

func (*Client) AuthRequestPasswordRecovery

func (c *Client) AuthRequestPasswordRecovery() (*AuthPasswordRecovery, error)

func (*Client) AuthResendCode

func (c *Client) AuthResendCode(params *AuthResendCodeParams) (*AuthSentCode, error)

func (*Client) AuthResetAuthorizations

func (c *Client) AuthResetAuthorizations() (*serialize.Bool, error)

func (*Client) AuthSendCode

func (c *Client) AuthSendCode(params *AuthSendCodeParams) (*AuthSentCode, error)

func (*Client) AuthSignIn

func (c *Client) AuthSignIn(params *AuthSignInParams) (AuthAuthorization, error)

func (*Client) AuthSignUp

func (c *Client) AuthSignUp(params *AuthSignUpParams) (AuthAuthorization, error)

func (*Client) BotsAnswerWebhookJSONQuery

func (c *Client) BotsAnswerWebhookJSONQuery(params *BotsAnswerWebhookJSONQueryParams) (*serialize.Bool, error)

func (*Client) BotsSendCustomRequest

func (c *Client) BotsSendCustomRequest(params *BotsSendCustomRequestParams) (*DataJSON, error)

func (*Client) BotsSetBotCommands

func (c *Client) BotsSetBotCommands(params *BotsSetBotCommandsParams) (*serialize.Bool, error)

func (*Client) ChannelsCheckUsername

func (c *Client) ChannelsCheckUsername(params *ChannelsCheckUsernameParams) (*serialize.Bool, error)

func (*Client) ChannelsCreateChannel

func (c *Client) ChannelsCreateChannel(params *ChannelsCreateChannelParams) (Updates, error)

func (*Client) ChannelsDeleteChannel

func (c *Client) ChannelsDeleteChannel(params *ChannelsDeleteChannelParams) (Updates, error)

func (*Client) ChannelsDeleteHistory

func (c *Client) ChannelsDeleteHistory(params *ChannelsDeleteHistoryParams) (*serialize.Bool, error)

func (*Client) ChannelsDeleteMessages

func (c *Client) ChannelsDeleteMessages(params *ChannelsDeleteMessagesParams) (*MessagesAffectedMessages, error)

func (*Client) ChannelsDeleteUserHistory

func (c *Client) ChannelsDeleteUserHistory(params *ChannelsDeleteUserHistoryParams) (*MessagesAffectedHistory, error)

func (*Client) ChannelsEditAdmin

func (c *Client) ChannelsEditAdmin(params *ChannelsEditAdminParams) (Updates, error)

func (*Client) ChannelsEditBanned

func (c *Client) ChannelsEditBanned(params *ChannelsEditBannedParams) (Updates, error)

func (*Client) ChannelsEditCreator

func (c *Client) ChannelsEditCreator(params *ChannelsEditCreatorParams) (Updates, error)

func (*Client) ChannelsEditLocation

func (c *Client) ChannelsEditLocation(params *ChannelsEditLocationParams) (*serialize.Bool, error)

func (*Client) ChannelsEditPhoto

func (c *Client) ChannelsEditPhoto(params *ChannelsEditPhotoParams) (Updates, error)

func (*Client) ChannelsEditTitle

func (c *Client) ChannelsEditTitle(params *ChannelsEditTitleParams) (Updates, error)
func (c *Client) ChannelsExportMessageLink(params *ChannelsExportMessageLinkParams) (*ExportedMessageLink, error)

func (*Client) ChannelsGetAdminLog

func (c *Client) ChannelsGetAdminLog(params *ChannelsGetAdminLogParams) (*ChannelsAdminLogResults, error)

func (*Client) ChannelsGetAdminedPublicChannels

func (c *Client) ChannelsGetAdminedPublicChannels(params *ChannelsGetAdminedPublicChannelsParams) (MessagesChats, error)

func (*Client) ChannelsGetChannels

func (c *Client) ChannelsGetChannels(params *ChannelsGetChannelsParams) (MessagesChats, error)

func (*Client) ChannelsGetFullChannel

func (c *Client) ChannelsGetFullChannel(params *ChannelsGetFullChannelParams) (*MessagesChatFull, error)

func (*Client) ChannelsGetGroupsForDiscussion

func (c *Client) ChannelsGetGroupsForDiscussion() (MessagesChats, error)

func (*Client) ChannelsGetInactiveChannels

func (c *Client) ChannelsGetInactiveChannels() (*MessagesInactiveChats, error)

func (*Client) ChannelsGetLeftChannels

func (c *Client) ChannelsGetLeftChannels(params *ChannelsGetLeftChannelsParams) (MessagesChats, error)

func (*Client) ChannelsGetMessages

func (c *Client) ChannelsGetMessages(params *ChannelsGetMessagesParams) (MessagesMessages, error)

func (*Client) ChannelsGetParticipant

func (c *Client) ChannelsGetParticipant(params *ChannelsGetParticipantParams) (*ChannelsChannelParticipant, error)

func (*Client) ChannelsGetParticipants

func (c *Client) ChannelsGetParticipants(params *ChannelsGetParticipantsParams) (ChannelsChannelParticipants, error)

func (*Client) ChannelsInviteToChannel

func (c *Client) ChannelsInviteToChannel(params *ChannelsInviteToChannelParams) (Updates, error)

func (*Client) ChannelsJoinChannel

func (c *Client) ChannelsJoinChannel(params *ChannelsJoinChannelParams) (Updates, error)

func (*Client) ChannelsLeaveChannel

func (c *Client) ChannelsLeaveChannel(params *ChannelsLeaveChannelParams) (Updates, error)

func (*Client) ChannelsReadHistory

func (c *Client) ChannelsReadHistory(params *ChannelsReadHistoryParams) (*serialize.Bool, error)

func (*Client) ChannelsReadMessageContents

func (c *Client) ChannelsReadMessageContents(params *ChannelsReadMessageContentsParams) (*serialize.Bool, error)

func (*Client) ChannelsReportSpam

func (c *Client) ChannelsReportSpam(params *ChannelsReportSpamParams) (*serialize.Bool, error)

func (*Client) ChannelsSetDiscussionGroup

func (c *Client) ChannelsSetDiscussionGroup(params *ChannelsSetDiscussionGroupParams) (*serialize.Bool, error)

func (*Client) ChannelsSetStickers

func (c *Client) ChannelsSetStickers(params *ChannelsSetStickersParams) (*serialize.Bool, error)

func (*Client) ChannelsTogglePreHistoryHidden

func (c *Client) ChannelsTogglePreHistoryHidden(params *ChannelsTogglePreHistoryHiddenParams) (Updates, error)

func (*Client) ChannelsToggleSignatures

func (c *Client) ChannelsToggleSignatures(params *ChannelsToggleSignaturesParams) (Updates, error)

func (*Client) ChannelsToggleSlowMode

func (c *Client) ChannelsToggleSlowMode(params *ChannelsToggleSlowModeParams) (Updates, error)

func (*Client) ChannelsUpdateUsername

func (c *Client) ChannelsUpdateUsername(params *ChannelsUpdateUsernameParams) (*serialize.Bool, error)

func (*Client) ContactsAcceptContact

func (c *Client) ContactsAcceptContact(params *ContactsAcceptContactParams) (Updates, error)

func (*Client) ContactsAddContact

func (c *Client) ContactsAddContact(params *ContactsAddContactParams) (Updates, error)

func (*Client) ContactsBlock

func (c *Client) ContactsBlock(params *ContactsBlockParams) (*serialize.Bool, error)

func (*Client) ContactsDeleteByPhones

func (c *Client) ContactsDeleteByPhones(params *ContactsDeleteByPhonesParams) (*serialize.Bool, error)

func (*Client) ContactsDeleteContacts

func (c *Client) ContactsDeleteContacts(params *ContactsDeleteContactsParams) (Updates, error)

func (*Client) ContactsGetBlocked

func (c *Client) ContactsGetBlocked(params *ContactsGetBlockedParams) (ContactsBlocked, error)

func (*Client) ContactsGetContactIDs

func (c *Client) ContactsGetContactIDs(params *ContactsGetContactIDsParams) (*serialize.Int, error)

func (*Client) ContactsGetContacts

func (c *Client) ContactsGetContacts(params *ContactsGetContactsParams) (ContactsContacts, error)

func (*Client) ContactsGetLocated

func (c *Client) ContactsGetLocated(params *ContactsGetLocatedParams) (Updates, error)

func (*Client) ContactsGetSaved

func (c *Client) ContactsGetSaved() (*SavedContact, error)

func (*Client) ContactsGetStatuses

func (c *Client) ContactsGetStatuses() (*ContactStatus, error)

func (*Client) ContactsGetTopPeers

func (c *Client) ContactsGetTopPeers(params *ContactsGetTopPeersParams) (ContactsTopPeers, error)

func (*Client) ContactsImportContacts

func (c *Client) ContactsImportContacts(params *ContactsImportContactsParams) (*ContactsImportedContacts, error)

func (*Client) ContactsResetSaved

func (c *Client) ContactsResetSaved() (*serialize.Bool, error)

func (*Client) ContactsResetTopPeerRating

func (c *Client) ContactsResetTopPeerRating(params *ContactsResetTopPeerRatingParams) (*serialize.Bool, error)

func (*Client) ContactsResolveUsername

func (c *Client) ContactsResolveUsername(params *ContactsResolveUsernameParams) (*ContactsResolvedPeer, error)

func (*Client) ContactsSearch

func (c *Client) ContactsSearch(params *ContactsSearchParams) (*ContactsFound, error)

func (*Client) ContactsToggleTopPeers

func (c *Client) ContactsToggleTopPeers(params *ContactsToggleTopPeersParams) (*serialize.Bool, error)

func (*Client) ContactsUnblock

func (c *Client) ContactsUnblock(params *ContactsUnblockParams) (*serialize.Bool, error)

func (*Client) FoldersDeleteFolder

func (c *Client) FoldersDeleteFolder(params *FoldersDeleteFolderParams) (Updates, error)

func (*Client) FoldersEditPeerFolders

func (c *Client) FoldersEditPeerFolders(params *FoldersEditPeerFoldersParams) (Updates, error)
func (c *Client) GetChannelInfoByInviteLink(hashOrLink string) (*ChannelFull, error)

func (*Client) GetChatByID

func (c *Client) GetChatByID(chatID int) (Chat, error)
func (c *Client) GetChatInfoByHashLink(hashOrLink string) (Chat, error)

func (*Client) GetPossibleAllParticipantsOfGroup

func (c *Client) GetPossibleAllParticipantsOfGroup(ch InputChannel) ([]int, error)

func (*Client) HelpAcceptTermsOfService

func (c *Client) HelpAcceptTermsOfService(params *HelpAcceptTermsOfServiceParams) (*serialize.Bool, error)

func (*Client) HelpDismissSuggestion

func (c *Client) HelpDismissSuggestion(params *HelpDismissSuggestionParams) (*serialize.Bool, error)

func (*Client) HelpEditUserInfo

func (c *Client) HelpEditUserInfo(params *HelpEditUserInfoParams) (HelpUserInfo, error)

func (*Client) HelpGetAppChangelog

func (c *Client) HelpGetAppChangelog(params *HelpGetAppChangelogParams) (Updates, error)

func (*Client) HelpGetAppConfig

func (c *Client) HelpGetAppConfig() (JSONValue, error)

func (*Client) HelpGetAppUpdate

func (c *Client) HelpGetAppUpdate(params *HelpGetAppUpdateParams) (HelpAppUpdate, error)

func (*Client) HelpGetCdnConfig

func (c *Client) HelpGetCdnConfig() (*CdnConfig, error)

func (*Client) HelpGetConfig

func (c *Client) HelpGetConfig() (*Config, error)

func (*Client) HelpGetDeepLinkInfo

func (c *Client) HelpGetDeepLinkInfo(params *HelpGetDeepLinkInfoParams) (HelpDeepLinkInfo, error)

func (*Client) HelpGetInviteText

func (c *Client) HelpGetInviteText() (*HelpInviteText, error)

func (*Client) HelpGetNearestDc

func (c *Client) HelpGetNearestDc() (*NearestDc, error)

func (*Client) HelpGetPassportConfig

func (c *Client) HelpGetPassportConfig(params *HelpGetPassportConfigParams) (HelpPassportConfig, error)

func (*Client) HelpGetPromoData

func (c *Client) HelpGetPromoData() (HelpPromoData, error)

func (*Client) HelpGetRecentMeUrls

func (c *Client) HelpGetRecentMeUrls(params *HelpGetRecentMeUrlsParams) (*HelpRecentMeUrls, error)

func (*Client) HelpGetSupport

func (c *Client) HelpGetSupport() (*HelpSupport, error)

func (*Client) HelpGetSupportName

func (c *Client) HelpGetSupportName() (*HelpSupportName, error)

func (*Client) HelpGetTermsOfServiceUpdate

func (c *Client) HelpGetTermsOfServiceUpdate() (HelpTermsOfServiceUpdate, error)

func (*Client) HelpGetUserInfo

func (c *Client) HelpGetUserInfo(params *HelpGetUserInfoParams) (HelpUserInfo, error)

func (*Client) HelpHidePromoData

func (c *Client) HelpHidePromoData(params *HelpHidePromoDataParams) (*serialize.Bool, error)

func (*Client) HelpSaveAppLog

func (c *Client) HelpSaveAppLog(params *HelpSaveAppLogParams) (*serialize.Bool, error)

func (*Client) HelpSetBotUpdatesStatus

func (c *Client) HelpSetBotUpdatesStatus(params *HelpSetBotUpdatesStatusParams) (*serialize.Bool, error)

func (*Client) InitConnection

func (c *Client) InitConnection(params *InitConnectionParams) (serialize.TL, error)

func (*Client) InvokeWithLayer

func (m *Client) InvokeWithLayer(layer int, query serialize.TLEncoder) (serialize.TL, error)

func (*Client) InvokeWithTakeout

func (m *Client) InvokeWithTakeout(takeoutID int, query serialize.TLEncoder) (serialize.TL, error)

func (*Client) LangpackGetDifference

func (c *Client) LangpackGetDifference(params *LangpackGetDifferenceParams) (*LangPackDifference, error)

func (*Client) LangpackGetLangPack

func (c *Client) LangpackGetLangPack(params *LangpackGetLangPackParams) (*LangPackDifference, error)

func (*Client) LangpackGetLanguage

func (c *Client) LangpackGetLanguage(params *LangpackGetLanguageParams) (*LangPackLanguage, error)

func (*Client) LangpackGetLanguages

func (c *Client) LangpackGetLanguages(params *LangpackGetLanguagesParams) (*LangPackLanguage, error)

func (*Client) LangpackGetStrings

func (c *Client) LangpackGetStrings(params *LangpackGetStringsParams) (LangPackString, error)

func (*Client) MessagesAcceptEncryption

func (c *Client) MessagesAcceptEncryption(params *MessagesAcceptEncryptionParams) (EncryptedChat, error)

func (*Client) MessagesAcceptUrlAuth

func (c *Client) MessagesAcceptUrlAuth(params *MessagesAcceptUrlAuthParams) (UrlAuthResult, error)

func (*Client) MessagesAddChatUser

func (c *Client) MessagesAddChatUser(params *MessagesAddChatUserParams) (Updates, error)

func (*Client) MessagesCheckChatInvite

func (c *Client) MessagesCheckChatInvite(params *MessagesCheckChatInviteParams) (ChatInvite, error)

func (*Client) MessagesClearAllDrafts

func (c *Client) MessagesClearAllDrafts() (*serialize.Bool, error)

func (*Client) MessagesClearRecentStickers

func (c *Client) MessagesClearRecentStickers(params *MessagesClearRecentStickersParams) (*serialize.Bool, error)

func (*Client) MessagesCreateChat

func (c *Client) MessagesCreateChat(params *MessagesCreateChatParams) (Updates, error)

func (*Client) MessagesDeleteChatUser

func (c *Client) MessagesDeleteChatUser(params *MessagesDeleteChatUserParams) (Updates, error)

func (*Client) MessagesDeleteHistory

func (c *Client) MessagesDeleteHistory(params *MessagesDeleteHistoryParams) (*MessagesAffectedHistory, error)

func (*Client) MessagesDeleteMessages

func (c *Client) MessagesDeleteMessages(params *MessagesDeleteMessagesParams) (*MessagesAffectedMessages, error)

func (*Client) MessagesDeleteScheduledMessages

func (c *Client) MessagesDeleteScheduledMessages(params *MessagesDeleteScheduledMessagesParams) (Updates, error)

func (*Client) MessagesDiscardEncryption

func (c *Client) MessagesDiscardEncryption(params *MessagesDiscardEncryptionParams) (*serialize.Bool, error)

func (*Client) MessagesEditChatAbout

func (c *Client) MessagesEditChatAbout(params *MessagesEditChatAboutParams) (*serialize.Bool, error)

func (*Client) MessagesEditChatAdmin

func (c *Client) MessagesEditChatAdmin(params *MessagesEditChatAdminParams) (*serialize.Bool, error)

func (*Client) MessagesEditChatDefaultBannedRights

func (c *Client) MessagesEditChatDefaultBannedRights(params *MessagesEditChatDefaultBannedRightsParams) (Updates, error)

func (*Client) MessagesEditChatPhoto

func (c *Client) MessagesEditChatPhoto(params *MessagesEditChatPhotoParams) (Updates, error)

func (*Client) MessagesEditChatTitle

func (c *Client) MessagesEditChatTitle(params *MessagesEditChatTitleParams) (Updates, error)

func (*Client) MessagesEditInlineBotMessage

func (c *Client) MessagesEditInlineBotMessage(params *MessagesEditInlineBotMessageParams) (*serialize.Bool, error)

func (*Client) MessagesEditMessage

func (c *Client) MessagesEditMessage(params *MessagesEditMessageParams) (Updates, error)

func (*Client) MessagesExportChatInvite

func (c *Client) MessagesExportChatInvite(params *MessagesExportChatInviteParams) (ExportedChatInvite, error)

func (*Client) MessagesFaveSticker

func (c *Client) MessagesFaveSticker(params *MessagesFaveStickerParams) (*serialize.Bool, error)

func (*Client) MessagesForwardMessages

func (c *Client) MessagesForwardMessages(params *MessagesForwardMessagesParams) (Updates, error)

func (*Client) MessagesGetAllChats

func (c *Client) MessagesGetAllChats(params *MessagesGetAllChatsParams) (MessagesChats, error)

func (*Client) MessagesGetAllDrafts

func (c *Client) MessagesGetAllDrafts() (Updates, error)

func (*Client) MessagesGetAllStickers

func (c *Client) MessagesGetAllStickers(params *MessagesGetAllStickersParams) (MessagesAllStickers, error)

func (*Client) MessagesGetArchivedStickers

func (c *Client) MessagesGetArchivedStickers(params *MessagesGetArchivedStickersParams) (*MessagesArchivedStickers, error)

func (*Client) MessagesGetAttachedStickers

func (c *Client) MessagesGetAttachedStickers(params *MessagesGetAttachedStickersParams) (StickerSetCovered, error)

func (*Client) MessagesGetBotCallbackAnswer

func (c *Client) MessagesGetBotCallbackAnswer(params *MessagesGetBotCallbackAnswerParams) (*MessagesBotCallbackAnswer, error)

func (*Client) MessagesGetChats

func (c *Client) MessagesGetChats(params *MessagesGetChatsParams) (MessagesChats, error)

func (*Client) MessagesGetCommonChats

func (c *Client) MessagesGetCommonChats(params *MessagesGetCommonChatsParams) (MessagesChats, error)

func (*Client) MessagesGetDhConfig

func (c *Client) MessagesGetDhConfig(params *MessagesGetDhConfigParams) (MessagesDhConfig, error)

func (*Client) MessagesGetDialogFilters

func (c *Client) MessagesGetDialogFilters() (*DialogFilter, error)

func (*Client) MessagesGetDialogUnreadMarks

func (c *Client) MessagesGetDialogUnreadMarks() (DialogPeer, error)

func (*Client) MessagesGetDialogs

func (c *Client) MessagesGetDialogs(params *MessagesGetDialogsParams) (MessagesDialogs, error)

func (*Client) MessagesGetDocumentByHash

func (c *Client) MessagesGetDocumentByHash(params *MessagesGetDocumentByHashParams) (Document, error)

func (*Client) MessagesGetEmojiKeywords

func (c *Client) MessagesGetEmojiKeywords(params *MessagesGetEmojiKeywordsParams) (*EmojiKeywordsDifference, error)

func (*Client) MessagesGetEmojiKeywordsDifference

func (c *Client) MessagesGetEmojiKeywordsDifference(params *MessagesGetEmojiKeywordsDifferenceParams) (*EmojiKeywordsDifference, error)

func (*Client) MessagesGetEmojiKeywordsLanguages

func (c *Client) MessagesGetEmojiKeywordsLanguages(params *MessagesGetEmojiKeywordsLanguagesParams) (*EmojiLanguage, error)

func (*Client) MessagesGetEmojiURL

func (c *Client) MessagesGetEmojiURL(params *MessagesGetEmojiURLParams) (*EmojiURL, error)

func (*Client) MessagesGetFavedStickers

func (c *Client) MessagesGetFavedStickers(params *MessagesGetFavedStickersParams) (MessagesFavedStickers, error)

func (*Client) MessagesGetFeaturedStickers

func (c *Client) MessagesGetFeaturedStickers(params *MessagesGetFeaturedStickersParams) (MessagesFeaturedStickers, error)

func (*Client) MessagesGetFullChat

func (c *Client) MessagesGetFullChat(params *MessagesGetFullChatParams) (*MessagesChatFull, error)

func (*Client) MessagesGetGameHighScores

func (c *Client) MessagesGetGameHighScores(params *MessagesGetGameHighScoresParams) (*MessagesHighScores, error)

func (*Client) MessagesGetHistory

func (c *Client) MessagesGetHistory(params *MessagesGetHistoryParams) (MessagesMessages, error)

func (*Client) MessagesGetInlineBotResults

func (c *Client) MessagesGetInlineBotResults(params *MessagesGetInlineBotResultsParams) (*MessagesBotResults, error)

func (*Client) MessagesGetInlineGameHighScores

func (c *Client) MessagesGetInlineGameHighScores(params *MessagesGetInlineGameHighScoresParams) (*MessagesHighScores, error)

func (*Client) MessagesGetMaskStickers

func (c *Client) MessagesGetMaskStickers(params *MessagesGetMaskStickersParams) (MessagesAllStickers, error)

func (*Client) MessagesGetMessageEditData

func (c *Client) MessagesGetMessageEditData(params *MessagesGetMessageEditDataParams) (*MessagesMessageEditData, error)

func (*Client) MessagesGetMessages

func (c *Client) MessagesGetMessages(params *MessagesGetMessagesParams) (MessagesMessages, error)

func (*Client) MessagesGetMessagesViews

func (c *Client) MessagesGetMessagesViews(params *MessagesGetMessagesViewsParams) (*serialize.Int, error)

func (*Client) MessagesGetOldFeaturedStickers

func (c *Client) MessagesGetOldFeaturedStickers(params *MessagesGetOldFeaturedStickersParams) (MessagesFeaturedStickers, error)

func (*Client) MessagesGetOnlines

func (c *Client) MessagesGetOnlines(params *MessagesGetOnlinesParams) (*ChatOnlines, error)

func (*Client) MessagesGetPeerDialogs

func (c *Client) MessagesGetPeerDialogs(params *MessagesGetPeerDialogsParams) (*MessagesPeerDialogs, error)

func (*Client) MessagesGetPeerSettings

func (c *Client) MessagesGetPeerSettings(params *MessagesGetPeerSettingsParams) (*PeerSettings, error)

func (*Client) MessagesGetPinnedDialogs

func (c *Client) MessagesGetPinnedDialogs(params *MessagesGetPinnedDialogsParams) (*MessagesPeerDialogs, error)

func (*Client) MessagesGetPollResults

func (c *Client) MessagesGetPollResults(params *MessagesGetPollResultsParams) (Updates, error)

func (*Client) MessagesGetPollVotes

func (c *Client) MessagesGetPollVotes(params *MessagesGetPollVotesParams) (*MessagesVotesList, error)

func (*Client) MessagesGetRecentLocations

func (c *Client) MessagesGetRecentLocations(params *MessagesGetRecentLocationsParams) (MessagesMessages, error)

func (*Client) MessagesGetRecentStickers

func (c *Client) MessagesGetRecentStickers(params *MessagesGetRecentStickersParams) (MessagesRecentStickers, error)

func (*Client) MessagesGetSavedGifs

func (c *Client) MessagesGetSavedGifs(params *MessagesGetSavedGifsParams) (MessagesSavedGifs, error)

func (*Client) MessagesGetScheduledHistory

func (c *Client) MessagesGetScheduledHistory(params *MessagesGetScheduledHistoryParams) (MessagesMessages, error)

func (*Client) MessagesGetScheduledMessages

func (c *Client) MessagesGetScheduledMessages(params *MessagesGetScheduledMessagesParams) (MessagesMessages, error)

func (*Client) MessagesGetSearchCounters

func (c *Client) MessagesGetSearchCounters(params *MessagesGetSearchCountersParams) (*MessagesSearchCounter, error)

func (*Client) MessagesGetSplitRanges

func (c *Client) MessagesGetSplitRanges() (*MessageRange, error)

func (*Client) MessagesGetStatsURL

func (c *Client) MessagesGetStatsURL(params *MessagesGetStatsURLParams) (*StatsURL, error)

func (*Client) MessagesGetStickerSet

func (c *Client) MessagesGetStickerSet(params *MessagesGetStickerSetParams) (*MessagesStickerSet, error)

func (*Client) MessagesGetStickers

func (c *Client) MessagesGetStickers(params *MessagesGetStickersParams) (MessagesStickers, error)

func (*Client) MessagesGetSuggestedDialogFilters

func (c *Client) MessagesGetSuggestedDialogFilters() (*DialogFilterSuggested, error)

func (*Client) MessagesGetUnreadMentions

func (c *Client) MessagesGetUnreadMentions(params *MessagesGetUnreadMentionsParams) (MessagesMessages, error)

func (*Client) MessagesGetWebPage

func (c *Client) MessagesGetWebPage(params *MessagesGetWebPageParams) (WebPage, error)

func (*Client) MessagesGetWebPagePreview

func (c *Client) MessagesGetWebPagePreview(params *MessagesGetWebPagePreviewParams) (MessageMedia, error)

func (*Client) MessagesHidePeerSettingsBar

func (c *Client) MessagesHidePeerSettingsBar(params *MessagesHidePeerSettingsBarParams) (*serialize.Bool, error)

func (*Client) MessagesImportChatInvite

func (c *Client) MessagesImportChatInvite(params *MessagesImportChatInviteParams) (Updates, error)

func (*Client) MessagesInstallStickerSet

func (c *Client) MessagesInstallStickerSet(params *MessagesInstallStickerSetParams) (MessagesStickerSetInstallResult, error)

func (*Client) MessagesMarkDialogUnread

func (c *Client) MessagesMarkDialogUnread(params *MessagesMarkDialogUnreadParams) (*serialize.Bool, error)

func (*Client) MessagesMigrateChat

func (c *Client) MessagesMigrateChat(params *MessagesMigrateChatParams) (Updates, error)

func (*Client) MessagesReadEncryptedHistory

func (c *Client) MessagesReadEncryptedHistory(params *MessagesReadEncryptedHistoryParams) (*serialize.Bool, error)

func (*Client) MessagesReadFeaturedStickers

func (c *Client) MessagesReadFeaturedStickers(params *MessagesReadFeaturedStickersParams) (*serialize.Bool, error)

func (*Client) MessagesReadHistory

func (c *Client) MessagesReadHistory(params *MessagesReadHistoryParams) (*MessagesAffectedMessages, error)

func (*Client) MessagesReadMentions

func (c *Client) MessagesReadMentions(params *MessagesReadMentionsParams) (*MessagesAffectedHistory, error)

func (*Client) MessagesReadMessageContents

func (c *Client) MessagesReadMessageContents(params *MessagesReadMessageContentsParams) (*MessagesAffectedMessages, error)

func (*Client) MessagesReceivedMessages

func (c *Client) MessagesReceivedMessages(params *MessagesReceivedMessagesParams) (*ReceivedNotifyMessage, error)

func (*Client) MessagesReceivedQueue

func (c *Client) MessagesReceivedQueue(params *MessagesReceivedQueueParams) (*serialize.Long, error)

func (*Client) MessagesReorderPinnedDialogs

func (c *Client) MessagesReorderPinnedDialogs(params *MessagesReorderPinnedDialogsParams) (*serialize.Bool, error)

func (*Client) MessagesReorderStickerSets

func (c *Client) MessagesReorderStickerSets(params *MessagesReorderStickerSetsParams) (*serialize.Bool, error)

func (*Client) MessagesReport

func (c *Client) MessagesReport(params *MessagesReportParams) (*serialize.Bool, error)

func (*Client) MessagesReportEncryptedSpam

func (c *Client) MessagesReportEncryptedSpam(params *MessagesReportEncryptedSpamParams) (*serialize.Bool, error)

func (*Client) MessagesReportSpam

func (c *Client) MessagesReportSpam(params *MessagesReportSpamParams) (*serialize.Bool, error)

func (*Client) MessagesRequestEncryption

func (c *Client) MessagesRequestEncryption(params *MessagesRequestEncryptionParams) (EncryptedChat, error)

func (*Client) MessagesRequestUrlAuth

func (c *Client) MessagesRequestUrlAuth(params *MessagesRequestUrlAuthParams) (UrlAuthResult, error)

func (*Client) MessagesSaveDraft

func (c *Client) MessagesSaveDraft(params *MessagesSaveDraftParams) (*serialize.Bool, error)

func (*Client) MessagesSaveGif

func (c *Client) MessagesSaveGif(params *MessagesSaveGifParams) (*serialize.Bool, error)

func (*Client) MessagesSaveRecentSticker

func (c *Client) MessagesSaveRecentSticker(params *MessagesSaveRecentStickerParams) (*serialize.Bool, error)

func (*Client) MessagesSearch

func (c *Client) MessagesSearch(params *MessagesSearchParams) (MessagesMessages, error)

func (*Client) MessagesSearchGlobal

func (c *Client) MessagesSearchGlobal(params *MessagesSearchGlobalParams) (MessagesMessages, error)

func (*Client) MessagesSearchStickerSets

func (c *Client) MessagesSearchStickerSets(params *MessagesSearchStickerSetsParams) (MessagesFoundStickerSets, error)

func (*Client) MessagesSendEncrypted

func (c *Client) MessagesSendEncrypted(params *MessagesSendEncryptedParams) (MessagesSentEncryptedMessage, error)

func (*Client) MessagesSendEncryptedFile

func (c *Client) MessagesSendEncryptedFile(params *MessagesSendEncryptedFileParams) (MessagesSentEncryptedMessage, error)

func (*Client) MessagesSendEncryptedService

func (c *Client) MessagesSendEncryptedService(params *MessagesSendEncryptedServiceParams) (MessagesSentEncryptedMessage, error)

func (*Client) MessagesSendInlineBotResult

func (c *Client) MessagesSendInlineBotResult(params *MessagesSendInlineBotResultParams) (Updates, error)

func (*Client) MessagesSendMedia

func (c *Client) MessagesSendMedia(params *MessagesSendMediaParams) (Updates, error)

func (*Client) MessagesSendMessage

func (c *Client) MessagesSendMessage(params *MessagesSendMessageParams) (Updates, error)

func (*Client) MessagesSendMultiMedia

func (c *Client) MessagesSendMultiMedia(params *MessagesSendMultiMediaParams) (Updates, error)

func (*Client) MessagesSendScheduledMessages

func (c *Client) MessagesSendScheduledMessages(params *MessagesSendScheduledMessagesParams) (Updates, error)

func (*Client) MessagesSendScreenshotNotification

func (c *Client) MessagesSendScreenshotNotification(params *MessagesSendScreenshotNotificationParams) (Updates, error)

func (*Client) MessagesSendVote

func (c *Client) MessagesSendVote(params *MessagesSendVoteParams) (Updates, error)

func (*Client) MessagesSetBotCallbackAnswer

func (c *Client) MessagesSetBotCallbackAnswer(params *MessagesSetBotCallbackAnswerParams) (*serialize.Bool, error)

func (*Client) MessagesSetBotPrecheckoutResults

func (c *Client) MessagesSetBotPrecheckoutResults(params *MessagesSetBotPrecheckoutResultsParams) (*serialize.Bool, error)

func (*Client) MessagesSetBotShippingResults

func (c *Client) MessagesSetBotShippingResults(params *MessagesSetBotShippingResultsParams) (*serialize.Bool, error)

func (*Client) MessagesSetEncryptedTyping

func (c *Client) MessagesSetEncryptedTyping(params *MessagesSetEncryptedTypingParams) (*serialize.Bool, error)

func (*Client) MessagesSetGameScore

func (c *Client) MessagesSetGameScore(params *MessagesSetGameScoreParams) (Updates, error)

func (*Client) MessagesSetInlineBotResults

func (c *Client) MessagesSetInlineBotResults(params *MessagesSetInlineBotResultsParams) (*serialize.Bool, error)

func (*Client) MessagesSetInlineGameScore

func (c *Client) MessagesSetInlineGameScore(params *MessagesSetInlineGameScoreParams) (*serialize.Bool, error)

func (*Client) MessagesSetTyping

func (c *Client) MessagesSetTyping(params *MessagesSetTypingParams) (*serialize.Bool, error)

func (*Client) MessagesStartBot

func (c *Client) MessagesStartBot(params *MessagesStartBotParams) (Updates, error)

func (*Client) MessagesToggleDialogPin

func (c *Client) MessagesToggleDialogPin(params *MessagesToggleDialogPinParams) (*serialize.Bool, error)

func (*Client) MessagesToggleStickerSets

func (c *Client) MessagesToggleStickerSets(params *MessagesToggleStickerSetsParams) (*serialize.Bool, error)

func (*Client) MessagesUninstallStickerSet

func (c *Client) MessagesUninstallStickerSet(params *MessagesUninstallStickerSetParams) (*serialize.Bool, error)

func (*Client) MessagesUpdateDialogFilter

func (c *Client) MessagesUpdateDialogFilter(params *MessagesUpdateDialogFilterParams) (*serialize.Bool, error)

func (*Client) MessagesUpdateDialogFiltersOrder

func (c *Client) MessagesUpdateDialogFiltersOrder(params *MessagesUpdateDialogFiltersOrderParams) (*serialize.Bool, error)

func (*Client) MessagesUpdatePinnedMessage

func (c *Client) MessagesUpdatePinnedMessage(params *MessagesUpdatePinnedMessageParams) (Updates, error)

func (*Client) MessagesUploadEncryptedFile

func (c *Client) MessagesUploadEncryptedFile(params *MessagesUploadEncryptedFileParams) (EncryptedFile, error)

func (*Client) MessagesUploadMedia

func (c *Client) MessagesUploadMedia(params *MessagesUploadMediaParams) (MessageMedia, error)

func (*Client) PaymentsClearSavedInfo

func (c *Client) PaymentsClearSavedInfo(params *PaymentsClearSavedInfoParams) (*serialize.Bool, error)

func (*Client) PaymentsGetBankCardData

func (c *Client) PaymentsGetBankCardData(params *PaymentsGetBankCardDataParams) (*PaymentsBankCardData, error)

func (*Client) PaymentsGetPaymentForm

func (c *Client) PaymentsGetPaymentForm(params *PaymentsGetPaymentFormParams) (*PaymentsPaymentForm, error)

func (*Client) PaymentsGetPaymentReceipt

func (c *Client) PaymentsGetPaymentReceipt(params *PaymentsGetPaymentReceiptParams) (*PaymentsPaymentReceipt, error)

func (*Client) PaymentsGetSavedInfo

func (c *Client) PaymentsGetSavedInfo() (*PaymentsSavedInfo, error)

func (*Client) PaymentsSendPaymentForm

func (c *Client) PaymentsSendPaymentForm(params *PaymentsSendPaymentFormParams) (PaymentsPaymentResult, error)

func (*Client) PaymentsValidateRequestedInfo

func (c *Client) PaymentsValidateRequestedInfo(params *PaymentsValidateRequestedInfoParams) (*PaymentsValidatedRequestedInfo, error)

func (*Client) PhoneAcceptCall

func (c *Client) PhoneAcceptCall(params *PhoneAcceptCallParams) (*PhonePhoneCall, error)

func (*Client) PhoneConfirmCall

func (c *Client) PhoneConfirmCall(params *PhoneConfirmCallParams) (*PhonePhoneCall, error)

func (*Client) PhoneDiscardCall

func (c *Client) PhoneDiscardCall(params *PhoneDiscardCallParams) (Updates, error)

func (*Client) PhoneGetCallConfig

func (c *Client) PhoneGetCallConfig() (*DataJSON, error)

func (*Client) PhoneReceivedCall

func (c *Client) PhoneReceivedCall(params *PhoneReceivedCallParams) (*serialize.Bool, error)

func (*Client) PhoneRequestCall

func (c *Client) PhoneRequestCall(params *PhoneRequestCallParams) (*PhonePhoneCall, error)

func (*Client) PhoneSaveCallDebug

func (c *Client) PhoneSaveCallDebug(params *PhoneSaveCallDebugParams) (*serialize.Bool, error)

func (*Client) PhoneSendSignalingData

func (c *Client) PhoneSendSignalingData(params *PhoneSendSignalingDataParams) (*serialize.Bool, error)

func (*Client) PhoneSetCallRating

func (c *Client) PhoneSetCallRating(params *PhoneSetCallRatingParams) (Updates, error)

func (*Client) PhotosDeletePhotos

func (c *Client) PhotosDeletePhotos(params *PhotosDeletePhotosParams) (*serialize.Long, error)

func (*Client) PhotosGetUserPhotos

func (c *Client) PhotosGetUserPhotos(params *PhotosGetUserPhotosParams) (PhotosPhotos, error)

func (*Client) PhotosUpdateProfilePhoto

func (c *Client) PhotosUpdateProfilePhoto(params *PhotosUpdateProfilePhotoParams) (*PhotosPhoto, error)

func (*Client) PhotosUploadProfilePhoto

func (c *Client) PhotosUploadProfilePhoto(params *PhotosUploadProfilePhotoParams) (*PhotosPhoto, error)

func (*Client) StatsGetBroadcastStats

func (c *Client) StatsGetBroadcastStats(params *StatsGetBroadcastStatsParams) (*StatsBroadcastStats, error)

func (*Client) StatsGetMegagroupStats

func (c *Client) StatsGetMegagroupStats(params *StatsGetMegagroupStatsParams) (*StatsMegagroupStats, error)

func (*Client) StatsLoadAsyncGraph

func (c *Client) StatsLoadAsyncGraph(params *StatsLoadAsyncGraphParams) (StatsGraph, error)

func (*Client) StickersAddStickerToSet

func (c *Client) StickersAddStickerToSet(params *StickersAddStickerToSetParams) (*MessagesStickerSet, error)

func (*Client) StickersChangeStickerPosition

func (c *Client) StickersChangeStickerPosition(params *StickersChangeStickerPositionParams) (*MessagesStickerSet, error)

func (*Client) StickersCreateStickerSet

func (c *Client) StickersCreateStickerSet(params *StickersCreateStickerSetParams) (*MessagesStickerSet, error)

func (*Client) StickersRemoveStickerFromSet

func (c *Client) StickersRemoveStickerFromSet(params *StickersRemoveStickerFromSetParams) (*MessagesStickerSet, error)

func (*Client) StickersSetStickerSetThumb

func (c *Client) StickersSetStickerSetThumb(params *StickersSetStickerSetThumbParams) (*MessagesStickerSet, error)

func (*Client) UpdatesGetChannelDifference

func (c *Client) UpdatesGetChannelDifference(params *UpdatesGetChannelDifferenceParams) (UpdatesChannelDifference, error)

func (*Client) UpdatesGetDifference

func (c *Client) UpdatesGetDifference(params *UpdatesGetDifferenceParams) (UpdatesDifference, error)

func (*Client) UpdatesGetState

func (c *Client) UpdatesGetState() (*UpdatesState, error)

func (*Client) UploadGetCdnFile

func (c *Client) UploadGetCdnFile(params *UploadGetCdnFileParams) (UploadCdnFile, error)

func (*Client) UploadGetCdnFileHashes

func (c *Client) UploadGetCdnFileHashes(params *UploadGetCdnFileHashesParams) (*FileHash, error)

func (*Client) UploadGetFile

func (c *Client) UploadGetFile(params *UploadGetFileParams) (UploadFile, error)

func (*Client) UploadGetFileHashes

func (c *Client) UploadGetFileHashes(params *UploadGetFileHashesParams) (*FileHash, error)

func (*Client) UploadGetWebFile

func (c *Client) UploadGetWebFile(params *UploadGetWebFileParams) (*UploadWebFile, error)

func (*Client) UploadReuploadCdnFile

func (c *Client) UploadReuploadCdnFile(params *UploadReuploadCdnFileParams) (*FileHash, error)

func (*Client) UploadSaveBigFilePart

func (c *Client) UploadSaveBigFilePart(params *UploadSaveBigFilePartParams) (*serialize.Bool, error)

func (*Client) UploadSaveFilePart

func (c *Client) UploadSaveFilePart(params *UploadSaveFilePartParams) (*serialize.Bool, error)

func (*Client) UsersGetFullUser

func (c *Client) UsersGetFullUser(params *UsersGetFullUserParams) (*UserFull, error)

func (*Client) UsersGetUsers

func (c *Client) UsersGetUsers(params *UsersGetUsersParams) (User, error)

func (*Client) UsersSetSecureValueErrors

func (c *Client) UsersSetSecureValueErrors(params *UsersSetSecureValueErrorsParams) (*serialize.Bool, error)

type ClientConfig

type ClientConfig struct {
	SessionFile    string
	ServerHost     string
	PublicKeysFile string
	DeviceModel    string
	SystemVersion  string
	AppVersion     string
	AppID          int
	AppHash        string
}

type CodeSettings

type CodeSettings struct {
	AllowFlashcall bool `flag:"0,encoded_in_bitflags"`
	CurrentNumber  bool `flag:"1,encoded_in_bitflags"`
	AllowAppHash   bool `flag:"4,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*CodeSettings) CRC

func (e *CodeSettings) CRC() uint32

func (*CodeSettings) Encode

func (e *CodeSettings) Encode() []byte

type Config

type Config struct {
	PhonecallsEnabled       bool        `flag:"1,encoded_in_bitflags"`
	DefaultP2PContacts      bool        `flag:"3,encoded_in_bitflags"`
	PreloadFeaturedStickers bool        `flag:"4,encoded_in_bitflags"`
	IgnorePhoneEntities     bool        `flag:"5,encoded_in_bitflags"`
	RevokePmInbox           bool        `flag:"6,encoded_in_bitflags"`
	BlockedMode             bool        `flag:"8,encoded_in_bitflags"`
	PfsEnabled              bool        `flag:"13,encoded_in_bitflags"`
	Date                    int32       `validate:"required"`
	Expires                 int32       `validate:"required"`
	TestMode                bool        `validate:"required"`
	ThisDc                  int32       `validate:"required"`
	DcOptions               []*DcOption `validate:"required"`
	DcTxtDomainName         string      `validate:"required"`
	ChatSizeMax             int32       `validate:"required"`
	MegagroupSizeMax        int32       `validate:"required"`
	ForwardedCountMax       int32       `validate:"required"`
	OnlineUpdatePeriodMs    int32       `validate:"required"`
	OfflineBlurTimeoutMs    int32       `validate:"required"`
	OfflineIdleTimeoutMs    int32       `validate:"required"`
	OnlineCloudTimeoutMs    int32       `validate:"required"`
	NotifyCloudDelayMs      int32       `validate:"required"`
	NotifyDefaultDelayMs    int32       `validate:"required"`
	PushChatPeriodMs        int32       `validate:"required"`
	PushChatLimit           int32       `validate:"required"`
	SavedGifsLimit          int32       `validate:"required"`
	EditTimeLimit           int32       `validate:"required"`
	RevokeTimeLimit         int32       `validate:"required"`
	RevokePmTimeLimit       int32       `validate:"required"`
	RatingEDecay            int32       `validate:"required"`
	StickersRecentLimit     int32       `validate:"required"`
	StickersFavedLimit      int32       `validate:"required"`
	ChannelsReadMediaPeriod int32       `validate:"required"`
	TmpSessions             int32       `flag:"0"`
	PinnedDialogsCountMax   int32       `validate:"required"`
	PinnedInfolderCountMax  int32       `validate:"required"`
	CallReceiveTimeoutMs    int32       `validate:"required"`
	CallRingTimeoutMs       int32       `validate:"required"`
	CallConnectTimeoutMs    int32       `validate:"required"`
	CallPacketTimeoutMs     int32       `validate:"required"`
	MeUrlPrefix             string      `validate:"required"`
	AutoupdateUrlPrefix     string      `flag:"7"`
	GifSearchUsername       string      `flag:"9"`
	VenueSearchUsername     string      `flag:"10"`
	ImgSearchUsername       string      `flag:"11"`
	StaticMapsProvider      string      `flag:"12"`
	CaptionLengthMax        int32       `validate:"required"`
	MessageLengthMax        int32       `validate:"required"`
	WebfileDcId             int32       `validate:"required"`
	SuggestedLangCode       string      `flag:"2"`
	LangPackVersion         int32       `flag:"2"`
	BaseLangPackVersion     int32       `flag:"2"`
	// contains filtered or unexported fields
}

func (*Config) CRC

func (e *Config) CRC() uint32

func (*Config) Encode

func (e *Config) Encode() []byte

type Contact

type Contact struct {
	UserId int32 `validate:"required"`
	Mutual bool  `validate:"required"`
}

func (*Contact) CRC

func (e *Contact) CRC() uint32

func (*Contact) Encode

func (e *Contact) Encode() []byte

type ContactBlocked

type ContactBlocked struct {
	UserId int32 `validate:"required"`
	Date   int32 `validate:"required"`
}

func (*ContactBlocked) CRC

func (e *ContactBlocked) CRC() uint32

func (*ContactBlocked) Encode

func (e *ContactBlocked) Encode() []byte

type ContactStatus

type ContactStatus struct {
	UserId int32      `validate:"required"`
	Status UserStatus `validate:"required"`
}

func (*ContactStatus) CRC

func (e *ContactStatus) CRC() uint32

func (*ContactStatus) Encode

func (e *ContactStatus) Encode() []byte

type ContactsAcceptContactParams

type ContactsAcceptContactParams struct {
	Id InputUser `validate:"required"`
}

func (*ContactsAcceptContactParams) CRC

func (*ContactsAcceptContactParams) Encode

func (e *ContactsAcceptContactParams) Encode() []byte

type ContactsAddContactParams

type ContactsAddContactParams struct {
	AddPhonePrivacyException bool      `flag:"0,encoded_in_bitflags"`
	Id                       InputUser `validate:"required"`
	FirstName                string    `validate:"required"`
	LastName                 string    `validate:"required"`
	Phone                    string    `validate:"required"`
	// contains filtered or unexported fields
}

func (*ContactsAddContactParams) CRC

func (*ContactsAddContactParams) Encode

func (e *ContactsAddContactParams) Encode() []byte

type ContactsBlockParams

type ContactsBlockParams struct {
	Id InputUser `validate:"required"`
}

func (*ContactsBlockParams) CRC

func (e *ContactsBlockParams) CRC() uint32

func (*ContactsBlockParams) Encode

func (e *ContactsBlockParams) Encode() []byte

type ContactsBlocked

type ContactsBlocked interface {
	serialize.TL
	ImplementsContactsBlocked()
}

type ContactsBlockedObj

type ContactsBlockedObj struct {
	Blocked []*ContactBlocked `validate:"required"`
	Users   []User            `validate:"required"`
}

func (*ContactsBlockedObj) CRC

func (*ContactsBlockedObj) CRC() uint32

func (*ContactsBlockedObj) Encode

func (e *ContactsBlockedObj) Encode() []byte

func (*ContactsBlockedObj) ImplementsContactsBlocked

func (*ContactsBlockedObj) ImplementsContactsBlocked()

type ContactsBlockedSlice

type ContactsBlockedSlice struct {
	Count   int32             `validate:"required"`
	Blocked []*ContactBlocked `validate:"required"`
	Users   []User            `validate:"required"`
}

func (*ContactsBlockedSlice) CRC

func (*ContactsBlockedSlice) Encode

func (e *ContactsBlockedSlice) Encode() []byte

func (*ContactsBlockedSlice) ImplementsContactsBlocked

func (*ContactsBlockedSlice) ImplementsContactsBlocked()

type ContactsContacts

type ContactsContacts interface {
	serialize.TL
	ImplementsContactsContacts()
}

type ContactsContactsNotModified

type ContactsContactsNotModified struct{}

func (*ContactsContactsNotModified) CRC

func (*ContactsContactsNotModified) Encode

func (e *ContactsContactsNotModified) Encode() []byte

func (*ContactsContactsNotModified) ImplementsContactsContacts

func (*ContactsContactsNotModified) ImplementsContactsContacts()

type ContactsContactsObj

type ContactsContactsObj struct {
	Contacts   []*Contact `validate:"required"`
	SavedCount int32      `validate:"required"`
	Users      []User     `validate:"required"`
}

func (*ContactsContactsObj) CRC

func (*ContactsContactsObj) CRC() uint32

func (*ContactsContactsObj) Encode

func (e *ContactsContactsObj) Encode() []byte

func (*ContactsContactsObj) ImplementsContactsContacts

func (*ContactsContactsObj) ImplementsContactsContacts()

type ContactsDeleteByPhonesParams

type ContactsDeleteByPhonesParams struct {
	Phones []string `validate:"required"`
}

func (*ContactsDeleteByPhonesParams) CRC

func (*ContactsDeleteByPhonesParams) Encode

func (e *ContactsDeleteByPhonesParams) Encode() []byte

type ContactsDeleteContactsParams

type ContactsDeleteContactsParams struct {
	Id []InputUser `validate:"required"`
}

func (*ContactsDeleteContactsParams) CRC

func (*ContactsDeleteContactsParams) Encode

func (e *ContactsDeleteContactsParams) Encode() []byte

type ContactsFound

type ContactsFound struct {
	MyResults []Peer `validate:"required"`
	Results   []Peer `validate:"required"`
	Chats     []Chat `validate:"required"`
	Users     []User `validate:"required"`
}

func (*ContactsFound) CRC

func (e *ContactsFound) CRC() uint32

func (*ContactsFound) Encode

func (e *ContactsFound) Encode() []byte

type ContactsGetBlockedParams

type ContactsGetBlockedParams struct {
	Offset int32 `validate:"required"`
	Limit  int32 `validate:"required"`
}

func (*ContactsGetBlockedParams) CRC

func (*ContactsGetBlockedParams) Encode

func (e *ContactsGetBlockedParams) Encode() []byte

type ContactsGetContactIDsParams

type ContactsGetContactIDsParams struct {
	Hash int32 `validate:"required"`
}

func (*ContactsGetContactIDsParams) CRC

func (*ContactsGetContactIDsParams) Encode

func (e *ContactsGetContactIDsParams) Encode() []byte

type ContactsGetContactsParams

type ContactsGetContactsParams struct {
	Hash int32
}

func (*ContactsGetContactsParams) CRC

func (*ContactsGetContactsParams) Encode

func (e *ContactsGetContactsParams) Encode() []byte

type ContactsGetLocatedParams

type ContactsGetLocatedParams struct {
	Background  bool          `flag:"1,encoded_in_bitflags"`
	GeoPoint    InputGeoPoint `validate:"required"`
	SelfExpires int32         `flag:"0"`
	// contains filtered or unexported fields
}

func (*ContactsGetLocatedParams) CRC

func (*ContactsGetLocatedParams) Encode

func (e *ContactsGetLocatedParams) Encode() []byte

type ContactsGetSavedParams

type ContactsGetSavedParams struct{}

func (*ContactsGetSavedParams) CRC

func (e *ContactsGetSavedParams) CRC() uint32

func (*ContactsGetSavedParams) Encode

func (e *ContactsGetSavedParams) Encode() []byte

type ContactsGetStatusesParams

type ContactsGetStatusesParams struct{}

func (*ContactsGetStatusesParams) CRC

func (*ContactsGetStatusesParams) Encode

func (e *ContactsGetStatusesParams) Encode() []byte

type ContactsGetTopPeersParams

type ContactsGetTopPeersParams struct {
	Correspondents bool  `flag:"0,encoded_in_bitflags"`
	BotsPm         bool  `flag:"1,encoded_in_bitflags"`
	BotsInline     bool  `flag:"2,encoded_in_bitflags"`
	PhoneCalls     bool  `flag:"3,encoded_in_bitflags"`
	ForwardUsers   bool  `flag:"4,encoded_in_bitflags"`
	ForwardChats   bool  `flag:"5,encoded_in_bitflags"`
	Groups         bool  `flag:"10,encoded_in_bitflags"`
	Channels       bool  `flag:"15,encoded_in_bitflags"`
	Offset         int32 `validate:"required"`
	Limit          int32 `validate:"required"`
	Hash           int32 `validate:"required"`
	// contains filtered or unexported fields
}

func (*ContactsGetTopPeersParams) CRC

func (*ContactsGetTopPeersParams) Encode

func (e *ContactsGetTopPeersParams) Encode() []byte

type ContactsImportContactsParams

type ContactsImportContactsParams struct {
	Contacts []*InputContact `validate:"required"`
}

func (*ContactsImportContactsParams) CRC

func (*ContactsImportContactsParams) Encode

func (e *ContactsImportContactsParams) Encode() []byte

type ContactsImportedContacts

type ContactsImportedContacts struct {
	Imported       []*ImportedContact `validate:"required"`
	PopularInvites []*PopularContact  `validate:"required"`
	RetryContacts  []int64            `validate:"required"`
	Users          []User             `validate:"required"`
}

func (*ContactsImportedContacts) CRC

func (*ContactsImportedContacts) Encode

func (e *ContactsImportedContacts) Encode() []byte

type ContactsResetSavedParams

type ContactsResetSavedParams struct{}

func (*ContactsResetSavedParams) CRC

func (*ContactsResetSavedParams) Encode

func (e *ContactsResetSavedParams) Encode() []byte

type ContactsResetTopPeerRatingParams

type ContactsResetTopPeerRatingParams struct {
	Category TopPeerCategory `validate:"required"`
	Peer     InputPeer       `validate:"required"`
}

func (*ContactsResetTopPeerRatingParams) CRC

func (*ContactsResetTopPeerRatingParams) Encode

func (e *ContactsResetTopPeerRatingParams) Encode() []byte

type ContactsResolveUsernameParams

type ContactsResolveUsernameParams struct {
	Username string `validate:"required"`
}

func (*ContactsResolveUsernameParams) CRC

func (*ContactsResolveUsernameParams) Encode

func (e *ContactsResolveUsernameParams) Encode() []byte

type ContactsResolvedPeer

type ContactsResolvedPeer struct {
	Peer  Peer   `validate:"required"`
	Chats []Chat `validate:"required"`
	Users []User `validate:"required"`
}

func (*ContactsResolvedPeer) CRC

func (e *ContactsResolvedPeer) CRC() uint32

func (*ContactsResolvedPeer) Encode

func (e *ContactsResolvedPeer) Encode() []byte

type ContactsSearchParams

type ContactsSearchParams struct {
	Q     string `validate:"required"`
	Limit int32  `validate:"required"`
}

func (*ContactsSearchParams) CRC

func (e *ContactsSearchParams) CRC() uint32

func (*ContactsSearchParams) Encode

func (e *ContactsSearchParams) Encode() []byte

type ContactsToggleTopPeersParams

type ContactsToggleTopPeersParams struct {
	Enabled bool `validate:"required"`
}

func (*ContactsToggleTopPeersParams) CRC

func (*ContactsToggleTopPeersParams) Encode

func (e *ContactsToggleTopPeersParams) Encode() []byte

type ContactsTopPeers

type ContactsTopPeers interface {
	serialize.TL
	ImplementsContactsTopPeers()
}

type ContactsTopPeersDisabled

type ContactsTopPeersDisabled struct{}

func (*ContactsTopPeersDisabled) CRC

func (*ContactsTopPeersDisabled) Encode

func (e *ContactsTopPeersDisabled) Encode() []byte

func (*ContactsTopPeersDisabled) ImplementsContactsTopPeers

func (*ContactsTopPeersDisabled) ImplementsContactsTopPeers()

type ContactsTopPeersNotModified

type ContactsTopPeersNotModified struct{}

func (*ContactsTopPeersNotModified) CRC

func (*ContactsTopPeersNotModified) Encode

func (e *ContactsTopPeersNotModified) Encode() []byte

func (*ContactsTopPeersNotModified) ImplementsContactsTopPeers

func (*ContactsTopPeersNotModified) ImplementsContactsTopPeers()

type ContactsTopPeersObj

type ContactsTopPeersObj struct {
	Categories []*TopPeerCategoryPeers `validate:"required"`
	Chats      []Chat                  `validate:"required"`
	Users      []User                  `validate:"required"`
}

func (*ContactsTopPeersObj) CRC

func (*ContactsTopPeersObj) CRC() uint32

func (*ContactsTopPeersObj) Encode

func (e *ContactsTopPeersObj) Encode() []byte

func (*ContactsTopPeersObj) ImplementsContactsTopPeers

func (*ContactsTopPeersObj) ImplementsContactsTopPeers()

type ContactsUnblockParams

type ContactsUnblockParams struct {
	Id InputUser `validate:"required"`
}

func (*ContactsUnblockParams) CRC

func (e *ContactsUnblockParams) CRC() uint32

func (*ContactsUnblockParams) Encode

func (e *ContactsUnblockParams) Encode() []byte

type DataJSON

type DataJSON struct {
	Data string `validate:"required"`
}

func (*DataJSON) CRC

func (e *DataJSON) CRC() uint32

func (*DataJSON) Encode

func (e *DataJSON) Encode() []byte

type DcOption

type DcOption struct {
	Ipv6      bool   `flag:"0,encoded_in_bitflags"`
	MediaOnly bool   `flag:"1,encoded_in_bitflags"`
	TcpoOnly  bool   `flag:"2,encoded_in_bitflags"`
	Cdn       bool   `flag:"3,encoded_in_bitflags"`
	Static    bool   `flag:"4,encoded_in_bitflags"`
	Id        int32  `validate:"required"`
	IpAddress string `validate:"required"`
	Port      int32  `validate:"required"`
	Secret    []byte `flag:"10"`
	// contains filtered or unexported fields
}

func (*DcOption) CRC

func (e *DcOption) CRC() uint32

func (*DcOption) Encode

func (e *DcOption) Encode() []byte

type Dialog

type Dialog interface {
	serialize.TL
	ImplementsDialog()
}

type DialogFilter

type DialogFilter struct {
	Contacts        bool        `flag:"0,encoded_in_bitflags"`
	NonContacts     bool        `flag:"1,encoded_in_bitflags"`
	Groups          bool        `flag:"2,encoded_in_bitflags"`
	Broadcasts      bool        `flag:"3,encoded_in_bitflags"`
	Bots            bool        `flag:"4,encoded_in_bitflags"`
	ExcludeMuted    bool        `flag:"11,encoded_in_bitflags"`
	ExcludeRead     bool        `flag:"12,encoded_in_bitflags"`
	ExcludeArchived bool        `flag:"13,encoded_in_bitflags"`
	Id              int32       `validate:"required"`
	Title           string      `validate:"required"`
	Emoticon        string      `flag:"25"`
	PinnedPeers     []InputPeer `validate:"required"`
	IncludePeers    []InputPeer `validate:"required"`
	ExcludePeers    []InputPeer `validate:"required"`
	// contains filtered or unexported fields
}

func (*DialogFilter) CRC

func (e *DialogFilter) CRC() uint32

func (*DialogFilter) Encode

func (e *DialogFilter) Encode() []byte

type DialogFilterSuggested

type DialogFilterSuggested struct {
	Filter      *DialogFilter `validate:"required"`
	Description string        `validate:"required"`
}

func (*DialogFilterSuggested) CRC

func (e *DialogFilterSuggested) CRC() uint32

func (*DialogFilterSuggested) Encode

func (e *DialogFilterSuggested) Encode() []byte

type DialogFolder

type DialogFolder struct {
	Pinned                     bool    `flag:"2,encoded_in_bitflags"`
	Folder                     *Folder `validate:"required"`
	Peer                       Peer    `validate:"required"`
	TopMessage                 int32   `validate:"required"`
	UnreadMutedPeersCount      int32   `validate:"required"`
	UnreadUnmutedPeersCount    int32   `validate:"required"`
	UnreadMutedMessagesCount   int32   `validate:"required"`
	UnreadUnmutedMessagesCount int32   `validate:"required"`
	// contains filtered or unexported fields
}

func (*DialogFolder) CRC

func (*DialogFolder) CRC() uint32

func (*DialogFolder) Encode

func (e *DialogFolder) Encode() []byte

func (*DialogFolder) ImplementsDialog

func (*DialogFolder) ImplementsDialog()

type DialogObj

type DialogObj struct {
	Pinned              bool                `flag:"2,encoded_in_bitflags"`
	UnreadMark          bool                `flag:"3,encoded_in_bitflags"`
	Peer                Peer                `validate:"required"`
	TopMessage          int32               `validate:"required"`
	ReadInboxMaxId      int32               `validate:"required"`
	ReadOutboxMaxId     int32               `validate:"required"`
	UnreadCount         int32               `validate:"required"`
	UnreadMentionsCount int32               `validate:"required"`
	NotifySettings      *PeerNotifySettings `validate:"required"`
	Pts                 int32               `flag:"0"`
	Draft               DraftMessage        `flag:"1"`
	FolderId            int32               `flag:"4"`
	// contains filtered or unexported fields
}

func (*DialogObj) CRC

func (*DialogObj) CRC() uint32

func (*DialogObj) Encode

func (e *DialogObj) Encode() []byte

func (*DialogObj) ImplementsDialog

func (*DialogObj) ImplementsDialog()

type DialogPeer

type DialogPeer interface {
	serialize.TL
	ImplementsDialogPeer()
}

type DialogPeerFolder

type DialogPeerFolder struct {
	FolderId int32 `validate:"required"`
}

func (*DialogPeerFolder) CRC

func (*DialogPeerFolder) CRC() uint32

func (*DialogPeerFolder) Encode

func (e *DialogPeerFolder) Encode() []byte

func (*DialogPeerFolder) ImplementsDialogPeer

func (*DialogPeerFolder) ImplementsDialogPeer()

type DialogPeerObj

type DialogPeerObj struct {
	Peer Peer `validate:"required"`
}

func (*DialogPeerObj) CRC

func (*DialogPeerObj) CRC() uint32

func (*DialogPeerObj) Encode

func (e *DialogPeerObj) Encode() []byte

func (*DialogPeerObj) ImplementsDialogPeer

func (*DialogPeerObj) ImplementsDialogPeer()

type Document

type Document interface {
	serialize.TL
	ImplementsDocument()
}

type DocumentAttribute

type DocumentAttribute interface {
	serialize.TL
	ImplementsDocumentAttribute()
}

type DocumentAttributeAnimated

type DocumentAttributeAnimated struct{}

func (*DocumentAttributeAnimated) CRC

func (*DocumentAttributeAnimated) Encode

func (e *DocumentAttributeAnimated) Encode() []byte

func (*DocumentAttributeAnimated) ImplementsDocumentAttribute

func (*DocumentAttributeAnimated) ImplementsDocumentAttribute()

type DocumentAttributeAudio

type DocumentAttributeAudio struct {
	Voice     bool   `flag:"10,encoded_in_bitflags"`
	Duration  int32  `validate:"required"`
	Title     string `flag:"0"`
	Performer string `flag:"1"`
	Waveform  []byte `flag:"2"`
	// contains filtered or unexported fields
}

func (*DocumentAttributeAudio) CRC

func (*DocumentAttributeAudio) Encode

func (e *DocumentAttributeAudio) Encode() []byte

func (*DocumentAttributeAudio) ImplementsDocumentAttribute

func (*DocumentAttributeAudio) ImplementsDocumentAttribute()

type DocumentAttributeFilename

type DocumentAttributeFilename struct {
	FileName string `validate:"required"`
}

func (*DocumentAttributeFilename) CRC

func (*DocumentAttributeFilename) Encode

func (e *DocumentAttributeFilename) Encode() []byte

func (*DocumentAttributeFilename) ImplementsDocumentAttribute

func (*DocumentAttributeFilename) ImplementsDocumentAttribute()

type DocumentAttributeHasStickers

type DocumentAttributeHasStickers struct{}

func (*DocumentAttributeHasStickers) CRC

func (*DocumentAttributeHasStickers) Encode

func (e *DocumentAttributeHasStickers) Encode() []byte

func (*DocumentAttributeHasStickers) ImplementsDocumentAttribute

func (*DocumentAttributeHasStickers) ImplementsDocumentAttribute()

type DocumentAttributeImageSize

type DocumentAttributeImageSize struct {
	W int32 `validate:"required"`
	H int32 `validate:"required"`
}

func (*DocumentAttributeImageSize) CRC

func (*DocumentAttributeImageSize) Encode

func (e *DocumentAttributeImageSize) Encode() []byte

func (*DocumentAttributeImageSize) ImplementsDocumentAttribute

func (*DocumentAttributeImageSize) ImplementsDocumentAttribute()

type DocumentAttributeSticker

type DocumentAttributeSticker struct {
	Mask       bool            `flag:"1,encoded_in_bitflags"`
	Alt        string          `validate:"required"`
	Stickerset InputStickerSet `validate:"required"`
	MaskCoords *MaskCoords     `flag:"0"`
	// contains filtered or unexported fields
}

func (*DocumentAttributeSticker) CRC

func (*DocumentAttributeSticker) Encode

func (e *DocumentAttributeSticker) Encode() []byte

func (*DocumentAttributeSticker) ImplementsDocumentAttribute

func (*DocumentAttributeSticker) ImplementsDocumentAttribute()

type DocumentAttributeVideo

type DocumentAttributeVideo struct {
	RoundMessage      bool  `flag:"0,encoded_in_bitflags"`
	SupportsStreaming bool  `flag:"1,encoded_in_bitflags"`
	Duration          int32 `validate:"required"`
	W                 int32 `validate:"required"`
	H                 int32 `validate:"required"`
	// contains filtered or unexported fields
}

func (*DocumentAttributeVideo) CRC

func (*DocumentAttributeVideo) Encode

func (e *DocumentAttributeVideo) Encode() []byte

func (*DocumentAttributeVideo) ImplementsDocumentAttribute

func (*DocumentAttributeVideo) ImplementsDocumentAttribute()

type DocumentEmpty

type DocumentEmpty struct {
	Id int64 `validate:"required"`
}

func (*DocumentEmpty) CRC

func (*DocumentEmpty) CRC() uint32

func (*DocumentEmpty) Encode

func (e *DocumentEmpty) Encode() []byte

func (*DocumentEmpty) ImplementsDocument

func (*DocumentEmpty) ImplementsDocument()

type DocumentObj

type DocumentObj struct {
	Id            int64               `validate:"required"`
	AccessHash    int64               `validate:"required"`
	FileReference []byte              `validate:"required"`
	Date          int32               `validate:"required"`
	MimeType      string              `validate:"required"`
	Size          int32               `validate:"required"`
	Thumbs        []PhotoSize         `flag:"0"`
	VideoThumbs   []*VideoSize        `flag:"1"`
	DcId          int32               `validate:"required"`
	Attributes    []DocumentAttribute `validate:"required"`
	// contains filtered or unexported fields
}

func (*DocumentObj) CRC

func (*DocumentObj) CRC() uint32

func (*DocumentObj) Encode

func (e *DocumentObj) Encode() []byte

func (*DocumentObj) ImplementsDocument

func (*DocumentObj) ImplementsDocument()

type DraftMessage

type DraftMessage interface {
	serialize.TL
	ImplementsDraftMessage()
}

type DraftMessageEmpty

type DraftMessageEmpty struct {
	Date int32 `flag:"0"`
	// contains filtered or unexported fields
}

func (*DraftMessageEmpty) CRC

func (*DraftMessageEmpty) CRC() uint32

func (*DraftMessageEmpty) Encode

func (e *DraftMessageEmpty) Encode() []byte

func (*DraftMessageEmpty) ImplementsDraftMessage

func (*DraftMessageEmpty) ImplementsDraftMessage()

type DraftMessageObj

type DraftMessageObj struct {
	NoWebpage    bool            `flag:"1,encoded_in_bitflags"`
	ReplyToMsgId int32           `flag:"0"`
	Message      string          `validate:"required"`
	Entities     []MessageEntity `flag:"3"`
	Date         int32           `validate:"required"`
	// contains filtered or unexported fields
}

func (*DraftMessageObj) CRC

func (*DraftMessageObj) CRC() uint32

func (*DraftMessageObj) Encode

func (e *DraftMessageObj) Encode() []byte

func (*DraftMessageObj) ImplementsDraftMessage

func (*DraftMessageObj) ImplementsDraftMessage()

type EmojiKeyword

type EmojiKeyword interface {
	serialize.TL
	ImplementsEmojiKeyword()
}

type EmojiKeywordDeleted

type EmojiKeywordDeleted struct {
	Keyword   string   `validate:"required"`
	Emoticons []string `validate:"required"`
}

func (*EmojiKeywordDeleted) CRC

func (*EmojiKeywordDeleted) CRC() uint32

func (*EmojiKeywordDeleted) Encode

func (e *EmojiKeywordDeleted) Encode() []byte

func (*EmojiKeywordDeleted) ImplementsEmojiKeyword

func (*EmojiKeywordDeleted) ImplementsEmojiKeyword()

type EmojiKeywordObj

type EmojiKeywordObj struct {
	Keyword   string   `validate:"required"`
	Emoticons []string `validate:"required"`
}

func (*EmojiKeywordObj) CRC

func (*EmojiKeywordObj) CRC() uint32

func (*EmojiKeywordObj) Encode

func (e *EmojiKeywordObj) Encode() []byte

func (*EmojiKeywordObj) ImplementsEmojiKeyword

func (*EmojiKeywordObj) ImplementsEmojiKeyword()

type EmojiKeywordsDifference

type EmojiKeywordsDifference struct {
	LangCode    string         `validate:"required"`
	FromVersion int32          `validate:"required"`
	Version     int32          `validate:"required"`
	Keywords    []EmojiKeyword `validate:"required"`
}

func (*EmojiKeywordsDifference) CRC

func (*EmojiKeywordsDifference) Encode

func (e *EmojiKeywordsDifference) Encode() []byte

type EmojiLanguage

type EmojiLanguage struct {
	LangCode string `validate:"required"`
}

func (*EmojiLanguage) CRC

func (e *EmojiLanguage) CRC() uint32

func (*EmojiLanguage) Encode

func (e *EmojiLanguage) Encode() []byte

type EmojiURL

type EmojiURL struct {
	Url string `validate:"required"`
}

func (*EmojiURL) CRC

func (e *EmojiURL) CRC() uint32

func (*EmojiURL) Encode

func (e *EmojiURL) Encode() []byte

type EncryptedChat

type EncryptedChat interface {
	serialize.TL
	ImplementsEncryptedChat()
}

type EncryptedChatDiscarded

type EncryptedChatDiscarded struct {
	Id int32 `validate:"required"`
}

func (*EncryptedChatDiscarded) CRC

func (*EncryptedChatDiscarded) Encode

func (e *EncryptedChatDiscarded) Encode() []byte

func (*EncryptedChatDiscarded) ImplementsEncryptedChat

func (*EncryptedChatDiscarded) ImplementsEncryptedChat()

type EncryptedChatEmpty

type EncryptedChatEmpty struct {
	Id int32 `validate:"required"`
}

func (*EncryptedChatEmpty) CRC

func (*EncryptedChatEmpty) CRC() uint32

func (*EncryptedChatEmpty) Encode

func (e *EncryptedChatEmpty) Encode() []byte

func (*EncryptedChatEmpty) ImplementsEncryptedChat

func (*EncryptedChatEmpty) ImplementsEncryptedChat()

type EncryptedChatObj

type EncryptedChatObj struct {
	Id             int32  `validate:"required"`
	AccessHash     int64  `validate:"required"`
	Date           int32  `validate:"required"`
	AdminId        int32  `validate:"required"`
	ParticipantId  int32  `validate:"required"`
	GAOrB          []byte `validate:"required"`
	KeyFingerprint int64  `validate:"required"`
}

func (*EncryptedChatObj) CRC

func (*EncryptedChatObj) CRC() uint32

func (*EncryptedChatObj) Encode

func (e *EncryptedChatObj) Encode() []byte

func (*EncryptedChatObj) ImplementsEncryptedChat

func (*EncryptedChatObj) ImplementsEncryptedChat()

type EncryptedChatRequested

type EncryptedChatRequested struct {
	FolderId      int32  `flag:"0"`
	Id            int32  `validate:"required"`
	AccessHash    int64  `validate:"required"`
	Date          int32  `validate:"required"`
	AdminId       int32  `validate:"required"`
	ParticipantId int32  `validate:"required"`
	GA            []byte `validate:"required"`
	// contains filtered or unexported fields
}

func (*EncryptedChatRequested) CRC

func (*EncryptedChatRequested) Encode

func (e *EncryptedChatRequested) Encode() []byte

func (*EncryptedChatRequested) ImplementsEncryptedChat

func (*EncryptedChatRequested) ImplementsEncryptedChat()

type EncryptedChatWaiting

type EncryptedChatWaiting struct {
	Id            int32 `validate:"required"`
	AccessHash    int64 `validate:"required"`
	Date          int32 `validate:"required"`
	AdminId       int32 `validate:"required"`
	ParticipantId int32 `validate:"required"`
}

func (*EncryptedChatWaiting) CRC

func (*EncryptedChatWaiting) Encode

func (e *EncryptedChatWaiting) Encode() []byte

func (*EncryptedChatWaiting) ImplementsEncryptedChat

func (*EncryptedChatWaiting) ImplementsEncryptedChat()

type EncryptedFile

type EncryptedFile interface {
	serialize.TL
	ImplementsEncryptedFile()
}

type EncryptedFileEmpty

type EncryptedFileEmpty struct{}

func (*EncryptedFileEmpty) CRC

func (*EncryptedFileEmpty) CRC() uint32

func (*EncryptedFileEmpty) Encode

func (e *EncryptedFileEmpty) Encode() []byte

func (*EncryptedFileEmpty) ImplementsEncryptedFile

func (*EncryptedFileEmpty) ImplementsEncryptedFile()

type EncryptedFileObj

type EncryptedFileObj struct {
	Id             int64 `validate:"required"`
	AccessHash     int64 `validate:"required"`
	Size           int32 `validate:"required"`
	DcId           int32 `validate:"required"`
	KeyFingerprint int32 `validate:"required"`
}

func (*EncryptedFileObj) CRC

func (*EncryptedFileObj) CRC() uint32

func (*EncryptedFileObj) Encode

func (e *EncryptedFileObj) Encode() []byte

func (*EncryptedFileObj) ImplementsEncryptedFile

func (*EncryptedFileObj) ImplementsEncryptedFile()

type EncryptedMessage

type EncryptedMessage interface {
	serialize.TL
	ImplementsEncryptedMessage()
}

type EncryptedMessageObj

type EncryptedMessageObj struct {
	RandomId int64         `validate:"required"`
	ChatId   int32         `validate:"required"`
	Date     int32         `validate:"required"`
	Bytes    []byte        `validate:"required"`
	File     EncryptedFile `validate:"required"`
}

func (*EncryptedMessageObj) CRC

func (*EncryptedMessageObj) CRC() uint32

func (*EncryptedMessageObj) Encode

func (e *EncryptedMessageObj) Encode() []byte

func (*EncryptedMessageObj) ImplementsEncryptedMessage

func (*EncryptedMessageObj) ImplementsEncryptedMessage()

type EncryptedMessageService

type EncryptedMessageService struct {
	RandomId int64  `validate:"required"`
	ChatId   int32  `validate:"required"`
	Date     int32  `validate:"required"`
	Bytes    []byte `validate:"required"`
}

func (*EncryptedMessageService) CRC

func (*EncryptedMessageService) Encode

func (e *EncryptedMessageService) Encode() []byte

func (*EncryptedMessageService) ImplementsEncryptedMessage

func (*EncryptedMessageService) ImplementsEncryptedMessage()

type Error

type Error struct {
	Code int32  `validate:"required"`
	Text string `validate:"required"`
}

func (*Error) CRC

func (e *Error) CRC() uint32

func (*Error) Encode

func (e *Error) Encode() []byte

type ExportedChatInvite

type ExportedChatInvite interface {
	serialize.TL
	ImplementsExportedChatInvite()
}
type ExportedMessageLink struct {
	Link string `validate:"required"`
	Html string `validate:"required"`
}

func (*ExportedMessageLink) CRC

func (e *ExportedMessageLink) CRC() uint32

func (*ExportedMessageLink) Encode

func (e *ExportedMessageLink) Encode() []byte

type FileHash

type FileHash struct {
	Offset int32  `validate:"required"`
	Limit  int32  `validate:"required"`
	Hash   []byte `validate:"required"`
}

func (*FileHash) CRC

func (e *FileHash) CRC() uint32

func (*FileHash) Encode

func (e *FileHash) Encode() []byte

type FileLocation

type FileLocation struct {
	VolumeId int64 `validate:"required"`
	LocalId  int32 `validate:"required"`
}

func (*FileLocation) CRC

func (e *FileLocation) CRC() uint32

func (*FileLocation) Encode

func (e *FileLocation) Encode() []byte

type Folder

type Folder struct {
	AutofillNewBroadcasts     bool      `flag:"0,encoded_in_bitflags"`
	AutofillPublicGroups      bool      `flag:"1,encoded_in_bitflags"`
	AutofillNewCorrespondents bool      `flag:"2,encoded_in_bitflags"`
	Id                        int32     `validate:"required"`
	Title                     string    `validate:"required"`
	Photo                     ChatPhoto `flag:"3"`
	// contains filtered or unexported fields
}

func (*Folder) CRC

func (e *Folder) CRC() uint32

func (*Folder) Encode

func (e *Folder) Encode() []byte

type FolderPeer

type FolderPeer struct {
	Peer     Peer  `validate:"required"`
	FolderId int32 `validate:"required"`
}

func (*FolderPeer) CRC

func (e *FolderPeer) CRC() uint32

func (*FolderPeer) Encode

func (e *FolderPeer) Encode() []byte

type FoldersDeleteFolderParams

type FoldersDeleteFolderParams struct {
	FolderId int32 `validate:"required"`
}

func (*FoldersDeleteFolderParams) CRC

func (*FoldersDeleteFolderParams) Encode

func (e *FoldersDeleteFolderParams) Encode() []byte

type FoldersEditPeerFoldersParams

type FoldersEditPeerFoldersParams struct {
	FolderPeers []*InputFolderPeer `validate:"required"`
}

func (*FoldersEditPeerFoldersParams) CRC

func (*FoldersEditPeerFoldersParams) Encode

func (e *FoldersEditPeerFoldersParams) Encode() []byte

type Game

type Game struct {
	Id          int64    `validate:"required"`
	AccessHash  int64    `validate:"required"`
	ShortName   string   `validate:"required"`
	Title       string   `validate:"required"`
	Description string   `validate:"required"`
	Photo       Photo    `validate:"required"`
	Document    Document `flag:"0"`
	// contains filtered or unexported fields
}

func (*Game) CRC

func (e *Game) CRC() uint32

func (*Game) Encode

func (e *Game) Encode() []byte

type GeoPoint

type GeoPoint interface {
	serialize.TL
	ImplementsGeoPoint()
}

type GeoPointEmpty

type GeoPointEmpty struct{}

func (*GeoPointEmpty) CRC

func (*GeoPointEmpty) CRC() uint32

func (*GeoPointEmpty) Encode

func (e *GeoPointEmpty) Encode() []byte

func (*GeoPointEmpty) ImplementsGeoPoint

func (*GeoPointEmpty) ImplementsGeoPoint()

type GeoPointObj

type GeoPointObj struct {
	Long       float64 `validate:"required"`
	Lat        float64 `validate:"required"`
	AccessHash int64   `validate:"required"`
}

func (*GeoPointObj) CRC

func (*GeoPointObj) CRC() uint32

func (*GeoPointObj) Encode

func (e *GeoPointObj) Encode() []byte

func (*GeoPointObj) ImplementsGeoPoint

func (*GeoPointObj) ImplementsGeoPoint()

type GlobalPrivacySettings

type GlobalPrivacySettings struct {
	ArchiveAndMuteNewNoncontactPeers bool `flag:"0"`
	// contains filtered or unexported fields
}

func (*GlobalPrivacySettings) CRC

func (e *GlobalPrivacySettings) CRC() uint32

func (*GlobalPrivacySettings) Encode

func (e *GlobalPrivacySettings) Encode() []byte

type HelpAcceptTermsOfServiceParams

type HelpAcceptTermsOfServiceParams struct {
	Id *DataJSON `validate:"required"`
}

func (*HelpAcceptTermsOfServiceParams) CRC

func (*HelpAcceptTermsOfServiceParams) Encode

func (e *HelpAcceptTermsOfServiceParams) Encode() []byte

type HelpAppUpdate

type HelpAppUpdate interface {
	serialize.TL
	ImplementsHelpAppUpdate()
}

type HelpAppUpdateObj

type HelpAppUpdateObj struct {
	CanNotSkip bool            `flag:"0,encoded_in_bitflags"`
	Id         int32           `validate:"required"`
	Version    string          `validate:"required"`
	Text       string          `validate:"required"`
	Entities   []MessageEntity `validate:"required"`
	Document   Document        `flag:"1"`
	Url        string          `flag:"2"`
	// contains filtered or unexported fields
}

func (*HelpAppUpdateObj) CRC

func (*HelpAppUpdateObj) CRC() uint32

func (*HelpAppUpdateObj) Encode

func (e *HelpAppUpdateObj) Encode() []byte

func (*HelpAppUpdateObj) ImplementsHelpAppUpdate

func (*HelpAppUpdateObj) ImplementsHelpAppUpdate()

type HelpConfigSimple

type HelpConfigSimple struct {
	Date    int32              `validate:"required"`
	Expires int32              `validate:"required"`
	Rules   []*AccessPointRule `validate:"required"`
}

func (*HelpConfigSimple) CRC

func (e *HelpConfigSimple) CRC() uint32

func (*HelpConfigSimple) Encode

func (e *HelpConfigSimple) Encode() []byte

type HelpDeepLinkInfo

type HelpDeepLinkInfo interface {
	serialize.TL
	ImplementsHelpDeepLinkInfo()
}

type HelpDeepLinkInfoEmpty

type HelpDeepLinkInfoEmpty struct{}

func (*HelpDeepLinkInfoEmpty) CRC

func (*HelpDeepLinkInfoEmpty) Encode

func (e *HelpDeepLinkInfoEmpty) Encode() []byte

func (*HelpDeepLinkInfoEmpty) ImplementsHelpDeepLinkInfo

func (*HelpDeepLinkInfoEmpty) ImplementsHelpDeepLinkInfo()

type HelpDeepLinkInfoObj

type HelpDeepLinkInfoObj struct {
	UpdateApp bool            `flag:"0,encoded_in_bitflags"`
	Message   string          `validate:"required"`
	Entities  []MessageEntity `flag:"1"`
	// contains filtered or unexported fields
}

func (*HelpDeepLinkInfoObj) CRC

func (*HelpDeepLinkInfoObj) CRC() uint32

func (*HelpDeepLinkInfoObj) Encode

func (e *HelpDeepLinkInfoObj) Encode() []byte

func (*HelpDeepLinkInfoObj) ImplementsHelpDeepLinkInfo

func (*HelpDeepLinkInfoObj) ImplementsHelpDeepLinkInfo()

type HelpDismissSuggestionParams

type HelpDismissSuggestionParams struct {
	Suggestion string `validate:"required"`
}

func (*HelpDismissSuggestionParams) CRC

func (*HelpDismissSuggestionParams) Encode

func (e *HelpDismissSuggestionParams) Encode() []byte

type HelpEditUserInfoParams

type HelpEditUserInfoParams struct {
	UserId   InputUser       `validate:"required"`
	Message  string          `validate:"required"`
	Entities []MessageEntity `validate:"required"`
}

func (*HelpEditUserInfoParams) CRC

func (e *HelpEditUserInfoParams) CRC() uint32

func (*HelpEditUserInfoParams) Encode

func (e *HelpEditUserInfoParams) Encode() []byte

type HelpGetAppChangelogParams

type HelpGetAppChangelogParams struct {
	PrevAppVersion string `validate:"required"`
}

func (*HelpGetAppChangelogParams) CRC

func (*HelpGetAppChangelogParams) Encode

func (e *HelpGetAppChangelogParams) Encode() []byte

type HelpGetAppConfigParams

type HelpGetAppConfigParams struct{}

func (*HelpGetAppConfigParams) CRC

func (e *HelpGetAppConfigParams) CRC() uint32

func (*HelpGetAppConfigParams) Encode

func (e *HelpGetAppConfigParams) Encode() []byte

type HelpGetAppUpdateParams

type HelpGetAppUpdateParams struct {
	Source string `validate:"required"`
}

func (*HelpGetAppUpdateParams) CRC

func (e *HelpGetAppUpdateParams) CRC() uint32

func (*HelpGetAppUpdateParams) Encode

func (e *HelpGetAppUpdateParams) Encode() []byte

type HelpGetCdnConfigParams

type HelpGetCdnConfigParams struct{}

func (*HelpGetCdnConfigParams) CRC

func (e *HelpGetCdnConfigParams) CRC() uint32

func (*HelpGetCdnConfigParams) Encode

func (e *HelpGetCdnConfigParams) Encode() []byte

type HelpGetConfigParams

type HelpGetConfigParams struct{}

func (*HelpGetConfigParams) CRC

func (e *HelpGetConfigParams) CRC() uint32

func (*HelpGetConfigParams) Encode

func (e *HelpGetConfigParams) Encode() []byte

type HelpGetDeepLinkInfoParams

type HelpGetDeepLinkInfoParams struct {
	Path string `validate:"required"`
}

func (*HelpGetDeepLinkInfoParams) CRC

func (*HelpGetDeepLinkInfoParams) Encode

func (e *HelpGetDeepLinkInfoParams) Encode() []byte

type HelpGetInviteTextParams

type HelpGetInviteTextParams struct{}

func (*HelpGetInviteTextParams) CRC

func (*HelpGetInviteTextParams) Encode

func (e *HelpGetInviteTextParams) Encode() []byte

type HelpGetNearestDcParams

type HelpGetNearestDcParams struct{}

func (*HelpGetNearestDcParams) CRC

func (e *HelpGetNearestDcParams) CRC() uint32

func (*HelpGetNearestDcParams) Encode

func (e *HelpGetNearestDcParams) Encode() []byte

type HelpGetPassportConfigParams

type HelpGetPassportConfigParams struct {
	Hash int32 `validate:"required"`
}

func (*HelpGetPassportConfigParams) CRC

func (*HelpGetPassportConfigParams) Encode

func (e *HelpGetPassportConfigParams) Encode() []byte

type HelpGetPromoDataParams

type HelpGetPromoDataParams struct{}

func (*HelpGetPromoDataParams) CRC

func (e *HelpGetPromoDataParams) CRC() uint32

func (*HelpGetPromoDataParams) Encode

func (e *HelpGetPromoDataParams) Encode() []byte

type HelpGetRecentMeUrlsParams

type HelpGetRecentMeUrlsParams struct {
	Referer string `validate:"required"`
}

func (*HelpGetRecentMeUrlsParams) CRC

func (*HelpGetRecentMeUrlsParams) Encode

func (e *HelpGetRecentMeUrlsParams) Encode() []byte

type HelpGetSupportNameParams

type HelpGetSupportNameParams struct{}

func (*HelpGetSupportNameParams) CRC

func (*HelpGetSupportNameParams) Encode

func (e *HelpGetSupportNameParams) Encode() []byte

type HelpGetSupportParams

type HelpGetSupportParams struct{}

func (*HelpGetSupportParams) CRC

func (e *HelpGetSupportParams) CRC() uint32

func (*HelpGetSupportParams) Encode

func (e *HelpGetSupportParams) Encode() []byte

type HelpGetTermsOfServiceUpdateParams

type HelpGetTermsOfServiceUpdateParams struct{}

func (*HelpGetTermsOfServiceUpdateParams) CRC

func (*HelpGetTermsOfServiceUpdateParams) Encode

type HelpGetUserInfoParams

type HelpGetUserInfoParams struct {
	UserId InputUser `validate:"required"`
}

func (*HelpGetUserInfoParams) CRC

func (e *HelpGetUserInfoParams) CRC() uint32

func (*HelpGetUserInfoParams) Encode

func (e *HelpGetUserInfoParams) Encode() []byte

type HelpHidePromoDataParams

type HelpHidePromoDataParams struct {
	Peer InputPeer `validate:"required"`
}

func (*HelpHidePromoDataParams) CRC

func (*HelpHidePromoDataParams) Encode

func (e *HelpHidePromoDataParams) Encode() []byte

type HelpInviteText

type HelpInviteText struct {
	Message string `validate:"required"`
}

func (*HelpInviteText) CRC

func (e *HelpInviteText) CRC() uint32

func (*HelpInviteText) Encode

func (e *HelpInviteText) Encode() []byte

type HelpNoAppUpdate

type HelpNoAppUpdate struct{}

func (*HelpNoAppUpdate) CRC

func (*HelpNoAppUpdate) CRC() uint32

func (*HelpNoAppUpdate) Encode

func (e *HelpNoAppUpdate) Encode() []byte

func (*HelpNoAppUpdate) ImplementsHelpAppUpdate

func (*HelpNoAppUpdate) ImplementsHelpAppUpdate()

type HelpPassportConfig

type HelpPassportConfig interface {
	serialize.TL
	ImplementsHelpPassportConfig()
}

type HelpPassportConfigNotModified

type HelpPassportConfigNotModified struct{}

func (*HelpPassportConfigNotModified) CRC

func (*HelpPassportConfigNotModified) Encode

func (e *HelpPassportConfigNotModified) Encode() []byte

func (*HelpPassportConfigNotModified) ImplementsHelpPassportConfig

func (*HelpPassportConfigNotModified) ImplementsHelpPassportConfig()

type HelpPassportConfigObj

type HelpPassportConfigObj struct {
	Hash           int32     `validate:"required"`
	CountriesLangs *DataJSON `validate:"required"`
}

func (*HelpPassportConfigObj) CRC

func (*HelpPassportConfigObj) Encode

func (e *HelpPassportConfigObj) Encode() []byte

func (*HelpPassportConfigObj) ImplementsHelpPassportConfig

func (*HelpPassportConfigObj) ImplementsHelpPassportConfig()

type HelpPromoData

type HelpPromoData interface {
	serialize.TL
	ImplementsHelpPromoData()
}

type HelpPromoDataEmpty

type HelpPromoDataEmpty struct {
	Expires int32 `validate:"required"`
}

func (*HelpPromoDataEmpty) CRC

func (*HelpPromoDataEmpty) CRC() uint32

func (*HelpPromoDataEmpty) Encode

func (e *HelpPromoDataEmpty) Encode() []byte

func (*HelpPromoDataEmpty) ImplementsHelpPromoData

func (*HelpPromoDataEmpty) ImplementsHelpPromoData()

type HelpPromoDataObj

type HelpPromoDataObj struct {
	Proxy      bool   `flag:"0,encoded_in_bitflags"`
	Expires    int32  `validate:"required"`
	Peer       Peer   `validate:"required"`
	Chats      []Chat `validate:"required"`
	Users      []User `validate:"required"`
	PsaType    string `flag:"1"`
	PsaMessage string `flag:"2"`
	// contains filtered or unexported fields
}

func (*HelpPromoDataObj) CRC

func (*HelpPromoDataObj) CRC() uint32

func (*HelpPromoDataObj) Encode

func (e *HelpPromoDataObj) Encode() []byte

func (*HelpPromoDataObj) ImplementsHelpPromoData

func (*HelpPromoDataObj) ImplementsHelpPromoData()

type HelpRecentMeUrls

type HelpRecentMeUrls struct {
	Urls  []RecentMeUrl `validate:"required"`
	Chats []Chat        `validate:"required"`
	Users []User        `validate:"required"`
}

func (*HelpRecentMeUrls) CRC

func (e *HelpRecentMeUrls) CRC() uint32

func (*HelpRecentMeUrls) Encode

func (e *HelpRecentMeUrls) Encode() []byte

type HelpSaveAppLogParams

type HelpSaveAppLogParams struct {
	Events []*InputAppEvent `validate:"required"`
}

func (*HelpSaveAppLogParams) CRC

func (e *HelpSaveAppLogParams) CRC() uint32

func (*HelpSaveAppLogParams) Encode

func (e *HelpSaveAppLogParams) Encode() []byte

type HelpSetBotUpdatesStatusParams

type HelpSetBotUpdatesStatusParams struct {
	PendingUpdatesCount int32  `validate:"required"`
	Message             string `validate:"required"`
}

func (*HelpSetBotUpdatesStatusParams) CRC

func (*HelpSetBotUpdatesStatusParams) Encode

func (e *HelpSetBotUpdatesStatusParams) Encode() []byte

type HelpSupport

type HelpSupport struct {
	PhoneNumber string `validate:"required"`
	User        User   `validate:"required"`
}

func (*HelpSupport) CRC

func (e *HelpSupport) CRC() uint32

func (*HelpSupport) Encode

func (e *HelpSupport) Encode() []byte

type HelpSupportName

type HelpSupportName struct {
	Name string `validate:"required"`
}

func (*HelpSupportName) CRC

func (e *HelpSupportName) CRC() uint32

func (*HelpSupportName) Encode

func (e *HelpSupportName) Encode() []byte

type HelpTermsOfService

type HelpTermsOfService struct {
	Popup         bool            `flag:"0,encoded_in_bitflags"`
	Id            *DataJSON       `validate:"required"`
	Text          string          `validate:"required"`
	Entities      []MessageEntity `validate:"required"`
	MinAgeConfirm int32           `flag:"1"`
	// contains filtered or unexported fields
}

func (*HelpTermsOfService) CRC

func (e *HelpTermsOfService) CRC() uint32

func (*HelpTermsOfService) Encode

func (e *HelpTermsOfService) Encode() []byte

type HelpTermsOfServiceUpdate

type HelpTermsOfServiceUpdate interface {
	serialize.TL
	ImplementsHelpTermsOfServiceUpdate()
}

type HelpTermsOfServiceUpdateEmpty

type HelpTermsOfServiceUpdateEmpty struct {
	Expires int32 `validate:"required"`
}

func (*HelpTermsOfServiceUpdateEmpty) CRC

func (*HelpTermsOfServiceUpdateEmpty) Encode

func (e *HelpTermsOfServiceUpdateEmpty) Encode() []byte

func (*HelpTermsOfServiceUpdateEmpty) ImplementsHelpTermsOfServiceUpdate

func (*HelpTermsOfServiceUpdateEmpty) ImplementsHelpTermsOfServiceUpdate()

type HelpTermsOfServiceUpdateObj

type HelpTermsOfServiceUpdateObj struct {
	Expires        int32               `validate:"required"`
	TermsOfService *HelpTermsOfService `validate:"required"`
}

func (*HelpTermsOfServiceUpdateObj) CRC

func (*HelpTermsOfServiceUpdateObj) Encode

func (e *HelpTermsOfServiceUpdateObj) Encode() []byte

func (*HelpTermsOfServiceUpdateObj) ImplementsHelpTermsOfServiceUpdate

func (*HelpTermsOfServiceUpdateObj) ImplementsHelpTermsOfServiceUpdate()

type HelpUserInfo

type HelpUserInfo interface {
	serialize.TL
	ImplementsHelpUserInfo()
}

type HelpUserInfoEmpty

type HelpUserInfoEmpty struct{}

func (*HelpUserInfoEmpty) CRC

func (*HelpUserInfoEmpty) CRC() uint32

func (*HelpUserInfoEmpty) Encode

func (e *HelpUserInfoEmpty) Encode() []byte

func (*HelpUserInfoEmpty) ImplementsHelpUserInfo

func (*HelpUserInfoEmpty) ImplementsHelpUserInfo()

type HelpUserInfoObj

type HelpUserInfoObj struct {
	Message  string          `validate:"required"`
	Entities []MessageEntity `validate:"required"`
	Author   string          `validate:"required"`
	Date     int32           `validate:"required"`
}

func (*HelpUserInfoObj) CRC

func (*HelpUserInfoObj) CRC() uint32

func (*HelpUserInfoObj) Encode

func (e *HelpUserInfoObj) Encode() []byte

func (*HelpUserInfoObj) ImplementsHelpUserInfo

func (*HelpUserInfoObj) ImplementsHelpUserInfo()

type HighScore

type HighScore struct {
	Pos    int32 `validate:"required"`
	UserId int32 `validate:"required"`
	Score  int32 `validate:"required"`
}

func (*HighScore) CRC

func (e *HighScore) CRC() uint32

func (*HighScore) Encode

func (e *HighScore) Encode() []byte

type ImportedContact

type ImportedContact struct {
	UserId   int32 `validate:"required"`
	ClientId int64 `validate:"required"`
}

func (*ImportedContact) CRC

func (e *ImportedContact) CRC() uint32

func (*ImportedContact) Encode

func (e *ImportedContact) Encode() []byte

type InitConnectionParams

type InitConnectionParams struct {
	ApiID          int32
	DeviceModel    string
	SystemVersion  string
	AppVersion     string
	SystemLangCode string
	LangPack       string
	LangCode       string
	Proxy          *InputClientProxy `flag:"0"`
	Params         JSONValue         `flag:"1"`
	Query          serialize.TLEncoder
	// contains filtered or unexported fields
}

func (*InitConnectionParams) CRC

func (_ *InitConnectionParams) CRC() uint32

func (*InitConnectionParams) DecodeFrom

func (t *InitConnectionParams) DecodeFrom(d *serialize.Decoder)

func (*InitConnectionParams) Encode

func (t *InitConnectionParams) Encode() []byte

type InlineBotSwitchPM

type InlineBotSwitchPM struct {
	Text       string `validate:"required"`
	StartParam string `validate:"required"`
}

func (*InlineBotSwitchPM) CRC

func (e *InlineBotSwitchPM) CRC() uint32

func (*InlineBotSwitchPM) Encode

func (e *InlineBotSwitchPM) Encode() []byte

type InputAppEvent

type InputAppEvent struct {
	Time float64   `validate:"required"`
	Type string    `validate:"required"`
	Peer int64     `validate:"required"`
	Data JSONValue `validate:"required"`
}

func (*InputAppEvent) CRC

func (e *InputAppEvent) CRC() uint32

func (*InputAppEvent) Encode

func (e *InputAppEvent) Encode() []byte

type InputBotInlineMessage

type InputBotInlineMessage interface {
	serialize.TL
	ImplementsInputBotInlineMessage()
}

type InputBotInlineMessageGame

type InputBotInlineMessageGame struct {
	ReplyMarkup ReplyMarkup `flag:"2"`
	// contains filtered or unexported fields
}

func (*InputBotInlineMessageGame) CRC

func (*InputBotInlineMessageGame) Encode

func (e *InputBotInlineMessageGame) Encode() []byte

func (*InputBotInlineMessageGame) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageGame) ImplementsInputBotInlineMessage()

type InputBotInlineMessageID

type InputBotInlineMessageID struct {
	DcId       int32 `validate:"required"`
	Id         int64 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputBotInlineMessageID) CRC

func (*InputBotInlineMessageID) Encode

func (e *InputBotInlineMessageID) Encode() []byte

type InputBotInlineMessageMediaAuto

type InputBotInlineMessageMediaAuto struct {
	Message     string          `validate:"required"`
	Entities    []MessageEntity `flag:"1"`
	ReplyMarkup ReplyMarkup     `flag:"2"`
	// contains filtered or unexported fields
}

func (*InputBotInlineMessageMediaAuto) CRC

func (*InputBotInlineMessageMediaAuto) Encode

func (e *InputBotInlineMessageMediaAuto) Encode() []byte

func (*InputBotInlineMessageMediaAuto) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageMediaAuto) ImplementsInputBotInlineMessage()

type InputBotInlineMessageMediaContact

type InputBotInlineMessageMediaContact struct {
	PhoneNumber string      `validate:"required"`
	FirstName   string      `validate:"required"`
	LastName    string      `validate:"required"`
	Vcard       string      `validate:"required"`
	ReplyMarkup ReplyMarkup `flag:"2"`
	// contains filtered or unexported fields
}

func (*InputBotInlineMessageMediaContact) CRC

func (*InputBotInlineMessageMediaContact) Encode

func (*InputBotInlineMessageMediaContact) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageMediaContact) ImplementsInputBotInlineMessage()

type InputBotInlineMessageMediaGeo

type InputBotInlineMessageMediaGeo struct {
	GeoPoint    InputGeoPoint `validate:"required"`
	Period      int32         `validate:"required"`
	ReplyMarkup ReplyMarkup   `flag:"2"`
	// contains filtered or unexported fields
}

func (*InputBotInlineMessageMediaGeo) CRC

func (*InputBotInlineMessageMediaGeo) Encode

func (e *InputBotInlineMessageMediaGeo) Encode() []byte

func (*InputBotInlineMessageMediaGeo) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageMediaGeo) ImplementsInputBotInlineMessage()

type InputBotInlineMessageMediaVenue

type InputBotInlineMessageMediaVenue struct {
	GeoPoint    InputGeoPoint `validate:"required"`
	Title       string        `validate:"required"`
	Address     string        `validate:"required"`
	Provider    string        `validate:"required"`
	VenueId     string        `validate:"required"`
	VenueType   string        `validate:"required"`
	ReplyMarkup ReplyMarkup   `flag:"2"`
	// contains filtered or unexported fields
}

func (*InputBotInlineMessageMediaVenue) CRC

func (*InputBotInlineMessageMediaVenue) Encode

func (e *InputBotInlineMessageMediaVenue) Encode() []byte

func (*InputBotInlineMessageMediaVenue) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageMediaVenue) ImplementsInputBotInlineMessage()

type InputBotInlineMessageText

type InputBotInlineMessageText struct {
	NoWebpage   bool            `flag:"0,encoded_in_bitflags"`
	Message     string          `validate:"required"`
	Entities    []MessageEntity `flag:"1"`
	ReplyMarkup ReplyMarkup     `flag:"2"`
	// contains filtered or unexported fields
}

func (*InputBotInlineMessageText) CRC

func (*InputBotInlineMessageText) Encode

func (e *InputBotInlineMessageText) Encode() []byte

func (*InputBotInlineMessageText) ImplementsInputBotInlineMessage

func (*InputBotInlineMessageText) ImplementsInputBotInlineMessage()

type InputBotInlineResult

type InputBotInlineResult interface {
	serialize.TL
	ImplementsInputBotInlineResult()
}

type InputBotInlineResultDocument

type InputBotInlineResultDocument struct {
	Id          string                `validate:"required"`
	Type        string                `validate:"required"`
	Title       string                `flag:"1"`
	Description string                `flag:"2"`
	Document    InputDocument         `validate:"required"`
	SendMessage InputBotInlineMessage `validate:"required"`
	// contains filtered or unexported fields
}

func (*InputBotInlineResultDocument) CRC

func (*InputBotInlineResultDocument) Encode

func (e *InputBotInlineResultDocument) Encode() []byte

func (*InputBotInlineResultDocument) ImplementsInputBotInlineResult

func (*InputBotInlineResultDocument) ImplementsInputBotInlineResult()

type InputBotInlineResultGame

type InputBotInlineResultGame struct {
	Id          string                `validate:"required"`
	ShortName   string                `validate:"required"`
	SendMessage InputBotInlineMessage `validate:"required"`
}

func (*InputBotInlineResultGame) CRC

func (*InputBotInlineResultGame) Encode

func (e *InputBotInlineResultGame) Encode() []byte

func (*InputBotInlineResultGame) ImplementsInputBotInlineResult

func (*InputBotInlineResultGame) ImplementsInputBotInlineResult()

type InputBotInlineResultObj

type InputBotInlineResultObj struct {
	Id          string                `validate:"required"`
	Type        string                `validate:"required"`
	Title       string                `flag:"1"`
	Description string                `flag:"2"`
	Url         string                `flag:"3"`
	Thumb       *InputWebDocument     `flag:"4"`
	Content     *InputWebDocument     `flag:"5"`
	SendMessage InputBotInlineMessage `validate:"required"`
	// contains filtered or unexported fields
}

func (*InputBotInlineResultObj) CRC

func (*InputBotInlineResultObj) Encode

func (e *InputBotInlineResultObj) Encode() []byte

func (*InputBotInlineResultObj) ImplementsInputBotInlineResult

func (*InputBotInlineResultObj) ImplementsInputBotInlineResult()

type InputBotInlineResultPhoto

type InputBotInlineResultPhoto struct {
	Id          string                `validate:"required"`
	Type        string                `validate:"required"`
	Photo       InputPhoto            `validate:"required"`
	SendMessage InputBotInlineMessage `validate:"required"`
}

func (*InputBotInlineResultPhoto) CRC

func (*InputBotInlineResultPhoto) Encode

func (e *InputBotInlineResultPhoto) Encode() []byte

func (*InputBotInlineResultPhoto) ImplementsInputBotInlineResult

func (*InputBotInlineResultPhoto) ImplementsInputBotInlineResult()

type InputChannel

type InputChannel interface {
	serialize.TL
	ImplementsInputChannel()
}

type InputChannelEmpty

type InputChannelEmpty struct{}

func (*InputChannelEmpty) CRC

func (*InputChannelEmpty) CRC() uint32

func (*InputChannelEmpty) Encode

func (e *InputChannelEmpty) Encode() []byte

func (*InputChannelEmpty) ImplementsInputChannel

func (*InputChannelEmpty) ImplementsInputChannel()

type InputChannelFromMessage

type InputChannelFromMessage struct {
	Peer      InputPeer `validate:"required"`
	MsgId     int32     `validate:"required"`
	ChannelId int32     `validate:"required"`
}

func (*InputChannelFromMessage) CRC

func (*InputChannelFromMessage) Encode

func (e *InputChannelFromMessage) Encode() []byte

func (*InputChannelFromMessage) ImplementsInputChannel

func (*InputChannelFromMessage) ImplementsInputChannel()

type InputChannelObj

type InputChannelObj struct {
	ChannelId  int32 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputChannelObj) CRC

func (*InputChannelObj) CRC() uint32

func (*InputChannelObj) Encode

func (e *InputChannelObj) Encode() []byte

func (*InputChannelObj) ImplementsInputChannel

func (*InputChannelObj) ImplementsInputChannel()

type InputChatPhoto

type InputChatPhoto interface {
	serialize.TL
	ImplementsInputChatPhoto()
}

type InputChatPhotoEmpty

type InputChatPhotoEmpty struct{}

func (*InputChatPhotoEmpty) CRC

func (*InputChatPhotoEmpty) CRC() uint32

func (*InputChatPhotoEmpty) Encode

func (e *InputChatPhotoEmpty) Encode() []byte

func (*InputChatPhotoEmpty) ImplementsInputChatPhoto

func (*InputChatPhotoEmpty) ImplementsInputChatPhoto()

type InputChatPhotoObj

type InputChatPhotoObj struct {
	Id InputPhoto `validate:"required"`
}

func (*InputChatPhotoObj) CRC

func (*InputChatPhotoObj) CRC() uint32

func (*InputChatPhotoObj) Encode

func (e *InputChatPhotoObj) Encode() []byte

func (*InputChatPhotoObj) ImplementsInputChatPhoto

func (*InputChatPhotoObj) ImplementsInputChatPhoto()

type InputChatUploadedPhoto

type InputChatUploadedPhoto struct {
	File         InputFile `flag:"0"`
	Video        InputFile `flag:"1"`
	VideoStartTs float64   `flag:"2"`
	// contains filtered or unexported fields
}

func (*InputChatUploadedPhoto) CRC

func (*InputChatUploadedPhoto) Encode

func (e *InputChatUploadedPhoto) Encode() []byte

func (*InputChatUploadedPhoto) ImplementsInputChatPhoto

func (*InputChatUploadedPhoto) ImplementsInputChatPhoto()

type InputCheckPasswordEmpty

type InputCheckPasswordEmpty struct{}

func (*InputCheckPasswordEmpty) CRC

func (*InputCheckPasswordEmpty) Encode

func (e *InputCheckPasswordEmpty) Encode() []byte

func (*InputCheckPasswordEmpty) ImplementsInputCheckPasswordSRP

func (*InputCheckPasswordEmpty) ImplementsInputCheckPasswordSRP()

type InputCheckPasswordSRP

type InputCheckPasswordSRP interface {
	serialize.TL
	ImplementsInputCheckPasswordSRP()
}

func GetInputCheckPassword

func GetInputCheckPassword(password string, accountPassword *AccountPassword) (InputCheckPasswordSRP, error)

type InputCheckPasswordSRPObj

type InputCheckPasswordSRPObj struct {
	SrpId int64  `validate:"required"`
	A     []byte `validate:"required"`
	M1    []byte `validate:"required"`
}

func (*InputCheckPasswordSRPObj) CRC

func (*InputCheckPasswordSRPObj) Encode

func (e *InputCheckPasswordSRPObj) Encode() []byte

func (*InputCheckPasswordSRPObj) ImplementsInputCheckPasswordSRP

func (*InputCheckPasswordSRPObj) ImplementsInputCheckPasswordSRP()

type InputClientProxy

type InputClientProxy struct {
	Address string `validate:"required"`
	Port    int32  `validate:"required"`
}

func (*InputClientProxy) CRC

func (e *InputClientProxy) CRC() uint32

func (*InputClientProxy) Encode

func (e *InputClientProxy) Encode() []byte

type InputContact

type InputContact struct {
	ClientId  int64  `validate:"required"`
	Phone     string `validate:"required"`
	FirstName string `validate:"required"`
	LastName  string `validate:"required"`
}

func (*InputContact) CRC

func (e *InputContact) CRC() uint32

func (*InputContact) Encode

func (e *InputContact) Encode() []byte

type InputDialogPeer

type InputDialogPeer interface {
	serialize.TL
	ImplementsInputDialogPeer()
}

type InputDialogPeerFolder

type InputDialogPeerFolder struct {
	FolderId int32 `validate:"required"`
}

func (*InputDialogPeerFolder) CRC

func (*InputDialogPeerFolder) Encode

func (e *InputDialogPeerFolder) Encode() []byte

func (*InputDialogPeerFolder) ImplementsInputDialogPeer

func (*InputDialogPeerFolder) ImplementsInputDialogPeer()

type InputDialogPeerObj

type InputDialogPeerObj struct {
	Peer InputPeer `validate:"required"`
}

func (*InputDialogPeerObj) CRC

func (*InputDialogPeerObj) CRC() uint32

func (*InputDialogPeerObj) Encode

func (e *InputDialogPeerObj) Encode() []byte

func (*InputDialogPeerObj) ImplementsInputDialogPeer

func (*InputDialogPeerObj) ImplementsInputDialogPeer()

type InputDocument

type InputDocument interface {
	serialize.TL
	ImplementsInputDocument()
}

type InputDocumentEmpty

type InputDocumentEmpty struct{}

func (*InputDocumentEmpty) CRC

func (*InputDocumentEmpty) CRC() uint32

func (*InputDocumentEmpty) Encode

func (e *InputDocumentEmpty) Encode() []byte

func (*InputDocumentEmpty) ImplementsInputDocument

func (*InputDocumentEmpty) ImplementsInputDocument()

type InputDocumentFileLocation

type InputDocumentFileLocation struct {
	Id            int64  `validate:"required"`
	AccessHash    int64  `validate:"required"`
	FileReference []byte `validate:"required"`
	ThumbSize     string `validate:"required"`
}

func (*InputDocumentFileLocation) CRC

func (*InputDocumentFileLocation) Encode

func (e *InputDocumentFileLocation) Encode() []byte

func (*InputDocumentFileLocation) ImplementsInputFileLocation

func (*InputDocumentFileLocation) ImplementsInputFileLocation()

type InputDocumentObj

type InputDocumentObj struct {
	Id            int64  `validate:"required"`
	AccessHash    int64  `validate:"required"`
	FileReference []byte `validate:"required"`
}

func (*InputDocumentObj) CRC

func (*InputDocumentObj) CRC() uint32

func (*InputDocumentObj) Encode

func (e *InputDocumentObj) Encode() []byte

func (*InputDocumentObj) ImplementsInputDocument

func (*InputDocumentObj) ImplementsInputDocument()

type InputEncryptedChat

type InputEncryptedChat struct {
	ChatId     int32 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputEncryptedChat) CRC

func (e *InputEncryptedChat) CRC() uint32

func (*InputEncryptedChat) Encode

func (e *InputEncryptedChat) Encode() []byte

type InputEncryptedFile

type InputEncryptedFile interface {
	serialize.TL
	ImplementsInputEncryptedFile()
}

type InputEncryptedFileBigUploaded

type InputEncryptedFileBigUploaded struct {
	Id             int64 `validate:"required"`
	Parts          int32 `validate:"required"`
	KeyFingerprint int32 `validate:"required"`
}

func (*InputEncryptedFileBigUploaded) CRC

func (*InputEncryptedFileBigUploaded) Encode

func (e *InputEncryptedFileBigUploaded) Encode() []byte

func (*InputEncryptedFileBigUploaded) ImplementsInputEncryptedFile

func (*InputEncryptedFileBigUploaded) ImplementsInputEncryptedFile()

type InputEncryptedFileEmpty

type InputEncryptedFileEmpty struct{}

func (*InputEncryptedFileEmpty) CRC

func (*InputEncryptedFileEmpty) Encode

func (e *InputEncryptedFileEmpty) Encode() []byte

func (*InputEncryptedFileEmpty) ImplementsInputEncryptedFile

func (*InputEncryptedFileEmpty) ImplementsInputEncryptedFile()

type InputEncryptedFileLocation

type InputEncryptedFileLocation struct {
	Id         int64 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputEncryptedFileLocation) CRC

func (*InputEncryptedFileLocation) Encode

func (e *InputEncryptedFileLocation) Encode() []byte

func (*InputEncryptedFileLocation) ImplementsInputFileLocation

func (*InputEncryptedFileLocation) ImplementsInputFileLocation()

type InputEncryptedFileObj

type InputEncryptedFileObj struct {
	Id         int64 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputEncryptedFileObj) CRC

func (*InputEncryptedFileObj) Encode

func (e *InputEncryptedFileObj) Encode() []byte

func (*InputEncryptedFileObj) ImplementsInputEncryptedFile

func (*InputEncryptedFileObj) ImplementsInputEncryptedFile()

type InputEncryptedFileUploaded

type InputEncryptedFileUploaded struct {
	Id             int64  `validate:"required"`
	Parts          int32  `validate:"required"`
	Md5Checksum    string `validate:"required"`
	KeyFingerprint int32  `validate:"required"`
}

func (*InputEncryptedFileUploaded) CRC

func (*InputEncryptedFileUploaded) Encode

func (e *InputEncryptedFileUploaded) Encode() []byte

func (*InputEncryptedFileUploaded) ImplementsInputEncryptedFile

func (*InputEncryptedFileUploaded) ImplementsInputEncryptedFile()

type InputFile

type InputFile interface {
	serialize.TL
	ImplementsInputFile()
}

type InputFileBig

type InputFileBig struct {
	Id    int64  `validate:"required"`
	Parts int32  `validate:"required"`
	Name  string `validate:"required"`
}

func (*InputFileBig) CRC

func (*InputFileBig) CRC() uint32

func (*InputFileBig) Encode

func (e *InputFileBig) Encode() []byte

func (*InputFileBig) ImplementsInputFile

func (*InputFileBig) ImplementsInputFile()

type InputFileLocation

type InputFileLocation interface {
	serialize.TL
	ImplementsInputFileLocation()
}

type InputFileLocationObj

type InputFileLocationObj struct {
	VolumeId      int64  `validate:"required"`
	LocalId       int32  `validate:"required"`
	Secret        int64  `validate:"required"`
	FileReference []byte `validate:"required"`
}

func (*InputFileLocationObj) CRC

func (*InputFileLocationObj) Encode

func (e *InputFileLocationObj) Encode() []byte

func (*InputFileLocationObj) ImplementsInputFileLocation

func (*InputFileLocationObj) ImplementsInputFileLocation()

type InputFileObj

type InputFileObj struct {
	Id          int64  `validate:"required"`
	Parts       int32  `validate:"required"`
	Name        string `validate:"required"`
	Md5Checksum string `validate:"required"`
}

func (*InputFileObj) CRC

func (*InputFileObj) CRC() uint32

func (*InputFileObj) Encode

func (e *InputFileObj) Encode() []byte

func (*InputFileObj) ImplementsInputFile

func (*InputFileObj) ImplementsInputFile()

type InputFolderPeer

type InputFolderPeer struct {
	Peer     InputPeer `validate:"required"`
	FolderId int32     `validate:"required"`
}

func (*InputFolderPeer) CRC

func (e *InputFolderPeer) CRC() uint32

func (*InputFolderPeer) Encode

func (e *InputFolderPeer) Encode() []byte

type InputGame

type InputGame interface {
	serialize.TL
	ImplementsInputGame()
}

type InputGameID

type InputGameID struct {
	Id         int64 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputGameID) CRC

func (*InputGameID) CRC() uint32

func (*InputGameID) Encode

func (e *InputGameID) Encode() []byte

func (*InputGameID) ImplementsInputGame

func (*InputGameID) ImplementsInputGame()

type InputGameShortName

type InputGameShortName struct {
	BotId     InputUser `validate:"required"`
	ShortName string    `validate:"required"`
}

func (*InputGameShortName) CRC

func (*InputGameShortName) CRC() uint32

func (*InputGameShortName) Encode

func (e *InputGameShortName) Encode() []byte

func (*InputGameShortName) ImplementsInputGame

func (*InputGameShortName) ImplementsInputGame()

type InputGeoPoint

type InputGeoPoint interface {
	serialize.TL
	ImplementsInputGeoPoint()
}

type InputGeoPointEmpty

type InputGeoPointEmpty struct{}

func (*InputGeoPointEmpty) CRC

func (*InputGeoPointEmpty) CRC() uint32

func (*InputGeoPointEmpty) Encode

func (e *InputGeoPointEmpty) Encode() []byte

func (*InputGeoPointEmpty) ImplementsInputGeoPoint

func (*InputGeoPointEmpty) ImplementsInputGeoPoint()

type InputGeoPointObj

type InputGeoPointObj struct {
	Lat  float64 `validate:"required"`
	Long float64 `validate:"required"`
}

func (*InputGeoPointObj) CRC

func (*InputGeoPointObj) CRC() uint32

func (*InputGeoPointObj) Encode

func (e *InputGeoPointObj) Encode() []byte

func (*InputGeoPointObj) ImplementsInputGeoPoint

func (*InputGeoPointObj) ImplementsInputGeoPoint()

type InputKeyboardButtonUrlAuth

type InputKeyboardButtonUrlAuth struct {
	RequestWriteAccess bool      `flag:"0,encoded_in_bitflags"`
	Text               string    `validate:"required"`
	FwdText            string    `flag:"1"`
	Url                string    `validate:"required"`
	Bot                InputUser `validate:"required"`
	// contains filtered or unexported fields
}

func (*InputKeyboardButtonUrlAuth) CRC

func (*InputKeyboardButtonUrlAuth) Encode

func (e *InputKeyboardButtonUrlAuth) Encode() []byte

func (*InputKeyboardButtonUrlAuth) ImplementsKeyboardButton

func (*InputKeyboardButtonUrlAuth) ImplementsKeyboardButton()

type InputMedia

type InputMedia interface {
	serialize.TL
	ImplementsInputMedia()
}

type InputMediaContact

type InputMediaContact struct {
	PhoneNumber string `validate:"required"`
	FirstName   string `validate:"required"`
	LastName    string `validate:"required"`
	Vcard       string `validate:"required"`
}

func (*InputMediaContact) CRC

func (*InputMediaContact) CRC() uint32

func (*InputMediaContact) Encode

func (e *InputMediaContact) Encode() []byte

func (*InputMediaContact) ImplementsInputMedia

func (*InputMediaContact) ImplementsInputMedia()

type InputMediaDice

type InputMediaDice struct {
	Emoticon string `validate:"required"`
}

func (*InputMediaDice) CRC

func (*InputMediaDice) CRC() uint32

func (*InputMediaDice) Encode

func (e *InputMediaDice) Encode() []byte

func (*InputMediaDice) ImplementsInputMedia

func (*InputMediaDice) ImplementsInputMedia()

type InputMediaDocument

type InputMediaDocument struct {
	Id         InputDocument `validate:"required"`
	TtlSeconds int32         `flag:"0"`
	// contains filtered or unexported fields
}

func (*InputMediaDocument) CRC

func (*InputMediaDocument) CRC() uint32

func (*InputMediaDocument) Encode

func (e *InputMediaDocument) Encode() []byte

func (*InputMediaDocument) ImplementsInputMedia

func (*InputMediaDocument) ImplementsInputMedia()

type InputMediaDocumentExternal

type InputMediaDocumentExternal struct {
	Url        string `validate:"required"`
	TtlSeconds int32  `flag:"0"`
	// contains filtered or unexported fields
}

func (*InputMediaDocumentExternal) CRC

func (*InputMediaDocumentExternal) Encode

func (e *InputMediaDocumentExternal) Encode() []byte

func (*InputMediaDocumentExternal) ImplementsInputMedia

func (*InputMediaDocumentExternal) ImplementsInputMedia()

type InputMediaEmpty

type InputMediaEmpty struct{}

func (*InputMediaEmpty) CRC

func (*InputMediaEmpty) CRC() uint32

func (*InputMediaEmpty) Encode

func (e *InputMediaEmpty) Encode() []byte

func (*InputMediaEmpty) ImplementsInputMedia

func (*InputMediaEmpty) ImplementsInputMedia()

type InputMediaGame

type InputMediaGame struct {
	Id InputGame `validate:"required"`
}

func (*InputMediaGame) CRC

func (*InputMediaGame) CRC() uint32

func (*InputMediaGame) Encode

func (e *InputMediaGame) Encode() []byte

func (*InputMediaGame) ImplementsInputMedia

func (*InputMediaGame) ImplementsInputMedia()

type InputMediaGeoLive

type InputMediaGeoLive struct {
	Stopped  bool          `flag:"0,encoded_in_bitflags"`
	GeoPoint InputGeoPoint `validate:"required"`
	Period   int32         `flag:"1"`
	// contains filtered or unexported fields
}

func (*InputMediaGeoLive) CRC

func (*InputMediaGeoLive) CRC() uint32

func (*InputMediaGeoLive) Encode

func (e *InputMediaGeoLive) Encode() []byte

func (*InputMediaGeoLive) ImplementsInputMedia

func (*InputMediaGeoLive) ImplementsInputMedia()

type InputMediaGeoPoint

type InputMediaGeoPoint struct {
	GeoPoint InputGeoPoint `validate:"required"`
}

func (*InputMediaGeoPoint) CRC

func (*InputMediaGeoPoint) CRC() uint32

func (*InputMediaGeoPoint) Encode

func (e *InputMediaGeoPoint) Encode() []byte

func (*InputMediaGeoPoint) ImplementsInputMedia

func (*InputMediaGeoPoint) ImplementsInputMedia()

type InputMediaInvoice

type InputMediaInvoice struct {
	Title        string            `validate:"required"`
	Description  string            `validate:"required"`
	Photo        *InputWebDocument `flag:"0"`
	Invoice      *Invoice          `validate:"required"`
	Payload      []byte            `validate:"required"`
	Provider     string            `validate:"required"`
	ProviderData *DataJSON         `validate:"required"`
	StartParam   string            `validate:"required"`
	// contains filtered or unexported fields
}

func (*InputMediaInvoice) CRC

func (*InputMediaInvoice) CRC() uint32

func (*InputMediaInvoice) Encode

func (e *InputMediaInvoice) Encode() []byte

func (*InputMediaInvoice) ImplementsInputMedia

func (*InputMediaInvoice) ImplementsInputMedia()

type InputMediaPhoto

type InputMediaPhoto struct {
	Id         InputPhoto `validate:"required"`
	TtlSeconds int32      `flag:"0"`
	// contains filtered or unexported fields
}

func (*InputMediaPhoto) CRC

func (*InputMediaPhoto) CRC() uint32

func (*InputMediaPhoto) Encode

func (e *InputMediaPhoto) Encode() []byte

func (*InputMediaPhoto) ImplementsInputMedia

func (*InputMediaPhoto) ImplementsInputMedia()

type InputMediaPhotoExternal

type InputMediaPhotoExternal struct {
	Url        string `validate:"required"`
	TtlSeconds int32  `flag:"0"`
	// contains filtered or unexported fields
}

func (*InputMediaPhotoExternal) CRC

func (*InputMediaPhotoExternal) Encode

func (e *InputMediaPhotoExternal) Encode() []byte

func (*InputMediaPhotoExternal) ImplementsInputMedia

func (*InputMediaPhotoExternal) ImplementsInputMedia()

type InputMediaPoll

type InputMediaPoll struct {
	Poll             *Poll           `validate:"required"`
	CorrectAnswers   [][]byte        `flag:"0"`
	Solution         string          `flag:"1"`
	SolutionEntities []MessageEntity `flag:"1"`
	// contains filtered or unexported fields
}

func (*InputMediaPoll) CRC

func (*InputMediaPoll) CRC() uint32

func (*InputMediaPoll) Encode

func (e *InputMediaPoll) Encode() []byte

func (*InputMediaPoll) ImplementsInputMedia

func (*InputMediaPoll) ImplementsInputMedia()

type InputMediaUploadedDocument

type InputMediaUploadedDocument struct {
	NosoundVideo bool                `flag:"3,encoded_in_bitflags"`
	ForceFile    bool                `flag:"4,encoded_in_bitflags"`
	File         InputFile           `validate:"required"`
	Thumb        InputFile           `flag:"2"`
	MimeType     string              `validate:"required"`
	Attributes   []DocumentAttribute `validate:"required"`
	Stickers     []InputDocument     `flag:"0"`
	TtlSeconds   int32               `flag:"1"`
	// contains filtered or unexported fields
}

func (*InputMediaUploadedDocument) CRC

func (*InputMediaUploadedDocument) Encode

func (e *InputMediaUploadedDocument) Encode() []byte

func (*InputMediaUploadedDocument) ImplementsInputMedia

func (*InputMediaUploadedDocument) ImplementsInputMedia()

type InputMediaUploadedPhoto

type InputMediaUploadedPhoto struct {
	File       InputFile       `validate:"required"`
	Stickers   []InputDocument `flag:"0"`
	TtlSeconds int32           `flag:"1"`
	// contains filtered or unexported fields
}

func (*InputMediaUploadedPhoto) CRC

func (*InputMediaUploadedPhoto) Encode

func (e *InputMediaUploadedPhoto) Encode() []byte

func (*InputMediaUploadedPhoto) ImplementsInputMedia

func (*InputMediaUploadedPhoto) ImplementsInputMedia()

type InputMediaVenue

type InputMediaVenue struct {
	GeoPoint  InputGeoPoint `validate:"required"`
	Title     string        `validate:"required"`
	Address   string        `validate:"required"`
	Provider  string        `validate:"required"`
	VenueId   string        `validate:"required"`
	VenueType string        `validate:"required"`
}

func (*InputMediaVenue) CRC

func (*InputMediaVenue) CRC() uint32

func (*InputMediaVenue) Encode

func (e *InputMediaVenue) Encode() []byte

func (*InputMediaVenue) ImplementsInputMedia

func (*InputMediaVenue) ImplementsInputMedia()

type InputMessage

type InputMessage interface {
	serialize.TL
	ImplementsInputMessage()
}

type InputMessageEntityMentionName

type InputMessageEntityMentionName struct {
	Offset int32     `validate:"required"`
	Length int32     `validate:"required"`
	UserId InputUser `validate:"required"`
}

func (*InputMessageEntityMentionName) CRC

func (*InputMessageEntityMentionName) Encode

func (e *InputMessageEntityMentionName) Encode() []byte

func (*InputMessageEntityMentionName) ImplementsMessageEntity

func (*InputMessageEntityMentionName) ImplementsMessageEntity()

type InputMessageID

type InputMessageID struct {
	Id int32 `validate:"required"`
}

func (*InputMessageID) CRC

func (*InputMessageID) CRC() uint32

func (*InputMessageID) Encode

func (e *InputMessageID) Encode() []byte

func (*InputMessageID) ImplementsInputMessage

func (*InputMessageID) ImplementsInputMessage()

type InputMessagePinned

type InputMessagePinned struct{}

func (*InputMessagePinned) CRC

func (*InputMessagePinned) CRC() uint32

func (*InputMessagePinned) Encode

func (e *InputMessagePinned) Encode() []byte

func (*InputMessagePinned) ImplementsInputMessage

func (*InputMessagePinned) ImplementsInputMessage()

type InputMessageReplyTo

type InputMessageReplyTo struct {
	Id int32 `validate:"required"`
}

func (*InputMessageReplyTo) CRC

func (*InputMessageReplyTo) CRC() uint32

func (*InputMessageReplyTo) Encode

func (e *InputMessageReplyTo) Encode() []byte

func (*InputMessageReplyTo) ImplementsInputMessage

func (*InputMessageReplyTo) ImplementsInputMessage()

type InputMessagesFilterChatPhotos

type InputMessagesFilterChatPhotos struct{}

func (*InputMessagesFilterChatPhotos) CRC

func (*InputMessagesFilterChatPhotos) Encode

func (e *InputMessagesFilterChatPhotos) Encode() []byte

func (*InputMessagesFilterChatPhotos) ImplementsMessagesFilter

func (*InputMessagesFilterChatPhotos) ImplementsMessagesFilter()

type InputMessagesFilterContacts

type InputMessagesFilterContacts struct{}

func (*InputMessagesFilterContacts) CRC

func (*InputMessagesFilterContacts) Encode

func (e *InputMessagesFilterContacts) Encode() []byte

func (*InputMessagesFilterContacts) ImplementsMessagesFilter

func (*InputMessagesFilterContacts) ImplementsMessagesFilter()

type InputMessagesFilterDocument

type InputMessagesFilterDocument struct{}

func (*InputMessagesFilterDocument) CRC

func (*InputMessagesFilterDocument) Encode

func (e *InputMessagesFilterDocument) Encode() []byte

func (*InputMessagesFilterDocument) ImplementsMessagesFilter

func (*InputMessagesFilterDocument) ImplementsMessagesFilter()

type InputMessagesFilterEmpty

type InputMessagesFilterEmpty struct{}

func (*InputMessagesFilterEmpty) CRC

func (*InputMessagesFilterEmpty) Encode

func (e *InputMessagesFilterEmpty) Encode() []byte

func (*InputMessagesFilterEmpty) ImplementsMessagesFilter

func (*InputMessagesFilterEmpty) ImplementsMessagesFilter()

type InputMessagesFilterGeo

type InputMessagesFilterGeo struct{}

func (*InputMessagesFilterGeo) CRC

func (*InputMessagesFilterGeo) Encode

func (e *InputMessagesFilterGeo) Encode() []byte

func (*InputMessagesFilterGeo) ImplementsMessagesFilter

func (*InputMessagesFilterGeo) ImplementsMessagesFilter()

type InputMessagesFilterGif

type InputMessagesFilterGif struct{}

func (*InputMessagesFilterGif) CRC

func (*InputMessagesFilterGif) Encode

func (e *InputMessagesFilterGif) Encode() []byte

func (*InputMessagesFilterGif) ImplementsMessagesFilter

func (*InputMessagesFilterGif) ImplementsMessagesFilter()

type InputMessagesFilterMusic

type InputMessagesFilterMusic struct{}

func (*InputMessagesFilterMusic) CRC

func (*InputMessagesFilterMusic) Encode

func (e *InputMessagesFilterMusic) Encode() []byte

func (*InputMessagesFilterMusic) ImplementsMessagesFilter

func (*InputMessagesFilterMusic) ImplementsMessagesFilter()

type InputMessagesFilterMyMentions

type InputMessagesFilterMyMentions struct{}

func (*InputMessagesFilterMyMentions) CRC

func (*InputMessagesFilterMyMentions) Encode

func (e *InputMessagesFilterMyMentions) Encode() []byte

func (*InputMessagesFilterMyMentions) ImplementsMessagesFilter

func (*InputMessagesFilterMyMentions) ImplementsMessagesFilter()

type InputMessagesFilterPhoneCalls

type InputMessagesFilterPhoneCalls struct {
	Missed bool `flag:"0,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*InputMessagesFilterPhoneCalls) CRC

func (*InputMessagesFilterPhoneCalls) Encode

func (e *InputMessagesFilterPhoneCalls) Encode() []byte

func (*InputMessagesFilterPhoneCalls) ImplementsMessagesFilter

func (*InputMessagesFilterPhoneCalls) ImplementsMessagesFilter()

type InputMessagesFilterPhotoVideo

type InputMessagesFilterPhotoVideo struct{}

func (*InputMessagesFilterPhotoVideo) CRC

func (*InputMessagesFilterPhotoVideo) Encode

func (e *InputMessagesFilterPhotoVideo) Encode() []byte

func (*InputMessagesFilterPhotoVideo) ImplementsMessagesFilter

func (*InputMessagesFilterPhotoVideo) ImplementsMessagesFilter()

type InputMessagesFilterPhotos

type InputMessagesFilterPhotos struct{}

func (*InputMessagesFilterPhotos) CRC

func (*InputMessagesFilterPhotos) Encode

func (e *InputMessagesFilterPhotos) Encode() []byte

func (*InputMessagesFilterPhotos) ImplementsMessagesFilter

func (*InputMessagesFilterPhotos) ImplementsMessagesFilter()

type InputMessagesFilterRoundVideo

type InputMessagesFilterRoundVideo struct{}

func (*InputMessagesFilterRoundVideo) CRC

func (*InputMessagesFilterRoundVideo) Encode

func (e *InputMessagesFilterRoundVideo) Encode() []byte

func (*InputMessagesFilterRoundVideo) ImplementsMessagesFilter

func (*InputMessagesFilterRoundVideo) ImplementsMessagesFilter()

type InputMessagesFilterRoundVoice

type InputMessagesFilterRoundVoice struct{}

func (*InputMessagesFilterRoundVoice) CRC

func (*InputMessagesFilterRoundVoice) Encode

func (e *InputMessagesFilterRoundVoice) Encode() []byte

func (*InputMessagesFilterRoundVoice) ImplementsMessagesFilter

func (*InputMessagesFilterRoundVoice) ImplementsMessagesFilter()

type InputMessagesFilterUrl

type InputMessagesFilterUrl struct{}

func (*InputMessagesFilterUrl) CRC

func (*InputMessagesFilterUrl) Encode

func (e *InputMessagesFilterUrl) Encode() []byte

func (*InputMessagesFilterUrl) ImplementsMessagesFilter

func (*InputMessagesFilterUrl) ImplementsMessagesFilter()

type InputMessagesFilterVideo

type InputMessagesFilterVideo struct{}

func (*InputMessagesFilterVideo) CRC

func (*InputMessagesFilterVideo) Encode

func (e *InputMessagesFilterVideo) Encode() []byte

func (*InputMessagesFilterVideo) ImplementsMessagesFilter

func (*InputMessagesFilterVideo) ImplementsMessagesFilter()

type InputMessagesFilterVoice

type InputMessagesFilterVoice struct{}

func (*InputMessagesFilterVoice) CRC

func (*InputMessagesFilterVoice) Encode

func (e *InputMessagesFilterVoice) Encode() []byte

func (*InputMessagesFilterVoice) ImplementsMessagesFilter

func (*InputMessagesFilterVoice) ImplementsMessagesFilter()

type InputNotifyBroadcasts

type InputNotifyBroadcasts struct{}

func (*InputNotifyBroadcasts) CRC

func (*InputNotifyBroadcasts) Encode

func (e *InputNotifyBroadcasts) Encode() []byte

func (*InputNotifyBroadcasts) ImplementsInputNotifyPeer

func (*InputNotifyBroadcasts) ImplementsInputNotifyPeer()

type InputNotifyChats

type InputNotifyChats struct{}

func (*InputNotifyChats) CRC

func (*InputNotifyChats) CRC() uint32

func (*InputNotifyChats) Encode

func (e *InputNotifyChats) Encode() []byte

func (*InputNotifyChats) ImplementsInputNotifyPeer

func (*InputNotifyChats) ImplementsInputNotifyPeer()

type InputNotifyPeer

type InputNotifyPeer interface {
	serialize.TL
	ImplementsInputNotifyPeer()
}

type InputNotifyPeerObj

type InputNotifyPeerObj struct {
	Peer InputPeer `validate:"required"`
}

func (*InputNotifyPeerObj) CRC

func (*InputNotifyPeerObj) CRC() uint32

func (*InputNotifyPeerObj) Encode

func (e *InputNotifyPeerObj) Encode() []byte

func (*InputNotifyPeerObj) ImplementsInputNotifyPeer

func (*InputNotifyPeerObj) ImplementsInputNotifyPeer()

type InputNotifyUsers

type InputNotifyUsers struct{}

func (*InputNotifyUsers) CRC

func (*InputNotifyUsers) CRC() uint32

func (*InputNotifyUsers) Encode

func (e *InputNotifyUsers) Encode() []byte

func (*InputNotifyUsers) ImplementsInputNotifyPeer

func (*InputNotifyUsers) ImplementsInputNotifyPeer()

type InputPaymentCredentials

type InputPaymentCredentials interface {
	serialize.TL
	ImplementsInputPaymentCredentials()
}

type InputPaymentCredentialsAndroidPay

type InputPaymentCredentialsAndroidPay struct {
	PaymentToken        *DataJSON `validate:"required"`
	GoogleTransactionId string    `validate:"required"`
}

func (*InputPaymentCredentialsAndroidPay) CRC

func (*InputPaymentCredentialsAndroidPay) Encode

func (*InputPaymentCredentialsAndroidPay) ImplementsInputPaymentCredentials

func (*InputPaymentCredentialsAndroidPay) ImplementsInputPaymentCredentials()

type InputPaymentCredentialsApplePay

type InputPaymentCredentialsApplePay struct {
	PaymentData *DataJSON `validate:"required"`
}

func (*InputPaymentCredentialsApplePay) CRC

func (*InputPaymentCredentialsApplePay) Encode

func (e *InputPaymentCredentialsApplePay) Encode() []byte

func (*InputPaymentCredentialsApplePay) ImplementsInputPaymentCredentials

func (*InputPaymentCredentialsApplePay) ImplementsInputPaymentCredentials()

type InputPaymentCredentialsObj

type InputPaymentCredentialsObj struct {
	Save bool      `flag:"0,encoded_in_bitflags"`
	Data *DataJSON `validate:"required"`
	// contains filtered or unexported fields
}

func (*InputPaymentCredentialsObj) CRC

func (*InputPaymentCredentialsObj) Encode

func (e *InputPaymentCredentialsObj) Encode() []byte

func (*InputPaymentCredentialsObj) ImplementsInputPaymentCredentials

func (*InputPaymentCredentialsObj) ImplementsInputPaymentCredentials()

type InputPaymentCredentialsSaved

type InputPaymentCredentialsSaved struct {
	Id          string `validate:"required"`
	TmpPassword []byte `validate:"required"`
}

func (*InputPaymentCredentialsSaved) CRC

func (*InputPaymentCredentialsSaved) Encode

func (e *InputPaymentCredentialsSaved) Encode() []byte

func (*InputPaymentCredentialsSaved) ImplementsInputPaymentCredentials

func (*InputPaymentCredentialsSaved) ImplementsInputPaymentCredentials()

type InputPeer

type InputPeer interface {
	serialize.TL
	ImplementsInputPeer()
}

type InputPeerChannel

type InputPeerChannel struct {
	ChannelId  int32 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputPeerChannel) CRC

func (*InputPeerChannel) CRC() uint32

func (*InputPeerChannel) Encode

func (e *InputPeerChannel) Encode() []byte

func (*InputPeerChannel) ImplementsInputPeer

func (*InputPeerChannel) ImplementsInputPeer()

type InputPeerChannelFromMessage

type InputPeerChannelFromMessage struct {
	Peer      InputPeer `validate:"required"`
	MsgId     int32     `validate:"required"`
	ChannelId int32     `validate:"required"`
}

func (*InputPeerChannelFromMessage) CRC

func (*InputPeerChannelFromMessage) Encode

func (e *InputPeerChannelFromMessage) Encode() []byte

func (*InputPeerChannelFromMessage) ImplementsInputPeer

func (*InputPeerChannelFromMessage) ImplementsInputPeer()

type InputPeerChat

type InputPeerChat struct {
	ChatId int32 `validate:"required"`
}

func (*InputPeerChat) CRC

func (*InputPeerChat) CRC() uint32

func (*InputPeerChat) Encode

func (e *InputPeerChat) Encode() []byte

func (*InputPeerChat) ImplementsInputPeer

func (*InputPeerChat) ImplementsInputPeer()

type InputPeerEmpty

type InputPeerEmpty struct{}

func (*InputPeerEmpty) CRC

func (*InputPeerEmpty) CRC() uint32

func (*InputPeerEmpty) Encode

func (e *InputPeerEmpty) Encode() []byte

func (*InputPeerEmpty) ImplementsInputPeer

func (*InputPeerEmpty) ImplementsInputPeer()

type InputPeerNotifySettings

type InputPeerNotifySettings struct {
	ShowPreviews bool   `flag:"0"`
	Silent       bool   `flag:"1"`
	MuteUntil    int32  `flag:"2"`
	Sound        string `flag:"3"`
	// contains filtered or unexported fields
}

func (*InputPeerNotifySettings) CRC

func (*InputPeerNotifySettings) Encode

func (e *InputPeerNotifySettings) Encode() []byte

type InputPeerPhotoFileLocation

type InputPeerPhotoFileLocation struct {
	Big      bool      `flag:"0,encoded_in_bitflags"`
	Peer     InputPeer `validate:"required"`
	VolumeId int64     `validate:"required"`
	LocalId  int32     `validate:"required"`
	// contains filtered or unexported fields
}

func (*InputPeerPhotoFileLocation) CRC

func (*InputPeerPhotoFileLocation) Encode

func (e *InputPeerPhotoFileLocation) Encode() []byte

func (*InputPeerPhotoFileLocation) ImplementsInputFileLocation

func (*InputPeerPhotoFileLocation) ImplementsInputFileLocation()

type InputPeerSelf

type InputPeerSelf struct{}

func (*InputPeerSelf) CRC

func (*InputPeerSelf) CRC() uint32

func (*InputPeerSelf) Encode

func (e *InputPeerSelf) Encode() []byte

func (*InputPeerSelf) ImplementsInputPeer

func (*InputPeerSelf) ImplementsInputPeer()

type InputPeerUser

type InputPeerUser struct {
	UserId     int32 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputPeerUser) CRC

func (*InputPeerUser) CRC() uint32

func (*InputPeerUser) Encode

func (e *InputPeerUser) Encode() []byte

func (*InputPeerUser) ImplementsInputPeer

func (*InputPeerUser) ImplementsInputPeer()

type InputPeerUserFromMessage

type InputPeerUserFromMessage struct {
	Peer   InputPeer `validate:"required"`
	MsgId  int32     `validate:"required"`
	UserId int32     `validate:"required"`
}

func (*InputPeerUserFromMessage) CRC

func (*InputPeerUserFromMessage) Encode

func (e *InputPeerUserFromMessage) Encode() []byte

func (*InputPeerUserFromMessage) ImplementsInputPeer

func (*InputPeerUserFromMessage) ImplementsInputPeer()

type InputPhoneCall

type InputPhoneCall struct {
	Id         int64 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputPhoneCall) CRC

func (e *InputPhoneCall) CRC() uint32

func (*InputPhoneCall) Encode

func (e *InputPhoneCall) Encode() []byte

type InputPhoto

type InputPhoto interface {
	serialize.TL
	ImplementsInputPhoto()
}

type InputPhotoEmpty

type InputPhotoEmpty struct{}

func (*InputPhotoEmpty) CRC

func (*InputPhotoEmpty) CRC() uint32

func (*InputPhotoEmpty) Encode

func (e *InputPhotoEmpty) Encode() []byte

func (*InputPhotoEmpty) ImplementsInputPhoto

func (*InputPhotoEmpty) ImplementsInputPhoto()

type InputPhotoFileLocation

type InputPhotoFileLocation struct {
	Id            int64  `validate:"required"`
	AccessHash    int64  `validate:"required"`
	FileReference []byte `validate:"required"`
	ThumbSize     string `validate:"required"`
}

func (*InputPhotoFileLocation) CRC

func (*InputPhotoFileLocation) Encode

func (e *InputPhotoFileLocation) Encode() []byte

func (*InputPhotoFileLocation) ImplementsInputFileLocation

func (*InputPhotoFileLocation) ImplementsInputFileLocation()

type InputPhotoLegacyFileLocation

type InputPhotoLegacyFileLocation struct {
	Id            int64  `validate:"required"`
	AccessHash    int64  `validate:"required"`
	FileReference []byte `validate:"required"`
	VolumeId      int64  `validate:"required"`
	LocalId       int32  `validate:"required"`
	Secret        int64  `validate:"required"`
}

func (*InputPhotoLegacyFileLocation) CRC

func (*InputPhotoLegacyFileLocation) Encode

func (e *InputPhotoLegacyFileLocation) Encode() []byte

func (*InputPhotoLegacyFileLocation) ImplementsInputFileLocation

func (*InputPhotoLegacyFileLocation) ImplementsInputFileLocation()

type InputPhotoObj

type InputPhotoObj struct {
	Id            int64  `validate:"required"`
	AccessHash    int64  `validate:"required"`
	FileReference []byte `validate:"required"`
}

func (*InputPhotoObj) CRC

func (*InputPhotoObj) CRC() uint32

func (*InputPhotoObj) Encode

func (e *InputPhotoObj) Encode() []byte

func (*InputPhotoObj) ImplementsInputPhoto

func (*InputPhotoObj) ImplementsInputPhoto()

type InputPrivacyKey

type InputPrivacyKey uint32
const (
	InputPrivacyKeyStatusTimestamp InputPrivacyKey = 1335282456
	InputPrivacyKeyChatInvite      InputPrivacyKey = 3187344422
	InputPrivacyKeyPhoneCall       InputPrivacyKey = 4206550111
	InputPrivacyKeyPhoneP2P        InputPrivacyKey = 3684593874
	InputPrivacyKeyForwards        InputPrivacyKey = 2765966344
	InputPrivacyKeyProfilePhoto    InputPrivacyKey = 1461304012
	InputPrivacyKeyPhoneNumber     InputPrivacyKey = 55761658
	InputPrivacyKeyAddedByPhone    InputPrivacyKey = 3508640733
)

func (InputPrivacyKey) CRC

func (e InputPrivacyKey) CRC() uint32

func (InputPrivacyKey) Encode

func (e InputPrivacyKey) Encode() []byte

func (InputPrivacyKey) String

func (e InputPrivacyKey) String() string

type InputPrivacyRule

type InputPrivacyRule interface {
	serialize.TL
	ImplementsInputPrivacyRule()
}

type InputPrivacyValueAllowAll

type InputPrivacyValueAllowAll struct{}

func (*InputPrivacyValueAllowAll) CRC

func (*InputPrivacyValueAllowAll) Encode

func (e *InputPrivacyValueAllowAll) Encode() []byte

func (*InputPrivacyValueAllowAll) ImplementsInputPrivacyRule

func (*InputPrivacyValueAllowAll) ImplementsInputPrivacyRule()

type InputPrivacyValueAllowChatParticipants

type InputPrivacyValueAllowChatParticipants struct {
	Chats []int32 `validate:"required"`
}

func (*InputPrivacyValueAllowChatParticipants) CRC

func (*InputPrivacyValueAllowChatParticipants) Encode

func (*InputPrivacyValueAllowChatParticipants) ImplementsInputPrivacyRule

func (*InputPrivacyValueAllowChatParticipants) ImplementsInputPrivacyRule()

type InputPrivacyValueAllowContacts

type InputPrivacyValueAllowContacts struct{}

func (*InputPrivacyValueAllowContacts) CRC

func (*InputPrivacyValueAllowContacts) Encode

func (e *InputPrivacyValueAllowContacts) Encode() []byte

func (*InputPrivacyValueAllowContacts) ImplementsInputPrivacyRule

func (*InputPrivacyValueAllowContacts) ImplementsInputPrivacyRule()

type InputPrivacyValueAllowUsers

type InputPrivacyValueAllowUsers struct {
	Users []InputUser `validate:"required"`
}

func (*InputPrivacyValueAllowUsers) CRC

func (*InputPrivacyValueAllowUsers) Encode

func (e *InputPrivacyValueAllowUsers) Encode() []byte

func (*InputPrivacyValueAllowUsers) ImplementsInputPrivacyRule

func (*InputPrivacyValueAllowUsers) ImplementsInputPrivacyRule()

type InputPrivacyValueDisallowAll

type InputPrivacyValueDisallowAll struct{}

func (*InputPrivacyValueDisallowAll) CRC

func (*InputPrivacyValueDisallowAll) Encode

func (e *InputPrivacyValueDisallowAll) Encode() []byte

func (*InputPrivacyValueDisallowAll) ImplementsInputPrivacyRule

func (*InputPrivacyValueDisallowAll) ImplementsInputPrivacyRule()

type InputPrivacyValueDisallowChatParticipants

type InputPrivacyValueDisallowChatParticipants struct {
	Chats []int32 `validate:"required"`
}

func (*InputPrivacyValueDisallowChatParticipants) CRC

func (*InputPrivacyValueDisallowChatParticipants) Encode

func (*InputPrivacyValueDisallowChatParticipants) ImplementsInputPrivacyRule

func (*InputPrivacyValueDisallowChatParticipants) ImplementsInputPrivacyRule()

type InputPrivacyValueDisallowContacts

type InputPrivacyValueDisallowContacts struct{}

func (*InputPrivacyValueDisallowContacts) CRC

func (*InputPrivacyValueDisallowContacts) Encode

func (*InputPrivacyValueDisallowContacts) ImplementsInputPrivacyRule

func (*InputPrivacyValueDisallowContacts) ImplementsInputPrivacyRule()

type InputPrivacyValueDisallowUsers

type InputPrivacyValueDisallowUsers struct {
	Users []InputUser `validate:"required"`
}

func (*InputPrivacyValueDisallowUsers) CRC

func (*InputPrivacyValueDisallowUsers) Encode

func (e *InputPrivacyValueDisallowUsers) Encode() []byte

func (*InputPrivacyValueDisallowUsers) ImplementsInputPrivacyRule

func (*InputPrivacyValueDisallowUsers) ImplementsInputPrivacyRule()

type InputReportReasonChildAbuse

type InputReportReasonChildAbuse struct{}

func (*InputReportReasonChildAbuse) CRC

func (*InputReportReasonChildAbuse) Encode

func (e *InputReportReasonChildAbuse) Encode() []byte

func (*InputReportReasonChildAbuse) ImplementsReportReason

func (*InputReportReasonChildAbuse) ImplementsReportReason()

type InputReportReasonCopyright

type InputReportReasonCopyright struct{}

func (*InputReportReasonCopyright) CRC

func (*InputReportReasonCopyright) Encode

func (e *InputReportReasonCopyright) Encode() []byte

func (*InputReportReasonCopyright) ImplementsReportReason

func (*InputReportReasonCopyright) ImplementsReportReason()

type InputReportReasonGeoIrrelevant

type InputReportReasonGeoIrrelevant struct{}

func (*InputReportReasonGeoIrrelevant) CRC

func (*InputReportReasonGeoIrrelevant) Encode

func (e *InputReportReasonGeoIrrelevant) Encode() []byte

func (*InputReportReasonGeoIrrelevant) ImplementsReportReason

func (*InputReportReasonGeoIrrelevant) ImplementsReportReason()

type InputReportReasonOther

type InputReportReasonOther struct {
	Text string `validate:"required"`
}

func (*InputReportReasonOther) CRC

func (*InputReportReasonOther) Encode

func (e *InputReportReasonOther) Encode() []byte

func (*InputReportReasonOther) ImplementsReportReason

func (*InputReportReasonOther) ImplementsReportReason()

type InputReportReasonPornography

type InputReportReasonPornography struct{}

func (*InputReportReasonPornography) CRC

func (*InputReportReasonPornography) Encode

func (e *InputReportReasonPornography) Encode() []byte

func (*InputReportReasonPornography) ImplementsReportReason

func (*InputReportReasonPornography) ImplementsReportReason()

type InputReportReasonSpam

type InputReportReasonSpam struct{}

func (*InputReportReasonSpam) CRC

func (*InputReportReasonSpam) Encode

func (e *InputReportReasonSpam) Encode() []byte

func (*InputReportReasonSpam) ImplementsReportReason

func (*InputReportReasonSpam) ImplementsReportReason()

type InputReportReasonViolence

type InputReportReasonViolence struct{}

func (*InputReportReasonViolence) CRC

func (*InputReportReasonViolence) Encode

func (e *InputReportReasonViolence) Encode() []byte

func (*InputReportReasonViolence) ImplementsReportReason

func (*InputReportReasonViolence) ImplementsReportReason()

type InputSecureFile

type InputSecureFile interface {
	serialize.TL
	ImplementsInputSecureFile()
}

type InputSecureFileLocation

type InputSecureFileLocation struct {
	Id         int64 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputSecureFileLocation) CRC

func (*InputSecureFileLocation) Encode

func (e *InputSecureFileLocation) Encode() []byte

func (*InputSecureFileLocation) ImplementsInputFileLocation

func (*InputSecureFileLocation) ImplementsInputFileLocation()

type InputSecureFileObj

type InputSecureFileObj struct {
	Id         int64 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputSecureFileObj) CRC

func (*InputSecureFileObj) CRC() uint32

func (*InputSecureFileObj) Encode

func (e *InputSecureFileObj) Encode() []byte

func (*InputSecureFileObj) ImplementsInputSecureFile

func (*InputSecureFileObj) ImplementsInputSecureFile()

type InputSecureFileUploaded

type InputSecureFileUploaded struct {
	Id          int64  `validate:"required"`
	Parts       int32  `validate:"required"`
	Md5Checksum string `validate:"required"`
	FileHash    []byte `validate:"required"`
	Secret      []byte `validate:"required"`
}

func (*InputSecureFileUploaded) CRC

func (*InputSecureFileUploaded) Encode

func (e *InputSecureFileUploaded) Encode() []byte

func (*InputSecureFileUploaded) ImplementsInputSecureFile

func (*InputSecureFileUploaded) ImplementsInputSecureFile()

type InputSecureValue

type InputSecureValue struct {
	Type        SecureValueType   `validate:"required"`
	Data        *SecureData       `flag:"0"`
	FrontSide   InputSecureFile   `flag:"1"`
	ReverseSide InputSecureFile   `flag:"2"`
	Selfie      InputSecureFile   `flag:"3"`
	Translation []InputSecureFile `flag:"6"`
	Files       []InputSecureFile `flag:"4"`
	PlainData   SecurePlainData   `flag:"5"`
	// contains filtered or unexported fields
}

func (*InputSecureValue) CRC

func (e *InputSecureValue) CRC() uint32

func (*InputSecureValue) Encode

func (e *InputSecureValue) Encode() []byte

type InputSingleMedia

type InputSingleMedia struct {
	Media    InputMedia      `validate:"required"`
	RandomId int64           `validate:"required"`
	Message  string          `validate:"required"`
	Entities []MessageEntity `flag:"0"`
	// contains filtered or unexported fields
}

func (*InputSingleMedia) CRC

func (e *InputSingleMedia) CRC() uint32

func (*InputSingleMedia) Encode

func (e *InputSingleMedia) Encode() []byte

type InputStickerSet

type InputStickerSet interface {
	serialize.TL
	ImplementsInputStickerSet()
}

type InputStickerSetAnimatedEmoji

type InputStickerSetAnimatedEmoji struct{}

func (*InputStickerSetAnimatedEmoji) CRC

func (*InputStickerSetAnimatedEmoji) Encode

func (e *InputStickerSetAnimatedEmoji) Encode() []byte

func (*InputStickerSetAnimatedEmoji) ImplementsInputStickerSet

func (*InputStickerSetAnimatedEmoji) ImplementsInputStickerSet()

type InputStickerSetDice

type InputStickerSetDice struct {
	Emoticon string `validate:"required"`
}

func (*InputStickerSetDice) CRC

func (*InputStickerSetDice) CRC() uint32

func (*InputStickerSetDice) Encode

func (e *InputStickerSetDice) Encode() []byte

func (*InputStickerSetDice) ImplementsInputStickerSet

func (*InputStickerSetDice) ImplementsInputStickerSet()

type InputStickerSetEmpty

type InputStickerSetEmpty struct{}

func (*InputStickerSetEmpty) CRC

func (*InputStickerSetEmpty) Encode

func (e *InputStickerSetEmpty) Encode() []byte

func (*InputStickerSetEmpty) ImplementsInputStickerSet

func (*InputStickerSetEmpty) ImplementsInputStickerSet()

type InputStickerSetID

type InputStickerSetID struct {
	Id         int64 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputStickerSetID) CRC

func (*InputStickerSetID) CRC() uint32

func (*InputStickerSetID) Encode

func (e *InputStickerSetID) Encode() []byte

func (*InputStickerSetID) ImplementsInputStickerSet

func (*InputStickerSetID) ImplementsInputStickerSet()

type InputStickerSetItem

type InputStickerSetItem struct {
	Document   InputDocument `validate:"required"`
	Emoji      string        `validate:"required"`
	MaskCoords *MaskCoords   `flag:"0"`
	// contains filtered or unexported fields
}

func (*InputStickerSetItem) CRC

func (e *InputStickerSetItem) CRC() uint32

func (*InputStickerSetItem) Encode

func (e *InputStickerSetItem) Encode() []byte

type InputStickerSetShortName

type InputStickerSetShortName struct {
	ShortName string `validate:"required"`
}

func (*InputStickerSetShortName) CRC

func (*InputStickerSetShortName) Encode

func (e *InputStickerSetShortName) Encode() []byte

func (*InputStickerSetShortName) ImplementsInputStickerSet

func (*InputStickerSetShortName) ImplementsInputStickerSet()

type InputStickerSetThumb

type InputStickerSetThumb struct {
	Stickerset InputStickerSet `validate:"required"`
	VolumeId   int64           `validate:"required"`
	LocalId    int32           `validate:"required"`
}

func (*InputStickerSetThumb) CRC

func (*InputStickerSetThumb) Encode

func (e *InputStickerSetThumb) Encode() []byte

func (*InputStickerSetThumb) ImplementsInputFileLocation

func (*InputStickerSetThumb) ImplementsInputFileLocation()

type InputStickeredMedia

type InputStickeredMedia interface {
	serialize.TL
	ImplementsInputStickeredMedia()
}

type InputStickeredMediaDocument

type InputStickeredMediaDocument struct {
	Id InputDocument `validate:"required"`
}

func (*InputStickeredMediaDocument) CRC

func (*InputStickeredMediaDocument) Encode

func (e *InputStickeredMediaDocument) Encode() []byte

func (*InputStickeredMediaDocument) ImplementsInputStickeredMedia

func (*InputStickeredMediaDocument) ImplementsInputStickeredMedia()

type InputStickeredMediaPhoto

type InputStickeredMediaPhoto struct {
	Id InputPhoto `validate:"required"`
}

func (*InputStickeredMediaPhoto) CRC

func (*InputStickeredMediaPhoto) Encode

func (e *InputStickeredMediaPhoto) Encode() []byte

func (*InputStickeredMediaPhoto) ImplementsInputStickeredMedia

func (*InputStickeredMediaPhoto) ImplementsInputStickeredMedia()

type InputTakeoutFileLocation

type InputTakeoutFileLocation struct{}

func (*InputTakeoutFileLocation) CRC

func (*InputTakeoutFileLocation) Encode

func (e *InputTakeoutFileLocation) Encode() []byte

func (*InputTakeoutFileLocation) ImplementsInputFileLocation

func (*InputTakeoutFileLocation) ImplementsInputFileLocation()

type InputTheme

type InputTheme interface {
	serialize.TL
	ImplementsInputTheme()
}

type InputThemeObj

type InputThemeObj struct {
	Id         int64 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputThemeObj) CRC

func (*InputThemeObj) CRC() uint32

func (*InputThemeObj) Encode

func (e *InputThemeObj) Encode() []byte

func (*InputThemeObj) ImplementsInputTheme

func (*InputThemeObj) ImplementsInputTheme()

type InputThemeSettings

type InputThemeSettings struct {
	BaseTheme          BaseTheme          `validate:"required"`
	AccentColor        int32              `validate:"required"`
	MessageTopColor    int32              `flag:"0"`
	MessageBottomColor int32              `flag:"0"`
	Wallpaper          InputWallPaper     `flag:"1"`
	WallpaperSettings  *WallPaperSettings `flag:"1"`
	// contains filtered or unexported fields
}

func (*InputThemeSettings) CRC

func (e *InputThemeSettings) CRC() uint32

func (*InputThemeSettings) Encode

func (e *InputThemeSettings) Encode() []byte

type InputThemeSlug

type InputThemeSlug struct {
	Slug string `validate:"required"`
}

func (*InputThemeSlug) CRC

func (*InputThemeSlug) CRC() uint32

func (*InputThemeSlug) Encode

func (e *InputThemeSlug) Encode() []byte

func (*InputThemeSlug) ImplementsInputTheme

func (*InputThemeSlug) ImplementsInputTheme()

type InputUser

type InputUser interface {
	serialize.TL
	ImplementsInputUser()
}

type InputUserEmpty

type InputUserEmpty struct{}

func (*InputUserEmpty) CRC

func (*InputUserEmpty) CRC() uint32

func (*InputUserEmpty) Encode

func (e *InputUserEmpty) Encode() []byte

func (*InputUserEmpty) ImplementsInputUser

func (*InputUserEmpty) ImplementsInputUser()

type InputUserFromMessage

type InputUserFromMessage struct {
	Peer   InputPeer `validate:"required"`
	MsgId  int32     `validate:"required"`
	UserId int32     `validate:"required"`
}

func (*InputUserFromMessage) CRC

func (*InputUserFromMessage) Encode

func (e *InputUserFromMessage) Encode() []byte

func (*InputUserFromMessage) ImplementsInputUser

func (*InputUserFromMessage) ImplementsInputUser()

type InputUserObj

type InputUserObj struct {
	UserId     int32 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputUserObj) CRC

func (*InputUserObj) CRC() uint32

func (*InputUserObj) Encode

func (e *InputUserObj) Encode() []byte

func (*InputUserObj) ImplementsInputUser

func (*InputUserObj) ImplementsInputUser()

type InputUserSelf

type InputUserSelf struct{}

func (*InputUserSelf) CRC

func (*InputUserSelf) CRC() uint32

func (*InputUserSelf) Encode

func (e *InputUserSelf) Encode() []byte

func (*InputUserSelf) ImplementsInputUser

func (*InputUserSelf) ImplementsInputUser()

type InputWallPaper

type InputWallPaper interface {
	serialize.TL
	ImplementsInputWallPaper()
}

type InputWallPaperNoFile

type InputWallPaperNoFile struct{}

func (*InputWallPaperNoFile) CRC

func (*InputWallPaperNoFile) Encode

func (e *InputWallPaperNoFile) Encode() []byte

func (*InputWallPaperNoFile) ImplementsInputWallPaper

func (*InputWallPaperNoFile) ImplementsInputWallPaper()

type InputWallPaperObj

type InputWallPaperObj struct {
	Id         int64 `validate:"required"`
	AccessHash int64 `validate:"required"`
}

func (*InputWallPaperObj) CRC

func (*InputWallPaperObj) CRC() uint32

func (*InputWallPaperObj) Encode

func (e *InputWallPaperObj) Encode() []byte

func (*InputWallPaperObj) ImplementsInputWallPaper

func (*InputWallPaperObj) ImplementsInputWallPaper()

type InputWallPaperSlug

type InputWallPaperSlug struct {
	Slug string `validate:"required"`
}

func (*InputWallPaperSlug) CRC

func (*InputWallPaperSlug) CRC() uint32

func (*InputWallPaperSlug) Encode

func (e *InputWallPaperSlug) Encode() []byte

func (*InputWallPaperSlug) ImplementsInputWallPaper

func (*InputWallPaperSlug) ImplementsInputWallPaper()

type InputWebDocument

type InputWebDocument struct {
	Url        string              `validate:"required"`
	Size       int32               `validate:"required"`
	MimeType   string              `validate:"required"`
	Attributes []DocumentAttribute `validate:"required"`
}

func (*InputWebDocument) CRC

func (e *InputWebDocument) CRC() uint32

func (*InputWebDocument) Encode

func (e *InputWebDocument) Encode() []byte

type InputWebFileGeoPointLocation

type InputWebFileGeoPointLocation struct {
	GeoPoint   InputGeoPoint `validate:"required"`
	AccessHash int64         `validate:"required"`
	W          int32         `validate:"required"`
	H          int32         `validate:"required"`
	Zoom       int32         `validate:"required"`
	Scale      int32         `validate:"required"`
}

func (*InputWebFileGeoPointLocation) CRC

func (*InputWebFileGeoPointLocation) Encode

func (e *InputWebFileGeoPointLocation) Encode() []byte

func (*InputWebFileGeoPointLocation) ImplementsInputWebFileLocation

func (*InputWebFileGeoPointLocation) ImplementsInputWebFileLocation()

type InputWebFileLocation

type InputWebFileLocation interface {
	serialize.TL
	ImplementsInputWebFileLocation()
}

type InputWebFileLocationObj

type InputWebFileLocationObj struct {
	Url        string `validate:"required"`
	AccessHash int64  `validate:"required"`
}

func (*InputWebFileLocationObj) CRC

func (*InputWebFileLocationObj) Encode

func (e *InputWebFileLocationObj) Encode() []byte

func (*InputWebFileLocationObj) ImplementsInputWebFileLocation

func (*InputWebFileLocationObj) ImplementsInputWebFileLocation()

type Invoice

type Invoice struct {
	Test                     bool            `flag:"0,encoded_in_bitflags"`
	NameRequested            bool            `flag:"1,encoded_in_bitflags"`
	PhoneRequested           bool            `flag:"2,encoded_in_bitflags"`
	EmailRequested           bool            `flag:"3,encoded_in_bitflags"`
	ShippingAddressRequested bool            `flag:"4,encoded_in_bitflags"`
	Flexible                 bool            `flag:"5,encoded_in_bitflags"`
	PhoneToProvider          bool            `flag:"6,encoded_in_bitflags"`
	EmailToProvider          bool            `flag:"7,encoded_in_bitflags"`
	Currency                 string          `validate:"required"`
	Prices                   []*LabeledPrice `validate:"required"`
	// contains filtered or unexported fields
}

func (*Invoice) CRC

func (e *Invoice) CRC() uint32

func (*Invoice) Encode

func (e *Invoice) Encode() []byte

type InvokeWithLayerParams

type InvokeWithLayerParams struct {
	Layer int32
	Query serialize.TLEncoder
}

func (*InvokeWithLayerParams) CRC

func (*InvokeWithLayerParams) DecodeFrom

func (t *InvokeWithLayerParams) DecodeFrom(d *serialize.Decoder)

func (*InvokeWithLayerParams) Encode

func (t *InvokeWithLayerParams) Encode() []byte

type InvokeWithTakeoutParams

type InvokeWithTakeoutParams struct {
	TakeoutID int64
	Query     serialize.TLEncoder
}

func (*InvokeWithTakeoutParams) CRC

func (*InvokeWithTakeoutParams) DecodeFrom

func (t *InvokeWithTakeoutParams) DecodeFrom(d *serialize.Decoder)

func (*InvokeWithTakeoutParams) Encode

func (t *InvokeWithTakeoutParams) Encode() []byte

type IpPort

type IpPort interface {
	serialize.TL
	ImplementsIpPort()
}

type IpPortObj

type IpPortObj struct {
	Ipv4 int32 `validate:"required"`
	Port int32 `validate:"required"`
}

func (*IpPortObj) CRC

func (*IpPortObj) CRC() uint32

func (*IpPortObj) Encode

func (e *IpPortObj) Encode() []byte

func (*IpPortObj) ImplementsIpPort

func (*IpPortObj) ImplementsIpPort()

type IpPortSecret

type IpPortSecret struct {
	Ipv4   int32  `validate:"required"`
	Port   int32  `validate:"required"`
	Secret []byte `validate:"required"`
}

func (*IpPortSecret) CRC

func (*IpPortSecret) CRC() uint32

func (*IpPortSecret) Encode

func (e *IpPortSecret) Encode() []byte

func (*IpPortSecret) ImplementsIpPort

func (*IpPortSecret) ImplementsIpPort()

type JSONObjectValue

type JSONObjectValue struct {
	Key   string    `validate:"required"`
	Value JSONValue `validate:"required"`
}

func (*JSONObjectValue) CRC

func (e *JSONObjectValue) CRC() uint32

func (*JSONObjectValue) Encode

func (e *JSONObjectValue) Encode() []byte

type JSONValue

type JSONValue interface {
	serialize.TL
	ImplementsJSONValue()
}

type JsonArray

type JsonArray struct {
	Value []JSONValue `validate:"required"`
}

func (*JsonArray) CRC

func (*JsonArray) CRC() uint32

func (*JsonArray) Encode

func (e *JsonArray) Encode() []byte

func (*JsonArray) ImplementsJSONValue

func (*JsonArray) ImplementsJSONValue()

type JsonBool

type JsonBool struct {
	Value bool `validate:"required"`
}

func (*JsonBool) CRC

func (*JsonBool) CRC() uint32

func (*JsonBool) Encode

func (e *JsonBool) Encode() []byte

func (*JsonBool) ImplementsJSONValue

func (*JsonBool) ImplementsJSONValue()

type JsonNull

type JsonNull struct{}

func (*JsonNull) CRC

func (*JsonNull) CRC() uint32

func (*JsonNull) Encode

func (e *JsonNull) Encode() []byte

func (*JsonNull) ImplementsJSONValue

func (*JsonNull) ImplementsJSONValue()

type JsonNumber

type JsonNumber struct {
	Value float64 `validate:"required"`
}

func (*JsonNumber) CRC

func (*JsonNumber) CRC() uint32

func (*JsonNumber) Encode

func (e *JsonNumber) Encode() []byte

func (*JsonNumber) ImplementsJSONValue

func (*JsonNumber) ImplementsJSONValue()

type JsonObject

type JsonObject struct {
	Value []*JSONObjectValue `validate:"required"`
}

func (*JsonObject) CRC

func (*JsonObject) CRC() uint32

func (*JsonObject) Encode

func (e *JsonObject) Encode() []byte

func (*JsonObject) ImplementsJSONValue

func (*JsonObject) ImplementsJSONValue()

type JsonString

type JsonString struct {
	Value string `validate:"required"`
}

func (*JsonString) CRC

func (*JsonString) CRC() uint32

func (*JsonString) Encode

func (e *JsonString) Encode() []byte

func (*JsonString) ImplementsJSONValue

func (*JsonString) ImplementsJSONValue()

type KeyboardButton

type KeyboardButton interface {
	serialize.TL
	ImplementsKeyboardButton()
}

type KeyboardButtonBuy

type KeyboardButtonBuy struct {
	Text string `validate:"required"`
}

func (*KeyboardButtonBuy) CRC

func (*KeyboardButtonBuy) CRC() uint32

func (*KeyboardButtonBuy) Encode

func (e *KeyboardButtonBuy) Encode() []byte

func (*KeyboardButtonBuy) ImplementsKeyboardButton

func (*KeyboardButtonBuy) ImplementsKeyboardButton()

type KeyboardButtonCallback

type KeyboardButtonCallback struct {
	Text string `validate:"required"`
	Data []byte `validate:"required"`
}

func (*KeyboardButtonCallback) CRC

func (*KeyboardButtonCallback) Encode

func (e *KeyboardButtonCallback) Encode() []byte

func (*KeyboardButtonCallback) ImplementsKeyboardButton

func (*KeyboardButtonCallback) ImplementsKeyboardButton()

type KeyboardButtonGame

type KeyboardButtonGame struct {
	Text string `validate:"required"`
}

func (*KeyboardButtonGame) CRC

func (*KeyboardButtonGame) CRC() uint32

func (*KeyboardButtonGame) Encode

func (e *KeyboardButtonGame) Encode() []byte

func (*KeyboardButtonGame) ImplementsKeyboardButton

func (*KeyboardButtonGame) ImplementsKeyboardButton()

type KeyboardButtonObj

type KeyboardButtonObj struct {
	Text string `validate:"required"`
}

func (*KeyboardButtonObj) CRC

func (*KeyboardButtonObj) CRC() uint32

func (*KeyboardButtonObj) Encode

func (e *KeyboardButtonObj) Encode() []byte

func (*KeyboardButtonObj) ImplementsKeyboardButton

func (*KeyboardButtonObj) ImplementsKeyboardButton()

type KeyboardButtonRequestGeoLocation

type KeyboardButtonRequestGeoLocation struct {
	Text string `validate:"required"`
}

func (*KeyboardButtonRequestGeoLocation) CRC

func (*KeyboardButtonRequestGeoLocation) Encode

func (e *KeyboardButtonRequestGeoLocation) Encode() []byte

func (*KeyboardButtonRequestGeoLocation) ImplementsKeyboardButton

func (*KeyboardButtonRequestGeoLocation) ImplementsKeyboardButton()

type KeyboardButtonRequestPhone

type KeyboardButtonRequestPhone struct {
	Text string `validate:"required"`
}

func (*KeyboardButtonRequestPhone) CRC

func (*KeyboardButtonRequestPhone) Encode

func (e *KeyboardButtonRequestPhone) Encode() []byte

func (*KeyboardButtonRequestPhone) ImplementsKeyboardButton

func (*KeyboardButtonRequestPhone) ImplementsKeyboardButton()

type KeyboardButtonRequestPoll

type KeyboardButtonRequestPoll struct {
	Quiz bool   `flag:"0"`
	Text string `validate:"required"`
	// contains filtered or unexported fields
}

func (*KeyboardButtonRequestPoll) CRC

func (*KeyboardButtonRequestPoll) Encode

func (e *KeyboardButtonRequestPoll) Encode() []byte

func (*KeyboardButtonRequestPoll) ImplementsKeyboardButton

func (*KeyboardButtonRequestPoll) ImplementsKeyboardButton()

type KeyboardButtonRow

type KeyboardButtonRow struct {
	Buttons []KeyboardButton `validate:"required"`
}

func (*KeyboardButtonRow) CRC

func (e *KeyboardButtonRow) CRC() uint32

func (*KeyboardButtonRow) Encode

func (e *KeyboardButtonRow) Encode() []byte

type KeyboardButtonSwitchInline

type KeyboardButtonSwitchInline struct {
	SamePeer bool   `flag:"0,encoded_in_bitflags"`
	Text     string `validate:"required"`
	Query    string `validate:"required"`
	// contains filtered or unexported fields
}

func (*KeyboardButtonSwitchInline) CRC

func (*KeyboardButtonSwitchInline) Encode

func (e *KeyboardButtonSwitchInline) Encode() []byte

func (*KeyboardButtonSwitchInline) ImplementsKeyboardButton

func (*KeyboardButtonSwitchInline) ImplementsKeyboardButton()

type KeyboardButtonUrl

type KeyboardButtonUrl struct {
	Text string `validate:"required"`
	Url  string `validate:"required"`
}

func (*KeyboardButtonUrl) CRC

func (*KeyboardButtonUrl) CRC() uint32

func (*KeyboardButtonUrl) Encode

func (e *KeyboardButtonUrl) Encode() []byte

func (*KeyboardButtonUrl) ImplementsKeyboardButton

func (*KeyboardButtonUrl) ImplementsKeyboardButton()

type KeyboardButtonUrlAuth

type KeyboardButtonUrlAuth struct {
	Text     string `validate:"required"`
	FwdText  string `flag:"0"`
	Url      string `validate:"required"`
	ButtonId int32  `validate:"required"`
	// contains filtered or unexported fields
}

func (*KeyboardButtonUrlAuth) CRC

func (*KeyboardButtonUrlAuth) Encode

func (e *KeyboardButtonUrlAuth) Encode() []byte

func (*KeyboardButtonUrlAuth) ImplementsKeyboardButton

func (*KeyboardButtonUrlAuth) ImplementsKeyboardButton()

type LabeledPrice

type LabeledPrice struct {
	Label  string `validate:"required"`
	Amount int64  `validate:"required"`
}

func (*LabeledPrice) CRC

func (e *LabeledPrice) CRC() uint32

func (*LabeledPrice) Encode

func (e *LabeledPrice) Encode() []byte

type LangPackDifference

type LangPackDifference struct {
	LangCode    string           `validate:"required"`
	FromVersion int32            `validate:"required"`
	Version     int32            `validate:"required"`
	Strings     []LangPackString `validate:"required"`
}

func (*LangPackDifference) CRC

func (e *LangPackDifference) CRC() uint32

func (*LangPackDifference) Encode

func (e *LangPackDifference) Encode() []byte

type LangPackLanguage

type LangPackLanguage struct {
	Official        bool   `flag:"0,encoded_in_bitflags"`
	Rtl             bool   `flag:"2,encoded_in_bitflags"`
	Beta            bool   `flag:"3,encoded_in_bitflags"`
	Name            string `validate:"required"`
	NativeName      string `validate:"required"`
	LangCode        string `validate:"required"`
	BaseLangCode    string `flag:"1"`
	PluralCode      string `validate:"required"`
	StringsCount    int32  `validate:"required"`
	TranslatedCount int32  `validate:"required"`
	TranslationsUrl string `validate:"required"`
	// contains filtered or unexported fields
}

func (*LangPackLanguage) CRC

func (e *LangPackLanguage) CRC() uint32

func (*LangPackLanguage) Encode

func (e *LangPackLanguage) Encode() []byte

type LangPackString

type LangPackString interface {
	serialize.TL
	ImplementsLangPackString()
}

type LangPackStringDeleted

type LangPackStringDeleted struct {
	Key string `validate:"required"`
}

func (*LangPackStringDeleted) CRC

func (*LangPackStringDeleted) Encode

func (e *LangPackStringDeleted) Encode() []byte

func (*LangPackStringDeleted) ImplementsLangPackString

func (*LangPackStringDeleted) ImplementsLangPackString()

type LangPackStringObj

type LangPackStringObj struct {
	Key   string `validate:"required"`
	Value string `validate:"required"`
}

func (*LangPackStringObj) CRC

func (*LangPackStringObj) CRC() uint32

func (*LangPackStringObj) Encode

func (e *LangPackStringObj) Encode() []byte

func (*LangPackStringObj) ImplementsLangPackString

func (*LangPackStringObj) ImplementsLangPackString()

type LangPackStringPluralized

type LangPackStringPluralized struct {
	Key        string `validate:"required"`
	ZeroValue  string `flag:"0"`
	OneValue   string `flag:"1"`
	TwoValue   string `flag:"2"`
	FewValue   string `flag:"3"`
	ManyValue  string `flag:"4"`
	OtherValue string `validate:"required"`
	// contains filtered or unexported fields
}

func (*LangPackStringPluralized) CRC

func (*LangPackStringPluralized) Encode

func (e *LangPackStringPluralized) Encode() []byte

func (*LangPackStringPluralized) ImplementsLangPackString

func (*LangPackStringPluralized) ImplementsLangPackString()

type LangpackGetDifferenceParams

type LangpackGetDifferenceParams struct {
	LangPack    string `validate:"required"`
	LangCode    string `validate:"required"`
	FromVersion int32  `validate:"required"`
}

func (*LangpackGetDifferenceParams) CRC

func (*LangpackGetDifferenceParams) Encode

func (e *LangpackGetDifferenceParams) Encode() []byte

type LangpackGetLangPackParams

type LangpackGetLangPackParams struct {
	LangPack string `validate:"required"`
	LangCode string `validate:"required"`
}

func (*LangpackGetLangPackParams) CRC

func (*LangpackGetLangPackParams) Encode

func (e *LangpackGetLangPackParams) Encode() []byte

type LangpackGetLanguageParams

type LangpackGetLanguageParams struct {
	LangPack string `validate:"required"`
	LangCode string `validate:"required"`
}

func (*LangpackGetLanguageParams) CRC

func (*LangpackGetLanguageParams) Encode

func (e *LangpackGetLanguageParams) Encode() []byte

type LangpackGetLanguagesParams

type LangpackGetLanguagesParams struct {
	LangPack string `validate:"required"`
}

func (*LangpackGetLanguagesParams) CRC

func (*LangpackGetLanguagesParams) Encode

func (e *LangpackGetLanguagesParams) Encode() []byte

type LangpackGetStringsParams

type LangpackGetStringsParams struct {
	LangPack string   `validate:"required"`
	LangCode string   `validate:"required"`
	Keys     []string `validate:"required"`
}

func (*LangpackGetStringsParams) CRC

func (*LangpackGetStringsParams) Encode

func (e *LangpackGetStringsParams) Encode() []byte

type MaskCoords

type MaskCoords struct {
	N    int32   `validate:"required"`
	X    float64 `validate:"required"`
	Y    float64 `validate:"required"`
	Zoom float64 `validate:"required"`
}

func (*MaskCoords) CRC

func (e *MaskCoords) CRC() uint32

func (*MaskCoords) Encode

func (e *MaskCoords) Encode() []byte

type Message

type Message interface {
	serialize.TL
	ImplementsMessage()
}

type MessageAction

type MessageAction interface {
	serialize.TL
	ImplementsMessageAction()
}

type MessageActionBotAllowed

type MessageActionBotAllowed struct {
	Domain string `validate:"required"`
}

func (*MessageActionBotAllowed) CRC

func (*MessageActionBotAllowed) Encode

func (e *MessageActionBotAllowed) Encode() []byte

func (*MessageActionBotAllowed) ImplementsMessageAction

func (*MessageActionBotAllowed) ImplementsMessageAction()

type MessageActionChannelCreate

type MessageActionChannelCreate struct {
	Title string `validate:"required"`
}

func (*MessageActionChannelCreate) CRC

func (*MessageActionChannelCreate) Encode

func (e *MessageActionChannelCreate) Encode() []byte

func (*MessageActionChannelCreate) ImplementsMessageAction

func (*MessageActionChannelCreate) ImplementsMessageAction()

type MessageActionChannelMigrateFrom

type MessageActionChannelMigrateFrom struct {
	Title  string `validate:"required"`
	ChatId int32  `validate:"required"`
}

func (*MessageActionChannelMigrateFrom) CRC

func (*MessageActionChannelMigrateFrom) Encode

func (e *MessageActionChannelMigrateFrom) Encode() []byte

func (*MessageActionChannelMigrateFrom) ImplementsMessageAction

func (*MessageActionChannelMigrateFrom) ImplementsMessageAction()

type MessageActionChatAddUser

type MessageActionChatAddUser struct {
	Users []int32 `validate:"required"`
}

func (*MessageActionChatAddUser) CRC

func (*MessageActionChatAddUser) Encode

func (e *MessageActionChatAddUser) Encode() []byte

func (*MessageActionChatAddUser) ImplementsMessageAction

func (*MessageActionChatAddUser) ImplementsMessageAction()

type MessageActionChatCreate

type MessageActionChatCreate struct {
	Title string  `validate:"required"`
	Users []int32 `validate:"required"`
}

func (*MessageActionChatCreate) CRC

func (*MessageActionChatCreate) Encode

func (e *MessageActionChatCreate) Encode() []byte

func (*MessageActionChatCreate) ImplementsMessageAction

func (*MessageActionChatCreate) ImplementsMessageAction()

type MessageActionChatDeletePhoto

type MessageActionChatDeletePhoto struct{}

func (*MessageActionChatDeletePhoto) CRC

func (*MessageActionChatDeletePhoto) Encode

func (e *MessageActionChatDeletePhoto) Encode() []byte

func (*MessageActionChatDeletePhoto) ImplementsMessageAction

func (*MessageActionChatDeletePhoto) ImplementsMessageAction()

type MessageActionChatDeleteUser

type MessageActionChatDeleteUser struct {
	UserId int32 `validate:"required"`
}

func (*MessageActionChatDeleteUser) CRC

func (*MessageActionChatDeleteUser) Encode

func (e *MessageActionChatDeleteUser) Encode() []byte

func (*MessageActionChatDeleteUser) ImplementsMessageAction

func (*MessageActionChatDeleteUser) ImplementsMessageAction()

type MessageActionChatEditPhoto

type MessageActionChatEditPhoto struct {
	Photo Photo `validate:"required"`
}

func (*MessageActionChatEditPhoto) CRC

func (*MessageActionChatEditPhoto) Encode

func (e *MessageActionChatEditPhoto) Encode() []byte

func (*MessageActionChatEditPhoto) ImplementsMessageAction

func (*MessageActionChatEditPhoto) ImplementsMessageAction()

type MessageActionChatEditTitle

type MessageActionChatEditTitle struct {
	Title string `validate:"required"`
}

func (*MessageActionChatEditTitle) CRC

func (*MessageActionChatEditTitle) Encode

func (e *MessageActionChatEditTitle) Encode() []byte

func (*MessageActionChatEditTitle) ImplementsMessageAction

func (*MessageActionChatEditTitle) ImplementsMessageAction()
type MessageActionChatJoinedByLink struct {
	InviterId int32 `validate:"required"`
}

func (*MessageActionChatJoinedByLink) CRC

func (*MessageActionChatJoinedByLink) Encode

func (e *MessageActionChatJoinedByLink) Encode() []byte

func (*MessageActionChatJoinedByLink) ImplementsMessageAction

func (*MessageActionChatJoinedByLink) ImplementsMessageAction()

type MessageActionChatMigrateTo

type MessageActionChatMigrateTo struct {
	ChannelId int32 `validate:"required"`
}

func (*MessageActionChatMigrateTo) CRC

func (*MessageActionChatMigrateTo) Encode

func (e *MessageActionChatMigrateTo) Encode() []byte

func (*MessageActionChatMigrateTo) ImplementsMessageAction

func (*MessageActionChatMigrateTo) ImplementsMessageAction()

type MessageActionContactSignUp

type MessageActionContactSignUp struct{}

func (*MessageActionContactSignUp) CRC

func (*MessageActionContactSignUp) Encode

func (e *MessageActionContactSignUp) Encode() []byte

func (*MessageActionContactSignUp) ImplementsMessageAction

func (*MessageActionContactSignUp) ImplementsMessageAction()

type MessageActionCustomAction

type MessageActionCustomAction struct {
	Message string `validate:"required"`
}

func (*MessageActionCustomAction) CRC

func (*MessageActionCustomAction) Encode

func (e *MessageActionCustomAction) Encode() []byte

func (*MessageActionCustomAction) ImplementsMessageAction

func (*MessageActionCustomAction) ImplementsMessageAction()

type MessageActionEmpty

type MessageActionEmpty struct{}

func (*MessageActionEmpty) CRC

func (*MessageActionEmpty) CRC() uint32

func (*MessageActionEmpty) Encode

func (e *MessageActionEmpty) Encode() []byte

func (*MessageActionEmpty) ImplementsMessageAction

func (*MessageActionEmpty) ImplementsMessageAction()

type MessageActionGameScore

type MessageActionGameScore struct {
	GameId int64 `validate:"required"`
	Score  int32 `validate:"required"`
}

func (*MessageActionGameScore) CRC

func (*MessageActionGameScore) Encode

func (e *MessageActionGameScore) Encode() []byte

func (*MessageActionGameScore) ImplementsMessageAction

func (*MessageActionGameScore) ImplementsMessageAction()

type MessageActionHistoryClear

type MessageActionHistoryClear struct{}

func (*MessageActionHistoryClear) CRC

func (*MessageActionHistoryClear) Encode

func (e *MessageActionHistoryClear) Encode() []byte

func (*MessageActionHistoryClear) ImplementsMessageAction

func (*MessageActionHistoryClear) ImplementsMessageAction()

type MessageActionPaymentSent

type MessageActionPaymentSent struct {
	Currency    string `validate:"required"`
	TotalAmount int64  `validate:"required"`
}

func (*MessageActionPaymentSent) CRC

func (*MessageActionPaymentSent) Encode

func (e *MessageActionPaymentSent) Encode() []byte

func (*MessageActionPaymentSent) ImplementsMessageAction

func (*MessageActionPaymentSent) ImplementsMessageAction()

type MessageActionPaymentSentMe

type MessageActionPaymentSentMe struct {
	Currency         string                `validate:"required"`
	TotalAmount      int64                 `validate:"required"`
	Payload          []byte                `validate:"required"`
	Info             *PaymentRequestedInfo `flag:"0"`
	ShippingOptionId string                `flag:"1"`
	Charge           *PaymentCharge        `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessageActionPaymentSentMe) CRC

func (*MessageActionPaymentSentMe) Encode

func (e *MessageActionPaymentSentMe) Encode() []byte

func (*MessageActionPaymentSentMe) ImplementsMessageAction

func (*MessageActionPaymentSentMe) ImplementsMessageAction()

type MessageActionPhoneCall

type MessageActionPhoneCall struct {
	Video    bool                   `flag:"2,encoded_in_bitflags"`
	CallId   int64                  `validate:"required"`
	Reason   PhoneCallDiscardReason `flag:"0"`
	Duration int32                  `flag:"1"`
	// contains filtered or unexported fields
}

func (*MessageActionPhoneCall) CRC

func (*MessageActionPhoneCall) Encode

func (e *MessageActionPhoneCall) Encode() []byte

func (*MessageActionPhoneCall) ImplementsMessageAction

func (*MessageActionPhoneCall) ImplementsMessageAction()

type MessageActionPinMessage

type MessageActionPinMessage struct{}

func (*MessageActionPinMessage) CRC

func (*MessageActionPinMessage) Encode

func (e *MessageActionPinMessage) Encode() []byte

func (*MessageActionPinMessage) ImplementsMessageAction

func (*MessageActionPinMessage) ImplementsMessageAction()

type MessageActionScreenshotTaken

type MessageActionScreenshotTaken struct{}

func (*MessageActionScreenshotTaken) CRC

func (*MessageActionScreenshotTaken) Encode

func (e *MessageActionScreenshotTaken) Encode() []byte

func (*MessageActionScreenshotTaken) ImplementsMessageAction

func (*MessageActionScreenshotTaken) ImplementsMessageAction()

type MessageActionSecureValuesSent

type MessageActionSecureValuesSent struct {
	Types []SecureValueType `validate:"required"`
}

func (*MessageActionSecureValuesSent) CRC

func (*MessageActionSecureValuesSent) Encode

func (e *MessageActionSecureValuesSent) Encode() []byte

func (*MessageActionSecureValuesSent) ImplementsMessageAction

func (*MessageActionSecureValuesSent) ImplementsMessageAction()

type MessageActionSecureValuesSentMe

type MessageActionSecureValuesSentMe struct {
	Values      []*SecureValue              `validate:"required"`
	Credentials *SecureCredentialsEncrypted `validate:"required"`
}

func (*MessageActionSecureValuesSentMe) CRC

func (*MessageActionSecureValuesSentMe) Encode

func (e *MessageActionSecureValuesSentMe) Encode() []byte

func (*MessageActionSecureValuesSentMe) ImplementsMessageAction

func (*MessageActionSecureValuesSentMe) ImplementsMessageAction()

type MessageEmpty

type MessageEmpty struct {
	Id int32 `validate:"required"`
}

func (*MessageEmpty) CRC

func (*MessageEmpty) CRC() uint32

func (*MessageEmpty) Encode

func (e *MessageEmpty) Encode() []byte

func (*MessageEmpty) ImplementsMessage

func (*MessageEmpty) ImplementsMessage()

type MessageEntity

type MessageEntity interface {
	serialize.TL
	ImplementsMessageEntity()
}

type MessageEntityBankCard

type MessageEntityBankCard struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityBankCard) CRC

func (*MessageEntityBankCard) Encode

func (e *MessageEntityBankCard) Encode() []byte

func (*MessageEntityBankCard) ImplementsMessageEntity

func (*MessageEntityBankCard) ImplementsMessageEntity()

type MessageEntityBlockquote

type MessageEntityBlockquote struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityBlockquote) CRC

func (*MessageEntityBlockquote) Encode

func (e *MessageEntityBlockquote) Encode() []byte

func (*MessageEntityBlockquote) ImplementsMessageEntity

func (*MessageEntityBlockquote) ImplementsMessageEntity()

type MessageEntityBold

type MessageEntityBold struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityBold) CRC

func (*MessageEntityBold) CRC() uint32

func (*MessageEntityBold) Encode

func (e *MessageEntityBold) Encode() []byte

func (*MessageEntityBold) ImplementsMessageEntity

func (*MessageEntityBold) ImplementsMessageEntity()

type MessageEntityBotCommand

type MessageEntityBotCommand struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityBotCommand) CRC

func (*MessageEntityBotCommand) Encode

func (e *MessageEntityBotCommand) Encode() []byte

func (*MessageEntityBotCommand) ImplementsMessageEntity

func (*MessageEntityBotCommand) ImplementsMessageEntity()

type MessageEntityCashtag

type MessageEntityCashtag struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityCashtag) CRC

func (*MessageEntityCashtag) Encode

func (e *MessageEntityCashtag) Encode() []byte

func (*MessageEntityCashtag) ImplementsMessageEntity

func (*MessageEntityCashtag) ImplementsMessageEntity()

type MessageEntityCode

type MessageEntityCode struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityCode) CRC

func (*MessageEntityCode) CRC() uint32

func (*MessageEntityCode) Encode

func (e *MessageEntityCode) Encode() []byte

func (*MessageEntityCode) ImplementsMessageEntity

func (*MessageEntityCode) ImplementsMessageEntity()

type MessageEntityEmail

type MessageEntityEmail struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityEmail) CRC

func (*MessageEntityEmail) CRC() uint32

func (*MessageEntityEmail) Encode

func (e *MessageEntityEmail) Encode() []byte

func (*MessageEntityEmail) ImplementsMessageEntity

func (*MessageEntityEmail) ImplementsMessageEntity()

type MessageEntityHashtag

type MessageEntityHashtag struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityHashtag) CRC

func (*MessageEntityHashtag) Encode

func (e *MessageEntityHashtag) Encode() []byte

func (*MessageEntityHashtag) ImplementsMessageEntity

func (*MessageEntityHashtag) ImplementsMessageEntity()

type MessageEntityItalic

type MessageEntityItalic struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityItalic) CRC

func (*MessageEntityItalic) CRC() uint32

func (*MessageEntityItalic) Encode

func (e *MessageEntityItalic) Encode() []byte

func (*MessageEntityItalic) ImplementsMessageEntity

func (*MessageEntityItalic) ImplementsMessageEntity()

type MessageEntityMention

type MessageEntityMention struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityMention) CRC

func (*MessageEntityMention) Encode

func (e *MessageEntityMention) Encode() []byte

func (*MessageEntityMention) ImplementsMessageEntity

func (*MessageEntityMention) ImplementsMessageEntity()

type MessageEntityMentionName

type MessageEntityMentionName struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
	UserId int32 `validate:"required"`
}

func (*MessageEntityMentionName) CRC

func (*MessageEntityMentionName) Encode

func (e *MessageEntityMentionName) Encode() []byte

func (*MessageEntityMentionName) ImplementsMessageEntity

func (*MessageEntityMentionName) ImplementsMessageEntity()

type MessageEntityPhone

type MessageEntityPhone struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityPhone) CRC

func (*MessageEntityPhone) CRC() uint32

func (*MessageEntityPhone) Encode

func (e *MessageEntityPhone) Encode() []byte

func (*MessageEntityPhone) ImplementsMessageEntity

func (*MessageEntityPhone) ImplementsMessageEntity()

type MessageEntityPre

type MessageEntityPre struct {
	Offset   int32  `validate:"required"`
	Length   int32  `validate:"required"`
	Language string `validate:"required"`
}

func (*MessageEntityPre) CRC

func (*MessageEntityPre) CRC() uint32

func (*MessageEntityPre) Encode

func (e *MessageEntityPre) Encode() []byte

func (*MessageEntityPre) ImplementsMessageEntity

func (*MessageEntityPre) ImplementsMessageEntity()

type MessageEntityStrike

type MessageEntityStrike struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityStrike) CRC

func (*MessageEntityStrike) CRC() uint32

func (*MessageEntityStrike) Encode

func (e *MessageEntityStrike) Encode() []byte

func (*MessageEntityStrike) ImplementsMessageEntity

func (*MessageEntityStrike) ImplementsMessageEntity()

type MessageEntityTextUrl

type MessageEntityTextUrl struct {
	Offset int32  `validate:"required"`
	Length int32  `validate:"required"`
	Url    string `validate:"required"`
}

func (*MessageEntityTextUrl) CRC

func (*MessageEntityTextUrl) Encode

func (e *MessageEntityTextUrl) Encode() []byte

func (*MessageEntityTextUrl) ImplementsMessageEntity

func (*MessageEntityTextUrl) ImplementsMessageEntity()

type MessageEntityUnderline

type MessageEntityUnderline struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityUnderline) CRC

func (*MessageEntityUnderline) Encode

func (e *MessageEntityUnderline) Encode() []byte

func (*MessageEntityUnderline) ImplementsMessageEntity

func (*MessageEntityUnderline) ImplementsMessageEntity()

type MessageEntityUnknown

type MessageEntityUnknown struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityUnknown) CRC

func (*MessageEntityUnknown) Encode

func (e *MessageEntityUnknown) Encode() []byte

func (*MessageEntityUnknown) ImplementsMessageEntity

func (*MessageEntityUnknown) ImplementsMessageEntity()

type MessageEntityUrl

type MessageEntityUrl struct {
	Offset int32 `validate:"required"`
	Length int32 `validate:"required"`
}

func (*MessageEntityUrl) CRC

func (*MessageEntityUrl) CRC() uint32

func (*MessageEntityUrl) Encode

func (e *MessageEntityUrl) Encode() []byte

func (*MessageEntityUrl) ImplementsMessageEntity

func (*MessageEntityUrl) ImplementsMessageEntity()

type MessageFwdHeader

type MessageFwdHeader struct {
	FromId         int32  `flag:"0"`
	FromName       string `flag:"5"`
	Date           int32  `validate:"required"`
	ChannelId      int32  `flag:"1"`
	ChannelPost    int32  `flag:"2"`
	PostAuthor     string `flag:"3"`
	SavedFromPeer  Peer   `flag:"4"`
	SavedFromMsgId int32  `flag:"4"`
	PsaType        string `flag:"6"`
	// contains filtered or unexported fields
}

func (*MessageFwdHeader) CRC

func (e *MessageFwdHeader) CRC() uint32

func (*MessageFwdHeader) Encode

func (e *MessageFwdHeader) Encode() []byte

type MessageInteractionCounters

type MessageInteractionCounters struct {
	MsgId    int32 `validate:"required"`
	Views    int32 `validate:"required"`
	Forwards int32 `validate:"required"`
}

func (*MessageInteractionCounters) CRC

func (*MessageInteractionCounters) Encode

func (e *MessageInteractionCounters) Encode() []byte

type MessageMedia

type MessageMedia interface {
	serialize.TL
	ImplementsMessageMedia()
}

type MessageMediaContact

type MessageMediaContact struct {
	PhoneNumber string `validate:"required"`
	FirstName   string `validate:"required"`
	LastName    string `validate:"required"`
	Vcard       string `validate:"required"`
	UserId      int32  `validate:"required"`
}

func (*MessageMediaContact) CRC

func (*MessageMediaContact) CRC() uint32

func (*MessageMediaContact) Encode

func (e *MessageMediaContact) Encode() []byte

func (*MessageMediaContact) ImplementsMessageMedia

func (*MessageMediaContact) ImplementsMessageMedia()

type MessageMediaDice

type MessageMediaDice struct {
	Value    int32  `validate:"required"`
	Emoticon string `validate:"required"`
}

func (*MessageMediaDice) CRC

func (*MessageMediaDice) CRC() uint32

func (*MessageMediaDice) Encode

func (e *MessageMediaDice) Encode() []byte

func (*MessageMediaDice) ImplementsMessageMedia

func (*MessageMediaDice) ImplementsMessageMedia()

type MessageMediaDocument

type MessageMediaDocument struct {
	Document   Document `flag:"0"`
	TtlSeconds int32    `flag:"2"`
	// contains filtered or unexported fields
}

func (*MessageMediaDocument) CRC

func (*MessageMediaDocument) Encode

func (e *MessageMediaDocument) Encode() []byte

func (*MessageMediaDocument) ImplementsMessageMedia

func (*MessageMediaDocument) ImplementsMessageMedia()

type MessageMediaEmpty

type MessageMediaEmpty struct{}

func (*MessageMediaEmpty) CRC

func (*MessageMediaEmpty) CRC() uint32

func (*MessageMediaEmpty) Encode

func (e *MessageMediaEmpty) Encode() []byte

func (*MessageMediaEmpty) ImplementsMessageMedia

func (*MessageMediaEmpty) ImplementsMessageMedia()

type MessageMediaGame

type MessageMediaGame struct {
	Game *Game `validate:"required"`
}

func (*MessageMediaGame) CRC

func (*MessageMediaGame) CRC() uint32

func (*MessageMediaGame) Encode

func (e *MessageMediaGame) Encode() []byte

func (*MessageMediaGame) ImplementsMessageMedia

func (*MessageMediaGame) ImplementsMessageMedia()

type MessageMediaGeo

type MessageMediaGeo struct {
	Geo GeoPoint `validate:"required"`
}

func (*MessageMediaGeo) CRC

func (*MessageMediaGeo) CRC() uint32

func (*MessageMediaGeo) Encode

func (e *MessageMediaGeo) Encode() []byte

func (*MessageMediaGeo) ImplementsMessageMedia

func (*MessageMediaGeo) ImplementsMessageMedia()

type MessageMediaGeoLive

type MessageMediaGeoLive struct {
	Geo    GeoPoint `validate:"required"`
	Period int32    `validate:"required"`
}

func (*MessageMediaGeoLive) CRC

func (*MessageMediaGeoLive) CRC() uint32

func (*MessageMediaGeoLive) Encode

func (e *MessageMediaGeoLive) Encode() []byte

func (*MessageMediaGeoLive) ImplementsMessageMedia

func (*MessageMediaGeoLive) ImplementsMessageMedia()

type MessageMediaInvoice

type MessageMediaInvoice struct {
	ShippingAddressRequested bool        `flag:"1,encoded_in_bitflags"`
	Test                     bool        `flag:"3,encoded_in_bitflags"`
	Title                    string      `validate:"required"`
	Description              string      `validate:"required"`
	Photo                    WebDocument `flag:"0"`
	ReceiptMsgId             int32       `flag:"2"`
	Currency                 string      `validate:"required"`
	TotalAmount              int64       `validate:"required"`
	StartParam               string      `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessageMediaInvoice) CRC

func (*MessageMediaInvoice) CRC() uint32

func (*MessageMediaInvoice) Encode

func (e *MessageMediaInvoice) Encode() []byte

func (*MessageMediaInvoice) ImplementsMessageMedia

func (*MessageMediaInvoice) ImplementsMessageMedia()

type MessageMediaPhoto

type MessageMediaPhoto struct {
	Photo      Photo `flag:"0"`
	TtlSeconds int32 `flag:"2"`
	// contains filtered or unexported fields
}

func (*MessageMediaPhoto) CRC

func (*MessageMediaPhoto) CRC() uint32

func (*MessageMediaPhoto) Encode

func (e *MessageMediaPhoto) Encode() []byte

func (*MessageMediaPhoto) ImplementsMessageMedia

func (*MessageMediaPhoto) ImplementsMessageMedia()

type MessageMediaPoll

type MessageMediaPoll struct {
	Poll    *Poll        `validate:"required"`
	Results *PollResults `validate:"required"`
}

func (*MessageMediaPoll) CRC

func (*MessageMediaPoll) CRC() uint32

func (*MessageMediaPoll) Encode

func (e *MessageMediaPoll) Encode() []byte

func (*MessageMediaPoll) ImplementsMessageMedia

func (*MessageMediaPoll) ImplementsMessageMedia()

type MessageMediaUnsupported

type MessageMediaUnsupported struct{}

func (*MessageMediaUnsupported) CRC

func (*MessageMediaUnsupported) Encode

func (e *MessageMediaUnsupported) Encode() []byte

func (*MessageMediaUnsupported) ImplementsMessageMedia

func (*MessageMediaUnsupported) ImplementsMessageMedia()

type MessageMediaVenue

type MessageMediaVenue struct {
	Geo       GeoPoint `validate:"required"`
	Title     string   `validate:"required"`
	Address   string   `validate:"required"`
	Provider  string   `validate:"required"`
	VenueId   string   `validate:"required"`
	VenueType string   `validate:"required"`
}

func (*MessageMediaVenue) CRC

func (*MessageMediaVenue) CRC() uint32

func (*MessageMediaVenue) Encode

func (e *MessageMediaVenue) Encode() []byte

func (*MessageMediaVenue) ImplementsMessageMedia

func (*MessageMediaVenue) ImplementsMessageMedia()

type MessageMediaWebPage

type MessageMediaWebPage struct {
	Webpage WebPage `validate:"required"`
}

func (*MessageMediaWebPage) CRC

func (*MessageMediaWebPage) CRC() uint32

func (*MessageMediaWebPage) Encode

func (e *MessageMediaWebPage) Encode() []byte

func (*MessageMediaWebPage) ImplementsMessageMedia

func (*MessageMediaWebPage) ImplementsMessageMedia()

type MessageObj

type MessageObj struct {
	Out               bool                 `flag:"1,encoded_in_bitflags"`
	Mentioned         bool                 `flag:"4,encoded_in_bitflags"`
	MediaUnread       bool                 `flag:"5,encoded_in_bitflags"`
	Silent            bool                 `flag:"13,encoded_in_bitflags"`
	Post              bool                 `flag:"14,encoded_in_bitflags"`
	FromScheduled     bool                 `flag:"18,encoded_in_bitflags"`
	Legacy            bool                 `flag:"19,encoded_in_bitflags"`
	EditHide          bool                 `flag:"21,encoded_in_bitflags"`
	Id                int32                `validate:"required"`
	FromId            int32                `flag:"8"`
	ToId              Peer                 `validate:"required"`
	FwdFrom           *MessageFwdHeader    `flag:"2"`
	ViaBotId          int32                `flag:"11"`
	ReplyToMsgId      int32                `flag:"3"`
	Date              int32                `validate:"required"`
	Message           string               `validate:"required"`
	Media             MessageMedia         `flag:"9"`
	ReplyMarkup       ReplyMarkup          `flag:"6"`
	Entities          []MessageEntity      `flag:"7"`
	Views             int32                `flag:"10"`
	EditDate          int32                `flag:"15"`
	PostAuthor        string               `flag:"16"`
	GroupedId         int64                `flag:"17"`
	RestrictionReason []*RestrictionReason `flag:"22"`
	// contains filtered or unexported fields
}

func (*MessageObj) CRC

func (*MessageObj) CRC() uint32

func (*MessageObj) Encode

func (e *MessageObj) Encode() []byte

func (*MessageObj) ImplementsMessage

func (*MessageObj) ImplementsMessage()

type MessageRange

type MessageRange struct {
	MinId int32 `validate:"required"`
	MaxId int32 `validate:"required"`
}

func (*MessageRange) CRC

func (e *MessageRange) CRC() uint32

func (*MessageRange) Encode

func (e *MessageRange) Encode() []byte

type MessageService

type MessageService struct {
	Out          bool          `flag:"1,encoded_in_bitflags"`
	Mentioned    bool          `flag:"4,encoded_in_bitflags"`
	MediaUnread  bool          `flag:"5,encoded_in_bitflags"`
	Silent       bool          `flag:"13,encoded_in_bitflags"`
	Post         bool          `flag:"14,encoded_in_bitflags"`
	Legacy       bool          `flag:"19,encoded_in_bitflags"`
	Id           int32         `validate:"required"`
	FromId       int32         `flag:"8"`
	ToId         Peer          `validate:"required"`
	ReplyToMsgId int32         `flag:"3"`
	Date         int32         `validate:"required"`
	Action       MessageAction `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessageService) CRC

func (*MessageService) CRC() uint32

func (*MessageService) Encode

func (e *MessageService) Encode() []byte

func (*MessageService) ImplementsMessage

func (*MessageService) ImplementsMessage()

type MessageUserVote

type MessageUserVote interface {
	serialize.TL
	ImplementsMessageUserVote()
}

type MessageUserVoteInputOption

type MessageUserVoteInputOption struct {
	UserId int32 `validate:"required"`
	Date   int32 `validate:"required"`
}

func (*MessageUserVoteInputOption) CRC

func (*MessageUserVoteInputOption) Encode

func (e *MessageUserVoteInputOption) Encode() []byte

func (*MessageUserVoteInputOption) ImplementsMessageUserVote

func (*MessageUserVoteInputOption) ImplementsMessageUserVote()

type MessageUserVoteMultiple

type MessageUserVoteMultiple struct {
	UserId  int32    `validate:"required"`
	Options [][]byte `validate:"required"`
	Date    int32    `validate:"required"`
}

func (*MessageUserVoteMultiple) CRC

func (*MessageUserVoteMultiple) Encode

func (e *MessageUserVoteMultiple) Encode() []byte

func (*MessageUserVoteMultiple) ImplementsMessageUserVote

func (*MessageUserVoteMultiple) ImplementsMessageUserVote()

type MessageUserVoteObj

type MessageUserVoteObj struct {
	UserId int32  `validate:"required"`
	Option []byte `validate:"required"`
	Date   int32  `validate:"required"`
}

func (*MessageUserVoteObj) CRC

func (*MessageUserVoteObj) CRC() uint32

func (*MessageUserVoteObj) Encode

func (e *MessageUserVoteObj) Encode() []byte

func (*MessageUserVoteObj) ImplementsMessageUserVote

func (*MessageUserVoteObj) ImplementsMessageUserVote()

type MessagesAcceptEncryptionParams

type MessagesAcceptEncryptionParams struct {
	Peer           *InputEncryptedChat `validate:"required"`
	GB             []byte              `validate:"required"`
	KeyFingerprint int64               `validate:"required"`
}

func (*MessagesAcceptEncryptionParams) CRC

func (*MessagesAcceptEncryptionParams) Encode

func (e *MessagesAcceptEncryptionParams) Encode() []byte

type MessagesAcceptUrlAuthParams

type MessagesAcceptUrlAuthParams struct {
	WriteAllowed bool      `flag:"0,encoded_in_bitflags"`
	Peer         InputPeer `validate:"required"`
	MsgId        int32     `validate:"required"`
	ButtonId     int32     `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesAcceptUrlAuthParams) CRC

func (*MessagesAcceptUrlAuthParams) Encode

func (e *MessagesAcceptUrlAuthParams) Encode() []byte

type MessagesAddChatUserParams

type MessagesAddChatUserParams struct {
	ChatId   int32     `validate:"required"`
	UserId   InputUser `validate:"required"`
	FwdLimit int32     `validate:"required"`
}

func (*MessagesAddChatUserParams) CRC

func (*MessagesAddChatUserParams) Encode

func (e *MessagesAddChatUserParams) Encode() []byte

type MessagesAffectedHistory

type MessagesAffectedHistory struct {
	Pts      int32 `validate:"required"`
	PtsCount int32 `validate:"required"`
	Offset   int32 `validate:"required"`
}

func (*MessagesAffectedHistory) CRC

func (*MessagesAffectedHistory) Encode

func (e *MessagesAffectedHistory) Encode() []byte

type MessagesAffectedMessages

type MessagesAffectedMessages struct {
	Pts      int32 `validate:"required"`
	PtsCount int32 `validate:"required"`
}

func (*MessagesAffectedMessages) CRC

func (*MessagesAffectedMessages) Encode

func (e *MessagesAffectedMessages) Encode() []byte

type MessagesAllStickers

type MessagesAllStickers interface {
	serialize.TL
	ImplementsMessagesAllStickers()
}

type MessagesAllStickersNotModified

type MessagesAllStickersNotModified struct{}

func (*MessagesAllStickersNotModified) CRC

func (*MessagesAllStickersNotModified) Encode

func (e *MessagesAllStickersNotModified) Encode() []byte

func (*MessagesAllStickersNotModified) ImplementsMessagesAllStickers

func (*MessagesAllStickersNotModified) ImplementsMessagesAllStickers()

type MessagesAllStickersObj

type MessagesAllStickersObj struct {
	Hash int32         `validate:"required"`
	Sets []*StickerSet `validate:"required"`
}

func (*MessagesAllStickersObj) CRC

func (*MessagesAllStickersObj) Encode

func (e *MessagesAllStickersObj) Encode() []byte

func (*MessagesAllStickersObj) ImplementsMessagesAllStickers

func (*MessagesAllStickersObj) ImplementsMessagesAllStickers()

type MessagesArchivedStickers

type MessagesArchivedStickers struct {
	Count int32               `validate:"required"`
	Sets  []StickerSetCovered `validate:"required"`
}

func (*MessagesArchivedStickers) CRC

func (*MessagesArchivedStickers) Encode

func (e *MessagesArchivedStickers) Encode() []byte

type MessagesBotCallbackAnswer

type MessagesBotCallbackAnswer struct {
	Alert     bool   `flag:"1,encoded_in_bitflags"`
	HasUrl    bool   `flag:"3,encoded_in_bitflags"`
	NativeUi  bool   `flag:"4,encoded_in_bitflags"`
	Message   string `flag:"0"`
	Url       string `flag:"2"`
	CacheTime int32  `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesBotCallbackAnswer) CRC

func (*MessagesBotCallbackAnswer) Encode

func (e *MessagesBotCallbackAnswer) Encode() []byte

type MessagesBotResults

type MessagesBotResults struct {
	Gallery    bool               `flag:"0,encoded_in_bitflags"`
	QueryId    int64              `validate:"required"`
	NextOffset string             `flag:"1"`
	SwitchPm   *InlineBotSwitchPM `flag:"2"`
	Results    []BotInlineResult  `validate:"required"`
	CacheTime  int32              `validate:"required"`
	Users      []User             `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesBotResults) CRC

func (e *MessagesBotResults) CRC() uint32

func (*MessagesBotResults) Encode

func (e *MessagesBotResults) Encode() []byte

type MessagesChannelMessages

type MessagesChannelMessages struct {
	Inexact  bool      `flag:"1,encoded_in_bitflags"`
	Pts      int32     `validate:"required"`
	Count    int32     `validate:"required"`
	Messages []Message `validate:"required"`
	Chats    []Chat    `validate:"required"`
	Users    []User    `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesChannelMessages) CRC

func (*MessagesChannelMessages) Encode

func (e *MessagesChannelMessages) Encode() []byte

func (*MessagesChannelMessages) ImplementsMessagesMessages

func (*MessagesChannelMessages) ImplementsMessagesMessages()

type MessagesChatFull

type MessagesChatFull struct {
	FullChat ChatFull `validate:"required"`
	Chats    []Chat   `validate:"required"`
	Users    []User   `validate:"required"`
}

func (*MessagesChatFull) CRC

func (e *MessagesChatFull) CRC() uint32

func (*MessagesChatFull) Encode

func (e *MessagesChatFull) Encode() []byte

type MessagesChats

type MessagesChats interface {
	serialize.TL
	ImplementsMessagesChats()
}

type MessagesChatsObj

type MessagesChatsObj struct {
	Chats []Chat `validate:"required"`
}

func (*MessagesChatsObj) CRC

func (*MessagesChatsObj) CRC() uint32

func (*MessagesChatsObj) Encode

func (e *MessagesChatsObj) Encode() []byte

func (*MessagesChatsObj) ImplementsMessagesChats

func (*MessagesChatsObj) ImplementsMessagesChats()

type MessagesChatsSlice

type MessagesChatsSlice struct {
	Count int32  `validate:"required"`
	Chats []Chat `validate:"required"`
}

func (*MessagesChatsSlice) CRC

func (*MessagesChatsSlice) CRC() uint32

func (*MessagesChatsSlice) Encode

func (e *MessagesChatsSlice) Encode() []byte

func (*MessagesChatsSlice) ImplementsMessagesChats

func (*MessagesChatsSlice) ImplementsMessagesChats()

type MessagesCheckChatInviteParams

type MessagesCheckChatInviteParams struct {
	Hash string `validate:"required"`
}

func (*MessagesCheckChatInviteParams) CRC

func (*MessagesCheckChatInviteParams) Encode

func (e *MessagesCheckChatInviteParams) Encode() []byte

type MessagesClearAllDraftsParams

type MessagesClearAllDraftsParams struct{}

func (*MessagesClearAllDraftsParams) CRC

func (*MessagesClearAllDraftsParams) Encode

func (e *MessagesClearAllDraftsParams) Encode() []byte

type MessagesClearRecentStickersParams

type MessagesClearRecentStickersParams struct {
	Attached bool `flag:"0,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*MessagesClearRecentStickersParams) CRC

func (*MessagesClearRecentStickersParams) Encode

type MessagesCreateChatParams

type MessagesCreateChatParams struct {
	Users []InputUser `validate:"required"`
	Title string      `validate:"required"`
}

func (*MessagesCreateChatParams) CRC

func (*MessagesCreateChatParams) Encode

func (e *MessagesCreateChatParams) Encode() []byte

type MessagesDeleteChatUserParams

type MessagesDeleteChatUserParams struct {
	ChatId int32     `validate:"required"`
	UserId InputUser `validate:"required"`
}

func (*MessagesDeleteChatUserParams) CRC

func (*MessagesDeleteChatUserParams) Encode

func (e *MessagesDeleteChatUserParams) Encode() []byte

type MessagesDeleteHistoryParams

type MessagesDeleteHistoryParams struct {
	JustClear bool      `flag:"0,encoded_in_bitflags"`
	Revoke    bool      `flag:"1,encoded_in_bitflags"`
	Peer      InputPeer `validate:"required"`
	MaxId     int32     `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesDeleteHistoryParams) CRC

func (*MessagesDeleteHistoryParams) Encode

func (e *MessagesDeleteHistoryParams) Encode() []byte

type MessagesDeleteMessagesParams

type MessagesDeleteMessagesParams struct {
	Revoke bool    `flag:"0,encoded_in_bitflags"`
	Id     []int32 `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesDeleteMessagesParams) CRC

func (*MessagesDeleteMessagesParams) Encode

func (e *MessagesDeleteMessagesParams) Encode() []byte

type MessagesDeleteScheduledMessagesParams

type MessagesDeleteScheduledMessagesParams struct {
	Peer InputPeer `validate:"required"`
	Id   []int32   `validate:"required"`
}

func (*MessagesDeleteScheduledMessagesParams) CRC

func (*MessagesDeleteScheduledMessagesParams) Encode

type MessagesDhConfig

type MessagesDhConfig interface {
	serialize.TL
	ImplementsMessagesDhConfig()
}

type MessagesDhConfigNotModified

type MessagesDhConfigNotModified struct {
	Random []byte `validate:"required"`
}

func (*MessagesDhConfigNotModified) CRC

func (*MessagesDhConfigNotModified) Encode

func (e *MessagesDhConfigNotModified) Encode() []byte

func (*MessagesDhConfigNotModified) ImplementsMessagesDhConfig

func (*MessagesDhConfigNotModified) ImplementsMessagesDhConfig()

type MessagesDhConfigObj

type MessagesDhConfigObj struct {
	G       int32  `validate:"required"`
	P       []byte `validate:"required"`
	Version int32  `validate:"required"`
	Random  []byte `validate:"required"`
}

func (*MessagesDhConfigObj) CRC

func (*MessagesDhConfigObj) CRC() uint32

func (*MessagesDhConfigObj) Encode

func (e *MessagesDhConfigObj) Encode() []byte

func (*MessagesDhConfigObj) ImplementsMessagesDhConfig

func (*MessagesDhConfigObj) ImplementsMessagesDhConfig()

type MessagesDialogs

type MessagesDialogs interface {
	serialize.TL
	ImplementsMessagesDialogs()
}

type MessagesDialogsNotModified

type MessagesDialogsNotModified struct {
	Count int32 `validate:"required"`
}

func (*MessagesDialogsNotModified) CRC

func (*MessagesDialogsNotModified) Encode

func (e *MessagesDialogsNotModified) Encode() []byte

func (*MessagesDialogsNotModified) ImplementsMessagesDialogs

func (*MessagesDialogsNotModified) ImplementsMessagesDialogs()

type MessagesDialogsObj

type MessagesDialogsObj struct {
	Dialogs  []Dialog  `validate:"required"`
	Messages []Message `validate:"required"`
	Chats    []Chat    `validate:"required"`
	Users    []User    `validate:"required"`
}

func (*MessagesDialogsObj) CRC

func (*MessagesDialogsObj) CRC() uint32

func (*MessagesDialogsObj) Encode

func (e *MessagesDialogsObj) Encode() []byte

func (*MessagesDialogsObj) ImplementsMessagesDialogs

func (*MessagesDialogsObj) ImplementsMessagesDialogs()

type MessagesDialogsSlice

type MessagesDialogsSlice struct {
	Count    int32     `validate:"required"`
	Dialogs  []Dialog  `validate:"required"`
	Messages []Message `validate:"required"`
	Chats    []Chat    `validate:"required"`
	Users    []User    `validate:"required"`
}

func (*MessagesDialogsSlice) CRC

func (*MessagesDialogsSlice) Encode

func (e *MessagesDialogsSlice) Encode() []byte

func (*MessagesDialogsSlice) ImplementsMessagesDialogs

func (*MessagesDialogsSlice) ImplementsMessagesDialogs()

type MessagesDiscardEncryptionParams

type MessagesDiscardEncryptionParams struct {
	ChatId int32 `validate:"required"`
}

func (*MessagesDiscardEncryptionParams) CRC

func (*MessagesDiscardEncryptionParams) Encode

func (e *MessagesDiscardEncryptionParams) Encode() []byte

type MessagesEditChatAboutParams

type MessagesEditChatAboutParams struct {
	Peer  InputPeer `validate:"required"`
	About string    `validate:"required"`
}

func (*MessagesEditChatAboutParams) CRC

func (*MessagesEditChatAboutParams) Encode

func (e *MessagesEditChatAboutParams) Encode() []byte

type MessagesEditChatAdminParams

type MessagesEditChatAdminParams struct {
	ChatId  int32     `validate:"required"`
	UserId  InputUser `validate:"required"`
	IsAdmin bool      `validate:"required"`
}

func (*MessagesEditChatAdminParams) CRC

func (*MessagesEditChatAdminParams) Encode

func (e *MessagesEditChatAdminParams) Encode() []byte

type MessagesEditChatDefaultBannedRightsParams

type MessagesEditChatDefaultBannedRightsParams struct {
	Peer         InputPeer         `validate:"required"`
	BannedRights *ChatBannedRights `validate:"required"`
}

func (*MessagesEditChatDefaultBannedRightsParams) CRC

func (*MessagesEditChatDefaultBannedRightsParams) Encode

type MessagesEditChatPhotoParams

type MessagesEditChatPhotoParams struct {
	ChatId int32          `validate:"required"`
	Photo  InputChatPhoto `validate:"required"`
}

func (*MessagesEditChatPhotoParams) CRC

func (*MessagesEditChatPhotoParams) Encode

func (e *MessagesEditChatPhotoParams) Encode() []byte

type MessagesEditChatTitleParams

type MessagesEditChatTitleParams struct {
	ChatId int32  `validate:"required"`
	Title  string `validate:"required"`
}

func (*MessagesEditChatTitleParams) CRC

func (*MessagesEditChatTitleParams) Encode

func (e *MessagesEditChatTitleParams) Encode() []byte

type MessagesEditInlineBotMessageParams

type MessagesEditInlineBotMessageParams struct {
	NoWebpage   bool                     `flag:"1,encoded_in_bitflags"`
	Id          *InputBotInlineMessageID `validate:"required"`
	Message     string                   `flag:"11"`
	Media       InputMedia               `flag:"14"`
	ReplyMarkup ReplyMarkup              `flag:"2"`
	Entities    []MessageEntity          `flag:"3"`
	// contains filtered or unexported fields
}

func (*MessagesEditInlineBotMessageParams) CRC

func (*MessagesEditInlineBotMessageParams) Encode

type MessagesEditMessageParams

type MessagesEditMessageParams struct {
	NoWebpage    bool            `flag:"1,encoded_in_bitflags"`
	Peer         InputPeer       `validate:"required"`
	Id           int32           `validate:"required"`
	Message      string          `flag:"11"`
	Media        InputMedia      `flag:"14"`
	ReplyMarkup  ReplyMarkup     `flag:"2"`
	Entities     []MessageEntity `flag:"3"`
	ScheduleDate int32           `flag:"15"`
	// contains filtered or unexported fields
}

func (*MessagesEditMessageParams) CRC

func (*MessagesEditMessageParams) Encode

func (e *MessagesEditMessageParams) Encode() []byte

type MessagesExportChatInviteParams

type MessagesExportChatInviteParams struct {
	Peer InputPeer `validate:"required"`
}

func (*MessagesExportChatInviteParams) CRC

func (*MessagesExportChatInviteParams) Encode

func (e *MessagesExportChatInviteParams) Encode() []byte

type MessagesFaveStickerParams

type MessagesFaveStickerParams struct {
	Id     InputDocument `validate:"required"`
	Unfave bool          `validate:"required"`
}

func (*MessagesFaveStickerParams) CRC

func (*MessagesFaveStickerParams) Encode

func (e *MessagesFaveStickerParams) Encode() []byte

type MessagesFavedStickers

type MessagesFavedStickers interface {
	serialize.TL
	ImplementsMessagesFavedStickers()
}

type MessagesFavedStickersNotModified

type MessagesFavedStickersNotModified struct{}

func (*MessagesFavedStickersNotModified) CRC

func (*MessagesFavedStickersNotModified) Encode

func (e *MessagesFavedStickersNotModified) Encode() []byte

func (*MessagesFavedStickersNotModified) ImplementsMessagesFavedStickers

func (*MessagesFavedStickersNotModified) ImplementsMessagesFavedStickers()

type MessagesFavedStickersObj

type MessagesFavedStickersObj struct {
	Hash     int32          `validate:"required"`
	Packs    []*StickerPack `validate:"required"`
	Stickers []Document     `validate:"required"`
}

func (*MessagesFavedStickersObj) CRC

func (*MessagesFavedStickersObj) Encode

func (e *MessagesFavedStickersObj) Encode() []byte

func (*MessagesFavedStickersObj) ImplementsMessagesFavedStickers

func (*MessagesFavedStickersObj) ImplementsMessagesFavedStickers()

type MessagesFeaturedStickers

type MessagesFeaturedStickers interface {
	serialize.TL
	ImplementsMessagesFeaturedStickers()
}

type MessagesFeaturedStickersNotModified

type MessagesFeaturedStickersNotModified struct {
	Count int32 `validate:"required"`
}

func (*MessagesFeaturedStickersNotModified) CRC

func (*MessagesFeaturedStickersNotModified) Encode

func (*MessagesFeaturedStickersNotModified) ImplementsMessagesFeaturedStickers

func (*MessagesFeaturedStickersNotModified) ImplementsMessagesFeaturedStickers()

type MessagesFeaturedStickersObj

type MessagesFeaturedStickersObj struct {
	Hash   int32               `validate:"required"`
	Count  int32               `validate:"required"`
	Sets   []StickerSetCovered `validate:"required"`
	Unread []int64             `validate:"required"`
}

func (*MessagesFeaturedStickersObj) CRC

func (*MessagesFeaturedStickersObj) Encode

func (e *MessagesFeaturedStickersObj) Encode() []byte

func (*MessagesFeaturedStickersObj) ImplementsMessagesFeaturedStickers

func (*MessagesFeaturedStickersObj) ImplementsMessagesFeaturedStickers()

type MessagesFilter

type MessagesFilter interface {
	serialize.TL
	ImplementsMessagesFilter()
}

type MessagesForwardMessagesParams

type MessagesForwardMessagesParams struct {
	Silent       bool      `flag:"5,encoded_in_bitflags"`
	Background   bool      `flag:"6,encoded_in_bitflags"`
	WithMyScore  bool      `flag:"8,encoded_in_bitflags"`
	Grouped      bool      `flag:"9,encoded_in_bitflags"`
	FromPeer     InputPeer `validate:"required"`
	Id           []int32   `validate:"required"`
	RandomId     []int64   `validate:"required"`
	ToPeer       InputPeer `validate:"required"`
	ScheduleDate int32     `flag:"10"`
	// contains filtered or unexported fields
}

func (*MessagesForwardMessagesParams) CRC

func (*MessagesForwardMessagesParams) Encode

func (e *MessagesForwardMessagesParams) Encode() []byte

type MessagesFoundStickerSets

type MessagesFoundStickerSets interface {
	serialize.TL
	ImplementsMessagesFoundStickerSets()
}

type MessagesFoundStickerSetsNotModified

type MessagesFoundStickerSetsNotModified struct{}

func (*MessagesFoundStickerSetsNotModified) CRC

func (*MessagesFoundStickerSetsNotModified) Encode

func (*MessagesFoundStickerSetsNotModified) ImplementsMessagesFoundStickerSets

func (*MessagesFoundStickerSetsNotModified) ImplementsMessagesFoundStickerSets()

type MessagesFoundStickerSetsObj

type MessagesFoundStickerSetsObj struct {
	Hash int32               `validate:"required"`
	Sets []StickerSetCovered `validate:"required"`
}

func (*MessagesFoundStickerSetsObj) CRC

func (*MessagesFoundStickerSetsObj) Encode

func (e *MessagesFoundStickerSetsObj) Encode() []byte

func (*MessagesFoundStickerSetsObj) ImplementsMessagesFoundStickerSets

func (*MessagesFoundStickerSetsObj) ImplementsMessagesFoundStickerSets()

type MessagesGetAllChatsParams

type MessagesGetAllChatsParams struct {
	ExceptIds []int32 `validate:"required"`
}

func (*MessagesGetAllChatsParams) CRC

func (*MessagesGetAllChatsParams) Encode

func (e *MessagesGetAllChatsParams) Encode() []byte

type MessagesGetAllDraftsParams

type MessagesGetAllDraftsParams struct{}

func (*MessagesGetAllDraftsParams) CRC

func (*MessagesGetAllDraftsParams) Encode

func (e *MessagesGetAllDraftsParams) Encode() []byte

type MessagesGetAllStickersParams

type MessagesGetAllStickersParams struct {
	Hash int32 `validate:"required"`
}

func (*MessagesGetAllStickersParams) CRC

func (*MessagesGetAllStickersParams) Encode

func (e *MessagesGetAllStickersParams) Encode() []byte

type MessagesGetArchivedStickersParams

type MessagesGetArchivedStickersParams struct {
	Masks    bool  `flag:"0,encoded_in_bitflags"`
	OffsetId int64 `validate:"required"`
	Limit    int32 `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesGetArchivedStickersParams) CRC

func (*MessagesGetArchivedStickersParams) Encode

type MessagesGetAttachedStickersParams

type MessagesGetAttachedStickersParams struct {
	Media InputStickeredMedia `validate:"required"`
}

func (*MessagesGetAttachedStickersParams) CRC

func (*MessagesGetAttachedStickersParams) Encode

type MessagesGetBotCallbackAnswerParams

type MessagesGetBotCallbackAnswerParams struct {
	Game  bool      `flag:"1,encoded_in_bitflags"`
	Peer  InputPeer `validate:"required"`
	MsgId int32     `validate:"required"`
	Data  []byte    `flag:"0"`
	// contains filtered or unexported fields
}

func (*MessagesGetBotCallbackAnswerParams) CRC

func (*MessagesGetBotCallbackAnswerParams) Encode

type MessagesGetChatsParams

type MessagesGetChatsParams struct {
	Id []int32 `validate:"required"`
}

func (*MessagesGetChatsParams) CRC

func (e *MessagesGetChatsParams) CRC() uint32

func (*MessagesGetChatsParams) Encode

func (e *MessagesGetChatsParams) Encode() []byte

type MessagesGetCommonChatsParams

type MessagesGetCommonChatsParams struct {
	UserId InputUser `validate:"required"`
	MaxId  int32     `validate:"required"`
	Limit  int32     `validate:"required"`
}

func (*MessagesGetCommonChatsParams) CRC

func (*MessagesGetCommonChatsParams) Encode

func (e *MessagesGetCommonChatsParams) Encode() []byte

type MessagesGetDhConfigParams

type MessagesGetDhConfigParams struct {
	Version      int32 `validate:"required"`
	RandomLength int32 `validate:"required"`
}

func (*MessagesGetDhConfigParams) CRC

func (*MessagesGetDhConfigParams) Encode

func (e *MessagesGetDhConfigParams) Encode() []byte

type MessagesGetDialogFiltersParams

type MessagesGetDialogFiltersParams struct{}

func (*MessagesGetDialogFiltersParams) CRC

func (*MessagesGetDialogFiltersParams) Encode

func (e *MessagesGetDialogFiltersParams) Encode() []byte

type MessagesGetDialogUnreadMarksParams

type MessagesGetDialogUnreadMarksParams struct{}

func (*MessagesGetDialogUnreadMarksParams) CRC

func (*MessagesGetDialogUnreadMarksParams) Encode

type MessagesGetDialogsParams

type MessagesGetDialogsParams struct {
	ExcludePinned bool      `flag:"0,encoded_in_bitflags"`
	FolderId      int32     `flag:"1"`
	OffsetDate    int32     `validate:"required"`
	OffsetId      int32     `validate:"required"`
	OffsetPeer    InputPeer `validate:"required"`
	Limit         int32     `validate:"required"`
	Hash          int32     `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesGetDialogsParams) CRC

func (*MessagesGetDialogsParams) Encode

func (e *MessagesGetDialogsParams) Encode() []byte

type MessagesGetDocumentByHashParams

type MessagesGetDocumentByHashParams struct {
	Sha256   []byte `validate:"required"`
	Size     int32  `validate:"required"`
	MimeType string `validate:"required"`
}

func (*MessagesGetDocumentByHashParams) CRC

func (*MessagesGetDocumentByHashParams) Encode

func (e *MessagesGetDocumentByHashParams) Encode() []byte

type MessagesGetEmojiKeywordsDifferenceParams

type MessagesGetEmojiKeywordsDifferenceParams struct {
	LangCode    string `validate:"required"`
	FromVersion int32  `validate:"required"`
}

func (*MessagesGetEmojiKeywordsDifferenceParams) CRC

func (*MessagesGetEmojiKeywordsDifferenceParams) Encode

type MessagesGetEmojiKeywordsLanguagesParams

type MessagesGetEmojiKeywordsLanguagesParams struct {
	LangCodes []string `validate:"required"`
}

func (*MessagesGetEmojiKeywordsLanguagesParams) CRC

func (*MessagesGetEmojiKeywordsLanguagesParams) Encode

type MessagesGetEmojiKeywordsParams

type MessagesGetEmojiKeywordsParams struct {
	LangCode string `validate:"required"`
}

func (*MessagesGetEmojiKeywordsParams) CRC

func (*MessagesGetEmojiKeywordsParams) Encode

func (e *MessagesGetEmojiKeywordsParams) Encode() []byte

type MessagesGetEmojiURLParams

type MessagesGetEmojiURLParams struct {
	LangCode string `validate:"required"`
}

func (*MessagesGetEmojiURLParams) CRC

func (*MessagesGetEmojiURLParams) Encode

func (e *MessagesGetEmojiURLParams) Encode() []byte

type MessagesGetFavedStickersParams

type MessagesGetFavedStickersParams struct {
	Hash int32 `validate:"required"`
}

func (*MessagesGetFavedStickersParams) CRC

func (*MessagesGetFavedStickersParams) Encode

func (e *MessagesGetFavedStickersParams) Encode() []byte

type MessagesGetFeaturedStickersParams

type MessagesGetFeaturedStickersParams struct {
	Hash int32 `validate:"required"`
}

func (*MessagesGetFeaturedStickersParams) CRC

func (*MessagesGetFeaturedStickersParams) Encode

type MessagesGetFullChatParams

type MessagesGetFullChatParams struct {
	ChatId int32 `validate:"required"`
}

func (*MessagesGetFullChatParams) CRC

func (*MessagesGetFullChatParams) Encode

func (e *MessagesGetFullChatParams) Encode() []byte

type MessagesGetGameHighScoresParams

type MessagesGetGameHighScoresParams struct {
	Peer   InputPeer `validate:"required"`
	Id     int32     `validate:"required"`
	UserId InputUser `validate:"required"`
}

func (*MessagesGetGameHighScoresParams) CRC

func (*MessagesGetGameHighScoresParams) Encode

func (e *MessagesGetGameHighScoresParams) Encode() []byte

type MessagesGetHistoryParams

type MessagesGetHistoryParams struct {
	Peer       InputPeer
	OffsetId   int32
	OffsetDate int32
	AddOffset  int32
	Limit      int32
	MaxId      int32
	MinId      int32
	Hash       int32
}

func (*MessagesGetHistoryParams) CRC

func (*MessagesGetHistoryParams) Encode

func (e *MessagesGetHistoryParams) Encode() []byte

type MessagesGetInlineBotResultsParams

type MessagesGetInlineBotResultsParams struct {
	Bot      InputUser     `validate:"required"`
	Peer     InputPeer     `validate:"required"`
	GeoPoint InputGeoPoint `flag:"0"`
	Query    string        `validate:"required"`
	Offset   string        `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesGetInlineBotResultsParams) CRC

func (*MessagesGetInlineBotResultsParams) Encode

type MessagesGetInlineGameHighScoresParams

type MessagesGetInlineGameHighScoresParams struct {
	Id     *InputBotInlineMessageID `validate:"required"`
	UserId InputUser                `validate:"required"`
}

func (*MessagesGetInlineGameHighScoresParams) CRC

func (*MessagesGetInlineGameHighScoresParams) Encode

type MessagesGetMaskStickersParams

type MessagesGetMaskStickersParams struct {
	Hash int32 `validate:"required"`
}

func (*MessagesGetMaskStickersParams) CRC

func (*MessagesGetMaskStickersParams) Encode

func (e *MessagesGetMaskStickersParams) Encode() []byte

type MessagesGetMessageEditDataParams

type MessagesGetMessageEditDataParams struct {
	Peer InputPeer `validate:"required"`
	Id   int32     `validate:"required"`
}

func (*MessagesGetMessageEditDataParams) CRC

func (*MessagesGetMessageEditDataParams) Encode

func (e *MessagesGetMessageEditDataParams) Encode() []byte

type MessagesGetMessagesParams

type MessagesGetMessagesParams struct {
	Id []InputMessage `validate:"required"`
}

func (*MessagesGetMessagesParams) CRC

func (*MessagesGetMessagesParams) Encode

func (e *MessagesGetMessagesParams) Encode() []byte

type MessagesGetMessagesViewsParams

type MessagesGetMessagesViewsParams struct {
	Peer      InputPeer `validate:"required"`
	Id        []int32   `validate:"required"`
	Increment bool      `validate:"required"`
}

func (*MessagesGetMessagesViewsParams) CRC

func (*MessagesGetMessagesViewsParams) Encode

func (e *MessagesGetMessagesViewsParams) Encode() []byte

type MessagesGetOldFeaturedStickersParams

type MessagesGetOldFeaturedStickersParams struct {
	Offset int32 `validate:"required"`
	Limit  int32 `validate:"required"`
	Hash   int32 `validate:"required"`
}

func (*MessagesGetOldFeaturedStickersParams) CRC

func (*MessagesGetOldFeaturedStickersParams) Encode

type MessagesGetOnlinesParams

type MessagesGetOnlinesParams struct {
	Peer InputPeer `validate:"required"`
}

func (*MessagesGetOnlinesParams) CRC

func (*MessagesGetOnlinesParams) Encode

func (e *MessagesGetOnlinesParams) Encode() []byte

type MessagesGetPeerDialogsParams

type MessagesGetPeerDialogsParams struct {
	Peers []InputDialogPeer `validate:"required"`
}

func (*MessagesGetPeerDialogsParams) CRC

func (*MessagesGetPeerDialogsParams) Encode

func (e *MessagesGetPeerDialogsParams) Encode() []byte

type MessagesGetPeerSettingsParams

type MessagesGetPeerSettingsParams struct {
	Peer InputPeer `validate:"required"`
}

func (*MessagesGetPeerSettingsParams) CRC

func (*MessagesGetPeerSettingsParams) Encode

func (e *MessagesGetPeerSettingsParams) Encode() []byte

type MessagesGetPinnedDialogsParams

type MessagesGetPinnedDialogsParams struct {
	FolderId int32 `validate:"required"`
}

func (*MessagesGetPinnedDialogsParams) CRC

func (*MessagesGetPinnedDialogsParams) Encode

func (e *MessagesGetPinnedDialogsParams) Encode() []byte

type MessagesGetPollResultsParams

type MessagesGetPollResultsParams struct {
	Peer  InputPeer `validate:"required"`
	MsgId int32     `validate:"required"`
}

func (*MessagesGetPollResultsParams) CRC

func (*MessagesGetPollResultsParams) Encode

func (e *MessagesGetPollResultsParams) Encode() []byte

type MessagesGetPollVotesParams

type MessagesGetPollVotesParams struct {
	Peer   InputPeer `validate:"required"`
	Id     int32     `validate:"required"`
	Option []byte    `flag:"0"`
	Offset string    `flag:"1"`
	Limit  int32     `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesGetPollVotesParams) CRC

func (*MessagesGetPollVotesParams) Encode

func (e *MessagesGetPollVotesParams) Encode() []byte

type MessagesGetRecentLocationsParams

type MessagesGetRecentLocationsParams struct {
	Peer  InputPeer `validate:"required"`
	Limit int32     `validate:"required"`
	Hash  int32     `validate:"required"`
}

func (*MessagesGetRecentLocationsParams) CRC

func (*MessagesGetRecentLocationsParams) Encode

func (e *MessagesGetRecentLocationsParams) Encode() []byte

type MessagesGetRecentStickersParams

type MessagesGetRecentStickersParams struct {
	Attached bool  `flag:"0,encoded_in_bitflags"`
	Hash     int32 `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesGetRecentStickersParams) CRC

func (*MessagesGetRecentStickersParams) Encode

func (e *MessagesGetRecentStickersParams) Encode() []byte

type MessagesGetSavedGifsParams

type MessagesGetSavedGifsParams struct {
	Hash int32 `validate:"required"`
}

func (*MessagesGetSavedGifsParams) CRC

func (*MessagesGetSavedGifsParams) Encode

func (e *MessagesGetSavedGifsParams) Encode() []byte

type MessagesGetScheduledHistoryParams

type MessagesGetScheduledHistoryParams struct {
	Peer InputPeer `validate:"required"`
	Hash int32     `validate:"required"`
}

func (*MessagesGetScheduledHistoryParams) CRC

func (*MessagesGetScheduledHistoryParams) Encode

type MessagesGetScheduledMessagesParams

type MessagesGetScheduledMessagesParams struct {
	Peer InputPeer `validate:"required"`
	Id   []int32   `validate:"required"`
}

func (*MessagesGetScheduledMessagesParams) CRC

func (*MessagesGetScheduledMessagesParams) Encode

type MessagesGetSearchCountersParams

type MessagesGetSearchCountersParams struct {
	Peer    InputPeer        `validate:"required"`
	Filters []MessagesFilter `validate:"required"`
}

func (*MessagesGetSearchCountersParams) CRC

func (*MessagesGetSearchCountersParams) Encode

func (e *MessagesGetSearchCountersParams) Encode() []byte

type MessagesGetSplitRangesParams

type MessagesGetSplitRangesParams struct{}

func (*MessagesGetSplitRangesParams) CRC

func (*MessagesGetSplitRangesParams) Encode

func (e *MessagesGetSplitRangesParams) Encode() []byte

type MessagesGetStatsURLParams

type MessagesGetStatsURLParams struct {
	Dark   bool      `flag:"0,encoded_in_bitflags"`
	Peer   InputPeer `validate:"required"`
	Params string    `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesGetStatsURLParams) CRC

func (*MessagesGetStatsURLParams) Encode

func (e *MessagesGetStatsURLParams) Encode() []byte

type MessagesGetStickerSetParams

type MessagesGetStickerSetParams struct {
	Stickerset InputStickerSet `validate:"required"`
}

func (*MessagesGetStickerSetParams) CRC

func (*MessagesGetStickerSetParams) Encode

func (e *MessagesGetStickerSetParams) Encode() []byte

type MessagesGetStickersParams

type MessagesGetStickersParams struct {
	Emoticon string `validate:"required"`
	Hash     int32  `validate:"required"`
}

func (*MessagesGetStickersParams) CRC

func (*MessagesGetStickersParams) Encode

func (e *MessagesGetStickersParams) Encode() []byte

type MessagesGetSuggestedDialogFiltersParams

type MessagesGetSuggestedDialogFiltersParams struct{}

func (*MessagesGetSuggestedDialogFiltersParams) CRC

func (*MessagesGetSuggestedDialogFiltersParams) Encode

type MessagesGetUnreadMentionsParams

type MessagesGetUnreadMentionsParams struct {
	Peer      InputPeer `validate:"required"`
	OffsetId  int32     `validate:"required"`
	AddOffset int32     `validate:"required"`
	Limit     int32     `validate:"required"`
	MaxId     int32     `validate:"required"`
	MinId     int32     `validate:"required"`
}

func (*MessagesGetUnreadMentionsParams) CRC

func (*MessagesGetUnreadMentionsParams) Encode

func (e *MessagesGetUnreadMentionsParams) Encode() []byte

type MessagesGetWebPageParams

type MessagesGetWebPageParams struct {
	Url  string `validate:"required"`
	Hash int32  `validate:"required"`
}

func (*MessagesGetWebPageParams) CRC

func (*MessagesGetWebPageParams) Encode

func (e *MessagesGetWebPageParams) Encode() []byte

type MessagesGetWebPagePreviewParams

type MessagesGetWebPagePreviewParams struct {
	Message  string          `validate:"required"`
	Entities []MessageEntity `flag:"3"`
	// contains filtered or unexported fields
}

func (*MessagesGetWebPagePreviewParams) CRC

func (*MessagesGetWebPagePreviewParams) Encode

func (e *MessagesGetWebPagePreviewParams) Encode() []byte

type MessagesHidePeerSettingsBarParams

type MessagesHidePeerSettingsBarParams struct {
	Peer InputPeer `validate:"required"`
}

func (*MessagesHidePeerSettingsBarParams) CRC

func (*MessagesHidePeerSettingsBarParams) Encode

type MessagesHighScores

type MessagesHighScores struct {
	Scores []*HighScore `validate:"required"`
	Users  []User       `validate:"required"`
}

func (*MessagesHighScores) CRC

func (e *MessagesHighScores) CRC() uint32

func (*MessagesHighScores) Encode

func (e *MessagesHighScores) Encode() []byte

type MessagesImportChatInviteParams

type MessagesImportChatInviteParams struct {
	Hash string `validate:"required"`
}

func (*MessagesImportChatInviteParams) CRC

func (*MessagesImportChatInviteParams) Encode

func (e *MessagesImportChatInviteParams) Encode() []byte

type MessagesInactiveChats

type MessagesInactiveChats struct {
	Dates []int32 `validate:"required"`
	Chats []Chat  `validate:"required"`
	Users []User  `validate:"required"`
}

func (*MessagesInactiveChats) CRC

func (e *MessagesInactiveChats) CRC() uint32

func (*MessagesInactiveChats) Encode

func (e *MessagesInactiveChats) Encode() []byte

type MessagesInstallStickerSetParams

type MessagesInstallStickerSetParams struct {
	Stickerset InputStickerSet `validate:"required"`
	Archived   bool            `validate:"required"`
}

func (*MessagesInstallStickerSetParams) CRC

func (*MessagesInstallStickerSetParams) Encode

func (e *MessagesInstallStickerSetParams) Encode() []byte

type MessagesMarkDialogUnreadParams

type MessagesMarkDialogUnreadParams struct {
	Unread bool            `flag:"0,encoded_in_bitflags"`
	Peer   InputDialogPeer `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesMarkDialogUnreadParams) CRC

func (*MessagesMarkDialogUnreadParams) Encode

func (e *MessagesMarkDialogUnreadParams) Encode() []byte

type MessagesMessageEditData

type MessagesMessageEditData struct {
	Caption bool `flag:"0,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*MessagesMessageEditData) CRC

func (*MessagesMessageEditData) Encode

func (e *MessagesMessageEditData) Encode() []byte

type MessagesMessages

type MessagesMessages interface {
	serialize.TL
	ImplementsMessagesMessages()
}

type MessagesMessagesNotModified

type MessagesMessagesNotModified struct {
	Count int32 `validate:"required"`
}

func (*MessagesMessagesNotModified) CRC

func (*MessagesMessagesNotModified) Encode

func (e *MessagesMessagesNotModified) Encode() []byte

func (*MessagesMessagesNotModified) ImplementsMessagesMessages

func (*MessagesMessagesNotModified) ImplementsMessagesMessages()

type MessagesMessagesObj

type MessagesMessagesObj struct {
	Messages []Message `validate:"required"`
	Chats    []Chat    `validate:"required"`
	Users    []User    `validate:"required"`
}

func (*MessagesMessagesObj) CRC

func (*MessagesMessagesObj) CRC() uint32

func (*MessagesMessagesObj) Encode

func (e *MessagesMessagesObj) Encode() []byte

func (*MessagesMessagesObj) ImplementsMessagesMessages

func (*MessagesMessagesObj) ImplementsMessagesMessages()

type MessagesMessagesSlice

type MessagesMessagesSlice struct {
	Inexact  bool      `flag:"1,encoded_in_bitflags"`
	Count    int32     `validate:"required"`
	NextRate int32     `flag:"0"`
	Messages []Message `validate:"required"`
	Chats    []Chat    `validate:"required"`
	Users    []User    `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesMessagesSlice) CRC

func (*MessagesMessagesSlice) Encode

func (e *MessagesMessagesSlice) Encode() []byte

func (*MessagesMessagesSlice) ImplementsMessagesMessages

func (*MessagesMessagesSlice) ImplementsMessagesMessages()

type MessagesMigrateChatParams

type MessagesMigrateChatParams struct {
	ChatId int32 `validate:"required"`
}

func (*MessagesMigrateChatParams) CRC

func (*MessagesMigrateChatParams) Encode

func (e *MessagesMigrateChatParams) Encode() []byte

type MessagesPeerDialogs

type MessagesPeerDialogs struct {
	Dialogs  []Dialog      `validate:"required"`
	Messages []Message     `validate:"required"`
	Chats    []Chat        `validate:"required"`
	Users    []User        `validate:"required"`
	State    *UpdatesState `validate:"required"`
}

func (*MessagesPeerDialogs) CRC

func (e *MessagesPeerDialogs) CRC() uint32

func (*MessagesPeerDialogs) Encode

func (e *MessagesPeerDialogs) Encode() []byte

type MessagesReadEncryptedHistoryParams

type MessagesReadEncryptedHistoryParams struct {
	Peer    *InputEncryptedChat `validate:"required"`
	MaxDate int32               `validate:"required"`
}

func (*MessagesReadEncryptedHistoryParams) CRC

func (*MessagesReadEncryptedHistoryParams) Encode

type MessagesReadFeaturedStickersParams

type MessagesReadFeaturedStickersParams struct {
	Id []int64 `validate:"required"`
}

func (*MessagesReadFeaturedStickersParams) CRC

func (*MessagesReadFeaturedStickersParams) Encode

type MessagesReadHistoryParams

type MessagesReadHistoryParams struct {
	Peer  InputPeer `validate:"required"`
	MaxId int32     `validate:"required"`
}

func (*MessagesReadHistoryParams) CRC

func (*MessagesReadHistoryParams) Encode

func (e *MessagesReadHistoryParams) Encode() []byte

type MessagesReadMentionsParams

type MessagesReadMentionsParams struct {
	Peer InputPeer `validate:"required"`
}

func (*MessagesReadMentionsParams) CRC

func (*MessagesReadMentionsParams) Encode

func (e *MessagesReadMentionsParams) Encode() []byte

type MessagesReadMessageContentsParams

type MessagesReadMessageContentsParams struct {
	Id []int32 `validate:"required"`
}

func (*MessagesReadMessageContentsParams) CRC

func (*MessagesReadMessageContentsParams) Encode

type MessagesReceivedMessagesParams

type MessagesReceivedMessagesParams struct {
	MaxId int32 `validate:"required"`
}

func (*MessagesReceivedMessagesParams) CRC

func (*MessagesReceivedMessagesParams) Encode

func (e *MessagesReceivedMessagesParams) Encode() []byte

type MessagesReceivedQueueParams

type MessagesReceivedQueueParams struct {
	MaxQts int32 `validate:"required"`
}

func (*MessagesReceivedQueueParams) CRC

func (*MessagesReceivedQueueParams) Encode

func (e *MessagesReceivedQueueParams) Encode() []byte

type MessagesRecentStickers

type MessagesRecentStickers interface {
	serialize.TL
	ImplementsMessagesRecentStickers()
}

type MessagesRecentStickersNotModified

type MessagesRecentStickersNotModified struct{}

func (*MessagesRecentStickersNotModified) CRC

func (*MessagesRecentStickersNotModified) Encode

func (*MessagesRecentStickersNotModified) ImplementsMessagesRecentStickers

func (*MessagesRecentStickersNotModified) ImplementsMessagesRecentStickers()

type MessagesRecentStickersObj

type MessagesRecentStickersObj struct {
	Hash     int32          `validate:"required"`
	Packs    []*StickerPack `validate:"required"`
	Stickers []Document     `validate:"required"`
	Dates    []int32        `validate:"required"`
}

func (*MessagesRecentStickersObj) CRC

func (*MessagesRecentStickersObj) Encode

func (e *MessagesRecentStickersObj) Encode() []byte

func (*MessagesRecentStickersObj) ImplementsMessagesRecentStickers

func (*MessagesRecentStickersObj) ImplementsMessagesRecentStickers()

type MessagesReorderPinnedDialogsParams

type MessagesReorderPinnedDialogsParams struct {
	Force    bool              `flag:"0,encoded_in_bitflags"`
	FolderId int32             `validate:"required"`
	Order    []InputDialogPeer `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesReorderPinnedDialogsParams) CRC

func (*MessagesReorderPinnedDialogsParams) Encode

type MessagesReorderStickerSetsParams

type MessagesReorderStickerSetsParams struct {
	Masks bool    `flag:"0,encoded_in_bitflags"`
	Order []int64 `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesReorderStickerSetsParams) CRC

func (*MessagesReorderStickerSetsParams) Encode

func (e *MessagesReorderStickerSetsParams) Encode() []byte

type MessagesReportEncryptedSpamParams

type MessagesReportEncryptedSpamParams struct {
	Peer *InputEncryptedChat `validate:"required"`
}

func (*MessagesReportEncryptedSpamParams) CRC

func (*MessagesReportEncryptedSpamParams) Encode

type MessagesReportParams

type MessagesReportParams struct {
	Peer   InputPeer    `validate:"required"`
	Id     []int32      `validate:"required"`
	Reason ReportReason `validate:"required"`
}

func (*MessagesReportParams) CRC

func (e *MessagesReportParams) CRC() uint32

func (*MessagesReportParams) Encode

func (e *MessagesReportParams) Encode() []byte

type MessagesReportSpamParams

type MessagesReportSpamParams struct {
	Peer InputPeer `validate:"required"`
}

func (*MessagesReportSpamParams) CRC

func (*MessagesReportSpamParams) Encode

func (e *MessagesReportSpamParams) Encode() []byte

type MessagesRequestEncryptionParams

type MessagesRequestEncryptionParams struct {
	UserId   InputUser `validate:"required"`
	RandomId int32     `validate:"required"`
	GA       []byte    `validate:"required"`
}

func (*MessagesRequestEncryptionParams) CRC

func (*MessagesRequestEncryptionParams) Encode

func (e *MessagesRequestEncryptionParams) Encode() []byte

type MessagesRequestUrlAuthParams

type MessagesRequestUrlAuthParams struct {
	Peer     InputPeer `validate:"required"`
	MsgId    int32     `validate:"required"`
	ButtonId int32     `validate:"required"`
}

func (*MessagesRequestUrlAuthParams) CRC

func (*MessagesRequestUrlAuthParams) Encode

func (e *MessagesRequestUrlAuthParams) Encode() []byte

type MessagesSaveDraftParams

type MessagesSaveDraftParams struct {
	NoWebpage    bool            `flag:"1,encoded_in_bitflags"`
	ReplyToMsgId int32           `flag:"0"`
	Peer         InputPeer       `validate:"required"`
	Message      string          `validate:"required"`
	Entities     []MessageEntity `flag:"3"`
	// contains filtered or unexported fields
}

func (*MessagesSaveDraftParams) CRC

func (*MessagesSaveDraftParams) Encode

func (e *MessagesSaveDraftParams) Encode() []byte

type MessagesSaveGifParams

type MessagesSaveGifParams struct {
	Id     InputDocument `validate:"required"`
	Unsave bool          `validate:"required"`
}

func (*MessagesSaveGifParams) CRC

func (e *MessagesSaveGifParams) CRC() uint32

func (*MessagesSaveGifParams) Encode

func (e *MessagesSaveGifParams) Encode() []byte

type MessagesSaveRecentStickerParams

type MessagesSaveRecentStickerParams struct {
	Attached bool          `flag:"0,encoded_in_bitflags"`
	Id       InputDocument `validate:"required"`
	Unsave   bool          `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesSaveRecentStickerParams) CRC

func (*MessagesSaveRecentStickerParams) Encode

func (e *MessagesSaveRecentStickerParams) Encode() []byte

type MessagesSavedGifs

type MessagesSavedGifs interface {
	serialize.TL
	ImplementsMessagesSavedGifs()
}

type MessagesSavedGifsNotModified

type MessagesSavedGifsNotModified struct{}

func (*MessagesSavedGifsNotModified) CRC

func (*MessagesSavedGifsNotModified) Encode

func (e *MessagesSavedGifsNotModified) Encode() []byte

func (*MessagesSavedGifsNotModified) ImplementsMessagesSavedGifs

func (*MessagesSavedGifsNotModified) ImplementsMessagesSavedGifs()

type MessagesSavedGifsObj

type MessagesSavedGifsObj struct {
	Hash int32      `validate:"required"`
	Gifs []Document `validate:"required"`
}

func (*MessagesSavedGifsObj) CRC

func (*MessagesSavedGifsObj) Encode

func (e *MessagesSavedGifsObj) Encode() []byte

func (*MessagesSavedGifsObj) ImplementsMessagesSavedGifs

func (*MessagesSavedGifsObj) ImplementsMessagesSavedGifs()

type MessagesSearchCounter

type MessagesSearchCounter struct {
	Inexact bool           `flag:"1,encoded_in_bitflags"`
	Filter  MessagesFilter `validate:"required"`
	Count   int32          `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesSearchCounter) CRC

func (e *MessagesSearchCounter) CRC() uint32

func (*MessagesSearchCounter) Encode

func (e *MessagesSearchCounter) Encode() []byte

type MessagesSearchGlobalParams

type MessagesSearchGlobalParams struct {
	FolderId   int32     `flag:"0"`
	Q          string    `validate:"required"`
	OffsetRate int32     `validate:"required"`
	OffsetPeer InputPeer `validate:"required"`
	OffsetId   int32     `validate:"required"`
	Limit      int32     `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesSearchGlobalParams) CRC

func (*MessagesSearchGlobalParams) Encode

func (e *MessagesSearchGlobalParams) Encode() []byte

type MessagesSearchParams

type MessagesSearchParams struct {
	Peer      InputPeer      `validate:"required"`
	Q         string         `validate:"required"`
	FromId    InputUser      `flag:"0"`
	Filter    MessagesFilter `validate:"required"`
	MinDate   int32          `validate:"required"`
	MaxDate   int32          `validate:"required"`
	OffsetId  int32          `validate:"required"`
	AddOffset int32          `validate:"required"`
	Limit     int32          `validate:"required"`
	MaxId     int32          `validate:"required"`
	MinId     int32          `validate:"required"`
	Hash      int32          `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesSearchParams) CRC

func (e *MessagesSearchParams) CRC() uint32

func (*MessagesSearchParams) Encode

func (e *MessagesSearchParams) Encode() []byte

type MessagesSearchStickerSetsParams

type MessagesSearchStickerSetsParams struct {
	ExcludeFeatured bool   `flag:"0,encoded_in_bitflags"`
	Q               string `validate:"required"`
	Hash            int32  `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesSearchStickerSetsParams) CRC

func (*MessagesSearchStickerSetsParams) Encode

func (e *MessagesSearchStickerSetsParams) Encode() []byte

type MessagesSendEncryptedFileParams

type MessagesSendEncryptedFileParams struct {
	Peer     *InputEncryptedChat `validate:"required"`
	RandomId int64               `validate:"required"`
	Data     []byte              `validate:"required"`
	File     InputEncryptedFile  `validate:"required"`
}

func (*MessagesSendEncryptedFileParams) CRC

func (*MessagesSendEncryptedFileParams) Encode

func (e *MessagesSendEncryptedFileParams) Encode() []byte

type MessagesSendEncryptedParams

type MessagesSendEncryptedParams struct {
	Peer     *InputEncryptedChat `validate:"required"`
	RandomId int64               `validate:"required"`
	Data     []byte              `validate:"required"`
}

func (*MessagesSendEncryptedParams) CRC

func (*MessagesSendEncryptedParams) Encode

func (e *MessagesSendEncryptedParams) Encode() []byte

type MessagesSendEncryptedServiceParams

type MessagesSendEncryptedServiceParams struct {
	Peer     *InputEncryptedChat `validate:"required"`
	RandomId int64               `validate:"required"`
	Data     []byte              `validate:"required"`
}

func (*MessagesSendEncryptedServiceParams) CRC

func (*MessagesSendEncryptedServiceParams) Encode

type MessagesSendInlineBotResultParams

type MessagesSendInlineBotResultParams struct {
	Silent       bool      `flag:"5,encoded_in_bitflags"`
	Background   bool      `flag:"6,encoded_in_bitflags"`
	ClearDraft   bool      `flag:"7,encoded_in_bitflags"`
	HideVia      bool      `flag:"11,encoded_in_bitflags"`
	Peer         InputPeer `validate:"required"`
	ReplyToMsgId int32     `flag:"0"`
	RandomId     int64     `validate:"required"`
	QueryId      int64     `validate:"required"`
	Id           string    `validate:"required"`
	ScheduleDate int32     `flag:"10"`
	// contains filtered or unexported fields
}

func (*MessagesSendInlineBotResultParams) CRC

func (*MessagesSendInlineBotResultParams) Encode

type MessagesSendMediaParams

type MessagesSendMediaParams struct {
	Silent       bool            `flag:"5,encoded_in_bitflags"`
	Background   bool            `flag:"6,encoded_in_bitflags"`
	ClearDraft   bool            `flag:"7,encoded_in_bitflags"`
	Peer         InputPeer       `validate:"required"`
	ReplyToMsgId int32           `flag:"0"`
	Media        InputMedia      `validate:"required"`
	Message      string          `validate:"required"`
	RandomId     int64           `validate:"required"`
	ReplyMarkup  ReplyMarkup     `flag:"2"`
	Entities     []MessageEntity `flag:"3"`
	ScheduleDate int32           `flag:"10"`
	// contains filtered or unexported fields
}

func (*MessagesSendMediaParams) CRC

func (*MessagesSendMediaParams) Encode

func (e *MessagesSendMediaParams) Encode() []byte

type MessagesSendMessageParams

type MessagesSendMessageParams struct {
	NoWebpage    bool            `flag:"1,encoded_in_bitflags"`
	Silent       bool            `flag:"5,encoded_in_bitflags"`
	Background   bool            `flag:"6,encoded_in_bitflags"`
	ClearDraft   bool            `flag:"7,encoded_in_bitflags"`
	Peer         InputPeer       `validate:"required"`
	ReplyToMsgId int32           `flag:"0"`
	Message      string          `validate:"required"`
	RandomId     int64           `validate:"required"`
	ReplyMarkup  ReplyMarkup     `flag:"2"`
	Entities     []MessageEntity `flag:"3"`
	ScheduleDate int32           `flag:"10"`
	// contains filtered or unexported fields
}

func (*MessagesSendMessageParams) CRC

func (*MessagesSendMessageParams) Encode

func (e *MessagesSendMessageParams) Encode() []byte

type MessagesSendMultiMediaParams

type MessagesSendMultiMediaParams struct {
	Silent       bool                `flag:"5,encoded_in_bitflags"`
	Background   bool                `flag:"6,encoded_in_bitflags"`
	ClearDraft   bool                `flag:"7,encoded_in_bitflags"`
	Peer         InputPeer           `validate:"required"`
	ReplyToMsgId int32               `flag:"0"`
	MultiMedia   []*InputSingleMedia `validate:"required"`
	ScheduleDate int32               `flag:"10"`
	// contains filtered or unexported fields
}

func (*MessagesSendMultiMediaParams) CRC

func (*MessagesSendMultiMediaParams) Encode

func (e *MessagesSendMultiMediaParams) Encode() []byte

type MessagesSendScheduledMessagesParams

type MessagesSendScheduledMessagesParams struct {
	Peer InputPeer `validate:"required"`
	Id   []int32   `validate:"required"`
}

func (*MessagesSendScheduledMessagesParams) CRC

func (*MessagesSendScheduledMessagesParams) Encode

type MessagesSendScreenshotNotificationParams

type MessagesSendScreenshotNotificationParams struct {
	Peer         InputPeer `validate:"required"`
	ReplyToMsgId int32     `validate:"required"`
	RandomId     int64     `validate:"required"`
}

func (*MessagesSendScreenshotNotificationParams) CRC

func (*MessagesSendScreenshotNotificationParams) Encode

type MessagesSendVoteParams

type MessagesSendVoteParams struct {
	Peer    InputPeer `validate:"required"`
	MsgId   int32     `validate:"required"`
	Options [][]byte  `validate:"required"`
}

func (*MessagesSendVoteParams) CRC

func (e *MessagesSendVoteParams) CRC() uint32

func (*MessagesSendVoteParams) Encode

func (e *MessagesSendVoteParams) Encode() []byte

type MessagesSentEncryptedFile

type MessagesSentEncryptedFile struct {
	Date int32         `validate:"required"`
	File EncryptedFile `validate:"required"`
}

func (*MessagesSentEncryptedFile) CRC

func (*MessagesSentEncryptedFile) Encode

func (e *MessagesSentEncryptedFile) Encode() []byte

func (*MessagesSentEncryptedFile) ImplementsMessagesSentEncryptedMessage

func (*MessagesSentEncryptedFile) ImplementsMessagesSentEncryptedMessage()

type MessagesSentEncryptedMessage

type MessagesSentEncryptedMessage interface {
	serialize.TL
	ImplementsMessagesSentEncryptedMessage()
}

type MessagesSentEncryptedMessageObj

type MessagesSentEncryptedMessageObj struct {
	Date int32 `validate:"required"`
}

func (*MessagesSentEncryptedMessageObj) CRC

func (*MessagesSentEncryptedMessageObj) Encode

func (e *MessagesSentEncryptedMessageObj) Encode() []byte

func (*MessagesSentEncryptedMessageObj) ImplementsMessagesSentEncryptedMessage

func (*MessagesSentEncryptedMessageObj) ImplementsMessagesSentEncryptedMessage()

type MessagesSetBotCallbackAnswerParams

type MessagesSetBotCallbackAnswerParams struct {
	Alert     bool   `flag:"1,encoded_in_bitflags"`
	QueryId   int64  `validate:"required"`
	Message   string `flag:"0"`
	Url       string `flag:"2"`
	CacheTime int32  `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesSetBotCallbackAnswerParams) CRC

func (*MessagesSetBotCallbackAnswerParams) Encode

type MessagesSetBotPrecheckoutResultsParams

type MessagesSetBotPrecheckoutResultsParams struct {
	Success bool   `flag:"1,encoded_in_bitflags"`
	QueryId int64  `validate:"required"`
	Error   string `flag:"0"`
	// contains filtered or unexported fields
}

func (*MessagesSetBotPrecheckoutResultsParams) CRC

func (*MessagesSetBotPrecheckoutResultsParams) Encode

type MessagesSetBotShippingResultsParams

type MessagesSetBotShippingResultsParams struct {
	QueryId         int64             `validate:"required"`
	Error           string            `flag:"0"`
	ShippingOptions []*ShippingOption `flag:"1"`
	// contains filtered or unexported fields
}

func (*MessagesSetBotShippingResultsParams) CRC

func (*MessagesSetBotShippingResultsParams) Encode

type MessagesSetEncryptedTypingParams

type MessagesSetEncryptedTypingParams struct {
	Peer   *InputEncryptedChat `validate:"required"`
	Typing bool                `validate:"required"`
}

func (*MessagesSetEncryptedTypingParams) CRC

func (*MessagesSetEncryptedTypingParams) Encode

func (e *MessagesSetEncryptedTypingParams) Encode() []byte

type MessagesSetGameScoreParams

type MessagesSetGameScoreParams struct {
	EditMessage bool      `flag:"0,encoded_in_bitflags"`
	Force       bool      `flag:"1,encoded_in_bitflags"`
	Peer        InputPeer `validate:"required"`
	Id          int32     `validate:"required"`
	UserId      InputUser `validate:"required"`
	Score       int32     `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesSetGameScoreParams) CRC

func (*MessagesSetGameScoreParams) Encode

func (e *MessagesSetGameScoreParams) Encode() []byte

type MessagesSetInlineBotResultsParams

type MessagesSetInlineBotResultsParams struct {
	Gallery    bool                   `flag:"0,encoded_in_bitflags"`
	Private    bool                   `flag:"1,encoded_in_bitflags"`
	QueryId    int64                  `validate:"required"`
	Results    []InputBotInlineResult `validate:"required"`
	CacheTime  int32                  `validate:"required"`
	NextOffset string                 `flag:"2"`
	SwitchPm   *InlineBotSwitchPM     `flag:"3"`
	// contains filtered or unexported fields
}

func (*MessagesSetInlineBotResultsParams) CRC

func (*MessagesSetInlineBotResultsParams) Encode

type MessagesSetInlineGameScoreParams

type MessagesSetInlineGameScoreParams struct {
	EditMessage bool                     `flag:"0,encoded_in_bitflags"`
	Force       bool                     `flag:"1,encoded_in_bitflags"`
	Id          *InputBotInlineMessageID `validate:"required"`
	UserId      InputUser                `validate:"required"`
	Score       int32                    `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesSetInlineGameScoreParams) CRC

func (*MessagesSetInlineGameScoreParams) Encode

func (e *MessagesSetInlineGameScoreParams) Encode() []byte

type MessagesSetTypingParams

type MessagesSetTypingParams struct {
	Peer   InputPeer         `validate:"required"`
	Action SendMessageAction `validate:"required"`
}

func (*MessagesSetTypingParams) CRC

func (*MessagesSetTypingParams) Encode

func (e *MessagesSetTypingParams) Encode() []byte

type MessagesStartBotParams

type MessagesStartBotParams struct {
	Bot        InputUser `validate:"required"`
	Peer       InputPeer `validate:"required"`
	RandomId   int64     `validate:"required"`
	StartParam string    `validate:"required"`
}

func (*MessagesStartBotParams) CRC

func (e *MessagesStartBotParams) CRC() uint32

func (*MessagesStartBotParams) Encode

func (e *MessagesStartBotParams) Encode() []byte

type MessagesStickerSet

type MessagesStickerSet struct {
	Set       *StickerSet    `validate:"required"`
	Packs     []*StickerPack `validate:"required"`
	Documents []Document     `validate:"required"`
}

func (*MessagesStickerSet) CRC

func (e *MessagesStickerSet) CRC() uint32

func (*MessagesStickerSet) Encode

func (e *MessagesStickerSet) Encode() []byte

type MessagesStickerSetInstallResult

type MessagesStickerSetInstallResult interface {
	serialize.TL
	ImplementsMessagesStickerSetInstallResult()
}

type MessagesStickerSetInstallResultArchive

type MessagesStickerSetInstallResultArchive struct {
	Sets []StickerSetCovered `validate:"required"`
}

func (*MessagesStickerSetInstallResultArchive) CRC

func (*MessagesStickerSetInstallResultArchive) Encode

func (*MessagesStickerSetInstallResultArchive) ImplementsMessagesStickerSetInstallResult

func (*MessagesStickerSetInstallResultArchive) ImplementsMessagesStickerSetInstallResult()

type MessagesStickerSetInstallResultSuccess

type MessagesStickerSetInstallResultSuccess struct{}

func (*MessagesStickerSetInstallResultSuccess) CRC

func (*MessagesStickerSetInstallResultSuccess) Encode

func (*MessagesStickerSetInstallResultSuccess) ImplementsMessagesStickerSetInstallResult

func (*MessagesStickerSetInstallResultSuccess) ImplementsMessagesStickerSetInstallResult()

type MessagesStickers

type MessagesStickers interface {
	serialize.TL
	ImplementsMessagesStickers()
}

type MessagesStickersNotModified

type MessagesStickersNotModified struct{}

func (*MessagesStickersNotModified) CRC

func (*MessagesStickersNotModified) Encode

func (e *MessagesStickersNotModified) Encode() []byte

func (*MessagesStickersNotModified) ImplementsMessagesStickers

func (*MessagesStickersNotModified) ImplementsMessagesStickers()

type MessagesStickersObj

type MessagesStickersObj struct {
	Hash     int32      `validate:"required"`
	Stickers []Document `validate:"required"`
}

func (*MessagesStickersObj) CRC

func (*MessagesStickersObj) CRC() uint32

func (*MessagesStickersObj) Encode

func (e *MessagesStickersObj) Encode() []byte

func (*MessagesStickersObj) ImplementsMessagesStickers

func (*MessagesStickersObj) ImplementsMessagesStickers()

type MessagesToggleDialogPinParams

type MessagesToggleDialogPinParams struct {
	Pinned bool            `flag:"0,encoded_in_bitflags"`
	Peer   InputDialogPeer `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesToggleDialogPinParams) CRC

func (*MessagesToggleDialogPinParams) Encode

func (e *MessagesToggleDialogPinParams) Encode() []byte

type MessagesToggleStickerSetsParams

type MessagesToggleStickerSetsParams struct {
	Uninstall   bool              `flag:"0,encoded_in_bitflags"`
	Archive     bool              `flag:"1,encoded_in_bitflags"`
	Unarchive   bool              `flag:"2,encoded_in_bitflags"`
	Stickersets []InputStickerSet `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesToggleStickerSetsParams) CRC

func (*MessagesToggleStickerSetsParams) Encode

func (e *MessagesToggleStickerSetsParams) Encode() []byte

type MessagesUninstallStickerSetParams

type MessagesUninstallStickerSetParams struct {
	Stickerset InputStickerSet `validate:"required"`
}

func (*MessagesUninstallStickerSetParams) CRC

func (*MessagesUninstallStickerSetParams) Encode

type MessagesUpdateDialogFilterParams

type MessagesUpdateDialogFilterParams struct {
	Id     int32         `validate:"required"`
	Filter *DialogFilter `flag:"0"`
	// contains filtered or unexported fields
}

func (*MessagesUpdateDialogFilterParams) CRC

func (*MessagesUpdateDialogFilterParams) Encode

func (e *MessagesUpdateDialogFilterParams) Encode() []byte

type MessagesUpdateDialogFiltersOrderParams

type MessagesUpdateDialogFiltersOrderParams struct {
	Order []int32 `validate:"required"`
}

func (*MessagesUpdateDialogFiltersOrderParams) CRC

func (*MessagesUpdateDialogFiltersOrderParams) Encode

type MessagesUpdatePinnedMessageParams

type MessagesUpdatePinnedMessageParams struct {
	Silent bool      `flag:"0,encoded_in_bitflags"`
	Peer   InputPeer `validate:"required"`
	Id     int32     `validate:"required"`
	// contains filtered or unexported fields
}

func (*MessagesUpdatePinnedMessageParams) CRC

func (*MessagesUpdatePinnedMessageParams) Encode

type MessagesUploadEncryptedFileParams

type MessagesUploadEncryptedFileParams struct {
	Peer *InputEncryptedChat `validate:"required"`
	File InputEncryptedFile  `validate:"required"`
}

func (*MessagesUploadEncryptedFileParams) CRC

func (*MessagesUploadEncryptedFileParams) Encode

type MessagesUploadMediaParams

type MessagesUploadMediaParams struct {
	Peer  InputPeer  `validate:"required"`
	Media InputMedia `validate:"required"`
}

func (*MessagesUploadMediaParams) CRC

func (*MessagesUploadMediaParams) Encode

func (e *MessagesUploadMediaParams) Encode() []byte

type MessagesVotesList

type MessagesVotesList struct {
	Count      int32             `validate:"required"`
	Votes      []MessageUserVote `validate:"required"`
	Users      []User            `validate:"required"`
	NextOffset string            `flag:"0"`
	// contains filtered or unexported fields
}

func (*MessagesVotesList) CRC

func (e *MessagesVotesList) CRC() uint32

func (*MessagesVotesList) Encode

func (e *MessagesVotesList) Encode() []byte

type NearestDc

type NearestDc struct {
	Country   string `validate:"required"`
	ThisDc    int32  `validate:"required"`
	NearestDc int32  `validate:"required"`
}

func (*NearestDc) CRC

func (e *NearestDc) CRC() uint32

func (*NearestDc) Encode

func (e *NearestDc) Encode() []byte

type NotifyBroadcasts

type NotifyBroadcasts struct{}

func (*NotifyBroadcasts) CRC

func (*NotifyBroadcasts) CRC() uint32

func (*NotifyBroadcasts) Encode

func (e *NotifyBroadcasts) Encode() []byte

func (*NotifyBroadcasts) ImplementsNotifyPeer

func (*NotifyBroadcasts) ImplementsNotifyPeer()

type NotifyChats

type NotifyChats struct{}

func (*NotifyChats) CRC

func (*NotifyChats) CRC() uint32

func (*NotifyChats) Encode

func (e *NotifyChats) Encode() []byte

func (*NotifyChats) ImplementsNotifyPeer

func (*NotifyChats) ImplementsNotifyPeer()

type NotifyPeer

type NotifyPeer interface {
	serialize.TL
	ImplementsNotifyPeer()
}

type NotifyPeerObj

type NotifyPeerObj struct {
	Peer Peer `validate:"required"`
}

func (*NotifyPeerObj) CRC

func (*NotifyPeerObj) CRC() uint32

func (*NotifyPeerObj) Encode

func (e *NotifyPeerObj) Encode() []byte

func (*NotifyPeerObj) ImplementsNotifyPeer

func (*NotifyPeerObj) ImplementsNotifyPeer()

type NotifyUsers

type NotifyUsers struct{}

func (*NotifyUsers) CRC

func (*NotifyUsers) CRC() uint32

func (*NotifyUsers) Encode

func (e *NotifyUsers) Encode() []byte

func (*NotifyUsers) ImplementsNotifyPeer

func (*NotifyUsers) ImplementsNotifyPeer()

type Page

type Page struct {
	Part      bool        `flag:"0,encoded_in_bitflags"`
	Rtl       bool        `flag:"1,encoded_in_bitflags"`
	V2        bool        `flag:"2,encoded_in_bitflags"`
	Url       string      `validate:"required"`
	Blocks    []PageBlock `validate:"required"`
	Photos    []Photo     `validate:"required"`
	Documents []Document  `validate:"required"`
	Views     int32       `flag:"3"`
	// contains filtered or unexported fields
}

func (*Page) CRC

func (e *Page) CRC() uint32

func (*Page) Encode

func (e *Page) Encode() []byte

type PageBlock

type PageBlock interface {
	serialize.TL
	ImplementsPageBlock()
}

type PageBlockAnchor

type PageBlockAnchor struct {
	Name string `validate:"required"`
}

func (*PageBlockAnchor) CRC

func (*PageBlockAnchor) CRC() uint32

func (*PageBlockAnchor) Encode

func (e *PageBlockAnchor) Encode() []byte

func (*PageBlockAnchor) ImplementsPageBlock

func (*PageBlockAnchor) ImplementsPageBlock()

type PageBlockAudio

type PageBlockAudio struct {
	AudioId int64        `validate:"required"`
	Caption *PageCaption `validate:"required"`
}

func (*PageBlockAudio) CRC

func (*PageBlockAudio) CRC() uint32

func (*PageBlockAudio) Encode

func (e *PageBlockAudio) Encode() []byte

func (*PageBlockAudio) ImplementsPageBlock

func (*PageBlockAudio) ImplementsPageBlock()

type PageBlockAuthorDate

type PageBlockAuthorDate struct {
	Author        RichText `validate:"required"`
	PublishedDate int32    `validate:"required"`
}

func (*PageBlockAuthorDate) CRC

func (*PageBlockAuthorDate) CRC() uint32

func (*PageBlockAuthorDate) Encode

func (e *PageBlockAuthorDate) Encode() []byte

func (*PageBlockAuthorDate) ImplementsPageBlock

func (*PageBlockAuthorDate) ImplementsPageBlock()

type PageBlockBlockquote

type PageBlockBlockquote struct {
	Text    RichText `validate:"required"`
	Caption RichText `validate:"required"`
}

func (*PageBlockBlockquote) CRC

func (*PageBlockBlockquote) CRC() uint32

func (*PageBlockBlockquote) Encode

func (e *PageBlockBlockquote) Encode() []byte

func (*PageBlockBlockquote) ImplementsPageBlock

func (*PageBlockBlockquote) ImplementsPageBlock()

type PageBlockChannel

type PageBlockChannel struct {
	Channel Chat `validate:"required"`
}

func (*PageBlockChannel) CRC

func (*PageBlockChannel) CRC() uint32

func (*PageBlockChannel) Encode

func (e *PageBlockChannel) Encode() []byte

func (*PageBlockChannel) ImplementsPageBlock

func (*PageBlockChannel) ImplementsPageBlock()

type PageBlockCollage

type PageBlockCollage struct {
	Items   []PageBlock  `validate:"required"`
	Caption *PageCaption `validate:"required"`
}

func (*PageBlockCollage) CRC

func (*PageBlockCollage) CRC() uint32

func (*PageBlockCollage) Encode

func (e *PageBlockCollage) Encode() []byte

func (*PageBlockCollage) ImplementsPageBlock

func (*PageBlockCollage) ImplementsPageBlock()

type PageBlockCover

type PageBlockCover struct {
	Cover PageBlock `validate:"required"`
}

func (*PageBlockCover) CRC

func (*PageBlockCover) CRC() uint32

func (*PageBlockCover) Encode

func (e *PageBlockCover) Encode() []byte

func (*PageBlockCover) ImplementsPageBlock

func (*PageBlockCover) ImplementsPageBlock()

type PageBlockDetails

type PageBlockDetails struct {
	Open   bool        `flag:"0,encoded_in_bitflags"`
	Blocks []PageBlock `validate:"required"`
	Title  RichText    `validate:"required"`
	// contains filtered or unexported fields
}

func (*PageBlockDetails) CRC

func (*PageBlockDetails) CRC() uint32

func (*PageBlockDetails) Encode

func (e *PageBlockDetails) Encode() []byte

func (*PageBlockDetails) ImplementsPageBlock

func (*PageBlockDetails) ImplementsPageBlock()

type PageBlockDivider

type PageBlockDivider struct{}

func (*PageBlockDivider) CRC

func (*PageBlockDivider) CRC() uint32

func (*PageBlockDivider) Encode

func (e *PageBlockDivider) Encode() []byte

func (*PageBlockDivider) ImplementsPageBlock

func (*PageBlockDivider) ImplementsPageBlock()

type PageBlockEmbed

type PageBlockEmbed struct {
	FullWidth      bool         `flag:"0,encoded_in_bitflags"`
	AllowScrolling bool         `flag:"3,encoded_in_bitflags"`
	Url            string       `flag:"1"`
	Html           string       `flag:"2"`
	PosterPhotoId  int64        `flag:"4"`
	W              int32        `flag:"5"`
	H              int32        `flag:"5"`
	Caption        *PageCaption `validate:"required"`
	// contains filtered or unexported fields
}

func (*PageBlockEmbed) CRC

func (*PageBlockEmbed) CRC() uint32

func (*PageBlockEmbed) Encode

func (e *PageBlockEmbed) Encode() []byte

func (*PageBlockEmbed) ImplementsPageBlock

func (*PageBlockEmbed) ImplementsPageBlock()

type PageBlockEmbedPost

type PageBlockEmbedPost struct {
	Url           string       `validate:"required"`
	WebpageId     int64        `validate:"required"`
	AuthorPhotoId int64        `validate:"required"`
	Author        string       `validate:"required"`
	Date          int32        `validate:"required"`
	Blocks        []PageBlock  `validate:"required"`
	Caption       *PageCaption `validate:"required"`
}

func (*PageBlockEmbedPost) CRC

func (*PageBlockEmbedPost) CRC() uint32

func (*PageBlockEmbedPost) Encode

func (e *PageBlockEmbedPost) Encode() []byte

func (*PageBlockEmbedPost) ImplementsPageBlock

func (*PageBlockEmbedPost) ImplementsPageBlock()

type PageBlockFooter

type PageBlockFooter struct {
	Text RichText `validate:"required"`
}

func (*PageBlockFooter) CRC

func (*PageBlockFooter) CRC() uint32

func (*PageBlockFooter) Encode

func (e *PageBlockFooter) Encode() []byte

func (*PageBlockFooter) ImplementsPageBlock

func (*PageBlockFooter) ImplementsPageBlock()

type PageBlockHeader

type PageBlockHeader struct {
	Text RichText `validate:"required"`
}

func (*PageBlockHeader) CRC

func (*PageBlockHeader) CRC() uint32

func (*PageBlockHeader) Encode

func (e *PageBlockHeader) Encode() []byte

func (*PageBlockHeader) ImplementsPageBlock

func (*PageBlockHeader) ImplementsPageBlock()

type PageBlockKicker

type PageBlockKicker struct {
	Text RichText `validate:"required"`
}

func (*PageBlockKicker) CRC

func (*PageBlockKicker) CRC() uint32

func (*PageBlockKicker) Encode

func (e *PageBlockKicker) Encode() []byte

func (*PageBlockKicker) ImplementsPageBlock

func (*PageBlockKicker) ImplementsPageBlock()

type PageBlockList

type PageBlockList struct {
	Items []PageListItem `validate:"required"`
}

func (*PageBlockList) CRC

func (*PageBlockList) CRC() uint32

func (*PageBlockList) Encode

func (e *PageBlockList) Encode() []byte

func (*PageBlockList) ImplementsPageBlock

func (*PageBlockList) ImplementsPageBlock()

type PageBlockMap

type PageBlockMap struct {
	Geo     GeoPoint     `validate:"required"`
	Zoom    int32        `validate:"required"`
	W       int32        `validate:"required"`
	H       int32        `validate:"required"`
	Caption *PageCaption `validate:"required"`
}

func (*PageBlockMap) CRC

func (*PageBlockMap) CRC() uint32

func (*PageBlockMap) Encode

func (e *PageBlockMap) Encode() []byte

func (*PageBlockMap) ImplementsPageBlock

func (*PageBlockMap) ImplementsPageBlock()

type PageBlockOrderedList

type PageBlockOrderedList struct {
	Items []PageListOrderedItem `validate:"required"`
}

func (*PageBlockOrderedList) CRC

func (*PageBlockOrderedList) Encode

func (e *PageBlockOrderedList) Encode() []byte

func (*PageBlockOrderedList) ImplementsPageBlock

func (*PageBlockOrderedList) ImplementsPageBlock()

type PageBlockParagraph

type PageBlockParagraph struct {
	Text RichText `validate:"required"`
}

func (*PageBlockParagraph) CRC

func (*PageBlockParagraph) CRC() uint32

func (*PageBlockParagraph) Encode

func (e *PageBlockParagraph) Encode() []byte

func (*PageBlockParagraph) ImplementsPageBlock

func (*PageBlockParagraph) ImplementsPageBlock()

type PageBlockPhoto

type PageBlockPhoto struct {
	PhotoId   int64        `validate:"required"`
	Caption   *PageCaption `validate:"required"`
	Url       string       `flag:"0"`
	WebpageId int64        `flag:"0"`
	// contains filtered or unexported fields
}

func (*PageBlockPhoto) CRC

func (*PageBlockPhoto) CRC() uint32

func (*PageBlockPhoto) Encode

func (e *PageBlockPhoto) Encode() []byte

func (*PageBlockPhoto) ImplementsPageBlock

func (*PageBlockPhoto) ImplementsPageBlock()

type PageBlockPreformatted

type PageBlockPreformatted struct {
	Text     RichText `validate:"required"`
	Language string   `validate:"required"`
}

func (*PageBlockPreformatted) CRC

func (*PageBlockPreformatted) Encode

func (e *PageBlockPreformatted) Encode() []byte

func (*PageBlockPreformatted) ImplementsPageBlock

func (*PageBlockPreformatted) ImplementsPageBlock()

type PageBlockPullquote

type PageBlockPullquote struct {
	Text    RichText `validate:"required"`
	Caption RichText `validate:"required"`
}

func (*PageBlockPullquote) CRC

func (*PageBlockPullquote) CRC() uint32

func (*PageBlockPullquote) Encode

func (e *PageBlockPullquote) Encode() []byte

func (*PageBlockPullquote) ImplementsPageBlock

func (*PageBlockPullquote) ImplementsPageBlock()

type PageBlockRelatedArticles

type PageBlockRelatedArticles struct {
	Title    RichText              `validate:"required"`
	Articles []*PageRelatedArticle `validate:"required"`
}

func (*PageBlockRelatedArticles) CRC

func (*PageBlockRelatedArticles) Encode

func (e *PageBlockRelatedArticles) Encode() []byte

func (*PageBlockRelatedArticles) ImplementsPageBlock

func (*PageBlockRelatedArticles) ImplementsPageBlock()

type PageBlockSlideshow

type PageBlockSlideshow struct {
	Items   []PageBlock  `validate:"required"`
	Caption *PageCaption `validate:"required"`
}

func (*PageBlockSlideshow) CRC

func (*PageBlockSlideshow) CRC() uint32

func (*PageBlockSlideshow) Encode

func (e *PageBlockSlideshow) Encode() []byte

func (*PageBlockSlideshow) ImplementsPageBlock

func (*PageBlockSlideshow) ImplementsPageBlock()

type PageBlockSubheader

type PageBlockSubheader struct {
	Text RichText `validate:"required"`
}

func (*PageBlockSubheader) CRC

func (*PageBlockSubheader) CRC() uint32

func (*PageBlockSubheader) Encode

func (e *PageBlockSubheader) Encode() []byte

func (*PageBlockSubheader) ImplementsPageBlock

func (*PageBlockSubheader) ImplementsPageBlock()

type PageBlockSubtitle

type PageBlockSubtitle struct {
	Text RichText `validate:"required"`
}

func (*PageBlockSubtitle) CRC

func (*PageBlockSubtitle) CRC() uint32

func (*PageBlockSubtitle) Encode

func (e *PageBlockSubtitle) Encode() []byte

func (*PageBlockSubtitle) ImplementsPageBlock

func (*PageBlockSubtitle) ImplementsPageBlock()

type PageBlockTable

type PageBlockTable struct {
	Bordered bool            `flag:"0,encoded_in_bitflags"`
	Striped  bool            `flag:"1,encoded_in_bitflags"`
	Title    RichText        `validate:"required"`
	Rows     []*PageTableRow `validate:"required"`
	// contains filtered or unexported fields
}

func (*PageBlockTable) CRC

func (*PageBlockTable) CRC() uint32

func (*PageBlockTable) Encode

func (e *PageBlockTable) Encode() []byte

func (*PageBlockTable) ImplementsPageBlock

func (*PageBlockTable) ImplementsPageBlock()

type PageBlockTitle

type PageBlockTitle struct {
	Text RichText `validate:"required"`
}

func (*PageBlockTitle) CRC

func (*PageBlockTitle) CRC() uint32

func (*PageBlockTitle) Encode

func (e *PageBlockTitle) Encode() []byte

func (*PageBlockTitle) ImplementsPageBlock

func (*PageBlockTitle) ImplementsPageBlock()

type PageBlockUnsupported

type PageBlockUnsupported struct{}

func (*PageBlockUnsupported) CRC

func (*PageBlockUnsupported) Encode

func (e *PageBlockUnsupported) Encode() []byte

func (*PageBlockUnsupported) ImplementsPageBlock

func (*PageBlockUnsupported) ImplementsPageBlock()

type PageBlockVideo

type PageBlockVideo struct {
	Autoplay bool         `flag:"0,encoded_in_bitflags"`
	Loop     bool         `flag:"1,encoded_in_bitflags"`
	VideoId  int64        `validate:"required"`
	Caption  *PageCaption `validate:"required"`
	// contains filtered or unexported fields
}

func (*PageBlockVideo) CRC

func (*PageBlockVideo) CRC() uint32

func (*PageBlockVideo) Encode

func (e *PageBlockVideo) Encode() []byte

func (*PageBlockVideo) ImplementsPageBlock

func (*PageBlockVideo) ImplementsPageBlock()

type PageCaption

type PageCaption struct {
	Text   RichText `validate:"required"`
	Credit RichText `validate:"required"`
}

func (*PageCaption) CRC

func (e *PageCaption) CRC() uint32

func (*PageCaption) Encode

func (e *PageCaption) Encode() []byte

type PageListItem

type PageListItem interface {
	serialize.TL
	ImplementsPageListItem()
}

type PageListItemBlocks

type PageListItemBlocks struct {
	Blocks []PageBlock `validate:"required"`
}

func (*PageListItemBlocks) CRC

func (*PageListItemBlocks) CRC() uint32

func (*PageListItemBlocks) Encode

func (e *PageListItemBlocks) Encode() []byte

func (*PageListItemBlocks) ImplementsPageListItem

func (*PageListItemBlocks) ImplementsPageListItem()

type PageListItemText

type PageListItemText struct {
	Text RichText `validate:"required"`
}

func (*PageListItemText) CRC

func (*PageListItemText) CRC() uint32

func (*PageListItemText) Encode

func (e *PageListItemText) Encode() []byte

func (*PageListItemText) ImplementsPageListItem

func (*PageListItemText) ImplementsPageListItem()

type PageListOrderedItem

type PageListOrderedItem interface {
	serialize.TL
	ImplementsPageListOrderedItem()
}

type PageListOrderedItemBlocks

type PageListOrderedItemBlocks struct {
	Num    string      `validate:"required"`
	Blocks []PageBlock `validate:"required"`
}

func (*PageListOrderedItemBlocks) CRC

func (*PageListOrderedItemBlocks) Encode

func (e *PageListOrderedItemBlocks) Encode() []byte

func (*PageListOrderedItemBlocks) ImplementsPageListOrderedItem

func (*PageListOrderedItemBlocks) ImplementsPageListOrderedItem()

type PageListOrderedItemText

type PageListOrderedItemText struct {
	Num  string   `validate:"required"`
	Text RichText `validate:"required"`
}

func (*PageListOrderedItemText) CRC

func (*PageListOrderedItemText) Encode

func (e *PageListOrderedItemText) Encode() []byte

func (*PageListOrderedItemText) ImplementsPageListOrderedItem

func (*PageListOrderedItemText) ImplementsPageListOrderedItem()

type PageRelatedArticle

type PageRelatedArticle struct {
	Url           string `validate:"required"`
	WebpageId     int64  `validate:"required"`
	Title         string `flag:"0"`
	Description   string `flag:"1"`
	PhotoId       int64  `flag:"2"`
	Author        string `flag:"3"`
	PublishedDate int32  `flag:"4"`
	// contains filtered or unexported fields
}

func (*PageRelatedArticle) CRC

func (e *PageRelatedArticle) CRC() uint32

func (*PageRelatedArticle) Encode

func (e *PageRelatedArticle) Encode() []byte

type PageTableCell

type PageTableCell struct {
	Header       bool     `flag:"0,encoded_in_bitflags"`
	AlignCenter  bool     `flag:"3,encoded_in_bitflags"`
	AlignRight   bool     `flag:"4,encoded_in_bitflags"`
	ValignMiddle bool     `flag:"5,encoded_in_bitflags"`
	ValignBottom bool     `flag:"6,encoded_in_bitflags"`
	Text         RichText `flag:"7"`
	Colspan      int32    `flag:"1"`
	Rowspan      int32    `flag:"2"`
	// contains filtered or unexported fields
}

func (*PageTableCell) CRC

func (e *PageTableCell) CRC() uint32

func (*PageTableCell) Encode

func (e *PageTableCell) Encode() []byte

type PageTableRow

type PageTableRow struct {
	Cells []*PageTableCell `validate:"required"`
}

func (*PageTableRow) CRC

func (e *PageTableRow) CRC() uint32

func (*PageTableRow) Encode

func (e *PageTableRow) Encode() []byte

type PasswordKdfAlgo

type PasswordKdfAlgo interface {
	serialize.TL
	ImplementsPasswordKdfAlgo()
}

type PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow

type PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow struct {
	Salt1 []byte `validate:"required"`
	Salt2 []byte `validate:"required"`
	G     int32  `validate:"required"`
	P     []byte `validate:"required"`
}

func (*PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow) CRC

func (*PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow) Encode

func (*PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow) ImplementsPasswordKdfAlgo

type PasswordKdfAlgoUnknown

type PasswordKdfAlgoUnknown struct{}

func (*PasswordKdfAlgoUnknown) CRC

func (*PasswordKdfAlgoUnknown) Encode

func (e *PasswordKdfAlgoUnknown) Encode() []byte

func (*PasswordKdfAlgoUnknown) ImplementsPasswordKdfAlgo

func (*PasswordKdfAlgoUnknown) ImplementsPasswordKdfAlgo()

type PaymentCharge

type PaymentCharge struct {
	Id               string `validate:"required"`
	ProviderChargeId string `validate:"required"`
}

func (*PaymentCharge) CRC

func (e *PaymentCharge) CRC() uint32

func (*PaymentCharge) Encode

func (e *PaymentCharge) Encode() []byte

type PaymentRequestedInfo

type PaymentRequestedInfo struct {
	Name            string       `flag:"0"`
	Phone           string       `flag:"1"`
	Email           string       `flag:"2"`
	ShippingAddress *PostAddress `flag:"3"`
	// contains filtered or unexported fields
}

func (*PaymentRequestedInfo) CRC

func (e *PaymentRequestedInfo) CRC() uint32

func (*PaymentRequestedInfo) Encode

func (e *PaymentRequestedInfo) Encode() []byte

type PaymentSavedCredentials

type PaymentSavedCredentials struct {
	Id    string `validate:"required"`
	Title string `validate:"required"`
}

func (*PaymentSavedCredentials) CRC

func (*PaymentSavedCredentials) Encode

func (e *PaymentSavedCredentials) Encode() []byte

type PaymentsBankCardData

type PaymentsBankCardData struct {
	Title    string             `validate:"required"`
	OpenUrls []*BankCardOpenUrl `validate:"required"`
}

func (*PaymentsBankCardData) CRC

func (e *PaymentsBankCardData) CRC() uint32

func (*PaymentsBankCardData) Encode

func (e *PaymentsBankCardData) Encode() []byte

type PaymentsClearSavedInfoParams

type PaymentsClearSavedInfoParams struct {
	Credentials bool `flag:"0,encoded_in_bitflags"`
	Info        bool `flag:"1,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*PaymentsClearSavedInfoParams) CRC

func (*PaymentsClearSavedInfoParams) Encode

func (e *PaymentsClearSavedInfoParams) Encode() []byte

type PaymentsGetBankCardDataParams

type PaymentsGetBankCardDataParams struct {
	Number string `validate:"required"`
}

func (*PaymentsGetBankCardDataParams) CRC

func (*PaymentsGetBankCardDataParams) Encode

func (e *PaymentsGetBankCardDataParams) Encode() []byte

type PaymentsGetPaymentFormParams

type PaymentsGetPaymentFormParams struct {
	MsgId int32 `validate:"required"`
}

func (*PaymentsGetPaymentFormParams) CRC

func (*PaymentsGetPaymentFormParams) Encode

func (e *PaymentsGetPaymentFormParams) Encode() []byte

type PaymentsGetPaymentReceiptParams

type PaymentsGetPaymentReceiptParams struct {
	MsgId int32 `validate:"required"`
}

func (*PaymentsGetPaymentReceiptParams) CRC

func (*PaymentsGetPaymentReceiptParams) Encode

func (e *PaymentsGetPaymentReceiptParams) Encode() []byte

type PaymentsGetSavedInfoParams

type PaymentsGetSavedInfoParams struct{}

func (*PaymentsGetSavedInfoParams) CRC

func (*PaymentsGetSavedInfoParams) Encode

func (e *PaymentsGetSavedInfoParams) Encode() []byte

type PaymentsPaymentForm

type PaymentsPaymentForm struct {
	CanSaveCredentials bool                     `flag:"2,encoded_in_bitflags"`
	PasswordMissing    bool                     `flag:"3,encoded_in_bitflags"`
	BotId              int32                    `validate:"required"`
	Invoice            *Invoice                 `validate:"required"`
	ProviderId         int32                    `validate:"required"`
	Url                string                   `validate:"required"`
	NativeProvider     string                   `flag:"4"`
	NativeParams       *DataJSON                `flag:"4"`
	SavedInfo          *PaymentRequestedInfo    `flag:"0"`
	SavedCredentials   *PaymentSavedCredentials `flag:"1"`
	Users              []User                   `validate:"required"`
	// contains filtered or unexported fields
}

func (*PaymentsPaymentForm) CRC

func (e *PaymentsPaymentForm) CRC() uint32

func (*PaymentsPaymentForm) Encode

func (e *PaymentsPaymentForm) Encode() []byte

type PaymentsPaymentReceipt

type PaymentsPaymentReceipt struct {
	Date             int32                 `validate:"required"`
	BotId            int32                 `validate:"required"`
	Invoice          *Invoice              `validate:"required"`
	ProviderId       int32                 `validate:"required"`
	Info             *PaymentRequestedInfo `flag:"0"`
	Shipping         *ShippingOption       `flag:"1"`
	Currency         string                `validate:"required"`
	TotalAmount      int64                 `validate:"required"`
	CredentialsTitle string                `validate:"required"`
	Users            []User                `validate:"required"`
	// contains filtered or unexported fields
}

func (*PaymentsPaymentReceipt) CRC

func (e *PaymentsPaymentReceipt) CRC() uint32

func (*PaymentsPaymentReceipt) Encode

func (e *PaymentsPaymentReceipt) Encode() []byte

type PaymentsPaymentResult

type PaymentsPaymentResult interface {
	serialize.TL
	ImplementsPaymentsPaymentResult()
}

type PaymentsPaymentResultObj

type PaymentsPaymentResultObj struct {
	Updates Updates `validate:"required"`
}

func (*PaymentsPaymentResultObj) CRC

func (*PaymentsPaymentResultObj) Encode

func (e *PaymentsPaymentResultObj) Encode() []byte

func (*PaymentsPaymentResultObj) ImplementsPaymentsPaymentResult

func (*PaymentsPaymentResultObj) ImplementsPaymentsPaymentResult()

type PaymentsPaymentVerificationNeeded

type PaymentsPaymentVerificationNeeded struct {
	Url string `validate:"required"`
}

func (*PaymentsPaymentVerificationNeeded) CRC

func (*PaymentsPaymentVerificationNeeded) Encode

func (*PaymentsPaymentVerificationNeeded) ImplementsPaymentsPaymentResult

func (*PaymentsPaymentVerificationNeeded) ImplementsPaymentsPaymentResult()

type PaymentsSavedInfo

type PaymentsSavedInfo struct {
	HasSavedCredentials bool                  `flag:"1,encoded_in_bitflags"`
	SavedInfo           *PaymentRequestedInfo `flag:"0"`
	// contains filtered or unexported fields
}

func (*PaymentsSavedInfo) CRC

func (e *PaymentsSavedInfo) CRC() uint32

func (*PaymentsSavedInfo) Encode

func (e *PaymentsSavedInfo) Encode() []byte

type PaymentsSendPaymentFormParams

type PaymentsSendPaymentFormParams struct {
	MsgId            int32                   `validate:"required"`
	RequestedInfoId  string                  `flag:"0"`
	ShippingOptionId string                  `flag:"1"`
	Credentials      InputPaymentCredentials `validate:"required"`
	// contains filtered or unexported fields
}

func (*PaymentsSendPaymentFormParams) CRC

func (*PaymentsSendPaymentFormParams) Encode

func (e *PaymentsSendPaymentFormParams) Encode() []byte

type PaymentsValidateRequestedInfoParams

type PaymentsValidateRequestedInfoParams struct {
	Save  bool                  `flag:"0,encoded_in_bitflags"`
	MsgId int32                 `validate:"required"`
	Info  *PaymentRequestedInfo `validate:"required"`
	// contains filtered or unexported fields
}

func (*PaymentsValidateRequestedInfoParams) CRC

func (*PaymentsValidateRequestedInfoParams) Encode

type PaymentsValidatedRequestedInfo

type PaymentsValidatedRequestedInfo struct {
	Id              string            `flag:"0"`
	ShippingOptions []*ShippingOption `flag:"1"`
	// contains filtered or unexported fields
}

func (*PaymentsValidatedRequestedInfo) CRC

func (*PaymentsValidatedRequestedInfo) Encode

func (e *PaymentsValidatedRequestedInfo) Encode() []byte

type Peer

type Peer interface {
	serialize.TL
	ImplementsPeer()
}

type PeerChannel

type PeerChannel struct {
	ChannelId int32 `validate:"required"`
}

func (*PeerChannel) CRC

func (*PeerChannel) CRC() uint32

func (*PeerChannel) Encode

func (e *PeerChannel) Encode() []byte

func (*PeerChannel) ImplementsPeer

func (*PeerChannel) ImplementsPeer()

type PeerChat

type PeerChat struct {
	ChatId int32 `validate:"required"`
}

func (*PeerChat) CRC

func (*PeerChat) CRC() uint32

func (*PeerChat) Encode

func (e *PeerChat) Encode() []byte

func (*PeerChat) ImplementsPeer

func (*PeerChat) ImplementsPeer()

type PeerLocated

type PeerLocated interface {
	serialize.TL
	ImplementsPeerLocated()
}

type PeerLocatedObj

type PeerLocatedObj struct {
	Peer     Peer  `validate:"required"`
	Expires  int32 `validate:"required"`
	Distance int32 `validate:"required"`
}

func (*PeerLocatedObj) CRC

func (*PeerLocatedObj) CRC() uint32

func (*PeerLocatedObj) Encode

func (e *PeerLocatedObj) Encode() []byte

func (*PeerLocatedObj) ImplementsPeerLocated

func (*PeerLocatedObj) ImplementsPeerLocated()

type PeerNotifySettings

type PeerNotifySettings struct {
	ShowPreviews bool   `flag:"0"`
	Silent       bool   `flag:"1"`
	MuteUntil    int32  `flag:"2"`
	Sound        string `flag:"3"`
	// contains filtered or unexported fields
}

func (*PeerNotifySettings) CRC

func (e *PeerNotifySettings) CRC() uint32

func (*PeerNotifySettings) Encode

func (e *PeerNotifySettings) Encode() []byte

type PeerSelfLocated

type PeerSelfLocated struct {
	Expires int32 `validate:"required"`
}

func (*PeerSelfLocated) CRC

func (*PeerSelfLocated) CRC() uint32

func (*PeerSelfLocated) Encode

func (e *PeerSelfLocated) Encode() []byte

func (*PeerSelfLocated) ImplementsPeerLocated

func (*PeerSelfLocated) ImplementsPeerLocated()

type PeerSettings

type PeerSettings struct {
	ReportSpam            bool  `flag:"0,encoded_in_bitflags"`
	AddContact            bool  `flag:"1,encoded_in_bitflags"`
	BlockContact          bool  `flag:"2,encoded_in_bitflags"`
	ShareContact          bool  `flag:"3,encoded_in_bitflags"`
	NeedContactsException bool  `flag:"4,encoded_in_bitflags"`
	ReportGeo             bool  `flag:"5,encoded_in_bitflags"`
	Autoarchived          bool  `flag:"7,encoded_in_bitflags"`
	GeoDistance           int32 `flag:"6"`
	// contains filtered or unexported fields
}

func (*PeerSettings) CRC

func (e *PeerSettings) CRC() uint32

func (*PeerSettings) Encode

func (e *PeerSettings) Encode() []byte

type PeerUser

type PeerUser struct {
	UserId int32 `validate:"required"`
}

func (*PeerUser) CRC

func (*PeerUser) CRC() uint32

func (*PeerUser) Encode

func (e *PeerUser) Encode() []byte

func (*PeerUser) ImplementsPeer

func (*PeerUser) ImplementsPeer()

type PhoneAcceptCallParams

type PhoneAcceptCallParams struct {
	Peer     *InputPhoneCall    `validate:"required"`
	GB       []byte             `validate:"required"`
	Protocol *PhoneCallProtocol `validate:"required"`
}

func (*PhoneAcceptCallParams) CRC

func (e *PhoneAcceptCallParams) CRC() uint32

func (*PhoneAcceptCallParams) Encode

func (e *PhoneAcceptCallParams) Encode() []byte

type PhoneCall

type PhoneCall interface {
	serialize.TL
	ImplementsPhoneCall()
}

type PhoneCallAccepted

type PhoneCallAccepted struct {
	Video         bool               `flag:"6,encoded_in_bitflags"`
	Id            int64              `validate:"required"`
	AccessHash    int64              `validate:"required"`
	Date          int32              `validate:"required"`
	AdminId       int32              `validate:"required"`
	ParticipantId int32              `validate:"required"`
	GB            []byte             `validate:"required"`
	Protocol      *PhoneCallProtocol `validate:"required"`
	// contains filtered or unexported fields
}

func (*PhoneCallAccepted) CRC

func (*PhoneCallAccepted) CRC() uint32

func (*PhoneCallAccepted) Encode

func (e *PhoneCallAccepted) Encode() []byte

func (*PhoneCallAccepted) ImplementsPhoneCall

func (*PhoneCallAccepted) ImplementsPhoneCall()

type PhoneCallDiscardReason

type PhoneCallDiscardReason uint32
const (
	PhoneCallDiscardReasonMissed     PhoneCallDiscardReason = 2246320897
	PhoneCallDiscardReasonDisconnect PhoneCallDiscardReason = 3767910816
	PhoneCallDiscardReasonHangup     PhoneCallDiscardReason = 1471006352
	PhoneCallDiscardReasonBusy       PhoneCallDiscardReason = 4210550985
)

func (PhoneCallDiscardReason) CRC

func (PhoneCallDiscardReason) Encode

func (e PhoneCallDiscardReason) Encode() []byte

func (PhoneCallDiscardReason) String

func (e PhoneCallDiscardReason) String() string

type PhoneCallDiscarded

type PhoneCallDiscarded struct {
	NeedRating bool                   `flag:"2,encoded_in_bitflags"`
	NeedDebug  bool                   `flag:"3,encoded_in_bitflags"`
	Video      bool                   `flag:"6,encoded_in_bitflags"`
	Id         int64                  `validate:"required"`
	Reason     PhoneCallDiscardReason `flag:"0"`
	Duration   int32                  `flag:"1"`
	// contains filtered or unexported fields
}

func (*PhoneCallDiscarded) CRC

func (*PhoneCallDiscarded) CRC() uint32

func (*PhoneCallDiscarded) Encode

func (e *PhoneCallDiscarded) Encode() []byte

func (*PhoneCallDiscarded) ImplementsPhoneCall

func (*PhoneCallDiscarded) ImplementsPhoneCall()

type PhoneCallEmpty

type PhoneCallEmpty struct {
	Id int64 `validate:"required"`
}

func (*PhoneCallEmpty) CRC

func (*PhoneCallEmpty) CRC() uint32

func (*PhoneCallEmpty) Encode

func (e *PhoneCallEmpty) Encode() []byte

func (*PhoneCallEmpty) ImplementsPhoneCall

func (*PhoneCallEmpty) ImplementsPhoneCall()

type PhoneCallObj

type PhoneCallObj struct {
	P2PAllowed     bool               `flag:"5,encoded_in_bitflags"`
	Video          bool               `flag:"6,encoded_in_bitflags"`
	Id             int64              `validate:"required"`
	AccessHash     int64              `validate:"required"`
	Date           int32              `validate:"required"`
	AdminId        int32              `validate:"required"`
	ParticipantId  int32              `validate:"required"`
	GAOrB          []byte             `validate:"required"`
	KeyFingerprint int64              `validate:"required"`
	Protocol       *PhoneCallProtocol `validate:"required"`
	Connections    []PhoneConnection  `validate:"required"`
	StartDate      int32              `validate:"required"`
	// contains filtered or unexported fields
}

func (*PhoneCallObj) CRC

func (*PhoneCallObj) CRC() uint32

func (*PhoneCallObj) Encode

func (e *PhoneCallObj) Encode() []byte

func (*PhoneCallObj) ImplementsPhoneCall

func (*PhoneCallObj) ImplementsPhoneCall()

type PhoneCallProtocol

type PhoneCallProtocol struct {
	UdpP2P          bool     `flag:"0,encoded_in_bitflags"`
	UdpReflector    bool     `flag:"1,encoded_in_bitflags"`
	MinLayer        int32    `validate:"required"`
	MaxLayer        int32    `validate:"required"`
	LibraryVersions []string `validate:"required"`
	// contains filtered or unexported fields
}

func (*PhoneCallProtocol) CRC

func (e *PhoneCallProtocol) CRC() uint32

func (*PhoneCallProtocol) Encode

func (e *PhoneCallProtocol) Encode() []byte

type PhoneCallRequested

type PhoneCallRequested struct {
	Video         bool               `flag:"6,encoded_in_bitflags"`
	Id            int64              `validate:"required"`
	AccessHash    int64              `validate:"required"`
	Date          int32              `validate:"required"`
	AdminId       int32              `validate:"required"`
	ParticipantId int32              `validate:"required"`
	GAHash        []byte             `validate:"required"`
	Protocol      *PhoneCallProtocol `validate:"required"`
	// contains filtered or unexported fields
}

func (*PhoneCallRequested) CRC

func (*PhoneCallRequested) CRC() uint32

func (*PhoneCallRequested) Encode

func (e *PhoneCallRequested) Encode() []byte

func (*PhoneCallRequested) ImplementsPhoneCall

func (*PhoneCallRequested) ImplementsPhoneCall()

type PhoneCallWaiting

type PhoneCallWaiting struct {
	Video         bool               `flag:"6,encoded_in_bitflags"`
	Id            int64              `validate:"required"`
	AccessHash    int64              `validate:"required"`
	Date          int32              `validate:"required"`
	AdminId       int32              `validate:"required"`
	ParticipantId int32              `validate:"required"`
	Protocol      *PhoneCallProtocol `validate:"required"`
	ReceiveDate   int32              `flag:"0"`
	// contains filtered or unexported fields
}

func (*PhoneCallWaiting) CRC

func (*PhoneCallWaiting) CRC() uint32

func (*PhoneCallWaiting) Encode

func (e *PhoneCallWaiting) Encode() []byte

func (*PhoneCallWaiting) ImplementsPhoneCall

func (*PhoneCallWaiting) ImplementsPhoneCall()

type PhoneConfirmCallParams

type PhoneConfirmCallParams struct {
	Peer           *InputPhoneCall    `validate:"required"`
	GA             []byte             `validate:"required"`
	KeyFingerprint int64              `validate:"required"`
	Protocol       *PhoneCallProtocol `validate:"required"`
}

func (*PhoneConfirmCallParams) CRC

func (e *PhoneConfirmCallParams) CRC() uint32

func (*PhoneConfirmCallParams) Encode

func (e *PhoneConfirmCallParams) Encode() []byte

type PhoneConnection

type PhoneConnection interface {
	serialize.TL
	ImplementsPhoneConnection()
}

type PhoneConnectionObj

type PhoneConnectionObj struct {
	Id      int64  `validate:"required"`
	Ip      string `validate:"required"`
	Ipv6    string `validate:"required"`
	Port    int32  `validate:"required"`
	PeerTag []byte `validate:"required"`
}

func (*PhoneConnectionObj) CRC

func (*PhoneConnectionObj) CRC() uint32

func (*PhoneConnectionObj) Encode

func (e *PhoneConnectionObj) Encode() []byte

func (*PhoneConnectionObj) ImplementsPhoneConnection

func (*PhoneConnectionObj) ImplementsPhoneConnection()

type PhoneConnectionWebrtc

type PhoneConnectionWebrtc struct {
	Turn     bool   `flag:"0,encoded_in_bitflags"`
	Stun     bool   `flag:"1,encoded_in_bitflags"`
	Id       int64  `validate:"required"`
	Ip       string `validate:"required"`
	Ipv6     string `validate:"required"`
	Port     int32  `validate:"required"`
	Username string `validate:"required"`
	Password string `validate:"required"`
	// contains filtered or unexported fields
}

func (*PhoneConnectionWebrtc) CRC

func (*PhoneConnectionWebrtc) Encode

func (e *PhoneConnectionWebrtc) Encode() []byte

func (*PhoneConnectionWebrtc) ImplementsPhoneConnection

func (*PhoneConnectionWebrtc) ImplementsPhoneConnection()

type PhoneDiscardCallParams

type PhoneDiscardCallParams struct {
	Video        bool                   `flag:"0,encoded_in_bitflags"`
	Peer         *InputPhoneCall        `validate:"required"`
	Duration     int32                  `validate:"required"`
	Reason       PhoneCallDiscardReason `validate:"required"`
	ConnectionId int64                  `validate:"required"`
	// contains filtered or unexported fields
}

func (*PhoneDiscardCallParams) CRC

func (e *PhoneDiscardCallParams) CRC() uint32

func (*PhoneDiscardCallParams) Encode

func (e *PhoneDiscardCallParams) Encode() []byte

type PhoneGetCallConfigParams

type PhoneGetCallConfigParams struct{}

func (*PhoneGetCallConfigParams) CRC

func (*PhoneGetCallConfigParams) Encode

func (e *PhoneGetCallConfigParams) Encode() []byte

type PhonePhoneCall

type PhonePhoneCall struct {
	PhoneCall PhoneCall `validate:"required"`
	Users     []User    `validate:"required"`
}

func (*PhonePhoneCall) CRC

func (e *PhonePhoneCall) CRC() uint32

func (*PhonePhoneCall) Encode

func (e *PhonePhoneCall) Encode() []byte

type PhoneReceivedCallParams

type PhoneReceivedCallParams struct {
	Peer *InputPhoneCall `validate:"required"`
}

func (*PhoneReceivedCallParams) CRC

func (*PhoneReceivedCallParams) Encode

func (e *PhoneReceivedCallParams) Encode() []byte

type PhoneRequestCallParams

type PhoneRequestCallParams struct {
	Video    bool               `flag:"0,encoded_in_bitflags"`
	UserId   InputUser          `validate:"required"`
	RandomId int32              `validate:"required"`
	GAHash   []byte             `validate:"required"`
	Protocol *PhoneCallProtocol `validate:"required"`
	// contains filtered or unexported fields
}

func (*PhoneRequestCallParams) CRC

func (e *PhoneRequestCallParams) CRC() uint32

func (*PhoneRequestCallParams) Encode

func (e *PhoneRequestCallParams) Encode() []byte

type PhoneSaveCallDebugParams

type PhoneSaveCallDebugParams struct {
	Peer  *InputPhoneCall `validate:"required"`
	Debug *DataJSON       `validate:"required"`
}

func (*PhoneSaveCallDebugParams) CRC

func (*PhoneSaveCallDebugParams) Encode

func (e *PhoneSaveCallDebugParams) Encode() []byte

type PhoneSendSignalingDataParams

type PhoneSendSignalingDataParams struct {
	Peer *InputPhoneCall `validate:"required"`
	Data []byte          `validate:"required"`
}

func (*PhoneSendSignalingDataParams) CRC

func (*PhoneSendSignalingDataParams) Encode

func (e *PhoneSendSignalingDataParams) Encode() []byte

type PhoneSetCallRatingParams

type PhoneSetCallRatingParams struct {
	UserInitiative bool            `flag:"0,encoded_in_bitflags"`
	Peer           *InputPhoneCall `validate:"required"`
	Rating         int32           `validate:"required"`
	Comment        string          `validate:"required"`
	// contains filtered or unexported fields
}

func (*PhoneSetCallRatingParams) CRC

func (*PhoneSetCallRatingParams) Encode

func (e *PhoneSetCallRatingParams) Encode() []byte

type Photo

type Photo interface {
	serialize.TL
	ImplementsPhoto()
}

type PhotoCachedSize

type PhotoCachedSize struct {
	Type     string        `validate:"required"`
	Location *FileLocation `validate:"required"`
	W        int32         `validate:"required"`
	H        int32         `validate:"required"`
	Bytes    []byte        `validate:"required"`
}

func (*PhotoCachedSize) CRC

func (*PhotoCachedSize) CRC() uint32

func (*PhotoCachedSize) Encode

func (e *PhotoCachedSize) Encode() []byte

func (*PhotoCachedSize) ImplementsPhotoSize

func (*PhotoCachedSize) ImplementsPhotoSize()

type PhotoEmpty

type PhotoEmpty struct {
	Id int64 `validate:"required"`
}

func (*PhotoEmpty) CRC

func (*PhotoEmpty) CRC() uint32

func (*PhotoEmpty) Encode

func (e *PhotoEmpty) Encode() []byte

func (*PhotoEmpty) ImplementsPhoto

func (*PhotoEmpty) ImplementsPhoto()

type PhotoObj

type PhotoObj struct {
	HasStickers   bool         `flag:"0,encoded_in_bitflags"`
	Id            int64        `validate:"required"`
	AccessHash    int64        `validate:"required"`
	FileReference []byte       `validate:"required"`
	Date          int32        `validate:"required"`
	Sizes         []PhotoSize  `validate:"required"`
	VideoSizes    []*VideoSize `flag:"1"`
	DcId          int32        `validate:"required"`
	// contains filtered or unexported fields
}

func (*PhotoObj) CRC

func (*PhotoObj) CRC() uint32

func (*PhotoObj) Encode

func (e *PhotoObj) Encode() []byte

func (*PhotoObj) ImplementsPhoto

func (*PhotoObj) ImplementsPhoto()

type PhotoSize

type PhotoSize interface {
	serialize.TL
	ImplementsPhotoSize()
}

type PhotoSizeEmpty

type PhotoSizeEmpty struct {
	Type string `validate:"required"`
}

func (*PhotoSizeEmpty) CRC

func (*PhotoSizeEmpty) CRC() uint32

func (*PhotoSizeEmpty) Encode

func (e *PhotoSizeEmpty) Encode() []byte

func (*PhotoSizeEmpty) ImplementsPhotoSize

func (*PhotoSizeEmpty) ImplementsPhotoSize()

type PhotoSizeObj

type PhotoSizeObj struct {
	Type     string        `validate:"required"`
	Location *FileLocation `validate:"required"`
	W        int32         `validate:"required"`
	H        int32         `validate:"required"`
	Size     int32         `validate:"required"`
}

func (*PhotoSizeObj) CRC

func (*PhotoSizeObj) CRC() uint32

func (*PhotoSizeObj) Encode

func (e *PhotoSizeObj) Encode() []byte

func (*PhotoSizeObj) ImplementsPhotoSize

func (*PhotoSizeObj) ImplementsPhotoSize()

type PhotoStrippedSize

type PhotoStrippedSize struct {
	Type  string `validate:"required"`
	Bytes []byte `validate:"required"`
}

func (*PhotoStrippedSize) CRC

func (*PhotoStrippedSize) CRC() uint32

func (*PhotoStrippedSize) Encode

func (e *PhotoStrippedSize) Encode() []byte

func (*PhotoStrippedSize) ImplementsPhotoSize

func (*PhotoStrippedSize) ImplementsPhotoSize()

type PhotosDeletePhotosParams

type PhotosDeletePhotosParams struct {
	Id []InputPhoto `validate:"required"`
}

func (*PhotosDeletePhotosParams) CRC

func (*PhotosDeletePhotosParams) Encode

func (e *PhotosDeletePhotosParams) Encode() []byte

type PhotosGetUserPhotosParams

type PhotosGetUserPhotosParams struct {
	UserId InputUser `validate:"required"`
	Offset int32     `validate:"required"`
	MaxId  int64     `validate:"required"`
	Limit  int32     `validate:"required"`
}

func (*PhotosGetUserPhotosParams) CRC

func (*PhotosGetUserPhotosParams) Encode

func (e *PhotosGetUserPhotosParams) Encode() []byte

type PhotosPhoto

type PhotosPhoto struct {
	Photo Photo  `validate:"required"`
	Users []User `validate:"required"`
}

func (*PhotosPhoto) CRC

func (e *PhotosPhoto) CRC() uint32

func (*PhotosPhoto) Encode

func (e *PhotosPhoto) Encode() []byte

type PhotosPhotos

type PhotosPhotos interface {
	serialize.TL
	ImplementsPhotosPhotos()
}

type PhotosPhotosObj

type PhotosPhotosObj struct {
	Photos []Photo `validate:"required"`
	Users  []User  `validate:"required"`
}

func (*PhotosPhotosObj) CRC

func (*PhotosPhotosObj) CRC() uint32

func (*PhotosPhotosObj) Encode

func (e *PhotosPhotosObj) Encode() []byte

func (*PhotosPhotosObj) ImplementsPhotosPhotos

func (*PhotosPhotosObj) ImplementsPhotosPhotos()

type PhotosPhotosSlice

type PhotosPhotosSlice struct {
	Count  int32   `validate:"required"`
	Photos []Photo `validate:"required"`
	Users  []User  `validate:"required"`
}

func (*PhotosPhotosSlice) CRC

func (*PhotosPhotosSlice) CRC() uint32

func (*PhotosPhotosSlice) Encode

func (e *PhotosPhotosSlice) Encode() []byte

func (*PhotosPhotosSlice) ImplementsPhotosPhotos

func (*PhotosPhotosSlice) ImplementsPhotosPhotos()

type PhotosUpdateProfilePhotoParams

type PhotosUpdateProfilePhotoParams struct {
	Id InputPhoto `validate:"required"`
}

func (*PhotosUpdateProfilePhotoParams) CRC

func (*PhotosUpdateProfilePhotoParams) Encode

func (e *PhotosUpdateProfilePhotoParams) Encode() []byte

type PhotosUploadProfilePhotoParams

type PhotosUploadProfilePhotoParams struct {
	File         InputFile `flag:"0"`
	Video        InputFile `flag:"1"`
	VideoStartTs float64   `flag:"2"`
	// contains filtered or unexported fields
}

func (*PhotosUploadProfilePhotoParams) CRC

func (*PhotosUploadProfilePhotoParams) Encode

func (e *PhotosUploadProfilePhotoParams) Encode() []byte

type Poll

type Poll struct {
	Id int64 `validate:"required"`

	Closed         bool          `flag:"0,encoded_in_bitflags"`
	PublicVoters   bool          `flag:"1,encoded_in_bitflags"`
	MultipleChoice bool          `flag:"2,encoded_in_bitflags"`
	Quiz           bool          `flag:"3,encoded_in_bitflags"`
	Question       string        `validate:"required"`
	Answers        []*PollAnswer `validate:"required"`
	ClosePeriod    int32         `flag:"4"`
	CloseDate      int32         `flag:"5"`
	// contains filtered or unexported fields
}

func (*Poll) CRC

func (e *Poll) CRC() uint32

func (*Poll) Encode

func (e *Poll) Encode() []byte

type PollAnswer

type PollAnswer struct {
	Text   string `validate:"required"`
	Option []byte `validate:"required"`
}

func (*PollAnswer) CRC

func (e *PollAnswer) CRC() uint32

func (*PollAnswer) Encode

func (e *PollAnswer) Encode() []byte

type PollAnswerVoters

type PollAnswerVoters struct {
	Chosen  bool   `flag:"0,encoded_in_bitflags"`
	Correct bool   `flag:"1,encoded_in_bitflags"`
	Option  []byte `validate:"required"`
	Voters  int32  `validate:"required"`
	// contains filtered or unexported fields
}

func (*PollAnswerVoters) CRC

func (e *PollAnswerVoters) CRC() uint32

func (*PollAnswerVoters) Encode

func (e *PollAnswerVoters) Encode() []byte

type PollResults

type PollResults struct {
	Min              bool                `flag:"0,encoded_in_bitflags"`
	Results          []*PollAnswerVoters `flag:"1"`
	TotalVoters      int32               `flag:"2"`
	RecentVoters     []int32             `flag:"3"`
	Solution         string              `flag:"4"`
	SolutionEntities []MessageEntity     `flag:"4"`
	// contains filtered or unexported fields
}

func (*PollResults) CRC

func (e *PollResults) CRC() uint32

func (*PollResults) Encode

func (e *PollResults) Encode() []byte

type PopularContact

type PopularContact struct {
	ClientId  int64 `validate:"required"`
	Importers int32 `validate:"required"`
}

func (*PopularContact) CRC

func (e *PopularContact) CRC() uint32

func (*PopularContact) Encode

func (e *PopularContact) Encode() []byte

type PostAddress

type PostAddress struct {
	StreetLine1 string `validate:"required"`
	StreetLine2 string `validate:"required"`
	City        string `validate:"required"`
	State       string `validate:"required"`
	CountryIso2 string `validate:"required"`
	PostCode    string `validate:"required"`
}

func (*PostAddress) CRC

func (e *PostAddress) CRC() uint32

func (*PostAddress) Encode

func (e *PostAddress) Encode() []byte

type PrivacyKey

type PrivacyKey uint32
const (
	PrivacyKeyStatusTimestamp PrivacyKey = 3157175088
	PrivacyKeyChatInvite      PrivacyKey = 1343122938
	PrivacyKeyPhoneCall       PrivacyKey = 1030105979
	PrivacyKeyPhoneP2P        PrivacyKey = 961092808
	PrivacyKeyForwards        PrivacyKey = 1777096355
	PrivacyKeyProfilePhoto    PrivacyKey = 2517966829
	PrivacyKeyPhoneNumber     PrivacyKey = 3516589165
	PrivacyKeyAddedByPhone    PrivacyKey = 1124062251
)

func (PrivacyKey) CRC

func (e PrivacyKey) CRC() uint32

func (PrivacyKey) Encode

func (e PrivacyKey) Encode() []byte

func (PrivacyKey) String

func (e PrivacyKey) String() string

type PrivacyRule

type PrivacyRule interface {
	serialize.TL
	ImplementsPrivacyRule()
}

type PrivacyValueAllowAll

type PrivacyValueAllowAll struct{}

func (*PrivacyValueAllowAll) CRC

func (*PrivacyValueAllowAll) Encode

func (e *PrivacyValueAllowAll) Encode() []byte

func (*PrivacyValueAllowAll) ImplementsPrivacyRule

func (*PrivacyValueAllowAll) ImplementsPrivacyRule()

type PrivacyValueAllowChatParticipants

type PrivacyValueAllowChatParticipants struct {
	Chats []int32 `validate:"required"`
}

func (*PrivacyValueAllowChatParticipants) CRC

func (*PrivacyValueAllowChatParticipants) Encode

func (*PrivacyValueAllowChatParticipants) ImplementsPrivacyRule

func (*PrivacyValueAllowChatParticipants) ImplementsPrivacyRule()

type PrivacyValueAllowContacts

type PrivacyValueAllowContacts struct{}

func (*PrivacyValueAllowContacts) CRC

func (*PrivacyValueAllowContacts) Encode

func (e *PrivacyValueAllowContacts) Encode() []byte

func (*PrivacyValueAllowContacts) ImplementsPrivacyRule

func (*PrivacyValueAllowContacts) ImplementsPrivacyRule()

type PrivacyValueAllowUsers

type PrivacyValueAllowUsers struct {
	Users []int32 `validate:"required"`
}

func (*PrivacyValueAllowUsers) CRC

func (*PrivacyValueAllowUsers) Encode

func (e *PrivacyValueAllowUsers) Encode() []byte

func (*PrivacyValueAllowUsers) ImplementsPrivacyRule

func (*PrivacyValueAllowUsers) ImplementsPrivacyRule()

type PrivacyValueDisallowAll

type PrivacyValueDisallowAll struct{}

func (*PrivacyValueDisallowAll) CRC

func (*PrivacyValueDisallowAll) Encode

func (e *PrivacyValueDisallowAll) Encode() []byte

func (*PrivacyValueDisallowAll) ImplementsPrivacyRule

func (*PrivacyValueDisallowAll) ImplementsPrivacyRule()

type PrivacyValueDisallowChatParticipants

type PrivacyValueDisallowChatParticipants struct {
	Chats []int32 `validate:"required"`
}

func (*PrivacyValueDisallowChatParticipants) CRC

func (*PrivacyValueDisallowChatParticipants) Encode

func (*PrivacyValueDisallowChatParticipants) ImplementsPrivacyRule

func (*PrivacyValueDisallowChatParticipants) ImplementsPrivacyRule()

type PrivacyValueDisallowContacts

type PrivacyValueDisallowContacts struct{}

func (*PrivacyValueDisallowContacts) CRC

func (*PrivacyValueDisallowContacts) Encode

func (e *PrivacyValueDisallowContacts) Encode() []byte

func (*PrivacyValueDisallowContacts) ImplementsPrivacyRule

func (*PrivacyValueDisallowContacts) ImplementsPrivacyRule()

type PrivacyValueDisallowUsers

type PrivacyValueDisallowUsers struct {
	Users []int32 `validate:"required"`
}

func (*PrivacyValueDisallowUsers) CRC

func (*PrivacyValueDisallowUsers) Encode

func (e *PrivacyValueDisallowUsers) Encode() []byte

func (*PrivacyValueDisallowUsers) ImplementsPrivacyRule

func (*PrivacyValueDisallowUsers) ImplementsPrivacyRule()

type ReceivedNotifyMessage

type ReceivedNotifyMessage struct {
	Id    int32 `validate:"required"`
	Flags int32 `validate:"required"`
}

func (*ReceivedNotifyMessage) CRC

func (e *ReceivedNotifyMessage) CRC() uint32

func (*ReceivedNotifyMessage) Encode

func (e *ReceivedNotifyMessage) Encode() []byte

type RecentMeUrl

type RecentMeUrl interface {
	serialize.TL
	ImplementsRecentMeUrl()
}

type RecentMeUrlChat

type RecentMeUrlChat struct {
	Url    string `validate:"required"`
	ChatId int32  `validate:"required"`
}

func (*RecentMeUrlChat) CRC

func (*RecentMeUrlChat) CRC() uint32

func (*RecentMeUrlChat) Encode

func (e *RecentMeUrlChat) Encode() []byte

func (*RecentMeUrlChat) ImplementsRecentMeUrl

func (*RecentMeUrlChat) ImplementsRecentMeUrl()

type RecentMeUrlChatInvite

type RecentMeUrlChatInvite struct {
	Url        string     `validate:"required"`
	ChatInvite ChatInvite `validate:"required"`
}

func (*RecentMeUrlChatInvite) CRC

func (*RecentMeUrlChatInvite) Encode

func (e *RecentMeUrlChatInvite) Encode() []byte

func (*RecentMeUrlChatInvite) ImplementsRecentMeUrl

func (*RecentMeUrlChatInvite) ImplementsRecentMeUrl()

type RecentMeUrlStickerSet

type RecentMeUrlStickerSet struct {
	Url string            `validate:"required"`
	Set StickerSetCovered `validate:"required"`
}

func (*RecentMeUrlStickerSet) CRC

func (*RecentMeUrlStickerSet) Encode

func (e *RecentMeUrlStickerSet) Encode() []byte

func (*RecentMeUrlStickerSet) ImplementsRecentMeUrl

func (*RecentMeUrlStickerSet) ImplementsRecentMeUrl()

type RecentMeUrlUnknown

type RecentMeUrlUnknown struct {
	Url string `validate:"required"`
}

func (*RecentMeUrlUnknown) CRC

func (*RecentMeUrlUnknown) CRC() uint32

func (*RecentMeUrlUnknown) Encode

func (e *RecentMeUrlUnknown) Encode() []byte

func (*RecentMeUrlUnknown) ImplementsRecentMeUrl

func (*RecentMeUrlUnknown) ImplementsRecentMeUrl()

type RecentMeUrlUser

type RecentMeUrlUser struct {
	Url    string `validate:"required"`
	UserId int32  `validate:"required"`
}

func (*RecentMeUrlUser) CRC

func (*RecentMeUrlUser) CRC() uint32

func (*RecentMeUrlUser) Encode

func (e *RecentMeUrlUser) Encode() []byte

func (*RecentMeUrlUser) ImplementsRecentMeUrl

func (*RecentMeUrlUser) ImplementsRecentMeUrl()

type ReplyInlineMarkup

type ReplyInlineMarkup struct {
	Rows []*KeyboardButtonRow `validate:"required"`
}

func (*ReplyInlineMarkup) CRC

func (*ReplyInlineMarkup) CRC() uint32

func (*ReplyInlineMarkup) Encode

func (e *ReplyInlineMarkup) Encode() []byte

func (*ReplyInlineMarkup) ImplementsReplyMarkup

func (*ReplyInlineMarkup) ImplementsReplyMarkup()

type ReplyKeyboardForceReply

type ReplyKeyboardForceReply struct {
	SingleUse bool `flag:"1,encoded_in_bitflags"`
	Selective bool `flag:"2,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*ReplyKeyboardForceReply) CRC

func (*ReplyKeyboardForceReply) Encode

func (e *ReplyKeyboardForceReply) Encode() []byte

func (*ReplyKeyboardForceReply) ImplementsReplyMarkup

func (*ReplyKeyboardForceReply) ImplementsReplyMarkup()

type ReplyKeyboardHide

type ReplyKeyboardHide struct {
	Selective bool `flag:"2,encoded_in_bitflags"`
	// contains filtered or unexported fields
}

func (*ReplyKeyboardHide) CRC

func (*ReplyKeyboardHide) CRC() uint32

func (*ReplyKeyboardHide) Encode

func (e *ReplyKeyboardHide) Encode() []byte

func (*ReplyKeyboardHide) ImplementsReplyMarkup

func (*ReplyKeyboardHide) ImplementsReplyMarkup()

type ReplyKeyboardMarkup

type ReplyKeyboardMarkup struct {
	Resize    bool                 `flag:"0,encoded_in_bitflags"`
	SingleUse bool                 `flag:"1,encoded_in_bitflags"`
	Selective bool                 `flag:"2,encoded_in_bitflags"`
	Rows      []*KeyboardButtonRow `validate:"required"`
	// contains filtered or unexported fields
}

func (*ReplyKeyboardMarkup) CRC

func (*ReplyKeyboardMarkup) CRC() uint32

func (*ReplyKeyboardMarkup) Encode

func (e *ReplyKeyboardMarkup) Encode() []byte

func (*ReplyKeyboardMarkup) ImplementsReplyMarkup

func (*ReplyKeyboardMarkup) ImplementsReplyMarkup()

type ReplyMarkup

type ReplyMarkup interface {
	serialize.TL
	ImplementsReplyMarkup()
}

type ReportReason

type ReportReason interface {
	serialize.TL
	ImplementsReportReason()
}

type RestrictionReason

type RestrictionReason struct {
	Platform string `validate:"required"`
	Reason   string `validate:"required"`
	Text     string `validate:"required"`
}

func (*RestrictionReason) CRC

func (e *RestrictionReason) CRC() uint32

func (*RestrictionReason) Encode

func (e *RestrictionReason) Encode() []byte

type RichText

type RichText interface {
	serialize.TL
	ImplementsRichText()
}

type SavedContact

type SavedContact struct {
	Phone     string `validate:"required"`
	FirstName string `validate:"required"`
	LastName  string `validate:"required"`
	Date      int32  `validate:"required"`
}

func (*SavedContact) CRC

func (e *SavedContact) CRC() uint32

func (*SavedContact) Encode

func (e *SavedContact) Encode() []byte

type SecureCredentialsEncrypted

type SecureCredentialsEncrypted struct {
	Data   []byte `validate:"required"`
	Hash   []byte `validate:"required"`
	Secret []byte `validate:"required"`
}

func (*SecureCredentialsEncrypted) CRC

func (*SecureCredentialsEncrypted) Encode

func (e *SecureCredentialsEncrypted) Encode() []byte

type SecureData

type SecureData struct {
	Data     []byte `validate:"required"`
	DataHash []byte `validate:"required"`
	Secret   []byte `validate:"required"`
}

func (*SecureData) CRC

func (e *SecureData) CRC() uint32

func (*SecureData) Encode

func (e *SecureData) Encode() []byte

type SecureFile

type SecureFile interface {
	serialize.TL
	ImplementsSecureFile()
}

type SecureFileEmpty

type SecureFileEmpty struct{}

func (*SecureFileEmpty) CRC

func (*SecureFileEmpty) CRC() uint32

func (*SecureFileEmpty) Encode

func (e *SecureFileEmpty) Encode() []byte

func (*SecureFileEmpty) ImplementsSecureFile

func (*SecureFileEmpty) ImplementsSecureFile()

type SecureFileObj

type SecureFileObj struct {
	Id         int64  `validate:"required"`
	AccessHash int64  `validate:"required"`
	Size       int32  `validate:"required"`
	DcId       int32  `validate:"required"`
	Date       int32  `validate:"required"`
	FileHash   []byte `validate:"required"`
	Secret     []byte `validate:"required"`
}

func (*SecureFileObj) CRC

func (*SecureFileObj) CRC() uint32

func (*SecureFileObj) Encode

func (e *SecureFileObj) Encode() []byte

func (*SecureFileObj) ImplementsSecureFile

func (*SecureFileObj) ImplementsSecureFile()

type SecurePasswordKdfAlgo

type SecurePasswordKdfAlgo interface {
	serialize.TL
	ImplementsSecurePasswordKdfAlgo()
}

type SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000

type SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 struct {
	Salt []byte `validate:"required"`
}

func (*SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000) CRC

func (*SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000) Encode

func (*SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000) ImplementsSecurePasswordKdfAlgo

func (*SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000) ImplementsSecurePasswordKdfAlgo()

type SecurePasswordKdfAlgoSHA512

type SecurePasswordKdfAlgoSHA512 struct {
	Salt []byte `validate:"required"`
}

func (*SecurePasswordKdfAlgoSHA512) CRC

func (*SecurePasswordKdfAlgoSHA512) Encode

func (e *SecurePasswordKdfAlgoSHA512) Encode() []byte

func (*SecurePasswordKdfAlgoSHA512) ImplementsSecurePasswordKdfAlgo

func (*SecurePasswordKdfAlgoSHA512) ImplementsSecurePasswordKdfAlgo()

type SecurePasswordKdfAlgoUnknown

type SecurePasswordKdfAlgoUnknown struct{}

func (*SecurePasswordKdfAlgoUnknown) CRC

func (*SecurePasswordKdfAlgoUnknown) Encode

func (e *SecurePasswordKdfAlgoUnknown) Encode() []byte

func (*SecurePasswordKdfAlgoUnknown) ImplementsSecurePasswordKdfAlgo

func (*SecurePasswordKdfAlgoUnknown) ImplementsSecurePasswordKdfAlgo()

type SecurePlainData

type SecurePlainData interface {
	serialize.TL
	ImplementsSecurePlainData()
}

type SecurePlainEmail

type SecurePlainEmail struct {
	Email string `validate:"required"`
}

func (*SecurePlainEmail) CRC

func (*SecurePlainEmail) CRC() uint32

func (*SecurePlainEmail) Encode

func (e *SecurePlainEmail) Encode() []byte

func (*SecurePlainEmail) ImplementsSecurePlainData

func (*SecurePlainEmail) ImplementsSecurePlainData()

type SecurePlainPhone

type SecurePlainPhone struct {
	Phone string `validate:"required"`
}

func (*SecurePlainPhone) CRC

func (*SecurePlainPhone) CRC() uint32

func (*SecurePlainPhone) Encode

func (e *SecurePlainPhone) Encode() []byte

func (*SecurePlainPhone) ImplementsSecurePlainData

func (*SecurePlainPhone) ImplementsSecurePlainData()

type SecureRequiredType

type SecureRequiredType interface {
	serialize.TL
	ImplementsSecureRequiredType()
}

type SecureRequiredTypeObj

type SecureRequiredTypeObj struct {
	NativeNames         bool            `flag:"0,encoded_in_bitflags"`
	SelfieRequired      bool            `flag:"1,encoded_in_bitflags"`
	TranslationRequired bool            `flag:"2,encoded_in_bitflags"`
	Type                SecureValueType `validate:"required"`
	// contains filtered or unexported fields
}

func (*SecureRequiredTypeObj) CRC

func (*SecureRequiredTypeObj) Encode

func (e *SecureRequiredTypeObj) Encode() []byte

func (*SecureRequiredTypeObj) ImplementsSecureRequiredType

func (*SecureRequiredTypeObj) ImplementsSecureRequiredType()

type SecureRequiredTypeOneOf

type SecureRequiredTypeOneOf struct {
	Types []SecureRequiredType `validate:"required"`
}

func (*SecureRequiredTypeOneOf) CRC

func (*SecureRequiredTypeOneOf) Encode

func (e *SecureRequiredTypeOneOf) Encode() []byte

func (*SecureRequiredTypeOneOf) ImplementsSecureRequiredType

func (*SecureRequiredTypeOneOf) ImplementsSecureRequiredType()

type SecureSecretSettings

type SecureSecretSettings struct {
	SecureAlgo     SecurePasswordKdfAlgo `validate:"required"`
	SecureSecret   []byte                `validate:"required"`
	SecureSecretId int64                 `validate:"required"`
}

func (*SecureSecretSettings) CRC

func (e *SecureSecretSettings) CRC() uint32

func (*SecureSecretSettings) Encode

func (e *SecureSecretSettings) Encode() []byte

type SecureValue

type SecureValue struct {
	Type        SecureValueType `validate:"required"`
	Data        *SecureData     `flag:"0"`
	FrontSide   SecureFile      `flag:"1"`
	ReverseSide SecureFile      `flag:"2"`
	Selfie      SecureFile      `flag:"3"`
	Translation []SecureFile    `flag:"6"`
	Files       []SecureFile    `flag:"4"`
	PlainData   SecurePlainData `flag:"5"`
	Hash        []byte          `validate:"required"`
	// contains filtered or unexported fields
}

func (*SecureValue) CRC

func (e *SecureValue) CRC() uint32

func (*SecureValue) Encode

func (e *SecureValue) Encode() []byte

type SecureValueError

type SecureValueError interface {
	serialize.TL
	ImplementsSecureValueError()
}

type SecureValueErrorData

type SecureValueErrorData struct {
	Type     SecureValueType `validate:"required"`
	DataHash []byte          `validate:"required"`
	Field    string          `validate:"required"`
	Text     string          `validate:"required"`
}

func (*SecureValueErrorData) CRC

func (*SecureValueErrorData) Encode

func (e *SecureValueErrorData) Encode() []byte

func (*SecureValueErrorData) ImplementsSecureValueError

func (*SecureValueErrorData) ImplementsSecureValueError()

type SecureValueErrorFile

type SecureValueErrorFile struct {
	Type     SecureValueType `validate:"required"`
	FileHash []byte          `validate:"required"`
	Text     string          `validate:"required"`
}

func (*SecureValueErrorFile) CRC

func (*SecureValueErrorFile) Encode

func (e *SecureValueErrorFile) Encode() []byte

func (*SecureValueErrorFile) ImplementsSecureValueError

func (*SecureValueErrorFile) ImplementsSecureValueError()

type SecureValueErrorFiles

type SecureValueErrorFiles struct {
	Type     SecureValueType `validate:"required"`
	FileHash [][]byte        `validate:"required"`
	Text     string          `validate:"required"`
}

func (*SecureValueErrorFiles) CRC

func (*SecureValueErrorFiles) Encode

func (e *SecureValueErrorFiles) Encode() []byte

func (*SecureValueErrorFiles) ImplementsSecureValueError

func (*SecureValueErrorFiles) ImplementsSecureValueError()

type SecureValueErrorFrontSide

type SecureValueErrorFrontSide struct {
	Type     SecureValueType `validate:"required"`
	FileHash []byte          `validate:"required"`
	Text     string          `validate:"required"`
}

func (*SecureValueErrorFrontSide) CRC

func (*SecureValueErrorFrontSide) Encode

func (e *SecureValueErrorFrontSide) Encode() []byte

func (*SecureValueErrorFrontSide) ImplementsSecureValueError

func (*SecureValueErrorFrontSide) ImplementsSecureValueError()

type SecureValueErrorObj

type SecureValueErrorObj struct {
	Type SecureValueType `validate:"required"`
	Hash []byte          `validate:"required"`
	Text string          `validate:"required"`
}

func (*SecureValueErrorObj) CRC

func (*SecureValueErrorObj) CRC() uint32

func (*SecureValueErrorObj) Encode

func (e *SecureValueErrorObj) Encode() []byte

func (*SecureValueErrorObj) ImplementsSecureValueError

func (*SecureValueErrorObj) ImplementsSecureValueError()

type SecureValueErrorReverseSide

type SecureValueErrorReverseSide struct {
	Type     SecureValueType `validate:"required"`
	FileHash []byte          `validate:"required"`
	Text     string          `validate:"required"`
}

func (*SecureValueErrorReverseSide) CRC

func (*SecureValueErrorReverseSide) Encode

func (e *SecureValueErrorReverseSide) Encode() []byte

func (*SecureValueErrorReverseSide) ImplementsSecureValueError

func (*SecureValueErrorReverseSide) ImplementsSecureValueError()

type SecureValueErrorSelfie

type SecureValueErrorSelfie struct {
	Type     SecureValueType `validate:"required"`
	FileHash []byte          `validate:"required"`
	Text     string          `validate:"required"`
}

func (*SecureValueErrorSelfie) CRC

func (*SecureValueErrorSelfie) Encode

func (e *SecureValueErrorSelfie) Encode() []byte

func (*SecureValueErrorSelfie) ImplementsSecureValueError

func (*SecureValueErrorSelfie) ImplementsSecureValueError()

type SecureValueErrorTranslationFile

type SecureValueErrorTranslationFile struct {
	Type     SecureValueType `validate:"required"`
	FileHash []byte          `validate:"required"`
	Text     string          `validate:"required"`
}

func (*SecureValueErrorTranslationFile) CRC

func (*SecureValueErrorTranslationFile) Encode

func (e *SecureValueErrorTranslationFile) Encode() []byte

func (*SecureValueErrorTranslationFile) ImplementsSecureValueError

func (*SecureValueErrorTranslationFile) ImplementsSecureValueError()

type SecureValueErrorTranslationFiles

type SecureValueErrorTranslationFiles struct {
	Type     SecureValueType `validate:"required"`
	FileHash [][]byte        `validate:"required"`
	Text     string          `validate:"required"`
}

func (*SecureValueErrorTranslationFiles) CRC

func (*SecureValueErrorTranslationFiles) Encode

func (e *SecureValueErrorTranslationFiles) Encode() []byte

func (*SecureValueErrorTranslationFiles) ImplementsSecureValueError

func (*SecureValueErrorTranslationFiles) ImplementsSecureValueError()

type SecureValueHash

type SecureValueHash struct {
	Type SecureValueType `validate:"required"`
	Hash []byte          `validate:"required"`
}

func (*SecureValueHash) CRC

func (e *SecureValueHash) CRC() uint32

func (*SecureValueHash) Encode

func (e *SecureValueHash) Encode() []byte

type SecureValueType

type SecureValueType uint32
const (
	SecureValueTypePersonalDetails       SecureValueType = 2636808675
	SecureValueTypePassport              SecureValueType = 1034709504
	SecureValueTypeDriverLicense         SecureValueType = 115615172
	SecureValueTypeIdentityCard          SecureValueType = 2698015819
	SecureValueTypeInternalPassport      SecureValueType = 2577698595
	SecureValueTypeAddress               SecureValueType = 3420659238
	SecureValueTypeUtilityBill           SecureValueType = 4231435598
	SecureValueTypeBankStatement         SecureValueType = 2299755533
	SecureValueTypeRentalAgreement       SecureValueType = 2340959368
	SecureValueTypePassportRegistration  SecureValueType = 2581823594
	SecureValueTypeTemporaryRegistration SecureValueType = 3926060083
	SecureValueTypePhone                 SecureValueType = 3005262555
	SecureValueTypeEmail                 SecureValueType = 2386339822
)

func (SecureValueType) CRC

func (e SecureValueType) CRC() uint32

func (SecureValueType) Encode

func (e SecureValueType) Encode() []byte

func (SecureValueType) String

func (e SecureValueType) String() string

type SendMessageAction

type SendMessageAction interface {
	serialize.TL
	ImplementsSendMessageAction()
}

type SendMessageCancelAction

type SendMessageCancelAction struct{}

func (*SendMessageCancelAction) CRC

func (*SendMessageCancelAction) Encode

func (e *SendMessageCancelAction) Encode() []byte

func (*SendMessageCancelAction) ImplementsSendMessageAction

func (*SendMessageCancelAction) ImplementsSendMessageAction()

type SendMessageChooseContactAction

type SendMessageChooseContactAction struct{}

func (*SendMessageChooseContactAction) CRC

func (*SendMessageChooseContactAction) Encode

func (e *SendMessageChooseContactAction) Encode() []byte

func (*SendMessageChooseContactAction) ImplementsSendMessageAction

func (*SendMessageChooseContactAction) ImplementsSendMessageAction()

type SendMessageGamePlayAction

type SendMessageGamePlayAction struct{}

func (*SendMessageGamePlayAction) CRC

func (*SendMessageGamePlayAction) Encode

func (e *SendMessageGamePlayAction) Encode() []byte

func (*SendMessageGamePlayAction) ImplementsSendMessageAction

func (*SendMessageGamePlayAction) ImplementsSendMessageAction()

type SendMessageGeoLocationAction

type SendMessageGeoLocationAction struct{}

func (*SendMessageGeoLocationAction) CRC

func (*SendMessageGeoLocationAction) Encode

func (e *SendMessageGeoLocationAction) Encode() []byte

func (*SendMessageGeoLocationAction) ImplementsSendMessageAction

func (*SendMessageGeoLocationAction) ImplementsSendMessageAction()

type SendMessageRecordAudioAction

type SendMessageRecordAudioAction struct{}

func (*SendMessageRecordAudioAction) CRC

func (*SendMessageRecordAudioAction) Encode

func (e *SendMessageRecordAudioAction) Encode() []byte

func (*SendMessageRecordAudioAction) ImplementsSendMessageAction

func (*SendMessageRecordAudioAction) ImplementsSendMessageAction()

type SendMessageRecordRoundAction

type SendMessageRecordRoundAction struct{}

func (*SendMessageRecordRoundAction) CRC

func (*SendMessageRecordRoundAction) Encode

func (e *SendMessageRecordRoundAction) Encode() []byte

func (*SendMessageRecordRoundAction) ImplementsSendMessageAction

func (*SendMessageRecordRoundAction) ImplementsSendMessageAction()

type SendMessageRecordVideoAction

type SendMessageRecordVideoAction struct{}

func (*SendMessageRecordVideoAction) CRC

func (*SendMessageRecordVideoAction) Encode

func (e *SendMessageRecordVideoAction) Encode() []byte

func (*SendMessageRecordVideoAction) ImplementsSendMessageAction

func (*SendMessageRecordVideoAction) ImplementsSendMessageAction()

type SendMessageTypingAction

type SendMessageTypingAction struct{}

func (*SendMessageTypingAction) CRC

func (*SendMessageTypingAction) Encode

func (e *SendMessageTypingAction) Encode() []byte

func (*SendMessageTypingAction) ImplementsSendMessageAction

func (*SendMessageTypingAction) ImplementsSendMessageAction()

type SendMessageUploadAudioAction

type SendMessageUploadAudioAction struct {
	Progress int32 `validate:"required"`
}

func (*SendMessageUploadAudioAction) CRC

func (*SendMessageUploadAudioAction) Encode

func (e *SendMessageUploadAudioAction) Encode() []byte

func (*SendMessageUploadAudioAction) ImplementsSendMessageAction

func (*SendMessageUploadAudioAction) ImplementsSendMessageAction()

type SendMessageUploadDocumentAction

type SendMessageUploadDocumentAction struct {
	Progress int32 `validate:"required"`
}

func (*SendMessageUploadDocumentAction) CRC

func (*SendMessageUploadDocumentAction) Encode

func (e *SendMessageUploadDocumentAction) Encode() []byte

func (*SendMessageUploadDocumentAction) ImplementsSendMessageAction

func (*SendMessageUploadDocumentAction) ImplementsSendMessageAction()

type SendMessageUploadPhotoAction

type SendMessageUploadPhotoAction struct {
	Progress int32 `validate:"required"`
}

func (*SendMessageUploadPhotoAction) CRC

func (*SendMessageUploadPhotoAction) Encode

func (e *SendMessageUploadPhotoAction) Encode() []byte

func (*SendMessageUploadPhotoAction) ImplementsSendMessageAction

func (*SendMessageUploadPhotoAction) ImplementsSendMessageAction()

type SendMessageUploadRoundAction

type SendMessageUploadRoundAction struct {
	Progress int32 `validate:"required"`
}

func (*SendMessageUploadRoundAction) CRC

func (*SendMessageUploadRoundAction) Encode

func (e *SendMessageUploadRoundAction) Encode() []byte

func (*SendMessageUploadRoundAction) ImplementsSendMessageAction

func (*SendMessageUploadRoundAction) ImplementsSendMessageAction()

type SendMessageUploadVideoAction

type SendMessageUploadVideoAction struct {
	Progress int32 `validate:"required"`
}

func (*SendMessageUploadVideoAction) CRC

func (*SendMessageUploadVideoAction) Encode

func (e *SendMessageUploadVideoAction) Encode() []byte

func (*SendMessageUploadVideoAction) ImplementsSendMessageAction

func (*SendMessageUploadVideoAction) ImplementsSendMessageAction()

type ShippingOption

type ShippingOption struct {
	Id     string          `validate:"required"`
	Title  string          `validate:"required"`
	Prices []*LabeledPrice `validate:"required"`
}

func (*ShippingOption) CRC

func (e *ShippingOption) CRC() uint32

func (*ShippingOption) Encode

func (e *ShippingOption) Encode() []byte

type StatsAbsValueAndPrev

type StatsAbsValueAndPrev struct {
	Current  float64 `validate:"required"`
	Previous float64 `validate:"required"`
}

func (*StatsAbsValueAndPrev) CRC

func (e *StatsAbsValueAndPrev) CRC() uint32

func (*StatsAbsValueAndPrev) Encode

func (e *StatsAbsValueAndPrev) Encode() []byte

type StatsBroadcastStats

type StatsBroadcastStats struct {
	Period                    *StatsDateRangeDays           `validate:"required"`
	Followers                 *StatsAbsValueAndPrev         `validate:"required"`
	ViewsPerPost              *StatsAbsValueAndPrev         `validate:"required"`
	SharesPerPost             *StatsAbsValueAndPrev         `validate:"required"`
	EnabledNotifications      *StatsPercentValue            `validate:"required"`
	GrowthGraph               StatsGraph                    `validate:"required"`
	FollowersGraph            StatsGraph                    `validate:"required"`
	MuteGraph                 StatsGraph                    `validate:"required"`
	TopHoursGraph             StatsGraph                    `validate:"required"`
	InteractionsGraph         StatsGraph                    `validate:"required"`
	IvInteractionsGraph       StatsGraph                    `validate:"required"`
	ViewsBySourceGraph        StatsGraph                    `validate:"required"`
	NewFollowersBySourceGraph StatsGraph                    `validate:"required"`
	LanguagesGraph            StatsGraph                    `validate:"required"`
	RecentMessageInteractions []*MessageInteractionCounters `validate:"required"`
}

func (*StatsBroadcastStats) CRC

func (e *StatsBroadcastStats) CRC() uint32

func (*StatsBroadcastStats) Encode

func (e *StatsBroadcastStats) Encode() []byte

type StatsDateRangeDays

type StatsDateRangeDays struct {
	MinDate int32 `validate:"required"`
	MaxDate int32 `validate:"required"`
}

func (*StatsDateRangeDays) CRC

func (e *StatsDateRangeDays) CRC() uint32

func (*StatsDateRangeDays) Encode

func (e *StatsDateRangeDays) Encode() []byte

type StatsGetBroadcastStatsParams

type StatsGetBroadcastStatsParams struct {
	Dark    bool         `flag:"0,encoded_in_bitflags"`
	Channel InputChannel `validate:"required"`
	// contains filtered or unexported fields
}

func (*StatsGetBroadcastStatsParams) CRC

func (*StatsGetBroadcastStatsParams) Encode

func (e *StatsGetBroadcastStatsParams) Encode() []byte

type StatsGetMegagroupStatsParams

type StatsGetMegagroupStatsParams struct {
	Dark    bool         `flag:"0,encoded_in_bitflags"`
	Channel InputChannel `validate:"required"`
	// contains filtered or unexported fields
}

func (*StatsGetMegagroupStatsParams) CRC

func (*StatsGetMegagroupStatsParams) Encode

func (e *StatsGetMegagroupStatsParams) Encode() []byte

type StatsGraph

type StatsGraph interface {
	serialize.TL
	ImplementsStatsGraph()
}

type StatsGraphAsync

type StatsGraphAsync struct {
	Token string `validate:"required"`
}

func (*StatsGraphAsync) CRC

func (*StatsGraphAsync) CRC() uint32

func (*StatsGraphAsync) Encode

func (e *StatsGraphAsync) Encode() []byte

func (*StatsGraphAsync) ImplementsStatsGraph

func (*StatsGraphAsync) ImplementsStatsGraph()

type StatsGraphError

type StatsGraphError struct {
	Error string `validate:"required"`
}

func (*StatsGraphError) CRC

func (*StatsGraphError) CRC() uint32

func (*StatsGraphError) Encode

func (e *StatsGraphError) Encode() []byte

func (*StatsGraphError) ImplementsStatsGraph

func (*StatsGraphError) ImplementsStatsGraph()

type StatsGraphObj

type StatsGraphObj struct {
	Json      *DataJSON `validate:"required"`
	ZoomToken string    `flag:"0"`
	// contains filtered or unexported fields
}

func (*StatsGraphObj) CRC

func (*StatsGraphObj) CRC() uint32

func (*StatsGraphObj) Encode

func (e *StatsGraphObj) Encode() []byte

func (*StatsGraphObj) ImplementsStatsGraph

func (*StatsGraphObj) ImplementsStatsGraph()

type StatsGroupTopAdmin

type StatsGroupTopAdmin struct {
	UserId  int32 `validate:"required"`
	Deleted int32 `validate:"required"`
	Kicked  int32 `validate:"required"`
	Banned  int32 `validate:"required"`
}

func (*StatsGroupTopAdmin) CRC

func (e *StatsGroupTopAdmin) CRC() uint32

func (*StatsGroupTopAdmin) Encode

func (e *StatsGroupTopAdmin) Encode() []byte

type StatsGroupTopInviter

type StatsGroupTopInviter struct {
	UserId      int32 `validate:"required"`
	Invitations int32 `validate:"required"`
}

func (*StatsGroupTopInviter) CRC

func (e *StatsGroupTopInviter) CRC() uint32

func (*StatsGroupTopInviter) Encode

func (e *StatsGroupTopInviter) Encode() []byte

type StatsGroupTopPoster

type StatsGroupTopPoster struct {
	UserId   int32 `validate:"required"`
	Messages int32 `validate:"required"`
	AvgChars int32 `validate:"required"`
}

func (*StatsGroupTopPoster) CRC

func (e *StatsGroupTopPoster) CRC() uint32

func (*StatsGroupTopPoster) Encode

func (e *StatsGroupTopPoster) Encode() []byte

type StatsLoadAsyncGraphParams

type StatsLoadAsyncGraphParams struct {
	Token string `validate:"required"`
	X     int64  `flag:"0"`
	// contains filtered or unexported fields
}

func (*StatsLoadAsyncGraphParams) CRC

func (*StatsLoadAsyncGraphParams) Encode

func (e *StatsLoadAsyncGraphParams) Encode() []byte

type StatsMegagroupStats

type StatsMegagroupStats struct {
	Period                  *StatsDateRangeDays     `validate:"required"`
	Members                 *StatsAbsValueAndPrev   `validate:"required"`
	Messages                *StatsAbsValueAndPrev   `validate:"required"`
	Viewers                 *StatsAbsValueAndPrev   `validate:"required"`
	Posters                 *StatsAbsValueAndPrev   `validate:"required"`
	GrowthGraph             StatsGraph              `validate:"required"`
	MembersGraph            StatsGraph              `validate:"required"`
	NewMembersBySourceGraph StatsGraph              `validate:"required"`
	LanguagesGraph          StatsGraph              `validate:"required"`
	MessagesGraph           StatsGraph              `validate:"required"`
	ActionsGraph            StatsGraph              `validate:"required"`
	TopHoursGraph           StatsGraph              `validate:"required"`
	WeekdaysGraph           StatsGraph              `validate:"required"`
	TopPosters              []*StatsGroupTopPoster  `validate:"required"`
	TopAdmins               []*StatsGroupTopAdmin   `validate:"required"`
	TopInviters             []*StatsGroupTopInviter `validate:"required"`
	Users                   []User                  `validate:"required"`
}

func (*StatsMegagroupStats) CRC

func (e *StatsMegagroupStats) CRC() uint32

func (*StatsMegagroupStats) Encode

func (e *StatsMegagroupStats) Encode() []byte

type StatsPercentValue

type StatsPercentValue struct {
	Part  float64 `validate:"required"`
	Total float64 `validate:"required"`
}

func (*StatsPercentValue) CRC

func (e *StatsPercentValue) CRC() uint32

func (*StatsPercentValue) Encode

func (e *StatsPercentValue) Encode() []byte

type StatsURL

type StatsURL struct {
	Url string `validate:"required"`
}

func (*StatsURL) CRC

func (e *StatsURL) CRC() uint32

func (*StatsURL) Encode

func (e *StatsURL) Encode() []byte

type StickerPack

type StickerPack struct {
	Emoticon  string  `validate:"required"`
	Documents []int64 `validate:"required"`
}

func (*StickerPack) CRC

func (e *StickerPack) CRC() uint32

func (*StickerPack) Encode

func (e *StickerPack) Encode() []byte

type StickerSet

type StickerSet struct {
	Archived      bool      `flag:"1,encoded_in_bitflags"`
	Official      bool      `flag:"2,encoded_in_bitflags"`
	Masks         bool      `flag:"3,encoded_in_bitflags"`
	Animated      bool      `flag:"5,encoded_in_bitflags"`
	InstalledDate int32     `flag:"0"`
	Id            int64     `validate:"required"`
	AccessHash    int64     `validate:"required"`
	Title         string    `validate:"required"`
	ShortName     string    `validate:"required"`
	Thumb         PhotoSize `flag:"4"`
	ThumbDcId     int32     `flag:"4"`
	Count         int32     `validate:"required"`
	Hash          int32     `validate:"required"`
	// contains filtered or unexported fields
}

func (*StickerSet) CRC

func (e *StickerSet) CRC() uint32

func (*StickerSet) Encode

func (e *StickerSet) Encode() []byte

type StickerSetCovered

type StickerSetCovered interface {
	serialize.TL
	ImplementsStickerSetCovered()
}

type StickerSetCoveredObj

type StickerSetCoveredObj struct {
	Set   *StickerSet `validate:"required"`
	Cover Document    `validate:"required"`
}

func (*StickerSetCoveredObj) CRC

func (*StickerSetCoveredObj) Encode

func (e *StickerSetCoveredObj) Encode() []byte

func (*StickerSetCoveredObj) ImplementsStickerSetCovered

func (*StickerSetCoveredObj) ImplementsStickerSetCovered()

type StickerSetMultiCovered

type StickerSetMultiCovered struct {
	Set    *StickerSet `validate:"required"`
	Covers []Document  `validate:"required"`
}

func (*StickerSetMultiCovered) CRC

func (*StickerSetMultiCovered) Encode

func (e *StickerSetMultiCovered) Encode() []byte

func (*StickerSetMultiCovered) ImplementsStickerSetCovered

func (*StickerSetMultiCovered) ImplementsStickerSetCovered()

type StickersAddStickerToSetParams

type StickersAddStickerToSetParams struct {
	Stickerset InputStickerSet      `validate:"required"`
	Sticker    *InputStickerSetItem `validate:"required"`
}

func (*StickersAddStickerToSetParams) CRC

func (*StickersAddStickerToSetParams) Encode

func (e *StickersAddStickerToSetParams) Encode() []byte

type StickersChangeStickerPositionParams

type StickersChangeStickerPositionParams struct {
	Sticker  InputDocument `validate:"required"`
	Position int32         `validate:"required"`
}

func (*StickersChangeStickerPositionParams) CRC

func (*StickersChangeStickerPositionParams) Encode

type StickersCreateStickerSetParams

type StickersCreateStickerSetParams struct {
	Masks     bool                   `flag:"0,encoded_in_bitflags"`
	Animated  bool                   `flag:"1,encoded_in_bitflags"`
	UserId    InputUser              `validate:"required"`
	Title     string                 `validate:"required"`
	ShortName string                 `validate:"required"`
	Thumb     InputDocument          `flag:"2"`
	Stickers  []*InputStickerSetItem `validate:"required"`
	// contains filtered or unexported fields
}

func (*StickersCreateStickerSetParams) CRC

func (*StickersCreateStickerSetParams) Encode

func (e *StickersCreateStickerSetParams) Encode() []byte

type StickersRemoveStickerFromSetParams

type StickersRemoveStickerFromSetParams struct {
	Sticker InputDocument `validate:"required"`
}

func (*StickersRemoveStickerFromSetParams) CRC

func (*StickersRemoveStickerFromSetParams) Encode

type StickersSetStickerSetThumbParams

type StickersSetStickerSetThumbParams struct {
	Stickerset InputStickerSet `validate:"required"`
	Thumb      InputDocument   `validate:"required"`
}

func (*StickersSetStickerSetThumbParams) CRC

func (*StickersSetStickerSetThumbParams) Encode

func (e *StickersSetStickerSetThumbParams) Encode() []byte

type StorageFileType

type StorageFileType uint32
const (
	StorageFileUnknown StorageFileType = 2861972229
	StorageFilePartial StorageFileType = 1086091090
	StorageFileJpeg    StorageFileType = 8322574
	StorageFileGif     StorageFileType = 3403786975
	StorageFilePng     StorageFileType = 172975040
	StorageFilePdf     StorageFileType = 2921222285
	StorageFileMp3     StorageFileType = 1384777335
	StorageFileMov     StorageFileType = 1258941372
	StorageFileMp4     StorageFileType = 3016663268
	StorageFileWebp    StorageFileType = 276907596
)

func (StorageFileType) CRC

func (e StorageFileType) CRC() uint32

func (StorageFileType) Encode

func (e StorageFileType) Encode() []byte

func (StorageFileType) String

func (e StorageFileType) String() string

type TextAnchor

type TextAnchor struct {
	Text RichText `validate:"required"`
	Name string   `validate:"required"`
}

func (*TextAnchor) CRC

func (*TextAnchor) CRC() uint32

func (*TextAnchor) Encode

func (e *TextAnchor) Encode() []byte

func (*TextAnchor) ImplementsRichText

func (*TextAnchor) ImplementsRichText()

type TextBold

type TextBold struct {
	Text RichText `validate:"required"`
}

func (*TextBold) CRC

func (*TextBold) CRC() uint32

func (*TextBold) Encode

func (e *TextBold) Encode() []byte

func (*TextBold) ImplementsRichText

func (*TextBold) ImplementsRichText()

type TextConcat

type TextConcat struct {
	Texts []RichText `validate:"required"`
}

func (*TextConcat) CRC

func (*TextConcat) CRC() uint32

func (*TextConcat) Encode

func (e *TextConcat) Encode() []byte

func (*TextConcat) ImplementsRichText

func (*TextConcat) ImplementsRichText()

type TextEmail

type TextEmail struct {
	Text  RichText `validate:"required"`
	Email string   `validate:"required"`
}

func (*TextEmail) CRC

func (*TextEmail) CRC() uint32

func (*TextEmail) Encode

func (e *TextEmail) Encode() []byte

func (*TextEmail) ImplementsRichText

func (*TextEmail) ImplementsRichText()

type TextEmpty

type TextEmpty struct{}

func (*TextEmpty) CRC

func (*TextEmpty) CRC() uint32

func (*TextEmpty) Encode

func (e *TextEmpty) Encode() []byte

func (*TextEmpty) ImplementsRichText

func (*TextEmpty) ImplementsRichText()

type TextFixed

type TextFixed struct {
	Text RichText `validate:"required"`
}

func (*TextFixed) CRC

func (*TextFixed) CRC() uint32

func (*TextFixed) Encode

func (e *TextFixed) Encode() []byte

func (*TextFixed) ImplementsRichText

func (*TextFixed) ImplementsRichText()

type TextImage

type TextImage struct {
	DocumentId int64 `validate:"required"`
	W          int32 `validate:"required"`
	H          int32 `validate:"required"`
}

func (*TextImage) CRC

func (*TextImage) CRC() uint32

func (*TextImage) Encode

func (e *TextImage) Encode() []byte

func (*TextImage) ImplementsRichText

func (*TextImage) ImplementsRichText()

type TextItalic

type TextItalic struct {
	Text RichText `validate:"required"`
}

func (*TextItalic) CRC

func (*TextItalic) CRC() uint32

func (*TextItalic) Encode

func (e *TextItalic) Encode() []byte

func (*TextItalic) ImplementsRichText

func (*TextItalic) ImplementsRichText()

type TextMarked

type TextMarked struct {
	Text RichText `validate:"required"`
}

func (*TextMarked) CRC

func (*TextMarked) CRC() uint32

func (*TextMarked) Encode

func (e *TextMarked) Encode() []byte

func (*TextMarked) ImplementsRichText

func (*TextMarked) ImplementsRichText()

type TextPhone

type TextPhone struct {
	Text  RichText `validate:"required"`
	Phone string   `validate:"required"`
}

func (*TextPhone) CRC

func (*TextPhone) CRC() uint32

func (*TextPhone) Encode

func (e *TextPhone) Encode() []byte

func (*TextPhone) ImplementsRichText

func (*TextPhone) ImplementsRichText()

type TextPlain

type TextPlain struct {
	Text string `validate:"required"`
}

func (*TextPlain) CRC

func (*TextPlain) CRC() uint32

func (*TextPlain) Encode

func (e *TextPlain) Encode() []byte

func (*TextPlain) ImplementsRichText

func (*TextPlain) ImplementsRichText()

type TextStrike

type TextStrike struct {
	Text RichText `validate:"required"`
}

func (*TextStrike) CRC

func (*TextStrike) CRC() uint32

func (*TextStrike) Encode

func (e *TextStrike) Encode() []byte

func (*TextStrike) ImplementsRichText

func (*TextStrike) ImplementsRichText()

type TextSubscript

type TextSubscript struct {
	Text RichText `validate:"required"`
}

func (*TextSubscript) CRC

func (*TextSubscript) CRC() uint32

func (*TextSubscript) Encode

func (e *TextSubscript) Encode() []byte

func (*TextSubscript) ImplementsRichText

func (*TextSubscript) ImplementsRichText()

type TextSuperscript

type TextSuperscript struct {
	Text RichText `validate:"required"`
}

func (*TextSuperscript) CRC

func (*TextSuperscript) CRC() uint32

func (*TextSuperscript) Encode

func (e *TextSuperscript) Encode() []byte

func (*TextSuperscript) ImplementsRichText

func (*TextSuperscript) ImplementsRichText()

type TextUnderline

type TextUnderline struct {
	Text RichText `validate:"required"`
}

func (*TextUnderline) CRC

func (*TextUnderline) CRC() uint32

func (*TextUnderline) Encode

func (e *TextUnderline) Encode() []byte

func (*TextUnderline) ImplementsRichText

func (*TextUnderline) ImplementsRichText()

type TextUrl

type TextUrl struct {
	Text      RichText `validate:"required"`
	Url       string   `validate:"required"`
	WebpageId int64    `validate:"required"`
}

func (*TextUrl) CRC

func (*TextUrl) CRC() uint32

func (*TextUrl) Encode

func (e *TextUrl) Encode() []byte

func (*TextUrl) ImplementsRichText

func (*TextUrl) ImplementsRichText()

type Theme

type Theme struct {
	Creator       bool           `flag:"0,encoded_in_bitflags"`
	Default       bool           `flag:"1,encoded_in_bitflags"`
	Id            int64          `validate:"required"`
	AccessHash    int64          `validate:"required"`
	Slug          string         `validate:"required"`
	Title         string         `validate:"required"`
	Document      Document       `flag:"2"`
	Settings      *ThemeSettings `flag:"3"`
	InstallsCount int32          `validate:"required"`
	// contains filtered or unexported fields
}

func (*Theme) CRC

func (e *Theme) CRC() uint32

func (*Theme) Encode

func (e *Theme) Encode() []byte

type ThemeSettings

type ThemeSettings struct {
	BaseTheme          BaseTheme `validate:"required"`
	AccentColor        int32     `validate:"required"`
	MessageTopColor    int32     `flag:"0"`
	MessageBottomColor int32     `flag:"0"`
	Wallpaper          WallPaper `flag:"1"`
	// contains filtered or unexported fields
}

func (*ThemeSettings) CRC

func (e *ThemeSettings) CRC() uint32

func (*ThemeSettings) Encode

func (e *ThemeSettings) Encode() []byte

type TopPeer

type TopPeer struct {
	Peer   Peer    `validate:"required"`
	Rating float64 `validate:"required"`
}

func (*TopPeer) CRC

func (e *TopPeer) CRC() uint32

func (*TopPeer) Encode

func (e *TopPeer) Encode() []byte

type TopPeerCategory

type TopPeerCategory uint32
const (
	TopPeerCategoryBotsPM         TopPeerCategory = 2875595611
	TopPeerCategoryBotsInline     TopPeerCategory = 344356834
	TopPeerCategoryCorrespondents TopPeerCategory = 104314861
	TopPeerCategoryGroups         TopPeerCategory = 3172442442
	TopPeerCategoryChannels       TopPeerCategory = 371037736
	TopPeerCategoryPhoneCalls     TopPeerCategory = 511092620
	TopPeerCategoryForwardUsers   TopPeerCategory = 2822794409
	TopPeerCategoryForwardChats   TopPeerCategory = 4226728176
)

func (TopPeerCategory) CRC

func (e TopPeerCategory) CRC() uint32

func (TopPeerCategory) Encode

func (e TopPeerCategory) Encode() []byte

func (TopPeerCategory) String

func (e TopPeerCategory) String() string

type TopPeerCategoryPeers

type TopPeerCategoryPeers struct {
	Category TopPeerCategory `validate:"required"`
	Count    int32           `validate:"required"`
	Peers    []*TopPeer      `validate:"required"`
}

func (*TopPeerCategoryPeers) CRC

func (e *TopPeerCategoryPeers) CRC() uint32

func (*TopPeerCategoryPeers) Encode

func (e *TopPeerCategoryPeers) Encode() []byte

type Update

type Update interface {
	serialize.TL
	ImplementsUpdate()
}

type UpdateBotCallbackQuery

type UpdateBotCallbackQuery struct {
	QueryId       int64  `validate:"required"`
	UserId        int32  `validate:"required"`
	Peer          Peer   `validate:"required"`
	MsgId         int32  `validate:"required"`
	ChatInstance  int64  `validate:"required"`
	Data          []byte `flag:"0"`
	GameShortName string `flag:"1"`
	// contains filtered or unexported fields
}

func (*UpdateBotCallbackQuery) CRC

func (*UpdateBotCallbackQuery) Encode

func (e *UpdateBotCallbackQuery) Encode() []byte

func (*UpdateBotCallbackQuery) ImplementsUpdate

func (*UpdateBotCallbackQuery) ImplementsUpdate()

type UpdateBotInlineQuery

type UpdateBotInlineQuery struct {
	QueryId int64    `validate:"required"`
	UserId  int32    `validate:"required"`
	Query   string   `validate:"required"`
	Geo     GeoPoint `flag:"0"`
	Offset  string   `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdateBotInlineQuery) CRC

func (*UpdateBotInlineQuery) Encode

func (e *UpdateBotInlineQuery) Encode() []byte

func (*UpdateBotInlineQuery) ImplementsUpdate

func (*UpdateBotInlineQuery) ImplementsUpdate()

type UpdateBotInlineSend

type UpdateBotInlineSend struct {
	UserId int32                    `validate:"required"`
	Query  string                   `validate:"required"`
	Geo    GeoPoint                 `flag:"0"`
	Id     string                   `validate:"required"`
	MsgId  *InputBotInlineMessageID `flag:"1"`
	// contains filtered or unexported fields
}

func (*UpdateBotInlineSend) CRC

func (*UpdateBotInlineSend) CRC() uint32

func (*UpdateBotInlineSend) Encode

func (e *UpdateBotInlineSend) Encode() []byte

func (*UpdateBotInlineSend) ImplementsUpdate

func (*UpdateBotInlineSend) ImplementsUpdate()

type UpdateBotPrecheckoutQuery

type UpdateBotPrecheckoutQuery struct {
	QueryId          int64                 `validate:"required"`
	UserId           int32                 `validate:"required"`
	Payload          []byte                `validate:"required"`
	Info             *PaymentRequestedInfo `flag:"0"`
	ShippingOptionId string                `flag:"1"`
	Currency         string                `validate:"required"`
	TotalAmount      int64                 `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdateBotPrecheckoutQuery) CRC

func (*UpdateBotPrecheckoutQuery) Encode

func (e *UpdateBotPrecheckoutQuery) Encode() []byte

func (*UpdateBotPrecheckoutQuery) ImplementsUpdate

func (*UpdateBotPrecheckoutQuery) ImplementsUpdate()

type UpdateBotShippingQuery

type UpdateBotShippingQuery struct {
	QueryId         int64        `validate:"required"`
	UserId          int32        `validate:"required"`
	Payload         []byte       `validate:"required"`
	ShippingAddress *PostAddress `validate:"required"`
}

func (*UpdateBotShippingQuery) CRC

func (*UpdateBotShippingQuery) Encode

func (e *UpdateBotShippingQuery) Encode() []byte

func (*UpdateBotShippingQuery) ImplementsUpdate

func (*UpdateBotShippingQuery) ImplementsUpdate()

type UpdateBotWebhookJSON

type UpdateBotWebhookJSON struct {
	Data *DataJSON `validate:"required"`
}

func (*UpdateBotWebhookJSON) CRC

func (*UpdateBotWebhookJSON) Encode

func (e *UpdateBotWebhookJSON) Encode() []byte

func (*UpdateBotWebhookJSON) ImplementsUpdate

func (*UpdateBotWebhookJSON) ImplementsUpdate()

type UpdateBotWebhookJSONQuery

type UpdateBotWebhookJSONQuery struct {
	QueryId int64     `validate:"required"`
	Data    *DataJSON `validate:"required"`
	Timeout int32     `validate:"required"`
}

func (*UpdateBotWebhookJSONQuery) CRC

func (*UpdateBotWebhookJSONQuery) Encode

func (e *UpdateBotWebhookJSONQuery) Encode() []byte

func (*UpdateBotWebhookJSONQuery) ImplementsUpdate

func (*UpdateBotWebhookJSONQuery) ImplementsUpdate()

type UpdateChannel

type UpdateChannel struct {
	ChannelId int32 `validate:"required"`
}

func (*UpdateChannel) CRC

func (*UpdateChannel) CRC() uint32

func (*UpdateChannel) Encode

func (e *UpdateChannel) Encode() []byte

func (*UpdateChannel) ImplementsUpdate

func (*UpdateChannel) ImplementsUpdate()

type UpdateChannelAvailableMessages

type UpdateChannelAvailableMessages struct {
	ChannelId      int32 `validate:"required"`
	AvailableMinId int32 `validate:"required"`
}

func (*UpdateChannelAvailableMessages) CRC

func (*UpdateChannelAvailableMessages) Encode

func (e *UpdateChannelAvailableMessages) Encode() []byte

func (*UpdateChannelAvailableMessages) ImplementsUpdate

func (*UpdateChannelAvailableMessages) ImplementsUpdate()

type UpdateChannelMessageViews

type UpdateChannelMessageViews struct {
	ChannelId int32 `validate:"required"`
	Id        int32 `validate:"required"`
	Views     int32 `validate:"required"`
}

func (*UpdateChannelMessageViews) CRC

func (*UpdateChannelMessageViews) Encode

func (e *UpdateChannelMessageViews) Encode() []byte

func (*UpdateChannelMessageViews) ImplementsUpdate

func (*UpdateChannelMessageViews) ImplementsUpdate()

type UpdateChannelParticipant

type UpdateChannelParticipant struct {
	ChannelId       int32              `validate:"required"`
	Date            int32              `validate:"required"`
	UserId          int32              `validate:"required"`
	PrevParticipant ChannelParticipant `flag:"0"`
	NewParticipant  ChannelParticipant `flag:"1"`
	Qts             int32              `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdateChannelParticipant) CRC

func (*UpdateChannelParticipant) Encode

func (e *UpdateChannelParticipant) Encode() []byte

func (*UpdateChannelParticipant) ImplementsUpdate

func (*UpdateChannelParticipant) ImplementsUpdate()

type UpdateChannelPinnedMessage

type UpdateChannelPinnedMessage struct {
	ChannelId int32 `validate:"required"`
	Id        int32 `validate:"required"`
}

func (*UpdateChannelPinnedMessage) CRC

func (*UpdateChannelPinnedMessage) Encode

func (e *UpdateChannelPinnedMessage) Encode() []byte

func (*UpdateChannelPinnedMessage) ImplementsUpdate

func (*UpdateChannelPinnedMessage) ImplementsUpdate()

type UpdateChannelReadMessagesContents

type UpdateChannelReadMessagesContents struct {
	ChannelId int32   `validate:"required"`
	Messages  []int32 `validate:"required"`
}

func (*UpdateChannelReadMessagesContents) CRC

func (*UpdateChannelReadMessagesContents) Encode

func (*UpdateChannelReadMessagesContents) ImplementsUpdate

func (*UpdateChannelReadMessagesContents) ImplementsUpdate()

type UpdateChannelTooLong

type UpdateChannelTooLong struct {
	ChannelId int32 `validate:"required"`
	Pts       int32 `flag:"0"`
	// contains filtered or unexported fields
}

func (*UpdateChannelTooLong) CRC

func (*UpdateChannelTooLong) Encode

func (e *UpdateChannelTooLong) Encode() []byte

func (*UpdateChannelTooLong) ImplementsUpdate

func (*UpdateChannelTooLong) ImplementsUpdate()

type UpdateChannelWebPage

type UpdateChannelWebPage struct {
	ChannelId int32   `validate:"required"`
	Webpage   WebPage `validate:"required"`
	Pts       int32   `validate:"required"`
	PtsCount  int32   `validate:"required"`
}

func (*UpdateChannelWebPage) CRC

func (*UpdateChannelWebPage) Encode

func (e *UpdateChannelWebPage) Encode() []byte

func (*UpdateChannelWebPage) ImplementsUpdate

func (*UpdateChannelWebPage) ImplementsUpdate()

type UpdateChatDefaultBannedRights

type UpdateChatDefaultBannedRights struct {
	Peer                Peer              `validate:"required"`
	DefaultBannedRights *ChatBannedRights `validate:"required"`
	Version             int32             `validate:"required"`
}

func (*UpdateChatDefaultBannedRights) CRC

func (*UpdateChatDefaultBannedRights) Encode

func (e *UpdateChatDefaultBannedRights) Encode() []byte

func (*UpdateChatDefaultBannedRights) ImplementsUpdate

func (*UpdateChatDefaultBannedRights) ImplementsUpdate()

type UpdateChatParticipantAdd

type UpdateChatParticipantAdd struct {
	ChatId    int32 `validate:"required"`
	UserId    int32 `validate:"required"`
	InviterId int32 `validate:"required"`
	Date      int32 `validate:"required"`
	Version   int32 `validate:"required"`
}

func (*UpdateChatParticipantAdd) CRC

func (*UpdateChatParticipantAdd) Encode

func (e *UpdateChatParticipantAdd) Encode() []byte

func (*UpdateChatParticipantAdd) ImplementsUpdate

func (*UpdateChatParticipantAdd) ImplementsUpdate()

type UpdateChatParticipantAdmin

type UpdateChatParticipantAdmin struct {
	ChatId  int32 `validate:"required"`
	UserId  int32 `validate:"required"`
	IsAdmin bool  `validate:"required"`
	Version int32 `validate:"required"`
}

func (*UpdateChatParticipantAdmin) CRC

func (*UpdateChatParticipantAdmin) Encode

func (e *UpdateChatParticipantAdmin) Encode() []byte

func (*UpdateChatParticipantAdmin) ImplementsUpdate

func (*UpdateChatParticipantAdmin) ImplementsUpdate()

type UpdateChatParticipantDelete

type UpdateChatParticipantDelete struct {
	ChatId  int32 `validate:"required"`
	UserId  int32 `validate:"required"`
	Version int32 `validate:"required"`
}

func (*UpdateChatParticipantDelete) CRC

func (*UpdateChatParticipantDelete) Encode

func (e *UpdateChatParticipantDelete) Encode() []byte

func (*UpdateChatParticipantDelete) ImplementsUpdate

func (*UpdateChatParticipantDelete) ImplementsUpdate()

type UpdateChatParticipants

type UpdateChatParticipants struct {
	Participants ChatParticipants `validate:"required"`
}

func (*UpdateChatParticipants) CRC

func (*UpdateChatParticipants) Encode

func (e *UpdateChatParticipants) Encode() []byte

func (*UpdateChatParticipants) ImplementsUpdate

func (*UpdateChatParticipants) ImplementsUpdate()

type UpdateChatPinnedMessage

type UpdateChatPinnedMessage struct {
	ChatId  int32 `validate:"required"`
	Id      int32 `validate:"required"`
	Version int32 `validate:"required"`
}

func (*UpdateChatPinnedMessage) CRC

func (*UpdateChatPinnedMessage) Encode

func (e *UpdateChatPinnedMessage) Encode() []byte

func (*UpdateChatPinnedMessage) ImplementsUpdate

func (*UpdateChatPinnedMessage) ImplementsUpdate()

type UpdateChatUserTyping

type UpdateChatUserTyping struct {
	ChatId int32             `validate:"required"`
	UserId int32             `validate:"required"`
	Action SendMessageAction `validate:"required"`
}

func (*UpdateChatUserTyping) CRC

func (*UpdateChatUserTyping) Encode

func (e *UpdateChatUserTyping) Encode() []byte

func (*UpdateChatUserTyping) ImplementsUpdate

func (*UpdateChatUserTyping) ImplementsUpdate()

type UpdateConfig

type UpdateConfig struct{}

func (*UpdateConfig) CRC

func (*UpdateConfig) CRC() uint32

func (*UpdateConfig) Encode

func (e *UpdateConfig) Encode() []byte

func (*UpdateConfig) ImplementsUpdate

func (*UpdateConfig) ImplementsUpdate()

type UpdateContactsReset

type UpdateContactsReset struct{}

func (*UpdateContactsReset) CRC

func (*UpdateContactsReset) CRC() uint32

func (*UpdateContactsReset) Encode

func (e *UpdateContactsReset) Encode() []byte

func (*UpdateContactsReset) ImplementsUpdate

func (*UpdateContactsReset) ImplementsUpdate()

type UpdateDcOptions

type UpdateDcOptions struct {
	DcOptions []*DcOption `validate:"required"`
}

func (*UpdateDcOptions) CRC

func (*UpdateDcOptions) CRC() uint32

func (*UpdateDcOptions) Encode

func (e *UpdateDcOptions) Encode() []byte

func (*UpdateDcOptions) ImplementsUpdate

func (*UpdateDcOptions) ImplementsUpdate()

type UpdateDeleteChannelMessages

type UpdateDeleteChannelMessages struct {
	ChannelId int32   `validate:"required"`
	Messages  []int32 `validate:"required"`
	Pts       int32   `validate:"required"`
	PtsCount  int32   `validate:"required"`
}

func (*UpdateDeleteChannelMessages) CRC

func (*UpdateDeleteChannelMessages) Encode

func (e *UpdateDeleteChannelMessages) Encode() []byte

func (*UpdateDeleteChannelMessages) ImplementsUpdate

func (*UpdateDeleteChannelMessages) ImplementsUpdate()

type UpdateDeleteMessages

type UpdateDeleteMessages struct {
	Messages []int32 `validate:"required"`
	Pts      int32   `validate:"required"`
	PtsCount int32   `validate:"required"`
}

func (*UpdateDeleteMessages) CRC

func (*UpdateDeleteMessages) Encode

func (e *UpdateDeleteMessages) Encode() []byte

func (*UpdateDeleteMessages) ImplementsUpdate

func (*UpdateDeleteMessages) ImplementsUpdate()

type UpdateDeleteScheduledMessages

type UpdateDeleteScheduledMessages struct {
	Peer     Peer    `validate:"required"`
	Messages []int32 `validate:"required"`
}

func (*UpdateDeleteScheduledMessages) CRC

func (*UpdateDeleteScheduledMessages) Encode

func (e *UpdateDeleteScheduledMessages) Encode() []byte

func (*UpdateDeleteScheduledMessages) ImplementsUpdate

func (*UpdateDeleteScheduledMessages) ImplementsUpdate()

type UpdateDialogFilter

type UpdateDialogFilter struct {
	Id     int32         `validate:"required"`
	Filter *DialogFilter `flag:"0"`
	// contains filtered or unexported fields
}

func (*UpdateDialogFilter) CRC

func (*UpdateDialogFilter) CRC() uint32

func (*UpdateDialogFilter) Encode

func (e *UpdateDialogFilter) Encode() []byte

func (*UpdateDialogFilter) ImplementsUpdate

func (*UpdateDialogFilter) ImplementsUpdate()

type UpdateDialogFilterOrder

type UpdateDialogFilterOrder struct {
	Order []int32 `validate:"required"`
}

func (*UpdateDialogFilterOrder) CRC

func (*UpdateDialogFilterOrder) Encode

func (e *UpdateDialogFilterOrder) Encode() []byte

func (*UpdateDialogFilterOrder) ImplementsUpdate

func (*UpdateDialogFilterOrder) ImplementsUpdate()

type UpdateDialogFilters

type UpdateDialogFilters struct{}

func (*UpdateDialogFilters) CRC

func (*UpdateDialogFilters) CRC() uint32

func (*UpdateDialogFilters) Encode

func (e *UpdateDialogFilters) Encode() []byte

func (*UpdateDialogFilters) ImplementsUpdate

func (*UpdateDialogFilters) ImplementsUpdate()

type UpdateDialogPinned

type UpdateDialogPinned struct {
	Pinned   bool       `flag:"0,encoded_in_bitflags"`
	FolderId int32      `flag:"1"`
	Peer     DialogPeer `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdateDialogPinned) CRC

func (*UpdateDialogPinned) CRC() uint32

func (*UpdateDialogPinned) Encode

func (e *UpdateDialogPinned) Encode() []byte

func (*UpdateDialogPinned) ImplementsUpdate

func (*UpdateDialogPinned) ImplementsUpdate()

type UpdateDialogUnreadMark

type UpdateDialogUnreadMark struct {
	Unread bool       `flag:"0,encoded_in_bitflags"`
	Peer   DialogPeer `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdateDialogUnreadMark) CRC

func (*UpdateDialogUnreadMark) Encode

func (e *UpdateDialogUnreadMark) Encode() []byte

func (*UpdateDialogUnreadMark) ImplementsUpdate

func (*UpdateDialogUnreadMark) ImplementsUpdate()

type UpdateDraftMessage

type UpdateDraftMessage struct {
	Peer  Peer         `validate:"required"`
	Draft DraftMessage `validate:"required"`
}

func (*UpdateDraftMessage) CRC

func (*UpdateDraftMessage) CRC() uint32

func (*UpdateDraftMessage) Encode

func (e *UpdateDraftMessage) Encode() []byte

func (*UpdateDraftMessage) ImplementsUpdate

func (*UpdateDraftMessage) ImplementsUpdate()

type UpdateEditChannelMessage

type UpdateEditChannelMessage struct {
	Message  Message `validate:"required"`
	Pts      int32   `validate:"required"`
	PtsCount int32   `validate:"required"`
}

func (*UpdateEditChannelMessage) CRC

func (*UpdateEditChannelMessage) Encode

func (e *UpdateEditChannelMessage) Encode() []byte

func (*UpdateEditChannelMessage) ImplementsUpdate

func (*UpdateEditChannelMessage) ImplementsUpdate()

type UpdateEditMessage

type UpdateEditMessage struct {
	Message  Message `validate:"required"`
	Pts      int32   `validate:"required"`
	PtsCount int32   `validate:"required"`
}

func (*UpdateEditMessage) CRC

func (*UpdateEditMessage) CRC() uint32

func (*UpdateEditMessage) Encode

func (e *UpdateEditMessage) Encode() []byte

func (*UpdateEditMessage) ImplementsUpdate

func (*UpdateEditMessage) ImplementsUpdate()

type UpdateEncryptedChatTyping

type UpdateEncryptedChatTyping struct {
	ChatId int32 `validate:"required"`
}

func (*UpdateEncryptedChatTyping) CRC

func (*UpdateEncryptedChatTyping) Encode

func (e *UpdateEncryptedChatTyping) Encode() []byte

func (*UpdateEncryptedChatTyping) ImplementsUpdate

func (*UpdateEncryptedChatTyping) ImplementsUpdate()

type UpdateEncryptedMessagesRead

type UpdateEncryptedMessagesRead struct {
	ChatId  int32 `validate:"required"`
	MaxDate int32 `validate:"required"`
	Date    int32 `validate:"required"`
}

func (*UpdateEncryptedMessagesRead) CRC

func (*UpdateEncryptedMessagesRead) Encode

func (e *UpdateEncryptedMessagesRead) Encode() []byte

func (*UpdateEncryptedMessagesRead) ImplementsUpdate

func (*UpdateEncryptedMessagesRead) ImplementsUpdate()

type UpdateEncryption

type UpdateEncryption struct {
	Chat EncryptedChat `validate:"required"`
	Date int32         `validate:"required"`
}

func (*UpdateEncryption) CRC

func (*UpdateEncryption) CRC() uint32

func (*UpdateEncryption) Encode

func (e *UpdateEncryption) Encode() []byte

func (*UpdateEncryption) ImplementsUpdate

func (*UpdateEncryption) ImplementsUpdate()

type UpdateFavedStickers

type UpdateFavedStickers struct{}

func (*UpdateFavedStickers) CRC

func (*UpdateFavedStickers) CRC() uint32

func (*UpdateFavedStickers) Encode

func (e *UpdateFavedStickers) Encode() []byte

func (*UpdateFavedStickers) ImplementsUpdate

func (*UpdateFavedStickers) ImplementsUpdate()

type UpdateFolderPeers

type UpdateFolderPeers struct {
	FolderPeers []*FolderPeer `validate:"required"`
	Pts         int32         `validate:"required"`
	PtsCount    int32         `validate:"required"`
}

func (*UpdateFolderPeers) CRC

func (*UpdateFolderPeers) CRC() uint32

func (*UpdateFolderPeers) Encode

func (e *UpdateFolderPeers) Encode() []byte

func (*UpdateFolderPeers) ImplementsUpdate

func (*UpdateFolderPeers) ImplementsUpdate()

type UpdateGeoLiveViewed

type UpdateGeoLiveViewed struct {
	Peer  Peer  `validate:"required"`
	MsgId int32 `validate:"required"`
}

func (*UpdateGeoLiveViewed) CRC

func (*UpdateGeoLiveViewed) CRC() uint32

func (*UpdateGeoLiveViewed) Encode

func (e *UpdateGeoLiveViewed) Encode() []byte

func (*UpdateGeoLiveViewed) ImplementsUpdate

func (*UpdateGeoLiveViewed) ImplementsUpdate()

type UpdateInlineBotCallbackQuery

type UpdateInlineBotCallbackQuery struct {
	QueryId       int64                    `validate:"required"`
	UserId        int32                    `validate:"required"`
	MsgId         *InputBotInlineMessageID `validate:"required"`
	ChatInstance  int64                    `validate:"required"`
	Data          []byte                   `flag:"0"`
	GameShortName string                   `flag:"1"`
	// contains filtered or unexported fields
}

func (*UpdateInlineBotCallbackQuery) CRC

func (*UpdateInlineBotCallbackQuery) Encode

func (e *UpdateInlineBotCallbackQuery) Encode() []byte

func (*UpdateInlineBotCallbackQuery) ImplementsUpdate

func (*UpdateInlineBotCallbackQuery) ImplementsUpdate()

type UpdateLangPack

type UpdateLangPack struct {
	Difference *LangPackDifference `validate:"required"`
}

func (*UpdateLangPack) CRC

func (*UpdateLangPack) CRC() uint32

func (*UpdateLangPack) Encode

func (e *UpdateLangPack) Encode() []byte

func (*UpdateLangPack) ImplementsUpdate

func (*UpdateLangPack) ImplementsUpdate()

type UpdateLangPackTooLong

type UpdateLangPackTooLong struct {
	LangCode string `validate:"required"`
}

func (*UpdateLangPackTooLong) CRC

func (*UpdateLangPackTooLong) Encode

func (e *UpdateLangPackTooLong) Encode() []byte

func (*UpdateLangPackTooLong) ImplementsUpdate

func (*UpdateLangPackTooLong) ImplementsUpdate()

type UpdateLoginToken

type UpdateLoginToken struct{}

func (*UpdateLoginToken) CRC

func (*UpdateLoginToken) CRC() uint32

func (*UpdateLoginToken) Encode

func (e *UpdateLoginToken) Encode() []byte

func (*UpdateLoginToken) ImplementsUpdate

func (*UpdateLoginToken) ImplementsUpdate()

type UpdateMessageID

type UpdateMessageID struct {
	Id       int32 `validate:"required"`
	RandomId int64 `validate:"required"`
}

func (*UpdateMessageID) CRC

func (*UpdateMessageID) CRC() uint32

func (*UpdateMessageID) Encode

func (e *UpdateMessageID) Encode() []byte

func (*UpdateMessageID) ImplementsUpdate

func (*UpdateMessageID) ImplementsUpdate()

type UpdateMessagePoll

type UpdateMessagePoll struct {
	PollId  int64        `validate:"required"`
	Poll    *Poll        `flag:"0"`
	Results *PollResults `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdateMessagePoll) CRC

func (*UpdateMessagePoll) CRC() uint32

func (*UpdateMessagePoll) Encode

func (e *UpdateMessagePoll) Encode() []byte

func (*UpdateMessagePoll) ImplementsUpdate

func (*UpdateMessagePoll) ImplementsUpdate()

type UpdateMessagePollVote

type UpdateMessagePollVote struct {
	PollId  int64    `validate:"required"`
	UserId  int32    `validate:"required"`
	Options [][]byte `validate:"required"`
}

func (*UpdateMessagePollVote) CRC

func (*UpdateMessagePollVote) Encode

func (e *UpdateMessagePollVote) Encode() []byte

func (*UpdateMessagePollVote) ImplementsUpdate

func (*UpdateMessagePollVote) ImplementsUpdate()

type UpdateNewChannelMessage

type UpdateNewChannelMessage struct {
	Message  Message `validate:"required"`
	Pts      int32   `validate:"required"`
	PtsCount int32   `validate:"required"`
}

func (*UpdateNewChannelMessage) CRC

func (*UpdateNewChannelMessage) Encode

func (e *UpdateNewChannelMessage) Encode() []byte

func (*UpdateNewChannelMessage) ImplementsUpdate

func (*UpdateNewChannelMessage) ImplementsUpdate()

type UpdateNewEncryptedMessage

type UpdateNewEncryptedMessage struct {
	Message EncryptedMessage `validate:"required"`
	Qts     int32            `validate:"required"`
}

func (*UpdateNewEncryptedMessage) CRC

func (*UpdateNewEncryptedMessage) Encode

func (e *UpdateNewEncryptedMessage) Encode() []byte

func (*UpdateNewEncryptedMessage) ImplementsUpdate

func (*UpdateNewEncryptedMessage) ImplementsUpdate()

type UpdateNewMessage

type UpdateNewMessage struct {
	Message  Message `validate:"required"`
	Pts      int32   `validate:"required"`
	PtsCount int32   `validate:"required"`
}

func (*UpdateNewMessage) CRC

func (*UpdateNewMessage) CRC() uint32

func (*UpdateNewMessage) Encode

func (e *UpdateNewMessage) Encode() []byte

func (*UpdateNewMessage) ImplementsUpdate

func (*UpdateNewMessage) ImplementsUpdate()

type UpdateNewScheduledMessage

type UpdateNewScheduledMessage struct {
	Message Message `validate:"required"`
}

func (*UpdateNewScheduledMessage) CRC

func (*UpdateNewScheduledMessage) Encode

func (e *UpdateNewScheduledMessage) Encode() []byte

func (*UpdateNewScheduledMessage) ImplementsUpdate

func (*UpdateNewScheduledMessage) ImplementsUpdate()

type UpdateNewStickerSet

type UpdateNewStickerSet struct {
	Stickerset *MessagesStickerSet `validate:"required"`
}

func (*UpdateNewStickerSet) CRC

func (*UpdateNewStickerSet) CRC() uint32

func (*UpdateNewStickerSet) Encode

func (e *UpdateNewStickerSet) Encode() []byte

func (*UpdateNewStickerSet) ImplementsUpdate

func (*UpdateNewStickerSet) ImplementsUpdate()

type UpdateNotifySettings

type UpdateNotifySettings struct {
	Peer           NotifyPeer          `validate:"required"`
	NotifySettings *PeerNotifySettings `validate:"required"`
}

func (*UpdateNotifySettings) CRC

func (*UpdateNotifySettings) Encode

func (e *UpdateNotifySettings) Encode() []byte

func (*UpdateNotifySettings) ImplementsUpdate

func (*UpdateNotifySettings) ImplementsUpdate()

type UpdatePeerLocated

type UpdatePeerLocated struct {
	Peers []PeerLocated `validate:"required"`
}

func (*UpdatePeerLocated) CRC

func (*UpdatePeerLocated) CRC() uint32

func (*UpdatePeerLocated) Encode

func (e *UpdatePeerLocated) Encode() []byte

func (*UpdatePeerLocated) ImplementsUpdate

func (*UpdatePeerLocated) ImplementsUpdate()

type UpdatePeerSettings

type UpdatePeerSettings struct {
	Peer     Peer          `validate:"required"`
	Settings *PeerSettings `validate:"required"`
}

func (*UpdatePeerSettings) CRC

func (*UpdatePeerSettings) CRC() uint32

func (*UpdatePeerSettings) Encode

func (e *UpdatePeerSettings) Encode() []byte

func (*UpdatePeerSettings) ImplementsUpdate

func (*UpdatePeerSettings) ImplementsUpdate()

type UpdatePhoneCall

type UpdatePhoneCall struct {
	PhoneCall PhoneCall `validate:"required"`
}

func (*UpdatePhoneCall) CRC

func (*UpdatePhoneCall) CRC() uint32

func (*UpdatePhoneCall) Encode

func (e *UpdatePhoneCall) Encode() []byte

func (*UpdatePhoneCall) ImplementsUpdate

func (*UpdatePhoneCall) ImplementsUpdate()

type UpdatePhoneCallSignalingData

type UpdatePhoneCallSignalingData struct {
	PhoneCallId int64  `validate:"required"`
	Data        []byte `validate:"required"`
}

func (*UpdatePhoneCallSignalingData) CRC

func (*UpdatePhoneCallSignalingData) Encode

func (e *UpdatePhoneCallSignalingData) Encode() []byte

func (*UpdatePhoneCallSignalingData) ImplementsUpdate

func (*UpdatePhoneCallSignalingData) ImplementsUpdate()

type UpdatePinnedDialogs

type UpdatePinnedDialogs struct {
	FolderId int32        `flag:"1"`
	Order    []DialogPeer `flag:"0"`
	// contains filtered or unexported fields
}

func (*UpdatePinnedDialogs) CRC

func (*UpdatePinnedDialogs) CRC() uint32

func (*UpdatePinnedDialogs) Encode

func (e *UpdatePinnedDialogs) Encode() []byte

func (*UpdatePinnedDialogs) ImplementsUpdate

func (*UpdatePinnedDialogs) ImplementsUpdate()

type UpdatePrivacy

type UpdatePrivacy struct {
	Key   PrivacyKey    `validate:"required"`
	Rules []PrivacyRule `validate:"required"`
}

func (*UpdatePrivacy) CRC

func (*UpdatePrivacy) CRC() uint32

func (*UpdatePrivacy) Encode

func (e *UpdatePrivacy) Encode() []byte

func (*UpdatePrivacy) ImplementsUpdate

func (*UpdatePrivacy) ImplementsUpdate()

type UpdatePtsChanged

type UpdatePtsChanged struct{}

func (*UpdatePtsChanged) CRC

func (*UpdatePtsChanged) CRC() uint32

func (*UpdatePtsChanged) Encode

func (e *UpdatePtsChanged) Encode() []byte

func (*UpdatePtsChanged) ImplementsUpdate

func (*UpdatePtsChanged) ImplementsUpdate()

type UpdateReadChannelInbox

type UpdateReadChannelInbox struct {
	FolderId         int32 `flag:"0"`
	ChannelId        int32 `validate:"required"`
	MaxId            int32 `validate:"required"`
	StillUnreadCount int32 `validate:"required"`
	Pts              int32 `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdateReadChannelInbox) CRC

func (*UpdateReadChannelInbox) Encode

func (e *UpdateReadChannelInbox) Encode() []byte

func (*UpdateReadChannelInbox) ImplementsUpdate

func (*UpdateReadChannelInbox) ImplementsUpdate()

type UpdateReadChannelOutbox

type UpdateReadChannelOutbox struct {
	ChannelId int32 `validate:"required"`
	MaxId     int32 `validate:"required"`
}

func (*UpdateReadChannelOutbox) CRC

func (*UpdateReadChannelOutbox) Encode

func (e *UpdateReadChannelOutbox) Encode() []byte

func (*UpdateReadChannelOutbox) ImplementsUpdate

func (*UpdateReadChannelOutbox) ImplementsUpdate()

type UpdateReadFeaturedStickers

type UpdateReadFeaturedStickers struct{}

func (*UpdateReadFeaturedStickers) CRC

func (*UpdateReadFeaturedStickers) Encode

func (e *UpdateReadFeaturedStickers) Encode() []byte

func (*UpdateReadFeaturedStickers) ImplementsUpdate

func (*UpdateReadFeaturedStickers) ImplementsUpdate()

type UpdateReadHistoryInbox

type UpdateReadHistoryInbox struct {
	FolderId         int32 `flag:"0"`
	Peer             Peer  `validate:"required"`
	MaxId            int32 `validate:"required"`
	StillUnreadCount int32 `validate:"required"`
	Pts              int32 `validate:"required"`
	PtsCount         int32 `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdateReadHistoryInbox) CRC

func (*UpdateReadHistoryInbox) Encode

func (e *UpdateReadHistoryInbox) Encode() []byte

func (*UpdateReadHistoryInbox) ImplementsUpdate

func (*UpdateReadHistoryInbox) ImplementsUpdate()

type UpdateReadHistoryOutbox

type UpdateReadHistoryOutbox struct {
	Peer     Peer  `validate:"required"`
	MaxId    int32 `validate:"required"`
	Pts      int32 `validate:"required"`
	PtsCount int32 `validate:"required"`
}

func (*UpdateReadHistoryOutbox) CRC

func (*UpdateReadHistoryOutbox) Encode

func (e *UpdateReadHistoryOutbox) Encode() []byte

func (*UpdateReadHistoryOutbox) ImplementsUpdate

func (*UpdateReadHistoryOutbox) ImplementsUpdate()

type UpdateReadMessagesContents

type UpdateReadMessagesContents struct {
	Messages []int32 `validate:"required"`
	Pts      int32   `validate:"required"`
	PtsCount int32   `validate:"required"`
}

func (*UpdateReadMessagesContents) CRC

func (*UpdateReadMessagesContents) Encode

func (e *UpdateReadMessagesContents) Encode() []byte

func (*UpdateReadMessagesContents) ImplementsUpdate

func (*UpdateReadMessagesContents) ImplementsUpdate()

type UpdateRecentStickers

type UpdateRecentStickers struct{}

func (*UpdateRecentStickers) CRC

func (*UpdateRecentStickers) Encode

func (e *UpdateRecentStickers) Encode() []byte

func (*UpdateRecentStickers) ImplementsUpdate

func (*UpdateRecentStickers) ImplementsUpdate()

type UpdateSavedGifs

type UpdateSavedGifs struct{}

func (*UpdateSavedGifs) CRC

func (*UpdateSavedGifs) CRC() uint32

func (*UpdateSavedGifs) Encode

func (e *UpdateSavedGifs) Encode() []byte

func (*UpdateSavedGifs) ImplementsUpdate

func (*UpdateSavedGifs) ImplementsUpdate()

type UpdateServiceNotification

type UpdateServiceNotification struct {
	Popup     bool            `flag:"0,encoded_in_bitflags"`
	InboxDate int32           `flag:"1"`
	Type      string          `validate:"required"`
	Message   string          `validate:"required"`
	Media     MessageMedia    `validate:"required"`
	Entities  []MessageEntity `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdateServiceNotification) CRC

func (*UpdateServiceNotification) Encode

func (e *UpdateServiceNotification) Encode() []byte

func (*UpdateServiceNotification) ImplementsUpdate

func (*UpdateServiceNotification) ImplementsUpdate()

type UpdateShort

type UpdateShort struct {
	Update Update `validate:"required"`
	Date   int32  `validate:"required"`
}

func (*UpdateShort) CRC

func (*UpdateShort) CRC() uint32

func (*UpdateShort) Encode

func (e *UpdateShort) Encode() []byte

func (*UpdateShort) ImplementsUpdates

func (*UpdateShort) ImplementsUpdates()

type UpdateShortChatMessage

type UpdateShortChatMessage struct {
	Out          bool              `flag:"1,encoded_in_bitflags"`
	Mentioned    bool              `flag:"4,encoded_in_bitflags"`
	MediaUnread  bool              `flag:"5,encoded_in_bitflags"`
	Silent       bool              `flag:"13,encoded_in_bitflags"`
	Id           int32             `validate:"required"`
	FromId       int32             `validate:"required"`
	ChatId       int32             `validate:"required"`
	Message      string            `validate:"required"`
	Pts          int32             `validate:"required"`
	PtsCount     int32             `validate:"required"`
	Date         int32             `validate:"required"`
	FwdFrom      *MessageFwdHeader `flag:"2"`
	ViaBotId     int32             `flag:"11"`
	ReplyToMsgId int32             `flag:"3"`
	Entities     []MessageEntity   `flag:"7"`
	// contains filtered or unexported fields
}

func (*UpdateShortChatMessage) CRC

func (*UpdateShortChatMessage) Encode

func (e *UpdateShortChatMessage) Encode() []byte

func (*UpdateShortChatMessage) ImplementsUpdates

func (*UpdateShortChatMessage) ImplementsUpdates()

type UpdateShortMessage

type UpdateShortMessage struct {
	Out          bool              `flag:"1,encoded_in_bitflags"`
	Mentioned    bool              `flag:"4,encoded_in_bitflags"`
	MediaUnread  bool              `flag:"5,encoded_in_bitflags"`
	Silent       bool              `flag:"13,encoded_in_bitflags"`
	Id           int32             `validate:"required"`
	UserId       int32             `validate:"required"`
	Message      string            `validate:"required"`
	Pts          int32             `validate:"required"`
	PtsCount     int32             `validate:"required"`
	Date         int32             `validate:"required"`
	FwdFrom      *MessageFwdHeader `flag:"2"`
	ViaBotId     int32             `flag:"11"`
	ReplyToMsgId int32             `flag:"3"`
	Entities     []MessageEntity   `flag:"7"`
	// contains filtered or unexported fields
}

func (*UpdateShortMessage) CRC

func (*UpdateShortMessage) CRC() uint32

func (*UpdateShortMessage) Encode

func (e *UpdateShortMessage) Encode() []byte

func (*UpdateShortMessage) ImplementsUpdates

func (*UpdateShortMessage) ImplementsUpdates()

type UpdateShortSentMessage

type UpdateShortSentMessage struct {
	Out      bool            `flag:"1,encoded_in_bitflags"`
	Id       int32           `validate:"required"`
	Pts      int32           `validate:"required"`
	PtsCount int32           `validate:"required"`
	Date     int32           `validate:"required"`
	Media    MessageMedia    `flag:"9"`
	Entities []MessageEntity `flag:"7"`
	// contains filtered or unexported fields
}

func (*UpdateShortSentMessage) CRC

func (*UpdateShortSentMessage) Encode

func (e *UpdateShortSentMessage) Encode() []byte

func (*UpdateShortSentMessage) ImplementsUpdates

func (*UpdateShortSentMessage) ImplementsUpdates()

type UpdateStickerSets

type UpdateStickerSets struct{}

func (*UpdateStickerSets) CRC

func (*UpdateStickerSets) CRC() uint32

func (*UpdateStickerSets) Encode

func (e *UpdateStickerSets) Encode() []byte

func (*UpdateStickerSets) ImplementsUpdate

func (*UpdateStickerSets) ImplementsUpdate()

type UpdateStickerSetsOrder

type UpdateStickerSetsOrder struct {
	Masks bool    `flag:"0,encoded_in_bitflags"`
	Order []int64 `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdateStickerSetsOrder) CRC

func (*UpdateStickerSetsOrder) Encode

func (e *UpdateStickerSetsOrder) Encode() []byte

func (*UpdateStickerSetsOrder) ImplementsUpdate

func (*UpdateStickerSetsOrder) ImplementsUpdate()

type UpdateTheme

type UpdateTheme struct {
	Theme *Theme `validate:"required"`
}

func (*UpdateTheme) CRC

func (*UpdateTheme) CRC() uint32

func (*UpdateTheme) Encode

func (e *UpdateTheme) Encode() []byte

func (*UpdateTheme) ImplementsUpdate

func (*UpdateTheme) ImplementsUpdate()

type UpdateUserBlocked

type UpdateUserBlocked struct {
	UserId  int32 `validate:"required"`
	Blocked bool  `validate:"required"`
}

func (*UpdateUserBlocked) CRC

func (*UpdateUserBlocked) CRC() uint32

func (*UpdateUserBlocked) Encode

func (e *UpdateUserBlocked) Encode() []byte

func (*UpdateUserBlocked) ImplementsUpdate

func (*UpdateUserBlocked) ImplementsUpdate()

type UpdateUserName

type UpdateUserName struct {
	UserId    int32  `validate:"required"`
	FirstName string `validate:"required"`
	LastName  string `validate:"required"`
	Username  string `validate:"required"`
}

func (*UpdateUserName) CRC

func (*UpdateUserName) CRC() uint32

func (*UpdateUserName) Encode

func (e *UpdateUserName) Encode() []byte

func (*UpdateUserName) ImplementsUpdate

func (*UpdateUserName) ImplementsUpdate()

type UpdateUserPhone

type UpdateUserPhone struct {
	UserId int32  `validate:"required"`
	Phone  string `validate:"required"`
}

func (*UpdateUserPhone) CRC

func (*UpdateUserPhone) CRC() uint32

func (*UpdateUserPhone) Encode

func (e *UpdateUserPhone) Encode() []byte

func (*UpdateUserPhone) ImplementsUpdate

func (*UpdateUserPhone) ImplementsUpdate()

type UpdateUserPhoto

type UpdateUserPhoto struct {
	UserId   int32            `validate:"required"`
	Date     int32            `validate:"required"`
	Photo    UserProfilePhoto `validate:"required"`
	Previous bool             `validate:"required"`
}

func (*UpdateUserPhoto) CRC

func (*UpdateUserPhoto) CRC() uint32

func (*UpdateUserPhoto) Encode

func (e *UpdateUserPhoto) Encode() []byte

func (*UpdateUserPhoto) ImplementsUpdate

func (*UpdateUserPhoto) ImplementsUpdate()

type UpdateUserPinnedMessage

type UpdateUserPinnedMessage struct {
	UserId int32 `validate:"required"`
	Id     int32 `validate:"required"`
}

func (*UpdateUserPinnedMessage) CRC

func (*UpdateUserPinnedMessage) Encode

func (e *UpdateUserPinnedMessage) Encode() []byte

func (*UpdateUserPinnedMessage) ImplementsUpdate

func (*UpdateUserPinnedMessage) ImplementsUpdate()

type UpdateUserStatus

type UpdateUserStatus struct {
	UserId int32      `validate:"required"`
	Status UserStatus `validate:"required"`
}

func (*UpdateUserStatus) CRC

func (*UpdateUserStatus) CRC() uint32

func (*UpdateUserStatus) Encode

func (e *UpdateUserStatus) Encode() []byte

func (*UpdateUserStatus) ImplementsUpdate

func (*UpdateUserStatus) ImplementsUpdate()

type UpdateUserTyping

type UpdateUserTyping struct {
	UserId int32             `validate:"required"`
	Action SendMessageAction `validate:"required"`
}

func (*UpdateUserTyping) CRC

func (*UpdateUserTyping) CRC() uint32

func (*UpdateUserTyping) Encode

func (e *UpdateUserTyping) Encode() []byte

func (*UpdateUserTyping) ImplementsUpdate

func (*UpdateUserTyping) ImplementsUpdate()

type UpdateWebPage

type UpdateWebPage struct {
	Webpage  WebPage `validate:"required"`
	Pts      int32   `validate:"required"`
	PtsCount int32   `validate:"required"`
}

func (*UpdateWebPage) CRC

func (*UpdateWebPage) CRC() uint32

func (*UpdateWebPage) Encode

func (e *UpdateWebPage) Encode() []byte

func (*UpdateWebPage) ImplementsUpdate

func (*UpdateWebPage) ImplementsUpdate()

type Updates

type Updates interface {
	serialize.TL
	ImplementsUpdates()
}

type UpdatesChannelDifference

type UpdatesChannelDifference interface {
	serialize.TL
	ImplementsUpdatesChannelDifference()
}

type UpdatesChannelDifferenceEmpty

type UpdatesChannelDifferenceEmpty struct {
	Final   bool  `flag:"0,encoded_in_bitflags"`
	Pts     int32 `validate:"required"`
	Timeout int32 `flag:"1"`
	// contains filtered or unexported fields
}

func (*UpdatesChannelDifferenceEmpty) CRC

func (*UpdatesChannelDifferenceEmpty) Encode

func (e *UpdatesChannelDifferenceEmpty) Encode() []byte

func (*UpdatesChannelDifferenceEmpty) ImplementsUpdatesChannelDifference

func (*UpdatesChannelDifferenceEmpty) ImplementsUpdatesChannelDifference()

type UpdatesChannelDifferenceObj

type UpdatesChannelDifferenceObj struct {
	Final        bool      `flag:"0,encoded_in_bitflags"`
	Pts          int32     `validate:"required"`
	Timeout      int32     `flag:"1"`
	NewMessages  []Message `validate:"required"`
	OtherUpdates []Update  `validate:"required"`
	Chats        []Chat    `validate:"required"`
	Users        []User    `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdatesChannelDifferenceObj) CRC

func (*UpdatesChannelDifferenceObj) Encode

func (e *UpdatesChannelDifferenceObj) Encode() []byte

func (*UpdatesChannelDifferenceObj) ImplementsUpdatesChannelDifference

func (*UpdatesChannelDifferenceObj) ImplementsUpdatesChannelDifference()

type UpdatesChannelDifferenceTooLong

type UpdatesChannelDifferenceTooLong struct {
	Final    bool      `flag:"0,encoded_in_bitflags"`
	Timeout  int32     `flag:"1"`
	Dialog   Dialog    `validate:"required"`
	Messages []Message `validate:"required"`
	Chats    []Chat    `validate:"required"`
	Users    []User    `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdatesChannelDifferenceTooLong) CRC

func (*UpdatesChannelDifferenceTooLong) Encode

func (e *UpdatesChannelDifferenceTooLong) Encode() []byte

func (*UpdatesChannelDifferenceTooLong) ImplementsUpdatesChannelDifference

func (*UpdatesChannelDifferenceTooLong) ImplementsUpdatesChannelDifference()

type UpdatesCombined

type UpdatesCombined struct {
	Updates  []Update `validate:"required"`
	Users    []User   `validate:"required"`
	Chats    []Chat   `validate:"required"`
	Date     int32    `validate:"required"`
	SeqStart int32    `validate:"required"`
	Seq      int32    `validate:"required"`
}

func (*UpdatesCombined) CRC

func (*UpdatesCombined) CRC() uint32

func (*UpdatesCombined) Encode

func (e *UpdatesCombined) Encode() []byte

func (*UpdatesCombined) ImplementsUpdates

func (*UpdatesCombined) ImplementsUpdates()

type UpdatesDifference

type UpdatesDifference interface {
	serialize.TL
	ImplementsUpdatesDifference()
}

type UpdatesDifferenceEmpty

type UpdatesDifferenceEmpty struct {
	Date int32 `validate:"required"`
	Seq  int32 `validate:"required"`
}

func (*UpdatesDifferenceEmpty) CRC

func (*UpdatesDifferenceEmpty) Encode

func (e *UpdatesDifferenceEmpty) Encode() []byte

func (*UpdatesDifferenceEmpty) ImplementsUpdatesDifference

func (*UpdatesDifferenceEmpty) ImplementsUpdatesDifference()

type UpdatesDifferenceObj

type UpdatesDifferenceObj struct {
	NewMessages          []Message          `validate:"required"`
	NewEncryptedMessages []EncryptedMessage `validate:"required"`
	OtherUpdates         []Update           `validate:"required"`
	Chats                []Chat             `validate:"required"`
	Users                []User             `validate:"required"`
	State                *UpdatesState      `validate:"required"`
}

func (*UpdatesDifferenceObj) CRC

func (*UpdatesDifferenceObj) Encode

func (e *UpdatesDifferenceObj) Encode() []byte

func (*UpdatesDifferenceObj) ImplementsUpdatesDifference

func (*UpdatesDifferenceObj) ImplementsUpdatesDifference()

type UpdatesDifferenceSlice

type UpdatesDifferenceSlice struct {
	NewMessages          []Message          `validate:"required"`
	NewEncryptedMessages []EncryptedMessage `validate:"required"`
	OtherUpdates         []Update           `validate:"required"`
	Chats                []Chat             `validate:"required"`
	Users                []User             `validate:"required"`
	IntermediateState    *UpdatesState      `validate:"required"`
}

func (*UpdatesDifferenceSlice) CRC

func (*UpdatesDifferenceSlice) Encode

func (e *UpdatesDifferenceSlice) Encode() []byte

func (*UpdatesDifferenceSlice) ImplementsUpdatesDifference

func (*UpdatesDifferenceSlice) ImplementsUpdatesDifference()

type UpdatesDifferenceTooLong

type UpdatesDifferenceTooLong struct {
	Pts int32 `validate:"required"`
}

func (*UpdatesDifferenceTooLong) CRC

func (*UpdatesDifferenceTooLong) Encode

func (e *UpdatesDifferenceTooLong) Encode() []byte

func (*UpdatesDifferenceTooLong) ImplementsUpdatesDifference

func (*UpdatesDifferenceTooLong) ImplementsUpdatesDifference()

type UpdatesGetChannelDifferenceParams

type UpdatesGetChannelDifferenceParams struct {
	Force   bool                  `flag:"0,encoded_in_bitflags"`
	Channel InputChannel          `validate:"required"`
	Filter  ChannelMessagesFilter `validate:"required"`
	Pts     int32                 `validate:"required"`
	Limit   int32                 `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdatesGetChannelDifferenceParams) CRC

func (*UpdatesGetChannelDifferenceParams) Encode

type UpdatesGetDifferenceParams

type UpdatesGetDifferenceParams struct {
	Pts           int32 `validate:"required"`
	PtsTotalLimit int32 `flag:"0"`
	Date          int32 `validate:"required"`
	Qts           int32 `validate:"required"`
	// contains filtered or unexported fields
}

func (*UpdatesGetDifferenceParams) CRC

func (*UpdatesGetDifferenceParams) Encode

func (e *UpdatesGetDifferenceParams) Encode() []byte

type UpdatesGetStateParams

type UpdatesGetStateParams struct{}

func (*UpdatesGetStateParams) CRC

func (e *UpdatesGetStateParams) CRC() uint32

func (*UpdatesGetStateParams) Encode

func (e *UpdatesGetStateParams) Encode() []byte

type UpdatesObj

type UpdatesObj struct {
	Updates []Update `validate:"required"`
	Users   []User   `validate:"required"`
	Chats   []Chat   `validate:"required"`
	Date    int32    `validate:"required"`
	Seq     int32    `validate:"required"`
}

func (*UpdatesObj) CRC

func (*UpdatesObj) CRC() uint32

func (*UpdatesObj) Encode

func (e *UpdatesObj) Encode() []byte

func (*UpdatesObj) ImplementsUpdates

func (*UpdatesObj) ImplementsUpdates()

type UpdatesState

type UpdatesState struct {
	Pts         int32 `validate:"required"`
	Qts         int32 `validate:"required"`
	Date        int32 `validate:"required"`
	Seq         int32 `validate:"required"`
	UnreadCount int32 `validate:"required"`
}

func (*UpdatesState) CRC

func (e *UpdatesState) CRC() uint32

func (*UpdatesState) Encode

func (e *UpdatesState) Encode() []byte

type UpdatesTooLong

type UpdatesTooLong struct{}

func (*UpdatesTooLong) CRC

func (*UpdatesTooLong) CRC() uint32

func (*UpdatesTooLong) Encode

func (e *UpdatesTooLong) Encode() []byte

func (*UpdatesTooLong) ImplementsUpdates

func (*UpdatesTooLong) ImplementsUpdates()

type UploadCdnFile

type UploadCdnFile interface {
	serialize.TL
	ImplementsUploadCdnFile()
}

type UploadCdnFileObj

type UploadCdnFileObj struct {
	Bytes []byte `validate:"required"`
}

func (*UploadCdnFileObj) CRC

func (*UploadCdnFileObj) CRC() uint32

func (*UploadCdnFileObj) Encode

func (e *UploadCdnFileObj) Encode() []byte

func (*UploadCdnFileObj) ImplementsUploadCdnFile

func (*UploadCdnFileObj) ImplementsUploadCdnFile()

type UploadCdnFileReuploadNeeded

type UploadCdnFileReuploadNeeded struct {
	RequestToken []byte `validate:"required"`
}

func (*UploadCdnFileReuploadNeeded) CRC

func (*UploadCdnFileReuploadNeeded) Encode

func (e *UploadCdnFileReuploadNeeded) Encode() []byte

func (*UploadCdnFileReuploadNeeded) ImplementsUploadCdnFile

func (*UploadCdnFileReuploadNeeded) ImplementsUploadCdnFile()

type UploadFile

type UploadFile interface {
	serialize.TL
	ImplementsUploadFile()
}

type UploadFileCdnRedirect

type UploadFileCdnRedirect struct {
	DcId          int32       `validate:"required"`
	FileToken     []byte      `validate:"required"`
	EncryptionKey []byte      `validate:"required"`
	EncryptionIv  []byte      `validate:"required"`
	FileHashes    []*FileHash `validate:"required"`
}

func (*UploadFileCdnRedirect) CRC

func (*UploadFileCdnRedirect) Encode

func (e *UploadFileCdnRedirect) Encode() []byte

func (*UploadFileCdnRedirect) ImplementsUploadFile

func (*UploadFileCdnRedirect) ImplementsUploadFile()

type UploadFileObj

type UploadFileObj struct {
	Type  StorageFileType `validate:"required"`
	Mtime int32           `validate:"required"`
	Bytes []byte          `validate:"required"`
}

func (*UploadFileObj) CRC

func (*UploadFileObj) CRC() uint32

func (*UploadFileObj) Encode

func (e *UploadFileObj) Encode() []byte

func (*UploadFileObj) ImplementsUploadFile

func (*UploadFileObj) ImplementsUploadFile()

type UploadGetCdnFileHashesParams

type UploadGetCdnFileHashesParams struct {
	FileToken []byte `validate:"required"`
	Offset    int32  `validate:"required"`
}

func (*UploadGetCdnFileHashesParams) CRC

func (*UploadGetCdnFileHashesParams) Encode

func (e *UploadGetCdnFileHashesParams) Encode() []byte

type UploadGetCdnFileParams

type UploadGetCdnFileParams struct {
	FileToken []byte `validate:"required"`
	Offset    int32  `validate:"required"`
	Limit     int32  `validate:"required"`
}

func (*UploadGetCdnFileParams) CRC

func (e *UploadGetCdnFileParams) CRC() uint32

func (*UploadGetCdnFileParams) Encode

func (e *UploadGetCdnFileParams) Encode() []byte

type UploadGetFileHashesParams

type UploadGetFileHashesParams struct {
	Location InputFileLocation `validate:"required"`
	Offset   int32             `validate:"required"`
}

func (*UploadGetFileHashesParams) CRC

func (*UploadGetFileHashesParams) Encode

func (e *UploadGetFileHashesParams) Encode() []byte

type UploadGetFileParams

type UploadGetFileParams struct {
	Precise      bool              `flag:"0,encoded_in_bitflags"`
	CdnSupported bool              `flag:"1,encoded_in_bitflags"`
	Location     InputFileLocation `validate:"required"`
	Offset       int32             `validate:"required"`
	Limit        int32             `validate:"required"`
	// contains filtered or unexported fields
}

func (*UploadGetFileParams) CRC

func (e *UploadGetFileParams) CRC() uint32

func (*UploadGetFileParams) Encode

func (e *UploadGetFileParams) Encode() []byte

type UploadGetWebFileParams

type UploadGetWebFileParams struct {
	Location InputWebFileLocation `validate:"required"`
	Offset   int32                `validate:"required"`
	Limit    int32                `validate:"required"`
}

func (*UploadGetWebFileParams) CRC

func (e *UploadGetWebFileParams) CRC() uint32

func (*UploadGetWebFileParams) Encode

func (e *UploadGetWebFileParams) Encode() []byte

type UploadReuploadCdnFileParams

type UploadReuploadCdnFileParams struct {
	FileToken    []byte `validate:"required"`
	RequestToken []byte `validate:"required"`
}

func (*UploadReuploadCdnFileParams) CRC

func (*UploadReuploadCdnFileParams) Encode

func (e *UploadReuploadCdnFileParams) Encode() []byte

type UploadSaveBigFilePartParams

type UploadSaveBigFilePartParams struct {
	FileId         int64  `validate:"required"`
	FilePart       int32  `validate:"required"`
	FileTotalParts int32  `validate:"required"`
	Bytes          []byte `validate:"required"`
}

func (*UploadSaveBigFilePartParams) CRC

func (*UploadSaveBigFilePartParams) Encode

func (e *UploadSaveBigFilePartParams) Encode() []byte

type UploadSaveFilePartParams

type UploadSaveFilePartParams struct {
	FileId   int64  `validate:"required"`
	FilePart int32  `validate:"required"`
	Bytes    []byte `validate:"required"`
}

func (*UploadSaveFilePartParams) CRC

func (*UploadSaveFilePartParams) Encode

func (e *UploadSaveFilePartParams) Encode() []byte

type UploadWebFile

type UploadWebFile struct {
	Size     int32           `validate:"required"`
	MimeType string          `validate:"required"`
	FileType StorageFileType `validate:"required"`
	Mtime    int32           `validate:"required"`
	Bytes    []byte          `validate:"required"`
}

func (*UploadWebFile) CRC

func (e *UploadWebFile) CRC() uint32

func (*UploadWebFile) Encode

func (e *UploadWebFile) Encode() []byte

type UrlAuthResult

type UrlAuthResult interface {
	serialize.TL
	ImplementsUrlAuthResult()
}

type UrlAuthResultAccepted

type UrlAuthResultAccepted struct {
	Url string `validate:"required"`
}

func (*UrlAuthResultAccepted) CRC

func (*UrlAuthResultAccepted) Encode

func (e *UrlAuthResultAccepted) Encode() []byte

func (*UrlAuthResultAccepted) ImplementsUrlAuthResult

func (*UrlAuthResultAccepted) ImplementsUrlAuthResult()

type UrlAuthResultDefault

type UrlAuthResultDefault struct{}

func (*UrlAuthResultDefault) CRC

func (*UrlAuthResultDefault) Encode

func (e *UrlAuthResultDefault) Encode() []byte

func (*UrlAuthResultDefault) ImplementsUrlAuthResult

func (*UrlAuthResultDefault) ImplementsUrlAuthResult()

type UrlAuthResultRequest

type UrlAuthResultRequest struct {
	RequestWriteAccess bool   `flag:"0,encoded_in_bitflags"`
	Bot                User   `validate:"required"`
	Domain             string `validate:"required"`
	// contains filtered or unexported fields
}

func (*UrlAuthResultRequest) CRC

func (*UrlAuthResultRequest) Encode

func (e *UrlAuthResultRequest) Encode() []byte

func (*UrlAuthResultRequest) ImplementsUrlAuthResult

func (*UrlAuthResultRequest) ImplementsUrlAuthResult()

type User

type User interface {
	serialize.TL
	ImplementsUser()
}

type UserEmpty

type UserEmpty struct {
	Id int32 `validate:"required"`
}

func (*UserEmpty) CRC

func (*UserEmpty) CRC() uint32

func (*UserEmpty) Encode

func (e *UserEmpty) Encode() []byte

func (*UserEmpty) ImplementsUser

func (*UserEmpty) ImplementsUser()

type UserFull

type UserFull struct {
	Blocked             bool                `flag:"0,encoded_in_bitflags"`
	PhoneCallsAvailable bool                `flag:"4,encoded_in_bitflags"`
	PhoneCallsPrivate   bool                `flag:"5,encoded_in_bitflags"`
	CanPinMessage       bool                `flag:"7,encoded_in_bitflags"`
	HasScheduled        bool                `flag:"12,encoded_in_bitflags"`
	VideoCallsAvailable bool                `flag:"13,encoded_in_bitflags"`
	User                User                `validate:"required"`
	About               string              `flag:"1"`
	Settings            *PeerSettings       `validate:"required"`
	ProfilePhoto        Photo               `flag:"2"`
	NotifySettings      *PeerNotifySettings `validate:"required"`
	BotInfo             *BotInfo            `flag:"3"`
	PinnedMsgId         int32               `flag:"6"`
	CommonChatsCount    int32               `validate:"required"`
	FolderId            int32               `flag:"11"`
	// contains filtered or unexported fields
}

func (*UserFull) CRC

func (e *UserFull) CRC() uint32

func (*UserFull) Encode

func (e *UserFull) Encode() []byte

type UserObj

type UserObj struct {
	Self                 bool                 `flag:"10,encoded_in_bitflags"`
	Contact              bool                 `flag:"11,encoded_in_bitflags"`
	MutualContact        bool                 `flag:"12,encoded_in_bitflags"`
	Deleted              bool                 `flag:"13,encoded_in_bitflags"`
	Bot                  bool                 `flag:"14,encoded_in_bitflags"`
	BotChatHistory       bool                 `flag:"15,encoded_in_bitflags"`
	BotNochats           bool                 `flag:"16,encoded_in_bitflags"`
	Verified             bool                 `flag:"17,encoded_in_bitflags"`
	Restricted           bool                 `flag:"18,encoded_in_bitflags"`
	Min                  bool                 `flag:"20,encoded_in_bitflags"`
	BotInlineGeo         bool                 `flag:"21,encoded_in_bitflags"`
	Support              bool                 `flag:"23,encoded_in_bitflags"`
	Scam                 bool                 `flag:"24,encoded_in_bitflags"`
	ApplyMinPhoto        bool                 `flag:"25,encoded_in_bitflags"`
	Id                   int32                `validate:"required"`
	AccessHash           int64                `flag:"0"`
	FirstName            string               `flag:"1"`
	LastName             string               `flag:"2"`
	Username             string               `flag:"3"`
	Phone                string               `flag:"4"`
	Photo                UserProfilePhoto     `flag:"5"`
	Status               UserStatus           `flag:"6"`
	BotInfoVersion       int32                `flag:"14"`
	RestrictionReason    []*RestrictionReason `flag:"18"`
	BotInlinePlaceholder string               `flag:"19"`
	LangCode             string               `flag:"22"`
	// contains filtered or unexported fields
}

func (*UserObj) CRC

func (*UserObj) CRC() uint32

func (*UserObj) Encode

func (e *UserObj) Encode() []byte

func (*UserObj) ImplementsUser

func (*UserObj) ImplementsUser()

type UserProfilePhoto

type UserProfilePhoto interface {
	serialize.TL
	ImplementsUserProfilePhoto()
}

type UserProfilePhotoEmpty

type UserProfilePhotoEmpty struct{}

func (*UserProfilePhotoEmpty) CRC

func (*UserProfilePhotoEmpty) Encode

func (e *UserProfilePhotoEmpty) Encode() []byte

func (*UserProfilePhotoEmpty) ImplementsUserProfilePhoto

func (*UserProfilePhotoEmpty) ImplementsUserProfilePhoto()

type UserProfilePhotoObj

type UserProfilePhotoObj struct {
	HasVideo   bool          `flag:"0,encoded_in_bitflags"`
	PhotoId    int64         `validate:"required"`
	PhotoSmall *FileLocation `validate:"required"`
	PhotoBig   *FileLocation `validate:"required"`
	DcId       int32         `validate:"required"`
	// contains filtered or unexported fields
}

func (*UserProfilePhotoObj) CRC

func (*UserProfilePhotoObj) CRC() uint32

func (*UserProfilePhotoObj) Encode

func (e *UserProfilePhotoObj) Encode() []byte

func (*UserProfilePhotoObj) ImplementsUserProfilePhoto

func (*UserProfilePhotoObj) ImplementsUserProfilePhoto()

type UserStatus

type UserStatus interface {
	serialize.TL
	ImplementsUserStatus()
}

type UserStatusEmpty

type UserStatusEmpty struct{}

func (*UserStatusEmpty) CRC

func (*UserStatusEmpty) CRC() uint32

func (*UserStatusEmpty) Encode

func (e *UserStatusEmpty) Encode() []byte

func (*UserStatusEmpty) ImplementsUserStatus

func (*UserStatusEmpty) ImplementsUserStatus()

type UserStatusLastMonth

type UserStatusLastMonth struct{}

func (*UserStatusLastMonth) CRC

func (*UserStatusLastMonth) CRC() uint32

func (*UserStatusLastMonth) Encode

func (e *UserStatusLastMonth) Encode() []byte

func (*UserStatusLastMonth) ImplementsUserStatus

func (*UserStatusLastMonth) ImplementsUserStatus()

type UserStatusLastWeek

type UserStatusLastWeek struct{}

func (*UserStatusLastWeek) CRC

func (*UserStatusLastWeek) CRC() uint32

func (*UserStatusLastWeek) Encode

func (e *UserStatusLastWeek) Encode() []byte

func (*UserStatusLastWeek) ImplementsUserStatus

func (*UserStatusLastWeek) ImplementsUserStatus()

type UserStatusOffline

type UserStatusOffline struct {
	WasOnline int32 `validate:"required"`
}

func (*UserStatusOffline) CRC

func (*UserStatusOffline) CRC() uint32

func (*UserStatusOffline) Encode

func (e *UserStatusOffline) Encode() []byte

func (*UserStatusOffline) ImplementsUserStatus

func (*UserStatusOffline) ImplementsUserStatus()

type UserStatusOnline

type UserStatusOnline struct {
	Expires int32 `validate:"required"`
}

func (*UserStatusOnline) CRC

func (*UserStatusOnline) CRC() uint32

func (*UserStatusOnline) Encode

func (e *UserStatusOnline) Encode() []byte

func (*UserStatusOnline) ImplementsUserStatus

func (*UserStatusOnline) ImplementsUserStatus()

type UserStatusRecently

type UserStatusRecently struct{}

func (*UserStatusRecently) CRC

func (*UserStatusRecently) CRC() uint32

func (*UserStatusRecently) Encode

func (e *UserStatusRecently) Encode() []byte

func (*UserStatusRecently) ImplementsUserStatus

func (*UserStatusRecently) ImplementsUserStatus()

type UsersGetFullUserParams

type UsersGetFullUserParams struct {
	Id InputUser `validate:"required"`
}

func (*UsersGetFullUserParams) CRC

func (e *UsersGetFullUserParams) CRC() uint32

func (*UsersGetFullUserParams) Encode

func (e *UsersGetFullUserParams) Encode() []byte

type UsersGetUsersParams

type UsersGetUsersParams struct {
	Id []InputUser `validate:"required"`
}

func (*UsersGetUsersParams) CRC

func (e *UsersGetUsersParams) CRC() uint32

func (*UsersGetUsersParams) Encode

func (e *UsersGetUsersParams) Encode() []byte

type UsersSetSecureValueErrorsParams

type UsersSetSecureValueErrorsParams struct {
	Id     InputUser          `validate:"required"`
	Errors []SecureValueError `validate:"required"`
}

func (*UsersSetSecureValueErrorsParams) CRC

func (*UsersSetSecureValueErrorsParams) Encode

func (e *UsersSetSecureValueErrorsParams) Encode() []byte

type VideoSize

type VideoSize struct {
	Type         string        `validate:"required"`
	Location     *FileLocation `validate:"required"`
	W            int32         `validate:"required"`
	H            int32         `validate:"required"`
	Size         int32         `validate:"required"`
	VideoStartTs float64       `flag:"0"`
	// contains filtered or unexported fields
}

func (*VideoSize) CRC

func (e *VideoSize) CRC() uint32

func (*VideoSize) Encode

func (e *VideoSize) Encode() []byte

type WallPaper

type WallPaper interface {
	serialize.TL
	ImplementsWallPaper()
}

type WallPaperNoFile

type WallPaperNoFile struct {
	Default  bool               `flag:"1,encoded_in_bitflags"`
	Dark     bool               `flag:"4,encoded_in_bitflags"`
	Settings *WallPaperSettings `flag:"2"`
	// contains filtered or unexported fields
}

func (*WallPaperNoFile) CRC

func (*WallPaperNoFile) CRC() uint32

func (*WallPaperNoFile) Encode

func (e *WallPaperNoFile) Encode() []byte

func (*WallPaperNoFile) ImplementsWallPaper

func (*WallPaperNoFile) ImplementsWallPaper()

type WallPaperObj

type WallPaperObj struct {
	Id int64 `validate:"required"`

	Creator    bool               `flag:"0,encoded_in_bitflags"`
	Default    bool               `flag:"1,encoded_in_bitflags"`
	Pattern    bool               `flag:"3,encoded_in_bitflags"`
	Dark       bool               `flag:"4,encoded_in_bitflags"`
	AccessHash int64              `validate:"required"`
	Slug       string             `validate:"required"`
	Document   Document           `validate:"required"`
	Settings   *WallPaperSettings `flag:"2"`
	// contains filtered or unexported fields
}

func (*WallPaperObj) CRC

func (*WallPaperObj) CRC() uint32

func (*WallPaperObj) Encode

func (e *WallPaperObj) Encode() []byte

func (*WallPaperObj) ImplementsWallPaper

func (*WallPaperObj) ImplementsWallPaper()

type WallPaperSettings

type WallPaperSettings struct {
	Blur                  bool  `flag:"1,encoded_in_bitflags"`
	Motion                bool  `flag:"2,encoded_in_bitflags"`
	BackgroundColor       int32 `flag:"0"`
	SecondBackgroundColor int32 `flag:"4"`
	Intensity             int32 `flag:"3"`
	Rotation              int32 `flag:"4"`
	// contains filtered or unexported fields
}

func (*WallPaperSettings) CRC

func (e *WallPaperSettings) CRC() uint32

func (*WallPaperSettings) Encode

func (e *WallPaperSettings) Encode() []byte

type WebAuthorization

type WebAuthorization struct {
	Hash        int64  `validate:"required"`
	BotId       int32  `validate:"required"`
	Domain      string `validate:"required"`
	Browser     string `validate:"required"`
	Platform    string `validate:"required"`
	DateCreated int32  `validate:"required"`
	DateActive  int32  `validate:"required"`
	Ip          string `validate:"required"`
	Region      string `validate:"required"`
}

func (*WebAuthorization) CRC

func (e *WebAuthorization) CRC() uint32

func (*WebAuthorization) Encode

func (e *WebAuthorization) Encode() []byte

type WebDocument

type WebDocument interface {
	serialize.TL
	ImplementsWebDocument()
}

type WebDocumentNoProxy

type WebDocumentNoProxy struct {
	Url        string              `validate:"required"`
	Size       int32               `validate:"required"`
	MimeType   string              `validate:"required"`
	Attributes []DocumentAttribute `validate:"required"`
}

func (*WebDocumentNoProxy) CRC

func (*WebDocumentNoProxy) CRC() uint32

func (*WebDocumentNoProxy) Encode

func (e *WebDocumentNoProxy) Encode() []byte

func (*WebDocumentNoProxy) ImplementsWebDocument

func (*WebDocumentNoProxy) ImplementsWebDocument()

type WebDocumentObj

type WebDocumentObj struct {
	Url        string              `validate:"required"`
	AccessHash int64               `validate:"required"`
	Size       int32               `validate:"required"`
	MimeType   string              `validate:"required"`
	Attributes []DocumentAttribute `validate:"required"`
}

func (*WebDocumentObj) CRC

func (*WebDocumentObj) CRC() uint32

func (*WebDocumentObj) Encode

func (e *WebDocumentObj) Encode() []byte

func (*WebDocumentObj) ImplementsWebDocument

func (*WebDocumentObj) ImplementsWebDocument()

type WebPage

type WebPage interface {
	serialize.TL
	ImplementsWebPage()
}

type WebPageAttribute

type WebPageAttribute struct {
	Documents []Document     `flag:"0"`
	Settings  *ThemeSettings `flag:"1"`
	// contains filtered or unexported fields
}

func (*WebPageAttribute) CRC

func (e *WebPageAttribute) CRC() uint32

func (*WebPageAttribute) Encode

func (e *WebPageAttribute) Encode() []byte

type WebPageEmpty

type WebPageEmpty struct {
	Id int64 `validate:"required"`
}

func (*WebPageEmpty) CRC

func (*WebPageEmpty) CRC() uint32

func (*WebPageEmpty) Encode

func (e *WebPageEmpty) Encode() []byte

func (*WebPageEmpty) ImplementsWebPage

func (*WebPageEmpty) ImplementsWebPage()

type WebPageNotModified

type WebPageNotModified struct {
	CachedPageViews int32 `flag:"0"`
	// contains filtered or unexported fields
}

func (*WebPageNotModified) CRC

func (*WebPageNotModified) CRC() uint32

func (*WebPageNotModified) Encode

func (e *WebPageNotModified) Encode() []byte

func (*WebPageNotModified) ImplementsWebPage

func (*WebPageNotModified) ImplementsWebPage()

type WebPageObj

type WebPageObj struct {
	Id          int64               `validate:"required"`
	Url         string              `validate:"required"`
	DisplayUrl  string              `validate:"required"`
	Hash        int32               `validate:"required"`
	Type        string              `flag:"0"`
	SiteName    string              `flag:"1"`
	Title       string              `flag:"2"`
	Description string              `flag:"3"`
	Photo       Photo               `flag:"4"`
	EmbedUrl    string              `flag:"5"`
	EmbedType   string              `flag:"5"`
	EmbedWidth  int32               `flag:"6"`
	EmbedHeight int32               `flag:"6"`
	Duration    int32               `flag:"7"`
	Author      string              `flag:"8"`
	Document    Document            `flag:"9"`
	CachedPage  *Page               `flag:"10"`
	Attributes  []*WebPageAttribute `flag:"12"`
	// contains filtered or unexported fields
}

func (*WebPageObj) CRC

func (*WebPageObj) CRC() uint32

func (*WebPageObj) Encode

func (e *WebPageObj) Encode() []byte

func (*WebPageObj) ImplementsWebPage

func (*WebPageObj) ImplementsWebPage()

type WebPagePending

type WebPagePending struct {
	Id   int64 `validate:"required"`
	Date int32 `validate:"required"`
}

func (*WebPagePending) CRC

func (*WebPagePending) CRC() uint32

func (*WebPagePending) Encode

func (e *WebPagePending) Encode() []byte

func (*WebPagePending) ImplementsWebPage

func (*WebPagePending) ImplementsWebPage()

Directories

Path Synopsis
internal
srp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL