mtproto

package module
v0.0.0-...-1b4af5c Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 28 Imported by: 0

README

MTProto Client

Golang MTProto client (with personalized modification)

TL layer: 116

Commit: https://github.com/tdlib/td/commit/5b69e72b097573bda599ff040616eb735d2a2888

Usage

Setup Client

config := mtproto.NewAppConfig(appID, appHash)
m := mtproto.NewMTProto(config)
m.SetSession(session) // use session
m.UseIPv6(true) // use ipv6

if err := m.InitSessAndConnect(); err != nil {
	return err
}

Login (as Bot)

for {
	res := m.SendSync(mtproto.UpdatesGetState{})
	if mtproto.IsErrorType(res, mtproto.ErrUnauthorized) { 
		if err := m.AuthBot(token); err != nil {
			log.Errorln(err)
		}
		continue
	}
	_, ok := res.(mtproto.UpdatesState)
	if !ok {
		log.Errorln(err)
        continue
	}	
	break
}

Login (as User)

for {
	res := m.SendSync(mtproto.UpdatesGetState{})
	if mtproto.IsErrorType(res, mtproto.ErrUnauthorized) { 
		if err := m.Auth(mtproto.BaseAuth{}); err != nil {
			log.Errorln(err)
		}
		continue
	}
	_, ok := res.(mtproto.UpdatesState)
	if !ok {
		log.Errorln(err)
        continue
	}	
	break
}

Save Session

_ = m.CopySession().Save("cred.json")

Handle Updates

m.SetEventsHandler(updateHandler)

func updateHandler(update mtproto.TL) {
	switch u := update.(type) {
	case mtproto.UpdateNewChannelMessage:
		log.Printf("Channel Message %+v\n", u.Message)
	case mtproto.UpdateNewMessage:
		log.Printf("Message %+v\n", u.Message)
	case mtproto.UpdateChatParticipantAdd:
		log.Printf("New Member: %d %d\n", u.ChatID, u.UserID)
	case mtproto.Updates:
		for _, item := range u.Updates {
			updateHandler(item)
		}
	default:
		log.Printf("Unhandled Updates: %T", update)
	}
}

Send Message

userID := 391829189

m.Send(mtproto.MessagesSendMessage{
	Peer:     mtproto.InputPeerUser{UserID: userID},
	RandomID: rand.Int63(),
	Message:  "ACK",
})

Send Buttons

button1 := mtproto.KeyboardButtonCallback{
    Text: "OK?",	
    Data: []byte("ok"),
}
m.Send(mtproto.MessagesSendMessage{
	Flags:    1<<2,
	Peer:     mtproto.InputPeerUser{UserID: msg.FromID},
	RandomID: rand.Int63(),
	Message:  "Button Test",
	ReplyMarkup: mtproto.ReplyInlineMarkup{
		Rows: mtproto.SliceToTLStable([]mtproto.KeyboardButtonRow{
			{
				Buttons: []mtproto.TL{button1, button1, button1},
			},
		}),
	},
})

Upload files(Max: 2 GB)

fileName := ""

fs, err := os.Stat(fileName)
if err!= nil {
	panic(err)
}
size := fs.Size()
	
file, err := os.Open(fileName)
if err != nil {
	panic(err)
}
	
ps := int32(0)
bs := []int64{524288, 262144, 131072, 65536, 32768, 16384, 8192, 4096, 1024, 512, 64, 2}
var bsf int32
for _, p := range bs {
	if size / p < 3000 && size / p > 2 {
		bsf = int32(p)
		break
	}
}
total := int32(math.Ceil(float64(size) / float64(bsf)))
buf := make([]byte, bsf)
for {
	n, err := file.Read(buf)
	if err != nil {
		if err != io.EOF {
			panic(err)
		}
		break
	}
	log.Debug("Send FilePart: ", fileID, ps, total, n)
	res := m.SendSyncRetry(mtproto.UploadSaveBigFilePart{
		FileID:         fileID,
		FilePart:       ps,
		FileTotalParts: total,
		Bytes:          buf[:n],
	}, time.Second,5, time.Minute)
	log.Debug(res)
	ps++
}

res := mtproto.InputFileBig{
	ID:    fileID,
	Parts: total,
	Name:  fs.Name(),
}

Send Media (Using uploaded file)

attr := mtproto.DocumentAttributeVideo{
	Flags:             1 << 1,
	Duration:          120,
	SupportsStreaming: true,
	H: 720,
	W: 1280,
}
r := m.SendSync(mtproto.MessagesSendMedia{
	Peer:     mtproto.InputPeerUser{UserID: userID},
	RandomID: rand.Int63(),
	Message:      "Test",
	Media: mtproto.InputMediaUploadedDocument{
		File:         res,	
		MimeType:     "video/mp4",
		Attributes:   []mtproto.TL{attr},
	},
})

Information

Acknowledgement

Documentation

Index

Constants

View Source
const (
	ErrSeeOther     = int32(303)
	ErrBadRequest   = int32(400)
	ErrUnauthorized = int32(401)
	ErrForbidden    = int32(403)
	ErrNotFound     = int32(404)
	ErrFlood        = int32(420)
	ErrInternal     = int32(500)
)
View Source
const FloodWaitErrPrefix = "FLOOD_WAIT_"
View Source
const (
	Layer = 119
)
View Source
const RoutinesCount = 4

Variables

This section is empty.

Functions

func GenerateMessageId

func GenerateMessageId() int64

func GenerateNonce

func GenerateNonce(size int) []byte

func IsClosedConnErr

func IsClosedConnErr(err error) bool

func IsError

func IsError(obj TL, message string) bool

https://core.telegram.org/api/errors

func IsErrorType

func IsErrorType(obj TL, code int32) bool

func IsFloodError

func IsFloodError(obj TL) (time.Duration, bool)

func SliceConvert

func SliceConvert(slice interface{}, newSliceType reflect.Type) interface{}

func Sprint

func Sprint(obj TL) string

func StringifyMessage

func StringifyMessage(isIncoming bool, msg TL, id int64) string

func TLName

func TLName(obj interface{}) string

func UnexpectedTL

func UnexpectedTL(name string, obj TL) string

func WrapError

func WrapError(e error) error

func WrongRespError

func WrongRespError(obj TL) error

Types

type AccessPointRule

type AccessPointRule struct {
	PhonePrefixRules string
	DcID             int32
	Ips              []TL // IpPort
}

type AccountAcceptAuthorization

type AccountAcceptAuthorization struct {
	BotID       int32
	Scope       string
	PublicKey   string
	ValueHashes []TL // SecureValueHash
	Credentials TL   // SecureCredentialsEncrypted
}

type AccountAuthorizationForm

type AccountAuthorizationForm struct {
	Flags            int32
	RequiredTypes    []TL   // SecureRequiredType
	Values           []TL   // SecureValue
	Errors           []TL   // SecureValueError
	Users            []TL   // User
	PrivacyPolicyUrl string // flag
}

type AccountAuthorizations

type AccountAuthorizations struct {
	Authorizations []TL // Authorization
}

type AccountAutoDownloadSettings

type AccountAutoDownloadSettings struct {
	Low    TL // AutoDownloadSettings
	Medium TL // AutoDownloadSettings
	High   TL // AutoDownloadSettings
}

type AccountCancelPasswordEmail

type AccountCancelPasswordEmail struct {
}

type AccountChangePhone

type AccountChangePhone struct {
	PhoneNumber   string
	PhoneCodeHash string
	PhoneCode     string
}

type AccountCheckUsername

type AccountCheckUsername struct {
	Username string
}

type AccountConfirmPasswordEmail

type AccountConfirmPasswordEmail struct {
	Code string
}

type AccountConfirmPhone

type AccountConfirmPhone struct {
	PhoneCodeHash string
	PhoneCode     string
}

type AccountContentSettings

type AccountContentSettings struct {
	Flags              int32
	SensitiveEnabled   bool // flag
	SensitiveCanChange bool // flag
}

type AccountCreateTheme

type AccountCreateTheme struct {
	Flags    int32
	Slug     string
	Title    string
	Document TL // InputDocument // flag
	Settings TL // InputThemeSettings // flag
}

type AccountDaysTTL

type AccountDaysTTL struct {
	Days int32
}

type AccountDeleteAccount

type AccountDeleteAccount struct {
	Reason string
}

type AccountDeleteSecureValue

type AccountDeleteSecureValue struct {
	Types []TL // SecureValueType
}

type AccountFinishTakeoutSession

type AccountFinishTakeoutSession struct {
	Flags   int32
	Success bool // flag
}

type AccountGetAccountTTL

type AccountGetAccountTTL struct {
}

type AccountGetAllSecureValues

type AccountGetAllSecureValues struct {
}

type AccountGetAuthorizationForm

type AccountGetAuthorizationForm struct {
	BotID     int32
	Scope     string
	PublicKey string
}

type AccountGetAuthorizations

type AccountGetAuthorizations struct {
}

type AccountGetAutoDownloadSettings

type AccountGetAutoDownloadSettings struct {
}

type AccountGetContactSignUpNotification

type AccountGetContactSignUpNotification struct {
}

type AccountGetContentSettings

type AccountGetContentSettings struct {
}

type AccountGetGlobalPrivacySettings

type AccountGetGlobalPrivacySettings struct {
}

type AccountGetMultiWallPapers

type AccountGetMultiWallPapers struct {
	Wallpapers []TL // InputWallPaper
}

type AccountGetNotifyExceptions

type AccountGetNotifyExceptions struct {
	Flags        int32
	CompareSound bool // flag
	Peer         TL   // InputNotifyPeer // flag
}

type AccountGetNotifySettings

type AccountGetNotifySettings struct {
	Peer TL // InputNotifyPeer
}

type AccountGetPassword

type AccountGetPassword struct {
}

type AccountGetPasswordSettings

type AccountGetPasswordSettings struct {
	Password TL // InputCheckPasswordSRP
}

type AccountGetPrivacy

type AccountGetPrivacy struct {
	Key TL // InputPrivacyKey
}

type AccountGetSecureValue

type AccountGetSecureValue struct {
	Types []TL // SecureValueType
}

type AccountGetTheme

type AccountGetTheme struct {
	Format     string
	Theme      TL // InputTheme
	DocumentID int64
}

type AccountGetThemes

type AccountGetThemes struct {
	Format string
	Hash   int32
}

type AccountGetTmpPassword

type AccountGetTmpPassword struct {
	Password TL // InputCheckPasswordSRP
	Period   int32
}

type AccountGetWallPaper

type AccountGetWallPaper struct {
	Wallpaper TL // InputWallPaper
}

type AccountGetWallPapers

type AccountGetWallPapers struct {
	Hash int32
}

type AccountGetWebAuthorizations

type AccountGetWebAuthorizations struct {
}

type AccountInitTakeoutSession

type AccountInitTakeoutSession struct {
	Flags             int32
	Contacts          bool  // flag
	MessageUsers      bool  // flag
	MessageChats      bool  // flag
	MessageMegagroups bool  // flag
	MessageChannels   bool  // flag
	Files             bool  // flag
	FileMaxSize       int32 // flag
}

type AccountInstallTheme

type AccountInstallTheme struct {
	Flags  int32
	Dark   bool   // flag
	Format string // flag
	Theme  TL     // InputTheme // flag
}

type AccountInstallWallPaper

type AccountInstallWallPaper struct {
	Wallpaper TL // InputWallPaper
	Settings  TL // WallPaperSettings
}

type AccountPassword

type AccountPassword struct {
	Flags                   int32
	HasRecovery             bool   // flag
	HasSecureValues         bool   // flag
	HasPassword             bool   // flag
	CurrentAlgo             TL     // PasswordKdfAlgo // flag
	SrpB                    []byte // flag
	SrpID                   int64  // flag
	Hint                    string // flag
	EmailUnconfirmedPattern string // flag
	NewAlgo                 TL     // PasswordKdfAlgo
	NewSecureAlgo           TL     // SecurePasswordKdfAlgo
	SecureRandom            []byte
}

type AccountPasswordInputSettings

type AccountPasswordInputSettings struct {
	Flags             int32
	NewAlgo           TL     // PasswordKdfAlgo // flag
	NewPasswordHash   []byte // flag
	Hint              string // flag
	Email             string // flag
	NewSecureSettings TL     // SecureSecretSettings // flag
}

type AccountPasswordSettings

type AccountPasswordSettings struct {
	Flags          int32
	Email          string // flag
	SecureSettings TL     // SecureSecretSettings // flag
}

type AccountPrivacyRules

type AccountPrivacyRules struct {
	Rules []TL // PrivacyRule
	Chats []TL // Chat
	Users []TL // User
}

type AccountRegisterDevice

type AccountRegisterDevice struct {
	Flags      int32
	NoMuted    bool // flag
	TokenType  int32
	Token      string
	AppSandbox TL // Bool
	Secret     []byte
	OtherUids  []int32
}

type AccountReportPeer

type AccountReportPeer struct {
	Peer   TL // InputPeer
	Reason TL // ReportReason
}

type AccountResendPasswordEmail

type AccountResendPasswordEmail struct {
}

type AccountResetAuthorization

type AccountResetAuthorization struct {
	Hash int64
}

type AccountResetNotifySettings

type AccountResetNotifySettings struct {
}

type AccountResetWallPapers

type AccountResetWallPapers struct {
}

type AccountResetWebAuthorization

type AccountResetWebAuthorization struct {
	Hash int64
}

type AccountResetWebAuthorizations

type AccountResetWebAuthorizations struct {
}

type AccountSaveAutoDownloadSettings

type AccountSaveAutoDownloadSettings struct {
	Flags    int32
	Low      bool // flag
	High     bool // flag
	Settings TL   // AutoDownloadSettings
}

type AccountSaveSecureValue

type AccountSaveSecureValue struct {
	Value          TL // InputSecureValue
	SecureSecretID int64
}

type AccountSaveTheme

type AccountSaveTheme struct {
	Theme  TL // InputTheme
	Unsave TL // Bool
}

type AccountSaveWallPaper

type AccountSaveWallPaper struct {
	Wallpaper TL // InputWallPaper
	Unsave    TL // Bool
	Settings  TL // WallPaperSettings
}

type AccountSendChangePhoneCode

type AccountSendChangePhoneCode struct {
	PhoneNumber string
	Settings    TL // CodeSettings
}

type AccountSendConfirmPhoneCode

type AccountSendConfirmPhoneCode struct {
	Hash     string
	Settings TL // CodeSettings
}

type AccountSendVerifyEmailCode

type AccountSendVerifyEmailCode struct {
	Email string
}

type AccountSendVerifyPhoneCode

type AccountSendVerifyPhoneCode struct {
	PhoneNumber string
	Settings    TL // CodeSettings
}

type AccountSentEmailCode

type AccountSentEmailCode struct {
	EmailPattern string
	Length       int32
}

type AccountSetAccountTTL

type AccountSetAccountTTL struct {
	Ttl TL // AccountDaysTTL
}

type AccountSetContactSignUpNotification

type AccountSetContactSignUpNotification struct {
	Silent TL // Bool
}

type AccountSetContentSettings

type AccountSetContentSettings struct {
	Flags            int32
	SensitiveEnabled bool // flag
}

type AccountSetGlobalPrivacySettings

type AccountSetGlobalPrivacySettings struct {
	Settings TL // GlobalPrivacySettings
}

type AccountSetPrivacy

type AccountSetPrivacy struct {
	Key   TL   // InputPrivacyKey
	Rules []TL // InputPrivacyRule
}

type AccountTakeout

type AccountTakeout struct {
	ID int64
}

type AccountThemes

type AccountThemes struct {
	Hash   int32
	Themes []TL // Theme
}

type AccountThemesNotModified

type AccountThemesNotModified struct {
}

type AccountTmpPassword

type AccountTmpPassword struct {
	TmpPassword []byte
	ValidUntil  int32
}

type AccountUnregisterDevice

type AccountUnregisterDevice struct {
	TokenType int32
	Token     string
	OtherUids []int32
}

type AccountUpdateDeviceLocked

type AccountUpdateDeviceLocked struct {
	Period int32
}

type AccountUpdateNotifySettings

type AccountUpdateNotifySettings struct {
	Peer     TL // InputNotifyPeer
	Settings TL // InputPeerNotifySettings
}

type AccountUpdatePasswordSettings

type AccountUpdatePasswordSettings struct {
	Password    TL // InputCheckPasswordSRP
	NewSettings TL // account_PasswordInputSettings
}

type AccountUpdateProfile

type AccountUpdateProfile struct {
	Flags     int32
	FirstName string // flag
	LastName  string // flag
	About     string // flag
}

type AccountUpdateStatus

type AccountUpdateStatus struct {
	Offline TL // Bool
}

type AccountUpdateTheme

type AccountUpdateTheme struct {
	Flags    int32
	Format   string
	Theme    TL     // InputTheme
	Slug     string // flag
	Title    string // flag
	Document TL     // InputDocument // flag
	Settings TL     // InputThemeSettings // flag
}

type AccountUpdateUsername

type AccountUpdateUsername struct {
	Username string
}

type AccountUploadTheme

type AccountUploadTheme struct {
	Flags    int32
	File     TL // InputFile
	Thumb    TL // InputFile // flag
	FileName string
	MimeType string
}

type AccountUploadWallPaper

type AccountUploadWallPaper struct {
	File     TL // InputFile
	MimeType string
	Settings TL // WallPaperSettings
}

type AccountVerifyEmail

type AccountVerifyEmail struct {
	Email string
	Code  string
}

type AccountVerifyPhone

type AccountVerifyPhone struct {
	PhoneNumber   string
	PhoneCodeHash string
	PhoneCode     string
}

type AccountWallPapers

type AccountWallPapers struct {
	Hash       int32
	Wallpapers []TL // WallPaper
}

type AccountWallPapersNotModified

type AccountWallPapersNotModified struct {
}

type AccountWebAuthorizations

type AccountWebAuthorizations struct {
	Authorizations []TL // WebAuthorization
	Users          []TL // User
}

type AppConfig

type AppConfig struct {
	AppID          int32
	AppHash        string
	AppVersion     string
	DeviceModel    string
	SystemVersion  string
	SystemLangCode string
	LangPack       string
	LangCode       string
}

func NewAppConfig

func NewAppConfig(appID int32, appHash string) *AppConfig

type AuthAcceptLoginToken

type AuthAcceptLoginToken struct {
	Token []byte
}

type AuthAuthorization

type AuthAuthorization struct {
	Flags       int32
	TmpSessions int32 // flag
	User        TL    // User
}

type AuthAuthorizationSignUpRequired

type AuthAuthorizationSignUpRequired struct {
	Flags          int32
	TermsOfService TL // help_TermsOfService // flag
}

type AuthBindTempAuthKey

type AuthBindTempAuthKey struct {
	PermAuthKeyID    int64
	Nonce            int64
	ExpiresAt        int32
	EncryptedMessage []byte
}

type AuthCancelCode

type AuthCancelCode struct {
	PhoneNumber   string
	PhoneCodeHash string
}

type AuthCheckPassword

type AuthCheckPassword struct {
	Password TL // InputCheckPasswordSRP
}

type AuthCodeTypeCall

type AuthCodeTypeCall struct {
}

type AuthCodeTypeFlashCall

type AuthCodeTypeFlashCall struct {
}

type AuthCodeTypeSms

type AuthCodeTypeSms struct {
}

type AuthDataProvider

type AuthDataProvider interface {
	PhoneNumber() (string, error)
	Code() (string, error)
	Password() (string, error)
}

type AuthDropTempAuthKeys

type AuthDropTempAuthKeys struct {
	ExceptAuthKeys []int64
}

type AuthExportAuthorization

type AuthExportAuthorization struct {
	DcID int32
}

type AuthExportLoginToken

type AuthExportLoginToken struct {
	ApiID     int32
	ApiHash   string
	ExceptIds []int32
}

type AuthExportedAuthorization

type AuthExportedAuthorization struct {
	ID    int32
	Bytes []byte
}

type AuthImportAuthorization

type AuthImportAuthorization struct {
	ID    int32
	Bytes []byte
}

type AuthImportBotAuthorization

type AuthImportBotAuthorization struct {
	Flags        int32
	ApiID        int32
	ApiHash      string
	BotAuthToken string
}

type AuthImportLoginToken

type AuthImportLoginToken struct {
	Token []byte
}

type AuthLogOut

type AuthLogOut struct {
}

type AuthLoginToken

type AuthLoginToken struct {
	Expires int32
	Token   []byte
}

type AuthLoginTokenMigrateTo

type AuthLoginTokenMigrateTo struct {
	DcID  int32
	Token []byte
}

type AuthLoginTokenSuccess

type AuthLoginTokenSuccess struct {
	Authorization TL // auth_Authorization
}

type AuthPasswordRecovery

type AuthPasswordRecovery struct {
	EmailPattern string
}

type AuthRecoverPassword

type AuthRecoverPassword struct {
	Code string
}

type AuthRequestPasswordRecovery

type AuthRequestPasswordRecovery struct {
}

type AuthResendCode

type AuthResendCode struct {
	PhoneNumber   string
	PhoneCodeHash string
}

type AuthResetAuthorizations

type AuthResetAuthorizations struct {
}

type AuthSendCode

type AuthSendCode struct {
	PhoneNumber string
	ApiID       int32
	ApiHash     string
	Settings    TL // CodeSettings
}

type AuthSentCode

type AuthSentCode struct {
	Flags         int32
	Type          TL // auth_SentCodeType
	PhoneCodeHash string
	NextType      TL    // auth_CodeType // flag
	Timeout       int32 // flag
}

type AuthSentCodeTypeApp

type AuthSentCodeTypeApp struct {
	Length int32
}

type AuthSentCodeTypeCall

type AuthSentCodeTypeCall struct {
	Length int32
}

type AuthSentCodeTypeFlashCall

type AuthSentCodeTypeFlashCall struct {
	Pattern string
}

type AuthSentCodeTypeSms

type AuthSentCodeTypeSms struct {
	Length int32
}

type AuthSignIn

type AuthSignIn struct {
	PhoneNumber   string
	PhoneCodeHash string
	PhoneCode     string
}

type AuthSignUp

type AuthSignUp struct {
	PhoneNumber   string
	PhoneCodeHash string
	FirstName     string
	LastName      string
}

type Authorization

type Authorization struct {
	Flags           int32
	Current         bool // flag
	OfficialApp     bool // flag
	PasswordPending bool // flag
	Hash            int64
	DeviceModel     string
	Platform        string
	SystemVersion   string
	ApiID           int32
	AppName         string
	AppVersion      string
	DateCreated     int32
	DateActive      int32
	Ip              string
	Country         string
	Region          string
}

type AutoDownloadSettings

type AutoDownloadSettings struct {
	Flags                 int32
	Disabled              bool // flag
	VideoPreloadLarge     bool // flag
	AudioPreloadNext      bool // flag
	PhonecallsLessData    bool // flag
	PhotoSizeMax          int32
	VideoSizeMax          int32
	FileSizeMax           int32
	VideoUploadMaxbitrate int32
}

type BadMsgNotification

type BadMsgNotification struct {
	BadMsgID    int64
	BadMsgSeqno int32
	ErrorCode   int32
}

type BadServerSalt

type BadServerSalt struct {
	BadMsgID      int64
	BadMsgSeqno   int32
	ErrorCode     int32
	NewServerSalt int64
}

type BankCardOpenUrl

type BankCardOpenUrl struct {
	Url  string
	Name string
}

type BaseAuth

type BaseAuth struct{}

func (BaseAuth) Code

func (ap BaseAuth) Code() (string, error)

func (BaseAuth) Password

func (ap BaseAuth) Password() (string, error)

func (BaseAuth) PhoneNumber

func (ap BaseAuth) PhoneNumber() (string, error)

type BaseThemeArctic

type BaseThemeArctic struct {
}

type BaseThemeClassic

type BaseThemeClassic struct {
}

type BaseThemeDay

type BaseThemeDay struct {
}

type BaseThemeNight

type BaseThemeNight struct {
}

type BaseThemeTinted

type BaseThemeTinted struct {
}

type BindAuthKeyInner

type BindAuthKeyInner struct {
	Nonce         int64
	TempAuthKeyID int64
	PermAuthKeyID int64
	TempSessionID int64
	ExpiresAt     int32
}

type BoolFalse

type BoolFalse struct {
}

type BoolTrue

type BoolTrue struct {
}

type BotCommand

type BotCommand struct {
	Command     string
	Description string
}

type BotInfo

type BotInfo struct {
	UserID      int32
	Description string
	Commands    []TL // BotCommand
}

type BotInlineMediaResult

type BotInlineMediaResult struct {
	Flags       int32
	ID          string
	Type        string
	Photo       TL     // Photo // flag
	Document    TL     // Document // flag
	Title       string // flag
	Description string // flag
	SendMessage TL     // BotInlineMessage
}

type BotInlineMessageMediaAuto

type BotInlineMessageMediaAuto struct {
	Flags       int32
	Message     string
	Entities    []TL // MessageEntity // flag
	ReplyMarkup TL   // ReplyMarkup // flag
}

type BotInlineMessageMediaContact

type BotInlineMessageMediaContact struct {
	Flags       int32
	PhoneNumber string
	FirstName   string
	LastName    string
	Vcard       string
	ReplyMarkup TL // ReplyMarkup // flag
}

type BotInlineMessageMediaGeo

type BotInlineMessageMediaGeo struct {
	Flags       int32
	Geo         TL // GeoPoint
	Period      int32
	ReplyMarkup TL // ReplyMarkup // flag
}

type BotInlineMessageMediaVenue

type BotInlineMessageMediaVenue struct {
	Flags       int32
	Geo         TL // GeoPoint
	Title       string
	Address     string
	Provider    string
	VenueID     string
	VenueType   string
	ReplyMarkup TL // ReplyMarkup // flag
}

type BotInlineMessageText

type BotInlineMessageText struct {
	Flags       int32
	NoWebpage   bool // flag
	Message     string
	Entities    []TL // MessageEntity // flag
	ReplyMarkup TL   // ReplyMarkup // flag
}

type BotInlineResult

type BotInlineResult struct {
	Flags       int32
	ID          string
	Type        string
	Title       string // flag
	Description string // flag
	Url         string // flag
	Thumb       TL     // WebDocument // flag
	Content     TL     // WebDocument // flag
	SendMessage TL     // BotInlineMessage
}

type BotsAnswerWebhookJSONQuery

type BotsAnswerWebhookJSONQuery struct {
	QueryID int64
	Data    TL // DataJSON
}

type BotsSendCustomRequest

type BotsSendCustomRequest struct {
	CustomMethod string
	Params       TL // DataJSON
}

type BotsSetBotCommands

type BotsSetBotCommands struct {
	Commands []TL // BotCommand
}

type CdnConfig

type CdnConfig struct {
	PublicKeys []TL // CdnPublicKey
}

type CdnPublicKey

type CdnPublicKey struct {
	DcID      int32
	PublicKey string
}

type Channel

type Channel struct {
	Flags               int32
	Creator             bool // flag
	Left                bool // flag
	Broadcast           bool // flag
	Verified            bool // flag
	Megagroup           bool // flag
	Restricted          bool // flag
	Signatures          bool // flag
	Min                 bool // flag
	Scam                bool // flag
	HasLink             bool // flag
	HasGeo              bool // flag
	SlowmodeEnabled     bool // flag
	ID                  int32
	AccessHash          int64 // flag
	Title               string
	Username            string // flag
	Photo               TL     // ChatPhoto
	Date                int32
	Version             int32
	RestrictionReason   []TL  // RestrictionReason // flag
	AdminRights         TL    // ChatAdminRights // flag
	BannedRights        TL    // ChatBannedRights // flag
	DefaultBannedRights TL    // ChatBannedRights // flag
	ParticipantsCount   int32 // flag
}

type ChannelAdminLogEvent

type ChannelAdminLogEvent struct {
	ID     int64
	Date   int32
	UserID int32
	Action TL // ChannelAdminLogEventAction
}

type ChannelAdminLogEventActionChangeAbout

type ChannelAdminLogEventActionChangeAbout struct {
	PrevValue string
	NewValue  string
}

type ChannelAdminLogEventActionChangeLinkedChat

type ChannelAdminLogEventActionChangeLinkedChat struct {
	PrevValue int32
	NewValue  int32
}

type ChannelAdminLogEventActionChangeLocation

type ChannelAdminLogEventActionChangeLocation struct {
	PrevValue TL // ChannelLocation
	NewValue  TL // ChannelLocation
}

type ChannelAdminLogEventActionChangePhoto

type ChannelAdminLogEventActionChangePhoto struct {
	PrevPhoto TL // Photo
	NewPhoto  TL // Photo
}

type ChannelAdminLogEventActionChangeStickerSet

type ChannelAdminLogEventActionChangeStickerSet struct {
	PrevStickerset TL // InputStickerSet
	NewStickerset  TL // InputStickerSet
}

type ChannelAdminLogEventActionChangeTitle

type ChannelAdminLogEventActionChangeTitle struct {
	PrevValue string
	NewValue  string
}

type ChannelAdminLogEventActionChangeUsername

type ChannelAdminLogEventActionChangeUsername struct {
	PrevValue string
	NewValue  string
}

type ChannelAdminLogEventActionDefaultBannedRights

type ChannelAdminLogEventActionDefaultBannedRights struct {
	PrevBannedRights TL // ChatBannedRights
	NewBannedRights  TL // ChatBannedRights
}

type ChannelAdminLogEventActionDeleteMessage

type ChannelAdminLogEventActionDeleteMessage struct {
	Message TL // Message
}

type ChannelAdminLogEventActionEditMessage

type ChannelAdminLogEventActionEditMessage struct {
	PrevMessage TL // Message
	NewMessage  TL // Message
}

type ChannelAdminLogEventActionParticipantInvite

type ChannelAdminLogEventActionParticipantInvite struct {
	Participant TL // ChannelParticipant
}

type ChannelAdminLogEventActionParticipantJoin

type ChannelAdminLogEventActionParticipantJoin struct {
}

type ChannelAdminLogEventActionParticipantLeave

type ChannelAdminLogEventActionParticipantLeave struct {
}

type ChannelAdminLogEventActionParticipantToggleAdmin

type ChannelAdminLogEventActionParticipantToggleAdmin struct {
	PrevParticipant TL // ChannelParticipant
	NewParticipant  TL // ChannelParticipant
}

type ChannelAdminLogEventActionParticipantToggleBan

type ChannelAdminLogEventActionParticipantToggleBan struct {
	PrevParticipant TL // ChannelParticipant
	NewParticipant  TL // ChannelParticipant
}

type ChannelAdminLogEventActionStopPoll

type ChannelAdminLogEventActionStopPoll struct {
	Message TL // Message
}

type ChannelAdminLogEventActionToggleInvites

type ChannelAdminLogEventActionToggleInvites struct {
	NewValue TL // Bool
}

type ChannelAdminLogEventActionTogglePreHistoryHidden

type ChannelAdminLogEventActionTogglePreHistoryHidden struct {
	NewValue TL // Bool
}

type ChannelAdminLogEventActionToggleSignatures

type ChannelAdminLogEventActionToggleSignatures struct {
	NewValue TL // Bool
}

type ChannelAdminLogEventActionToggleSlowMode

type ChannelAdminLogEventActionToggleSlowMode struct {
	PrevValue int32
	NewValue  int32
}

type ChannelAdminLogEventActionUpdatePinned

type ChannelAdminLogEventActionUpdatePinned struct {
	Message TL // Message
}

type ChannelAdminLogEventsFilter

type ChannelAdminLogEventsFilter struct {
	Flags    int32
	Join     bool // flag
	Leave    bool // flag
	Invite   bool // flag
	Ban      bool // flag
	Unban    bool // flag
	Kick     bool // flag
	Unkick   bool // flag
	Promote  bool // flag
	Demote   bool // flag
	Info     bool // flag
	Settings bool // flag
	Pinned   bool // flag
	Edit     bool // flag
	Delete   bool // flag
}

type ChannelForbidden

type ChannelForbidden struct {
	Flags      int32
	Broadcast  bool // flag
	Megagroup  bool // flag
	ID         int32
	AccessHash int64
	Title      string
	UntilDate  int32 // flag
}

type ChannelFull

type ChannelFull struct {
	Flags                int32
	CanViewParticipants  bool // flag
	CanSetUsername       bool // flag
	CanSetStickers       bool // flag
	HiddenPrehistory     bool // flag
	CanSetLocation       bool // flag
	HasScheduled         bool // flag
	CanViewStats         bool // flag
	Blocked              bool // flag
	ID                   int32
	About                string
	ParticipantsCount    int32 // flag
	AdminsCount          int32 // flag
	KickedCount          int32 // flag
	BannedCount          int32 // flag
	OnlineCount          int32 // flag
	ReadInboxMaxID       int32
	ReadOutboxMaxID      int32
	UnreadCount          int32
	ChatPhoto            TL    // Photo
	NotifySettings       TL    // PeerNotifySettings
	ExportedInvite       TL    // ExportedChatInvite
	BotInfo              []TL  // BotInfo
	MigratedFromChatID   int32 // flag
	MigratedFromMaxID    int32 // flag
	PinnedMsgID          int32 // flag
	Stickerset           TL    // StickerSet // flag
	AvailableMinID       int32 // flag
	FolderID             int32 // flag
	LinkedChatID         int32 // flag
	Location             TL    // ChannelLocation // flag
	SlowmodeSeconds      int32 // flag
	SlowmodeNextSendDate int32 // flag
	StatsDc              int32 // flag
	Pts                  int32
}

type ChannelLocation

type ChannelLocation struct {
	GeoPoint TL // GeoPoint
	Address  string
}

type ChannelLocationEmpty

type ChannelLocationEmpty struct {
}

type ChannelMessagesFilter

type ChannelMessagesFilter struct {
	Flags              int32
	ExcludeNewMessages bool // flag
	Ranges             []TL // MessageRange
}

type ChannelMessagesFilterEmpty

type ChannelMessagesFilterEmpty struct {
}

type ChannelParticipant

type ChannelParticipant struct {
	UserID int32
	Date   int32
}

type ChannelParticipantAdmin

type ChannelParticipantAdmin struct {
	Flags       int32
	CanEdit     bool // flag
	Self        bool // flag
	UserID      int32
	InviterID   int32 // flag
	PromotedBy  int32
	Date        int32
	AdminRights TL     // ChatAdminRights
	Rank        string // flag
}

type ChannelParticipantBanned

type ChannelParticipantBanned struct {
	Flags        int32
	Left         bool // flag
	UserID       int32
	KickedBy     int32
	Date         int32
	BannedRights TL // ChatBannedRights
}

type ChannelParticipantCreator

type ChannelParticipantCreator struct {
	Flags       int32
	UserID      int32
	AdminRights TL     // ChatAdminRights
	Rank        string // flag
}

type ChannelParticipantSelf

type ChannelParticipantSelf struct {
	UserID    int32
	InviterID int32
	Date      int32
}

type ChannelParticipantsAdmins

type ChannelParticipantsAdmins struct {
}

type ChannelParticipantsBanned

type ChannelParticipantsBanned struct {
	Q string
}

type ChannelParticipantsBots

type ChannelParticipantsBots struct {
}

type ChannelParticipantsContacts

type ChannelParticipantsContacts struct {
	Q string
}

type ChannelParticipantsKicked

type ChannelParticipantsKicked struct {
	Q string
}

type ChannelParticipantsRecent

type ChannelParticipantsRecent struct {
}

type ChannelParticipantsSearch

type ChannelParticipantsSearch struct {
	Q string
}

type ChannelsAdminLogResults

type ChannelsAdminLogResults struct {
	Events []TL // ChannelAdminLogEvent
	Chats  []TL // Chat
	Users  []TL // User
}

type ChannelsChannelParticipant

type ChannelsChannelParticipant struct {
	Participant TL   // ChannelParticipant
	Users       []TL // User
}

type ChannelsChannelParticipants

type ChannelsChannelParticipants struct {
	Count        int32
	Participants []TL // ChannelParticipant
	Users        []TL // User
}

type ChannelsChannelParticipantsNotModified

type ChannelsChannelParticipantsNotModified struct {
}

type ChannelsCheckUsername

type ChannelsCheckUsername struct {
	Channel  TL // InputChannel
	Username string
}

type ChannelsCreateChannel

type ChannelsCreateChannel struct {
	Flags     int32
	Broadcast bool // flag
	Megagroup bool // flag
	Title     string
	About     string
	GeoPoint  TL     // InputGeoPoint // flag
	Address   string // flag
}

type ChannelsDeleteChannel

type ChannelsDeleteChannel struct {
	Channel TL // InputChannel
}

type ChannelsDeleteHistory

type ChannelsDeleteHistory struct {
	Channel TL // InputChannel
	MaxID   int32
}

type ChannelsDeleteMessages

type ChannelsDeleteMessages struct {
	Channel TL // InputChannel
	ID      []int32
}

type ChannelsDeleteUserHistory

type ChannelsDeleteUserHistory struct {
	Channel TL // InputChannel
	UserID  TL // InputUser
}

type ChannelsEditAdmin

type ChannelsEditAdmin struct {
	Channel     TL // InputChannel
	UserID      TL // InputUser
	AdminRights TL // ChatAdminRights
	Rank        string
}

type ChannelsEditBanned

type ChannelsEditBanned struct {
	Channel      TL // InputChannel
	UserID       TL // InputUser
	BannedRights TL // ChatBannedRights
}

type ChannelsEditCreator

type ChannelsEditCreator struct {
	Channel  TL // InputChannel
	UserID   TL // InputUser
	Password TL // InputCheckPasswordSRP
}

type ChannelsEditLocation

type ChannelsEditLocation struct {
	Channel  TL // InputChannel
	GeoPoint TL // InputGeoPoint
	Address  string
}

type ChannelsEditPhoto

type ChannelsEditPhoto struct {
	Channel TL // InputChannel
	Photo   TL // InputChatPhoto
}

type ChannelsEditTitle

type ChannelsEditTitle struct {
	Channel TL // InputChannel
	Title   string
}
type ChannelsExportMessageLink struct {
	Flags   int32
	Grouped bool // flag
	Thread  bool // flag
	Channel TL   // InputChannel
	ID      int32
}

type ChannelsGetAdminLog

type ChannelsGetAdminLog struct {
	Flags        int32
	Channel      TL // InputChannel
	Q            string
	EventsFilter TL   // ChannelAdminLogEventsFilter // flag
	Admins       []TL // InputUser // flag
	MaxID        int64
	MinID        int64
	Limit        int32
}

type ChannelsGetAdminedPublicChannels

type ChannelsGetAdminedPublicChannels struct {
	Flags      int32
	ByLocation bool // flag
	CheckLimit bool // flag
}

type ChannelsGetChannels

type ChannelsGetChannels struct {
	ID []TL // InputChannel
}

type ChannelsGetFullChannel

type ChannelsGetFullChannel struct {
	Channel TL // InputChannel
}

type ChannelsGetGroupsForDiscussion

type ChannelsGetGroupsForDiscussion struct {
}

type ChannelsGetInactiveChannels

type ChannelsGetInactiveChannels struct {
}

type ChannelsGetLeftChannels

type ChannelsGetLeftChannels struct {
	Offset int32
}

type ChannelsGetMessages

type ChannelsGetMessages struct {
	Channel TL   // InputChannel
	ID      []TL // InputMessage
}

type ChannelsGetParticipant

type ChannelsGetParticipant struct {
	Channel TL // InputChannel
	UserID  TL // InputUser
}

type ChannelsGetParticipants

type ChannelsGetParticipants struct {
	Channel TL // InputChannel
	Filter  TL // ChannelParticipantsFilter
	Offset  int32
	Limit   int32
	Hash    int32
}

type ChannelsInviteToChannel

type ChannelsInviteToChannel struct {
	Channel TL   // InputChannel
	Users   []TL // InputUser
}

type ChannelsJoinChannel

type ChannelsJoinChannel struct {
	Channel TL // InputChannel
}

type ChannelsLeaveChannel

type ChannelsLeaveChannel struct {
	Channel TL // InputChannel
}

type ChannelsReadHistory

type ChannelsReadHistory struct {
	Channel TL // InputChannel
	MaxID   int32
}

type ChannelsReadMessageContents

type ChannelsReadMessageContents struct {
	Channel TL // InputChannel
	ID      []int32
}

type ChannelsReportSpam

type ChannelsReportSpam struct {
	Channel TL // InputChannel
	UserID  TL // InputUser
	ID      []int32
}

type ChannelsSetDiscussionGroup

type ChannelsSetDiscussionGroup struct {
	Broadcast TL // InputChannel
	Group     TL // InputChannel
}

type ChannelsSetStickers

type ChannelsSetStickers struct {
	Channel    TL // InputChannel
	Stickerset TL // InputStickerSet
}

type ChannelsTogglePreHistoryHidden

type ChannelsTogglePreHistoryHidden struct {
	Channel TL // InputChannel
	Enabled TL // Bool
}

type ChannelsToggleSignatures

type ChannelsToggleSignatures struct {
	Channel TL // InputChannel
	Enabled TL // Bool
}

type ChannelsToggleSlowMode

type ChannelsToggleSlowMode struct {
	Channel TL // InputChannel
	Seconds int32
}

type ChannelsUpdateUsername

type ChannelsUpdateUsername struct {
	Channel  TL // InputChannel
	Username string
}

type Chat

type Chat struct {
	Flags               int32
	Creator             bool // flag
	Kicked              bool // flag
	Left                bool // flag
	Deactivated         bool // flag
	ID                  int32
	Title               string
	Photo               TL // ChatPhoto
	ParticipantsCount   int32
	Date                int32
	Version             int32
	MigratedTo          TL // InputChannel // flag
	AdminRights         TL // ChatAdminRights // flag
	DefaultBannedRights TL // ChatBannedRights // flag
}

type ChatAdminRights

type ChatAdminRights struct {
	Flags          int32
	ChangeInfo     bool // flag
	PostMessages   bool // flag
	EditMessages   bool // flag
	DeleteMessages bool // flag
	BanUsers       bool // flag
	InviteUsers    bool // flag
	PinMessages    bool // flag
	AddAdmins      bool // flag
	Anonymous      bool // flag
}

type ChatBannedRights

type ChatBannedRights struct {
	Flags        int32
	ViewMessages bool // flag
	SendMessages bool // flag
	SendMedia    bool // flag
	SendStickers bool // flag
	SendGifs     bool // flag
	SendGames    bool // flag
	SendInline   bool // flag
	EmbedLinks   bool // flag
	SendPolls    bool // flag
	ChangeInfo   bool // flag
	InviteUsers  bool // flag
	PinMessages  bool // flag
	UntilDate    int32
}

type ChatEmpty

type ChatEmpty struct {
	ID int32
}

type ChatForbidden

type ChatForbidden struct {
	ID    int32
	Title string
}

type ChatFull

type ChatFull struct {
	Flags          int32
	CanSetUsername bool // flag
	HasScheduled   bool // flag
	ID             int32
	About          string
	Participants   TL    // ChatParticipants
	ChatPhoto      TL    // Photo // flag
	NotifySettings TL    // PeerNotifySettings
	ExportedInvite TL    // ExportedChatInvite
	BotInfo        []TL  // BotInfo // flag
	PinnedMsgID    int32 // flag
	FolderID       int32 // flag
}

type ChatInvite

type ChatInvite struct {
	Flags             int32
	Channel           bool // flag
	Broadcast         bool // flag
	Public            bool // flag
	Megagroup         bool // flag
	Title             string
	Photo             TL // Photo
	ParticipantsCount int32
	Participants      []TL // User // flag
}

type ChatInviteAlready

type ChatInviteAlready struct {
	Chat TL // Chat
}

type ChatInviteEmpty

type ChatInviteEmpty struct {
}

type ChatInviteExported

type ChatInviteExported struct {
	Link string
}

type ChatInvitePeek

type ChatInvitePeek struct {
	Chat    TL // Chat
	Expires int32
}

type ChatOnlines

type ChatOnlines struct {
	Onlines int32
}

type ChatParticipant

type ChatParticipant struct {
	UserID    int32
	InviterID int32
	Date      int32
}

type ChatParticipantAdmin

type ChatParticipantAdmin struct {
	UserID    int32
	InviterID int32
	Date      int32
}

type ChatParticipantCreator

type ChatParticipantCreator struct {
	UserID int32
}

type ChatParticipants

type ChatParticipants struct {
	ChatID       int32
	Participants []TL // ChatParticipant
	Version      int32
}

type ChatParticipantsForbidden

type ChatParticipantsForbidden struct {
	Flags           int32
	ChatID          int32
	SelfParticipant TL // ChatParticipant // flag
}

type ChatPhoto

type ChatPhoto struct {
	Flags      int32
	HasVideo   bool // flag
	PhotoSmall TL   // FileLocation
	PhotoBig   TL   // FileLocation
	DcID       int32
}

type ChatPhotoEmpty

type ChatPhotoEmpty struct {
}

type ClientDHInnerData

type ClientDHInnerData struct {
	Nonce       []byte
	ServerNonce []byte
	RetryID     int64
	GB          string
}

type CodeSettings

type CodeSettings struct {
	Flags          int32
	AllowFlashcall bool // flag
	CurrentNumber  bool // flag
	AllowAppHash   bool // flag
}

type Config

type Config struct {
	Flags                   int32
	PhonecallsEnabled       bool // flag
	DefaultP2pContacts      bool // flag
	PreloadFeaturedStickers bool // flag
	IgnorePhoneEntities     bool // flag
	RevokePmInbox           bool // flag
	BlockedMode             bool // flag
	PfsEnabled              bool // flag
	Date                    int32
	Expires                 int32
	TestMode                TL // Bool
	ThisDc                  int32
	DcOptions               []TL // DcOption
	DcTxtDomainName         string
	ChatSizeMax             int32
	MegagroupSizeMax        int32
	ForwardedCountMax       int32
	OnlineUpdatePeriodMs    int32
	OfflineBlurTimeoutMs    int32
	OfflineIdleTimeoutMs    int32
	OnlineCloudTimeoutMs    int32
	NotifyCloudDelayMs      int32
	NotifyDefaultDelayMs    int32
	PushChatPeriodMs        int32
	PushChatLimit           int32
	SavedGifsLimit          int32
	EditTimeLimit           int32
	RevokeTimeLimit         int32
	RevokePmTimeLimit       int32
	RatingEDecay            int32
	StickersRecentLimit     int32
	StickersFavedLimit      int32
	ChannelsReadMediaPeriod int32
	TmpSessions             int32 // flag
	PinnedDialogsCountMax   int32
	PinnedInfolderCountMax  int32
	CallReceiveTimeoutMs    int32
	CallRingTimeoutMs       int32
	CallConnectTimeoutMs    int32
	CallPacketTimeoutMs     int32
	MeUrlPrefix             string
	AutoupdateUrlPrefix     string // flag
	GifSearchUsername       string // flag
	VenueSearchUsername     string // flag
	ImgSearchUsername       string // flag
	StaticMapsProvider      string // flag
	CaptionLengthMax        int32
	MessageLengthMax        int32
	WebfileDcID             int32
	SuggestedLangCode       string // flag
	LangPackVersion         int32  // flag
	BaseLangPackVersion     int32  // flag
}

type Contact

type Contact struct {
	UserID int32
	Mutual TL // Bool
}

type ContactStatus

type ContactStatus struct {
	UserID int32
	Status TL // UserStatus
}

type ContactsAcceptContact

type ContactsAcceptContact struct {
	ID TL // InputUser
}

type ContactsAddContact

type ContactsAddContact struct {
	Flags                    int32
	AddPhonePrivacyException bool // flag
	ID                       TL   // InputUser
	FirstName                string
	LastName                 string
	Phone                    string
}

type ContactsBlock

type ContactsBlock struct {
	ID TL // InputPeer
}

type ContactsBlockFromReplies

type ContactsBlockFromReplies struct {
	Flags         int32
	DeleteMessage bool // flag
	DeleteHistory bool // flag
	ReportSpam    bool // flag
	MsgID         int32
}

type ContactsBlocked

type ContactsBlocked struct {
	Blocked []TL // PeerBlocked
	Chats   []TL // Chat
	Users   []TL // User
}

type ContactsBlockedSlice

type ContactsBlockedSlice struct {
	Count   int32
	Blocked []TL // PeerBlocked
	Chats   []TL // Chat
	Users   []TL // User
}

type ContactsContacts

type ContactsContacts struct {
	Contacts   []TL // Contact
	SavedCount int32
	Users      []TL // User
}

type ContactsContactsNotModified

type ContactsContactsNotModified struct {
}

type ContactsDeleteByPhones

type ContactsDeleteByPhones struct {
	Phones []string
}

type ContactsDeleteContacts

type ContactsDeleteContacts struct {
	ID []TL // InputUser
}

type ContactsFound

type ContactsFound struct {
	MyResults []TL // Peer
	Results   []TL // Peer
	Chats     []TL // Chat
	Users     []TL // User
}

type ContactsGetBlocked

type ContactsGetBlocked struct {
	Offset int32
	Limit  int32
}

type ContactsGetContactIDs

type ContactsGetContactIDs struct {
	Hash int32
}

type ContactsGetContacts

type ContactsGetContacts struct {
	Hash int32
}

type ContactsGetLocated

type ContactsGetLocated struct {
	Flags       int32
	Background  bool  // flag
	GeoPoint    TL    // InputGeoPoint
	SelfExpires int32 // flag
}

type ContactsGetSaved

type ContactsGetSaved struct {
}

type ContactsGetStatuses

type ContactsGetStatuses struct {
}

type ContactsGetTopPeers

type ContactsGetTopPeers struct {
	Flags          int32
	Correspondents bool // flag
	BotsPm         bool // flag
	BotsInline     bool // flag
	PhoneCalls     bool // flag
	ForwardUsers   bool // flag
	ForwardChats   bool // flag
	Groups         bool // flag
	Channels       bool // flag
	Offset         int32
	Limit          int32
	Hash           int32
}

type ContactsImportContacts

type ContactsImportContacts struct {
	Contacts []TL // InputContact
}

type ContactsImportedContacts

type ContactsImportedContacts struct {
	Imported       []TL // ImportedContact
	PopularInvites []TL // PopularContact
	RetryContacts  []int64
	Users          []TL // User
}

type ContactsResetSaved

type ContactsResetSaved struct {
}

type ContactsResetTopPeerRating

type ContactsResetTopPeerRating struct {
	Category TL // TopPeerCategory
	Peer     TL // InputPeer
}

type ContactsResolveUsername

type ContactsResolveUsername struct {
	Username string
}

type ContactsResolvedPeer

type ContactsResolvedPeer struct {
	Peer  TL   // Peer
	Chats []TL // Chat
	Users []TL // User
}

type ContactsSearch

type ContactsSearch struct {
	Q     string
	Limit int32
}

type ContactsToggleTopPeers

type ContactsToggleTopPeers struct {
	Enabled TL // Bool
}

type ContactsTopPeers

type ContactsTopPeers struct {
	Categories []TL // TopPeerCategoryPeers
	Chats      []TL // Chat
	Users      []TL // User
}

type ContactsTopPeersDisabled

type ContactsTopPeersDisabled struct {
}

type ContactsTopPeersNotModified

type ContactsTopPeersNotModified struct {
}

type ContactsUnblock

type ContactsUnblock struct {
	ID TL // InputPeer
}

type DataJSON

type DataJSON struct {
	Data string
}

type DcOption

type DcOption struct {
	Flags     int32
	Ipv6      bool // flag
	MediaOnly bool // flag
	TcpoOnly  bool // flag
	Cdn       bool // flag
	Static    bool // flag
	ID        int32
	IpAddress string
	Port      int32
	Secret    []byte // flag
}

type DecodeBuf

type DecodeBuf struct {
	// contains filtered or unexported fields
}

func NewDecodeBuf

func NewDecodeBuf(b []byte) *DecodeBuf

func (*DecodeBuf) BigInt

func (m *DecodeBuf) BigInt() *big.Int

func (*DecodeBuf) Bool

func (m *DecodeBuf) Bool() bool

func (*DecodeBuf) Bytes

func (m *DecodeBuf) Bytes(size int) []byte

func (*DecodeBuf) Double

func (m *DecodeBuf) Double() float64

func (*DecodeBuf) FlaggedBigInt

func (m *DecodeBuf) FlaggedBigInt(flags, num int32) *big.Int

func (*DecodeBuf) FlaggedDouble

func (m *DecodeBuf) FlaggedDouble(flags, num int32) float64

func (*DecodeBuf) FlaggedInt

func (m *DecodeBuf) FlaggedInt(flags, num int32) int32

func (*DecodeBuf) FlaggedLong

func (m *DecodeBuf) FlaggedLong(flags, num int32) int64

func (*DecodeBuf) FlaggedObject

func (m *DecodeBuf) FlaggedObject(flags, num int32) TL

func (*DecodeBuf) FlaggedString

func (m *DecodeBuf) FlaggedString(flags, num int32) string

func (*DecodeBuf) FlaggedStringBytes

func (m *DecodeBuf) FlaggedStringBytes(flags, num int32) []byte

func (*DecodeBuf) FlaggedUInt

func (m *DecodeBuf) FlaggedUInt(flags, num int32) uint32

func (*DecodeBuf) FlaggedVector

func (m *DecodeBuf) FlaggedVector(flags, num int32) []TL

func (*DecodeBuf) FlaggedVectorInt

func (m *DecodeBuf) FlaggedVectorInt(flags, num int32) []int32

func (*DecodeBuf) FlaggedVectorLong

func (m *DecodeBuf) FlaggedVectorLong(flags, num int32) []int64

func (*DecodeBuf) FlaggedVectorString

func (m *DecodeBuf) FlaggedVectorString(flags, num int32) []string

func (*DecodeBuf) Int

func (m *DecodeBuf) Int() int32

func (*DecodeBuf) Long

func (m *DecodeBuf) Long() int64

func (*DecodeBuf) Object

func (m *DecodeBuf) Object() TL

func (*DecodeBuf) ObjectGenerated

func (m *DecodeBuf) ObjectGenerated(constructor uint32) (r TL)

func (*DecodeBuf) SeekBack

func (m *DecodeBuf) SeekBack(n int)

func (*DecodeBuf) String

func (m *DecodeBuf) String() string

func (*DecodeBuf) StringBytes

func (m *DecodeBuf) StringBytes() []byte

func (*DecodeBuf) UInt

func (m *DecodeBuf) UInt() uint32

func (*DecodeBuf) Vector

func (m *DecodeBuf) Vector() []TL

func (*DecodeBuf) VectorInt

func (m *DecodeBuf) VectorInt() []int32

func (*DecodeBuf) VectorLong

func (m *DecodeBuf) VectorLong() []int64

func (*DecodeBuf) VectorString

func (m *DecodeBuf) VectorString() []string

type DestroyAuthKey

type DestroyAuthKey struct {
}

type DestroyAuthKeyFail

type DestroyAuthKeyFail struct {
}

type DestroyAuthKeyNone

type DestroyAuthKeyNone struct {
}

type DestroyAuthKeyOk

type DestroyAuthKeyOk struct {
}

type DestroySession

type DestroySession struct {
	SessionID int64
}

type DestroySessionNone

type DestroySessionNone struct {
	SessionID int64
}

type DestroySessionOk

type DestroySessionOk struct {
	SessionID int64
}

type DhGenFail

type DhGenFail struct {
	Nonce         []byte
	ServerNonce   []byte
	NewNonceHash3 []byte
}

type DhGenOk

type DhGenOk struct {
	Nonce         []byte
	ServerNonce   []byte
	NewNonceHash1 []byte
}

type DhGenRetry

type DhGenRetry struct {
	Nonce         []byte
	ServerNonce   []byte
	NewNonceHash2 []byte
}

type Dialog

type Dialog struct {
	Flags               int32
	Pinned              bool // flag
	UnreadMark          bool // flag
	Peer                TL   // Peer
	TopMessage          int32
	ReadInboxMaxID      int32
	ReadOutboxMaxID     int32
	UnreadCount         int32
	UnreadMentionsCount int32
	NotifySettings      TL    // PeerNotifySettings
	Pts                 int32 // flag
	Draft               TL    // DraftMessage // flag
	FolderID            int32 // flag
}

type DialogFilter

type DialogFilter struct {
	Flags           int32
	Contacts        bool // flag
	NonContacts     bool // flag
	Groups          bool // flag
	Broadcasts      bool // flag
	Bots            bool // flag
	ExcludeMuted    bool // flag
	ExcludeRead     bool // flag
	ExcludeArchived bool // flag
	ID              int32
	Title           string
	Emoticon        string // flag
	PinnedPeers     []TL   // InputPeer
	IncludePeers    []TL   // InputPeer
	ExcludePeers    []TL   // InputPeer
}

type DialogFilterSuggested

type DialogFilterSuggested struct {
	Filter      TL // DialogFilter
	Description string
}

type DialogFolder

type DialogFolder struct {
	Flags                      int32
	Pinned                     bool // flag
	Folder                     TL   // Folder
	Peer                       TL   // Peer
	TopMessage                 int32
	UnreadMutedPeersCount      int32
	UnreadUnmutedPeersCount    int32
	UnreadMutedMessagesCount   int32
	UnreadUnmutedMessagesCount int32
}

type DialogPeer

type DialogPeer struct {
	Peer TL // Peer
}

type DialogPeerFolder

type DialogPeerFolder struct {
	FolderID int32
}

type Document

type Document struct {
	Flags         int32
	ID            int64
	AccessHash    int64
	FileReference []byte
	Date          int32
	MimeType      string
	Size          int32
	Thumbs        []TL // PhotoSize // flag
	VideoThumbs   []TL // VideoSize // flag
	DcID          int32
	Attributes    []TL // DocumentAttribute
}

type DocumentAttributeAnimated

type DocumentAttributeAnimated struct {
}

type DocumentAttributeAudio

type DocumentAttributeAudio struct {
	Flags     int32
	Voice     bool // flag
	Duration  int32
	Title     string // flag
	Performer string // flag
	Waveform  []byte // flag
}

type DocumentAttributeFilename

type DocumentAttributeFilename struct {
	FileName string
}

type DocumentAttributeHasStickers

type DocumentAttributeHasStickers struct {
}

type DocumentAttributeImageSize

type DocumentAttributeImageSize struct {
	W int32
	H int32
}

type DocumentAttributeSticker

type DocumentAttributeSticker struct {
	Flags      int32
	Mask       bool // flag
	Alt        string
	Stickerset TL // InputStickerSet
	MaskCoords TL // MaskCoords // flag
}

type DocumentAttributeVideo

type DocumentAttributeVideo struct {
	Flags             int32
	RoundMessage      bool // flag
	SupportsStreaming bool // flag
	Duration          int32
	W                 int32
	H                 int32
}

type DocumentEmpty

type DocumentEmpty struct {
	ID int64
}

type DraftMessage

type DraftMessage struct {
	Flags        int32
	NoWebpage    bool  // flag
	ReplyToMsgID int32 // flag
	Message      string
	Entities     []TL // MessageEntity // flag
	Date         int32
}

type DraftMessageEmpty

type DraftMessageEmpty struct {
	Flags int32
	Date  int32 // flag
}

type EmojiKeyword

type EmojiKeyword struct {
	Keyword   string
	Emoticons []string
}

type EmojiKeywordDeleted

type EmojiKeywordDeleted struct {
	Keyword   string
	Emoticons []string
}

type EmojiKeywordsDifference

type EmojiKeywordsDifference struct {
	LangCode    string
	FromVersion int32
	Version     int32
	Keywords    []TL // EmojiKeyword
}

type EmojiLanguage

type EmojiLanguage struct {
	LangCode string
}

type EmojiURL

type EmojiURL struct {
	Url string
}

type EncodeBuf

type EncodeBuf struct {
	// contains filtered or unexported fields
}

func NewEncodeBuf

func NewEncodeBuf(cap int) *EncodeBuf

func (*EncodeBuf) BigInt

func (e *EncodeBuf) BigInt(s *big.Int)

func (*EncodeBuf) Bytes

func (e *EncodeBuf) Bytes(s []byte)

func (*EncodeBuf) Double

func (e *EncodeBuf) Double(s float64)

func (*EncodeBuf) Int

func (e *EncodeBuf) Int(s int32)

func (*EncodeBuf) Long

func (e *EncodeBuf) Long(s int64)

func (*EncodeBuf) String

func (e *EncodeBuf) String(s string)

func (*EncodeBuf) StringBytes

func (e *EncodeBuf) StringBytes(s []byte)

func (*EncodeBuf) UInt

func (e *EncodeBuf) UInt(s uint32)

func (*EncodeBuf) Vector

func (e *EncodeBuf) Vector(v []TL)

func (*EncodeBuf) VectorInt

func (e *EncodeBuf) VectorInt(v []int32)

func (*EncodeBuf) VectorLong

func (e *EncodeBuf) VectorLong(v []int64)

func (*EncodeBuf) VectorString

func (e *EncodeBuf) VectorString(v []string)

type EncryptedChat

type EncryptedChat struct {
	ID             int32
	AccessHash     int64
	Date           int32
	AdminID        int32
	ParticipantID  int32
	GAOrB          []byte
	KeyFingerprint int64
}

type EncryptedChatDiscarded

type EncryptedChatDiscarded struct {
	ID int32
}

type EncryptedChatEmpty

type EncryptedChatEmpty struct {
	ID int32
}

type EncryptedChatRequested

type EncryptedChatRequested struct {
	Flags         int32
	FolderID      int32 // flag
	ID            int32
	AccessHash    int64
	Date          int32
	AdminID       int32
	ParticipantID int32
	GA            []byte
}

type EncryptedChatWaiting

type EncryptedChatWaiting struct {
	ID            int32
	AccessHash    int64
	Date          int32
	AdminID       int32
	ParticipantID int32
}

type EncryptedFile

type EncryptedFile struct {
	ID             int64
	AccessHash     int64
	Size           int32
	DcID           int32
	KeyFingerprint int32
}

type EncryptedFileEmpty

type EncryptedFileEmpty struct {
}

type EncryptedMessage

type EncryptedMessage struct {
	RandomID int64
	ChatID   int32
	Date     int32
	Bytes    []byte
	File     TL // EncryptedFile
}

type EncryptedMessageService

type EncryptedMessageService struct {
	RandomID int64
	ChatID   int32
	Date     int32
	Bytes    []byte
}

type Error

type Error struct {
	Code int32
	Text string
}
type ExportedMessageLink struct {
	Link string
	Html string
}

type FileHash

type FileHash struct {
	Offset int32
	Limit  int32
	Hash   []byte
}

type FileLocationToBeDeprecated

type FileLocationToBeDeprecated struct {
	VolumeID int64
	LocalID  int32
}

type Folder

type Folder struct {
	Flags                     int32
	AutofillNewBroadcasts     bool // flag
	AutofillPublicGroups      bool // flag
	AutofillNewCorrespondents bool // flag
	ID                        int32
	Title                     string
	Photo                     TL // ChatPhoto // flag
}

type FolderPeer

type FolderPeer struct {
	Peer     TL // Peer
	FolderID int32
}

type FoldersDeleteFolder

type FoldersDeleteFolder struct {
	FolderID int32
}

type FoldersEditPeerFolders

type FoldersEditPeerFolders struct {
	FolderPeers []TL // InputFolderPeer
}

type FutureSalt

type FutureSalt struct {
	ValidSince int32
	ValidUntil int32
	Salt       int64
}

type FutureSalts

type FutureSalts struct {
	ReqMsgID int64
	Now      int32
	Salts    []TL // Future_salt
}

type Game

type Game struct {
	Flags       int32
	ID          int64
	AccessHash  int64
	ShortName   string
	Title       string
	Description string
	Photo       TL // Photo
	Document    TL // Document // flag
}

type GeoPoint

type GeoPoint struct {
	Long       float64
	Lat        float64
	AccessHash int64
}

type GeoPointEmpty

type GeoPointEmpty struct {
}

type GetFutureSalts

type GetFutureSalts struct {
	Num int32
}

type GlobalPrivacySettings

type GlobalPrivacySettings struct {
	Flags                            int32
	ArchiveAndMuteNewNoncontactPeers TL // Bool // flag
}

type HelpAcceptTermsOfService

type HelpAcceptTermsOfService struct {
	ID TL // DataJSON
}

type HelpAppUpdate

type HelpAppUpdate struct {
	Flags      int32
	CanNotSkip bool // flag
	ID         int32
	Version    string
	Text       string
	Entities   []TL   // MessageEntity
	Document   TL     // Document // flag
	Url        string // flag
}

type HelpConfigSimple

type HelpConfigSimple struct {
	Date    int32
	Expires int32
	Rules   []TL // AccessPointRule
}

type HelpCountriesList

type HelpCountriesList struct {
	Countries []TL // Help_Country
	Hash      int32
}

type HelpCountriesListNotModified

type HelpCountriesListNotModified struct {
}

type HelpCountry

type HelpCountry struct {
	Flags        int32
	Hidden       bool // flag
	Iso2         string
	DefaultName  string
	Name         string // flag
	CountryCodes []TL   // Help_CountryCode
}

type HelpCountryCode

type HelpCountryCode struct {
	Flags       int32
	CountryCode string
	Prefixes    []string // flag
	Patterns    []string // flag
}

type HelpDeepLinkInfo

type HelpDeepLinkInfo struct {
	Flags     int32
	UpdateApp bool // flag
	Message   string
	Entities  []TL // MessageEntity // flag
}

type HelpDeepLinkInfoEmpty

type HelpDeepLinkInfoEmpty struct {
}

type HelpDismissSuggestion

type HelpDismissSuggestion struct {
	Suggestion string
}

type HelpEditUserInfo

type HelpEditUserInfo struct {
	UserID   TL // InputUser
	Message  string
	Entities []TL // MessageEntity
}

type HelpGetAppChangelog

type HelpGetAppChangelog struct {
	PrevAppVersion string
}

type HelpGetAppConfig

type HelpGetAppConfig struct {
}

type HelpGetAppUpdate

type HelpGetAppUpdate struct {
	Source string
}

type HelpGetCdnConfig

type HelpGetCdnConfig struct {
}

type HelpGetConfig

type HelpGetConfig struct {
}

type HelpGetCountriesList

type HelpGetCountriesList struct {
	LangCode string
	Hash     int32
}

type HelpGetDeepLinkInfo

type HelpGetDeepLinkInfo struct {
	Path string
}

type HelpGetInviteText

type HelpGetInviteText struct {
}

type HelpGetNearestDc

type HelpGetNearestDc struct {
}

type HelpGetPassportConfig

type HelpGetPassportConfig struct {
	Hash int32
}

type HelpGetPromoData

type HelpGetPromoData struct {
}

type HelpGetRecentMeUrls

type HelpGetRecentMeUrls struct {
	Referer string
}

type HelpGetSupport

type HelpGetSupport struct {
}

type HelpGetSupportName

type HelpGetSupportName struct {
}

type HelpGetTermsOfServiceUpdate

type HelpGetTermsOfServiceUpdate struct {
}

type HelpGetUserInfo

type HelpGetUserInfo struct {
	UserID TL // InputUser
}

type HelpHidePromoData

type HelpHidePromoData struct {
	Peer TL // InputPeer
}

type HelpInviteText

type HelpInviteText struct {
	Message string
}

type HelpNoAppUpdate

type HelpNoAppUpdate struct {
}

type HelpPassportConfig

type HelpPassportConfig struct {
	Hash           int32
	CountriesLangs TL // DataJSON
}

type HelpPassportConfigNotModified

type HelpPassportConfigNotModified struct {
}

type HelpPromoData

type HelpPromoData struct {
	Flags      int32
	Proxy      bool // flag
	Expires    int32
	Peer       TL     // Peer
	Chats      []TL   // Chat
	Users      []TL   // User
	PsaType    string // flag
	PsaMessage string // flag
}

type HelpPromoDataEmpty

type HelpPromoDataEmpty struct {
	Expires int32
}

type HelpRecentMeUrls

type HelpRecentMeUrls struct {
	Urls  []TL // RecentMeUrl
	Chats []TL // Chat
	Users []TL // User
}

type HelpSaveAppLog

type HelpSaveAppLog struct {
	Events []TL // InputAppEvent
}

type HelpSetBotUpdatesStatus

type HelpSetBotUpdatesStatus struct {
	PendingUpdatesCount int32
	Message             string
}

type HelpSupport

type HelpSupport struct {
	PhoneNumber string
	User        TL // User
}

type HelpSupportName

type HelpSupportName struct {
	Name string
}

type HelpTermsOfService

type HelpTermsOfService struct {
	Flags         int32
	Popup         bool // flag
	ID            TL   // DataJSON
	Text          string
	Entities      []TL  // MessageEntity
	MinAgeConfirm int32 // flag
}

type HelpTermsOfServiceUpdate

type HelpTermsOfServiceUpdate struct {
	Expires        int32
	TermsOfService TL // help_TermsOfService
}

type HelpTermsOfServiceUpdateEmpty

type HelpTermsOfServiceUpdateEmpty struct {
	Expires int32
}

type HelpUserInfo

type HelpUserInfo struct {
	Message  string
	Entities []TL // MessageEntity
	Author   string
	Date     int32
}

type HelpUserInfoEmpty

type HelpUserInfoEmpty struct {
}

type HighScore

type HighScore struct {
	Pos    int32
	UserID int32
	Score  int32
}

type HttpWait

type HttpWait struct {
	MaxDelay  int32
	WaitAfter int32
	MaxWait   int32
}

type ImportedContact

type ImportedContact struct {
	UserID   int32
	ClientID int64
}

type InitConnection

type InitConnection struct {
	Flags          int32
	ApiID          int32
	DeviceModel    string
	SystemVersion  string
	AppVersion     string
	SystemLangCode string
	LangPack       string
	LangCode       string
	Proxy          TL // InputClientProxy // flag
	Params         TL // JSONValue // flag
	Query          TL
}

type InlineBotSwitchPM

type InlineBotSwitchPM struct {
	Text       string
	StartParam string
}

type InputAppEvent

type InputAppEvent struct {
	Time float64
	Type string
	Peer int64
	Data TL // JSONValue
}

type InputBotInlineMessageGame

type InputBotInlineMessageGame struct {
	Flags       int32
	ReplyMarkup TL // ReplyMarkup // flag
}

type InputBotInlineMessageID

type InputBotInlineMessageID struct {
	DcID       int32
	ID         int64
	AccessHash int64
}

type InputBotInlineMessageMediaAuto

type InputBotInlineMessageMediaAuto struct {
	Flags       int32
	Message     string
	Entities    []TL // MessageEntity // flag
	ReplyMarkup TL   // ReplyMarkup // flag
}

type InputBotInlineMessageMediaContact

type InputBotInlineMessageMediaContact struct {
	Flags       int32
	PhoneNumber string
	FirstName   string
	LastName    string
	Vcard       string
	ReplyMarkup TL // ReplyMarkup // flag
}

type InputBotInlineMessageMediaGeo

type InputBotInlineMessageMediaGeo struct {
	Flags       int32
	GeoPoint    TL // InputGeoPoint
	Period      int32
	ReplyMarkup TL // ReplyMarkup // flag
}

type InputBotInlineMessageMediaVenue

type InputBotInlineMessageMediaVenue struct {
	Flags       int32
	GeoPoint    TL // InputGeoPoint
	Title       string
	Address     string
	Provider    string
	VenueID     string
	VenueType   string
	ReplyMarkup TL // ReplyMarkup // flag
}

type InputBotInlineMessageText

type InputBotInlineMessageText struct {
	Flags       int32
	NoWebpage   bool // flag
	Message     string
	Entities    []TL // MessageEntity // flag
	ReplyMarkup TL   // ReplyMarkup // flag
}

type InputBotInlineResult

type InputBotInlineResult struct {
	Flags       int32
	ID          string
	Type        string
	Title       string // flag
	Description string // flag
	Url         string // flag
	Thumb       TL     // InputWebDocument // flag
	Content     TL     // InputWebDocument // flag
	SendMessage TL     // InputBotInlineMessage
}

type InputBotInlineResultDocument

type InputBotInlineResultDocument struct {
	Flags       int32
	ID          string
	Type        string
	Title       string // flag
	Description string // flag
	Document    TL     // InputDocument
	SendMessage TL     // InputBotInlineMessage
}

type InputBotInlineResultGame

type InputBotInlineResultGame struct {
	ID          string
	ShortName   string
	SendMessage TL // InputBotInlineMessage
}

type InputBotInlineResultPhoto

type InputBotInlineResultPhoto struct {
	ID          string
	Type        string
	Photo       TL // InputPhoto
	SendMessage TL // InputBotInlineMessage
}

type InputChannel

type InputChannel struct {
	ChannelID  int32
	AccessHash int64
}

type InputChannelEmpty

type InputChannelEmpty struct {
}

type InputChannelFromMessage

type InputChannelFromMessage struct {
	Peer      TL // InputPeer
	MsgID     int32
	ChannelID int32
}

type InputChatPhoto

type InputChatPhoto struct {
	ID TL // InputPhoto
}

type InputChatPhotoEmpty

type InputChatPhotoEmpty struct {
}

type InputChatUploadedPhoto

type InputChatUploadedPhoto struct {
	Flags        int32
	File         TL      // InputFile // flag
	Video        TL      // InputFile // flag
	VideoStartTs float64 // flag
}

type InputCheckPasswordEmpty

type InputCheckPasswordEmpty struct {
}

type InputCheckPasswordSRP

type InputCheckPasswordSRP struct {
	SrpID int64
	A     []byte
	M1    []byte
}

type InputClientProxy

type InputClientProxy struct {
	Address string
	Port    int32
}

type InputDialogPeer

type InputDialogPeer struct {
	Peer TL // InputPeer
}

type InputDialogPeerFolder

type InputDialogPeerFolder struct {
	FolderID int32
}

type InputDocument

type InputDocument struct {
	ID            int64
	AccessHash    int64
	FileReference []byte
}

type InputDocumentEmpty

type InputDocumentEmpty struct {
}

type InputDocumentFileLocation

type InputDocumentFileLocation struct {
	ID            int64
	AccessHash    int64
	FileReference []byte
	ThumbSize     string
}

type InputEncryptedChat

type InputEncryptedChat struct {
	ChatID     int32
	AccessHash int64
}

type InputEncryptedFile

type InputEncryptedFile struct {
	ID         int64
	AccessHash int64
}

type InputEncryptedFileBigUploaded

type InputEncryptedFileBigUploaded struct {
	ID             int64
	Parts          int32
	KeyFingerprint int32
}

type InputEncryptedFileEmpty

type InputEncryptedFileEmpty struct {
}

type InputEncryptedFileLocation

type InputEncryptedFileLocation struct {
	ID         int64
	AccessHash int64
}

type InputEncryptedFileUploaded

type InputEncryptedFileUploaded struct {
	ID             int64
	Parts          int32
	Md5Checksum    string
	KeyFingerprint int32
}

type InputFile

type InputFile struct {
	ID          int64
	Parts       int32
	Name        string
	Md5Checksum string
}

type InputFileBig

type InputFileBig struct {
	ID    int64
	Parts int32
	Name  string
}

type InputFileLocation

type InputFileLocation struct {
	VolumeID      int64
	LocalID       int32
	Secret        int64
	FileReference []byte
}

type InputFolderPeer

type InputFolderPeer struct {
	Peer     TL // InputPeer
	FolderID int32
}

type InputGameID

type InputGameID struct {
	ID         int64
	AccessHash int64
}

type InputGameShortName

type InputGameShortName struct {
	BotID     TL // InputUser
	ShortName string
}

type InputGeoPoint

type InputGeoPoint struct {
	Lat  float64
	Long float64
}

type InputGeoPointEmpty

type InputGeoPointEmpty struct {
}

type InputKeyboardButtonUrlAuth

type InputKeyboardButtonUrlAuth struct {
	Flags              int32
	RequestWriteAccess bool // flag
	Text               string
	FwdText            string // flag
	Url                string
	Bot                TL // InputUser
}

type InputMediaContact

type InputMediaContact struct {
	PhoneNumber string
	FirstName   string
	LastName    string
	Vcard       string
}

type InputMediaDice

type InputMediaDice struct {
	Emoticon string
}

type InputMediaDocument

type InputMediaDocument struct {
	Flags      int32
	ID         TL    // InputDocument
	TtlSeconds int32 // flag
}

type InputMediaDocumentExternal

type InputMediaDocumentExternal struct {
	Flags      int32
	Url        string
	TtlSeconds int32 // flag
}

type InputMediaEmpty

type InputMediaEmpty struct {
}

type InputMediaGame

type InputMediaGame struct {
	ID TL // InputGame
}

type InputMediaGeoLive

type InputMediaGeoLive struct {
	Flags    int32
	Stopped  bool  // flag
	GeoPoint TL    // InputGeoPoint
	Period   int32 // flag
}

type InputMediaGeoPoint

type InputMediaGeoPoint struct {
	GeoPoint TL // InputGeoPoint
}

type InputMediaInvoice

type InputMediaInvoice struct {
	Flags        int32
	Title        string
	Description  string
	Photo        TL // InputWebDocument // flag
	Invoice      TL // Invoice
	Payload      []byte
	Provider     string
	ProviderData TL // DataJSON
	StartParam   string
}

type InputMediaPhoto

type InputMediaPhoto struct {
	Flags      int32
	ID         TL    // InputPhoto
	TtlSeconds int32 // flag
}

type InputMediaPhotoExternal

type InputMediaPhotoExternal struct {
	Flags      int32
	Url        string
	TtlSeconds int32 // flag
}

type InputMediaPoll

type InputMediaPoll struct {
	Flags            int32
	Poll             TL     // Poll
	CorrectAnswers   []TL   // Bytes // flag
	Solution         string // flag
	SolutionEntities []TL   // MessageEntity // flag
}

type InputMediaUploadedDocument

type InputMediaUploadedDocument struct {
	Flags        int32
	NosoundVideo bool // flag
	ForceFile    bool // flag
	File         TL   // InputFile
	Thumb        TL   // InputFile // flag
	MimeType     string
	Attributes   []TL  // DocumentAttribute
	Stickers     []TL  // InputDocument // flag
	TtlSeconds   int32 // flag
}

type InputMediaUploadedPhoto

type InputMediaUploadedPhoto struct {
	Flags      int32
	File       TL    // InputFile
	Stickers   []TL  // InputDocument // flag
	TtlSeconds int32 // flag
}

type InputMediaVenue

type InputMediaVenue struct {
	GeoPoint  TL // InputGeoPoint
	Title     string
	Address   string
	Provider  string
	VenueID   string
	VenueType string
}

type InputMessageEntityMentionName

type InputMessageEntityMentionName struct {
	Offset int32
	Length int32
	UserID TL // InputUser
}

type InputMessageID

type InputMessageID struct {
	ID int32
}

type InputMessagePinned

type InputMessagePinned struct {
}

type InputMessageReplyTo

type InputMessageReplyTo struct {
	ID int32
}

type InputMessagesFilterChatPhotos

type InputMessagesFilterChatPhotos struct {
}

type InputMessagesFilterContacts

type InputMessagesFilterContacts struct {
}

type InputMessagesFilterDocument

type InputMessagesFilterDocument struct {
}

type InputMessagesFilterEmpty

type InputMessagesFilterEmpty struct {
}

type InputMessagesFilterGeo

type InputMessagesFilterGeo struct {
}

type InputMessagesFilterGif

type InputMessagesFilterGif struct {
}

type InputMessagesFilterMusic

type InputMessagesFilterMusic struct {
}

type InputMessagesFilterMyMentions

type InputMessagesFilterMyMentions struct {
}

type InputMessagesFilterPhoneCalls

type InputMessagesFilterPhoneCalls struct {
	Flags  int32
	Missed bool // flag
}

type InputMessagesFilterPhotoVideo

type InputMessagesFilterPhotoVideo struct {
}

type InputMessagesFilterPhotos

type InputMessagesFilterPhotos struct {
}

type InputMessagesFilterRoundVideo

type InputMessagesFilterRoundVideo struct {
}

type InputMessagesFilterRoundVoice

type InputMessagesFilterRoundVoice struct {
}

type InputMessagesFilterUrl

type InputMessagesFilterUrl struct {
}

type InputMessagesFilterVideo

type InputMessagesFilterVideo struct {
}

type InputMessagesFilterVoice

type InputMessagesFilterVoice struct {
}

type InputNotifyBroadcasts

type InputNotifyBroadcasts struct {
}

type InputNotifyChats

type InputNotifyChats struct {
}

type InputNotifyPeer

type InputNotifyPeer struct {
	Peer TL // InputPeer
}

type InputNotifyUsers

type InputNotifyUsers struct {
}

type InputPaymentCredentials

type InputPaymentCredentials struct {
	Flags int32
	Save  bool // flag
	Data  TL   // DataJSON
}

type InputPaymentCredentialsAndroidPay

type InputPaymentCredentialsAndroidPay struct {
	PaymentToken        TL // DataJSON
	GoogleTransactionID string
}

type InputPaymentCredentialsApplePay

type InputPaymentCredentialsApplePay struct {
	PaymentData TL // DataJSON
}

type InputPaymentCredentialsSaved

type InputPaymentCredentialsSaved struct {
	ID          string
	TmpPassword []byte
}

type InputPeerChannel

type InputPeerChannel struct {
	ChannelID  int32
	AccessHash int64
}

type InputPeerChannelFromMessage

type InputPeerChannelFromMessage struct {
	Peer      TL // InputPeer
	MsgID     int32
	ChannelID int32
}

type InputPeerChat

type InputPeerChat struct {
	ChatID int32
}

type InputPeerEmpty

type InputPeerEmpty struct {
}

type InputPeerNotifySettings

type InputPeerNotifySettings struct {
	Flags        int32
	ShowPreviews TL     // Bool // flag
	Silent       TL     // Bool // flag
	MuteUntil    int32  // flag
	Sound        string // flag
}

type InputPeerPhotoFileLocation

type InputPeerPhotoFileLocation struct {
	Flags    int32
	Big      bool // flag
	Peer     TL   // InputPeer
	VolumeID int64
	LocalID  int32
}

type InputPeerSelf

type InputPeerSelf struct {
}

type InputPeerUser

type InputPeerUser struct {
	UserID     int32
	AccessHash int64
}

type InputPeerUserFromMessage

type InputPeerUserFromMessage struct {
	Peer   TL // InputPeer
	MsgID  int32
	UserID int32
}

type InputPhoneCall

type InputPhoneCall struct {
	ID         int64
	AccessHash int64
}

type InputPhoneContact

type InputPhoneContact struct {
	ClientID  int64
	Phone     string
	FirstName string
	LastName  string
}

type InputPhoto

type InputPhoto struct {
	ID            int64
	AccessHash    int64
	FileReference []byte
}

type InputPhotoEmpty

type InputPhotoEmpty struct {
}

type InputPhotoFileLocation

type InputPhotoFileLocation struct {
	ID            int64
	AccessHash    int64
	FileReference []byte
	ThumbSize     string
}

type InputPhotoLegacyFileLocation

type InputPhotoLegacyFileLocation struct {
	ID            int64
	AccessHash    int64
	FileReference []byte
	VolumeID      int64
	LocalID       int32
	Secret        int64
}

type InputPrivacyKeyAddedByPhone

type InputPrivacyKeyAddedByPhone struct {
}

type InputPrivacyKeyChatInvite

type InputPrivacyKeyChatInvite struct {
}

type InputPrivacyKeyForwards

type InputPrivacyKeyForwards struct {
}

type InputPrivacyKeyPhoneCall

type InputPrivacyKeyPhoneCall struct {
}

type InputPrivacyKeyPhoneNumber

type InputPrivacyKeyPhoneNumber struct {
}

type InputPrivacyKeyPhoneP2P

type InputPrivacyKeyPhoneP2P struct {
}

type InputPrivacyKeyProfilePhoto

type InputPrivacyKeyProfilePhoto struct {
}

type InputPrivacyKeyStatusTimestamp

type InputPrivacyKeyStatusTimestamp struct {
}

type InputPrivacyValueAllowAll

type InputPrivacyValueAllowAll struct {
}

type InputPrivacyValueAllowChatParticipants

type InputPrivacyValueAllowChatParticipants struct {
	Chats []int32
}

type InputPrivacyValueAllowContacts

type InputPrivacyValueAllowContacts struct {
}

type InputPrivacyValueAllowUsers

type InputPrivacyValueAllowUsers struct {
	Users []TL // InputUser
}

type InputPrivacyValueDisallowAll

type InputPrivacyValueDisallowAll struct {
}

type InputPrivacyValueDisallowChatParticipants

type InputPrivacyValueDisallowChatParticipants struct {
	Chats []int32
}

type InputPrivacyValueDisallowContacts

type InputPrivacyValueDisallowContacts struct {
}

type InputPrivacyValueDisallowUsers

type InputPrivacyValueDisallowUsers struct {
	Users []TL // InputUser
}

type InputReportReasonChildAbuse

type InputReportReasonChildAbuse struct {
}

type InputReportReasonCopyright

type InputReportReasonCopyright struct {
}

type InputReportReasonGeoIrrelevant

type InputReportReasonGeoIrrelevant struct {
}

type InputReportReasonOther

type InputReportReasonOther struct {
	Text string
}

type InputReportReasonPornography

type InputReportReasonPornography struct {
}

type InputReportReasonSpam

type InputReportReasonSpam struct {
}

type InputReportReasonViolence

type InputReportReasonViolence struct {
}

type InputSecureFile

type InputSecureFile struct {
	ID         int64
	AccessHash int64
}

type InputSecureFileLocation

type InputSecureFileLocation struct {
	ID         int64
	AccessHash int64
}

type InputSecureFileUploaded

type InputSecureFileUploaded struct {
	ID          int64
	Parts       int32
	Md5Checksum string
	FileHash    []byte
	Secret      []byte
}

type InputSecureValue

type InputSecureValue struct {
	Flags       int32
	Type        TL   // SecureValueType
	Data        TL   // SecureData // flag
	FrontSide   TL   // InputSecureFile // flag
	ReverseSide TL   // InputSecureFile // flag
	Selfie      TL   // InputSecureFile // flag
	Translation []TL // InputSecureFile // flag
	Files       []TL // InputSecureFile // flag
	PlainData   TL   // SecurePlainData // flag
}

type InputSingleMedia

type InputSingleMedia struct {
	Flags    int32
	Media    TL // InputMedia
	RandomID int64
	Message  string
	Entities []TL // MessageEntity // flag
}

type InputStickerSetAnimatedEmoji

type InputStickerSetAnimatedEmoji struct {
}

type InputStickerSetDice

type InputStickerSetDice struct {
	Emoticon string
}

type InputStickerSetEmpty

type InputStickerSetEmpty struct {
}

type InputStickerSetID

type InputStickerSetID struct {
	ID         int64
	AccessHash int64
}

type InputStickerSetItem

type InputStickerSetItem struct {
	Flags      int32
	Document   TL // InputDocument
	Emoji      string
	MaskCoords TL // MaskCoords // flag
}

type InputStickerSetShortName

type InputStickerSetShortName struct {
	ShortName string
}

type InputStickerSetThumb

type InputStickerSetThumb struct {
	Stickerset TL // InputStickerSet
	VolumeID   int64
	LocalID    int32
}

type InputStickeredMediaDocument

type InputStickeredMediaDocument struct {
	ID TL // InputDocument
}

type InputStickeredMediaPhoto

type InputStickeredMediaPhoto struct {
	ID TL // InputPhoto
}

type InputTakeoutFileLocation

type InputTakeoutFileLocation struct {
}

type InputTheme

type InputTheme struct {
	ID         int64
	AccessHash int64
}

type InputThemeSettings

type InputThemeSettings struct {
	Flags              int32
	BaseTheme          TL // BaseTheme
	AccentColor        int32
	MessageTopColor    int32 // flag
	MessageBottomColor int32 // flag
	Wallpaper          TL    // InputWallPaper // flag
	WallpaperSettings  TL    // WallPaperSettings // flag
}

type InputThemeSlug

type InputThemeSlug struct {
	Slug string
}

type InputUser

type InputUser struct {
	UserID     int32
	AccessHash int64
}

type InputUserEmpty

type InputUserEmpty struct {
}

type InputUserFromMessage

type InputUserFromMessage struct {
	Peer   TL // InputPeer
	MsgID  int32
	UserID int32
}

type InputUserSelf

type InputUserSelf struct {
}

type InputWallPaper

type InputWallPaper struct {
	ID         int64
	AccessHash int64
}

type InputWallPaperNoFile

type InputWallPaperNoFile struct {
}

type InputWallPaperSlug

type InputWallPaperSlug struct {
	Slug string
}

type InputWebDocument

type InputWebDocument struct {
	Url        string
	Size       int32
	MimeType   string
	Attributes []TL // DocumentAttribute
}

type InputWebFileGeoPointLocation

type InputWebFileGeoPointLocation struct {
	GeoPoint   TL // InputGeoPoint
	AccessHash int64
	W          int32
	H          int32
	Zoom       int32
	Scale      int32
}

type InputWebFileLocation

type InputWebFileLocation struct {
	Url        string
	AccessHash int64
}

type Invoice

type Invoice struct {
	Flags                    int32
	Test                     bool // flag
	NameRequested            bool // flag
	PhoneRequested           bool // flag
	EmailRequested           bool // flag
	ShippingAddressRequested bool // flag
	Flexible                 bool // flag
	PhoneToProvider          bool // flag
	EmailToProvider          bool // flag
	Currency                 string
	Prices                   []TL // LabeledPrice
}

type InvokeAfterMsg

type InvokeAfterMsg struct {
	MsgID int64
	Query TL
}

type InvokeAfterMsgs

type InvokeAfterMsgs struct {
	MsgIds []int64
	Query  TL
}

type InvokeWithLayer

type InvokeWithLayer struct {
	Layer int32
	Query TL
}

type InvokeWithMessagesRange

type InvokeWithMessagesRange struct {
	Range TL // MessageRange
	Query TL
}

type InvokeWithTakeout

type InvokeWithTakeout struct {
	TakeoutID int64
	Query     TL
}

type InvokeWithoutUpdates

type InvokeWithoutUpdates struct {
	Query TL
}

type IpPort

type IpPort struct {
	Ipv4 int32
	Port int32
}

type IpPortSecret

type IpPortSecret struct {
	Ipv4   int32
	Port   int32
	Secret []byte
}

type JsonArray

type JsonArray struct {
	Value []TL // JSONValue
}

type JsonBool

type JsonBool struct {
	Value TL // Bool
}

type JsonNull

type JsonNull struct {
}

type JsonNumber

type JsonNumber struct {
	Value float64
}

type JsonObject

type JsonObject struct {
	Value []TL // JSONObjectValue
}

type JsonObjectValue

type JsonObjectValue struct {
	Key   string
	Value TL // JSONValue
}

type JsonString

type JsonString struct {
	Value string
}

type KeyboardButton

type KeyboardButton struct {
	Text string
}

type KeyboardButtonBuy

type KeyboardButtonBuy struct {
	Text string
}

type KeyboardButtonCallback

type KeyboardButtonCallback struct {
	Flags            int32
	RequiresPassword bool // flag
	Text             string
	Data             []byte
}

type KeyboardButtonGame

type KeyboardButtonGame struct {
	Text string
}

type KeyboardButtonRequestGeoLocation

type KeyboardButtonRequestGeoLocation struct {
	Text string
}

type KeyboardButtonRequestPhone

type KeyboardButtonRequestPhone struct {
	Text string
}

type KeyboardButtonRequestPoll

type KeyboardButtonRequestPoll struct {
	Flags int32
	Quiz  TL // Bool // flag
	Text  string
}

type KeyboardButtonRow

type KeyboardButtonRow struct {
	Buttons []TL // KeyboardButton
}

type KeyboardButtonSwitchInline

type KeyboardButtonSwitchInline struct {
	Flags    int32
	SamePeer bool // flag
	Text     string
	Query    string
}

type KeyboardButtonUrl

type KeyboardButtonUrl struct {
	Text string
	Url  string
}

type KeyboardButtonUrlAuth

type KeyboardButtonUrlAuth struct {
	Flags    int32
	Text     string
	FwdText  string // flag
	Url      string
	ButtonID int32
}

type LabeledPrice

type LabeledPrice struct {
	Label  string
	Amount int64
}

type LangPackDifference

type LangPackDifference struct {
	LangCode    string
	FromVersion int32
	Version     int32
	Strings     []TL // LangPackString
}

type LangPackLanguage

type LangPackLanguage struct {
	Flags           int32
	Official        bool // flag
	Rtl             bool // flag
	Beta            bool // flag
	Name            string
	NativeName      string
	LangCode        string
	BaseLangCode    string // flag
	PluralCode      string
	StringsCount    int32
	TranslatedCount int32
	TranslationsUrl string
}

type LangPackString

type LangPackString struct {
	Key   string
	Value string
}

type LangPackStringDeleted

type LangPackStringDeleted struct {
	Key string
}

type LangPackStringPluralized

type LangPackStringPluralized struct {
	Flags      int32
	Key        string
	ZeroValue  string // flag
	OneValue   string // flag
	TwoValue   string // flag
	FewValue   string // flag
	ManyValue  string // flag
	OtherValue string
}

type LangpackGetDifference

type LangpackGetDifference struct {
	LangPack    string
	LangCode    string
	FromVersion int32
}

type LangpackGetLangPack

type LangpackGetLangPack struct {
	LangPack string
	LangCode string
}

type LangpackGetLanguage

type LangpackGetLanguage struct {
	LangPack string
	LangCode string
}

type LangpackGetLanguages

type LangpackGetLanguages struct {
	LangPack string
}

type LangpackGetStrings

type LangpackGetStrings struct {
	LangPack string
	LangCode string
	Keys     []string
}

type Logger

type Logger struct {
	*logrus.Logger
}

func (*Logger) Debug

func (l *Logger) Debug(msg string, args ...interface{})

func (*Logger) Error

func (l *Logger) Error(err error, msg string)

func (*Logger) Info

func (l *Logger) Info(msg string, args ...interface{})

func (*Logger) Message

func (l *Logger) Message(isIncoming bool, message TL, id int64)

func (*Logger) Warn

func (l *Logger) Warn(msg string, args ...interface{})

type MTMessage

type MTMessage struct {
	MsgID int64
	SeqNo int32
	Size  int32
	Data  TL
}

type MTProto

type MTProto struct {
	// contains filtered or unexported fields
}

func NewMTProto

func NewMTProto(cfg *AppConfig) *MTProto

func (*MTProto) Auth

func (m *MTProto) Auth(authData AuthDataProvider) error

func (*MTProto) AuthBot

func (m *MTProto) AuthBot(token string) error

func (*MTProto) Connect

func (m *MTProto) Connect() error

func (*MTProto) CopySession

func (m *MTProto) CopySession() *Session

func (*MTProto) DCAddr

func (m *MTProto) DCAddr(dcID int32) (string, bool)

func (*MTProto) Disconnect

func (m *MTProto) Disconnect() error

func (*MTProto) GetContacts

func (m *MTProto) GetContacts() error

func (*MTProto) InitSessAndConnect

func (m *MTProto) InitSessAndConnect() error

func (*MTProto) InitSession

func (m *MTProto) InitSession(isReady bool) error

func (*MTProto) NewConnection

func (m *MTProto) NewConnection(dcID int32) (*MTProto, error)

func (*MTProto) Reconnect

func (m *MTProto) Reconnect() error

func (*MTProto) Send

func (m *MTProto) Send(msg TLReq) chan TL

func (*MTProto) SendSync

func (m *MTProto) SendSync(msg TLReq) TL

func (*MTProto) SendSyncRetry

func (m *MTProto) SendSyncRetry(
	msg TLReq, failRetryInterval time.Duration,
	floodNumShortRetries int, floodMaxWait time.Duration,
) TL

func (*MTProto) SetDialer

func (m *MTProto) SetDialer(d proxy.Dialer)

func (*MTProto) SetEventsHandler

func (m *MTProto) SetEventsHandler(handler func(TL))

func (*MTProto) SetIdleLimit

func (m *MTProto) SetIdleLimit(s time.Duration)

func (*MTProto) SetLogger

func (m *MTProto) SetLogger(s *logrus.Logger)

func (*MTProto) SetMaxInterval

func (m *MTProto) SetMaxInterval(s time.Duration)

func (*MTProto) SetMinInterval

func (m *MTProto) SetMinInterval(s time.Duration)

func (*MTProto) SetSession

func (m *MTProto) SetSession(s *Session)

func (*MTProto) UseIPv6

func (m *MTProto) UseIPv6(b bool)

type MaskCoords

type MaskCoords struct {
	N    int32
	X    float64
	Y    float64
	Zoom float64
}

type Message

type Message struct {
	Flags             int32
	Out               bool // flag
	Mentioned         bool // flag
	MediaUnread       bool // flag
	Silent            bool // flag
	Post              bool // flag
	FromScheduled     bool // flag
	Legacy            bool // flag
	EditHide          bool // flag
	ID                int32
	FromID            TL    // Peer // flag
	PeerID            TL    // Peer
	FwdFrom           TL    // MessageFwdHeader // flag
	ViaBotID          int32 // flag
	ReplyTo           TL    // MessageReplyHeader // flag
	Date              int32
	Message           string
	Media             TL     // MessageMedia // flag
	ReplyMarkup       TL     // ReplyMarkup // flag
	Entities          []TL   // MessageEntity // flag
	Views             int32  // flag
	Forwards          int32  // flag
	Replies           TL     // MessageReplies // flag
	EditDate          int32  // flag
	PostAuthor        string // flag
	GroupedID         int64  // flag
	RestrictionReason []TL   // RestrictionReason // flag
}

type MessageActionBotAllowed

type MessageActionBotAllowed struct {
	Domain string
}

type MessageActionChannelCreate

type MessageActionChannelCreate struct {
	Title string
}

type MessageActionChannelMigrateFrom

type MessageActionChannelMigrateFrom struct {
	Title  string
	ChatID int32
}

type MessageActionChatAddUser

type MessageActionChatAddUser struct {
	Users []int32
}

type MessageActionChatCreate

type MessageActionChatCreate struct {
	Title string
	Users []int32
}

type MessageActionChatDeletePhoto

type MessageActionChatDeletePhoto struct {
}

type MessageActionChatDeleteUser

type MessageActionChatDeleteUser struct {
	UserID int32
}

type MessageActionChatEditPhoto

type MessageActionChatEditPhoto struct {
	Photo TL // Photo
}

type MessageActionChatEditTitle

type MessageActionChatEditTitle struct {
	Title string
}
type MessageActionChatJoinedByLink struct {
	InviterID int32
}

type MessageActionChatMigrateTo

type MessageActionChatMigrateTo struct {
	ChannelID int32
}

type MessageActionContactSignUp

type MessageActionContactSignUp struct {
}

type MessageActionCustomAction

type MessageActionCustomAction struct {
	Message string
}

type MessageActionEmpty

type MessageActionEmpty struct {
}

type MessageActionGameScore

type MessageActionGameScore struct {
	GameID int64
	Score  int32
}

type MessageActionHistoryClear

type MessageActionHistoryClear struct {
}

type MessageActionPaymentSent

type MessageActionPaymentSent struct {
	Currency    string
	TotalAmount int64
}

type MessageActionPaymentSentMe

type MessageActionPaymentSentMe struct {
	Flags            int32
	Currency         string
	TotalAmount      int64
	Payload          []byte
	Info             TL     // PaymentRequestedInfo // flag
	ShippingOptionID string // flag
	Charge           TL     // PaymentCharge
}

type MessageActionPhoneCall

type MessageActionPhoneCall struct {
	Flags    int32
	Video    bool // flag
	CallID   int64
	Reason   TL    // PhoneCallDiscardReason // flag
	Duration int32 // flag
}

type MessageActionPinMessage

type MessageActionPinMessage struct {
}

type MessageActionScreenshotTaken

type MessageActionScreenshotTaken struct {
}

type MessageActionSecureValuesSent

type MessageActionSecureValuesSent struct {
	Types []TL // SecureValueType
}

type MessageActionSecureValuesSentMe

type MessageActionSecureValuesSentMe struct {
	Values      []TL // SecureValue
	Credentials TL   // SecureCredentialsEncrypted
}

type MessageEmpty

type MessageEmpty struct {
	ID int32
}

type MessageEntityBankCard

type MessageEntityBankCard struct {
	Offset int32
	Length int32
}

type MessageEntityBlockquote

type MessageEntityBlockquote struct {
	Offset int32
	Length int32
}

type MessageEntityBold

type MessageEntityBold struct {
	Offset int32
	Length int32
}

type MessageEntityBotCommand

type MessageEntityBotCommand struct {
	Offset int32
	Length int32
}

type MessageEntityCashtag

type MessageEntityCashtag struct {
	Offset int32
	Length int32
}

type MessageEntityCode

type MessageEntityCode struct {
	Offset int32
	Length int32
}

type MessageEntityEmail

type MessageEntityEmail struct {
	Offset int32
	Length int32
}

type MessageEntityHashtag

type MessageEntityHashtag struct {
	Offset int32
	Length int32
}

type MessageEntityItalic

type MessageEntityItalic struct {
	Offset int32
	Length int32
}

type MessageEntityMention

type MessageEntityMention struct {
	Offset int32
	Length int32
}

type MessageEntityMentionName

type MessageEntityMentionName struct {
	Offset int32
	Length int32
	UserID int32
}

type MessageEntityPhone

type MessageEntityPhone struct {
	Offset int32
	Length int32
}

type MessageEntityPre

type MessageEntityPre struct {
	Offset   int32
	Length   int32
	Language string
}

type MessageEntityStrike

type MessageEntityStrike struct {
	Offset int32
	Length int32
}

type MessageEntityTextUrl

type MessageEntityTextUrl struct {
	Offset int32
	Length int32
	Url    string
}

type MessageEntityUnderline

type MessageEntityUnderline struct {
	Offset int32
	Length int32
}

type MessageEntityUnknown

type MessageEntityUnknown struct {
	Offset int32
	Length int32
}

type MessageEntityUrl

type MessageEntityUrl struct {
	Offset int32
	Length int32
}

type MessageFwdHeader

type MessageFwdHeader struct {
	Flags          int32
	FromID         TL     // Peer // flag
	FromName       string // flag
	Date           int32
	ChannelPost    int32  // flag
	PostAuthor     string // flag
	SavedFromPeer  TL     // Peer // flag
	SavedFromMsgID int32  // flag
	PsaType        string // flag
}

type MessageInteractionCounters

type MessageInteractionCounters struct {
	MsgID    int32
	Views    int32
	Forwards int32
}

type MessageMediaContact

type MessageMediaContact struct {
	PhoneNumber string
	FirstName   string
	LastName    string
	Vcard       string
	UserID      int32
}

type MessageMediaDice

type MessageMediaDice struct {
	Value    int32
	Emoticon string
}

type MessageMediaDocument

type MessageMediaDocument struct {
	Flags      int32
	Document   TL    // Document // flag
	TtlSeconds int32 // flag
}

type MessageMediaEmpty

type MessageMediaEmpty struct {
}

type MessageMediaGame

type MessageMediaGame struct {
	Game TL // Game
}

type MessageMediaGeo

type MessageMediaGeo struct {
	Geo TL // GeoPoint
}

type MessageMediaGeoLive

type MessageMediaGeoLive struct {
	Geo    TL // GeoPoint
	Period int32
}

type MessageMediaInvoice

type MessageMediaInvoice struct {
	Flags                    int32
	ShippingAddressRequested bool // flag
	Test                     bool // flag
	Title                    string
	Description              string
	Photo                    TL    // WebDocument // flag
	ReceiptMsgID             int32 // flag
	Currency                 string
	TotalAmount              int64
	StartParam               string
}

type MessageMediaPhoto

type MessageMediaPhoto struct {
	Flags      int32
	Photo      TL    // Photo // flag
	TtlSeconds int32 // flag
}

type MessageMediaPoll

type MessageMediaPoll struct {
	Poll    TL // Poll
	Results TL // PollResults
}

type MessageMediaUnsupported

type MessageMediaUnsupported struct {
}

type MessageMediaVenue

type MessageMediaVenue struct {
	Geo       TL // GeoPoint
	Title     string
	Address   string
	Provider  string
	VenueID   string
	VenueType string
}

type MessageMediaWebPage

type MessageMediaWebPage struct {
	Webpage TL // WebPage
}

type MessageRange

type MessageRange struct {
	MinID int32
	MaxID int32
}

type MessageReplies

type MessageReplies struct {
	Flags          int32
	Comments       bool // flag
	Replies        int32
	RepliesPts     int32
	RecentRepliers []TL  // Peer // flag
	ChannelID      int32 // flag
	MaxID          int32 // flag
	ReadMaxID      int32 // flag
}

type MessageReplyHeader

type MessageReplyHeader struct {
	Flags         int32
	ReplyToMsgID  int32
	ReplyToPeerID TL    // Peer // flag
	ReplyToTopID  int32 // flag
}

type MessageService

type MessageService struct {
	Flags       int32
	Out         bool // flag
	Mentioned   bool // flag
	MediaUnread bool // flag
	Silent      bool // flag
	Post        bool // flag
	Legacy      bool // flag
	ID          int32
	FromID      TL // Peer // flag
	PeerID      TL // Peer
	ReplyTo     TL // MessageReplyHeader // flag
	Date        int32
	Action      TL // MessageAction
}

type MessageUserVote

type MessageUserVote struct {
	UserID int32
	Option []byte
	Date   int32
}

type MessageUserVoteInputOption

type MessageUserVoteInputOption struct {
	UserID int32
	Date   int32
}

type MessageUserVoteMultiple

type MessageUserVoteMultiple struct {
	UserID  int32
	Options []TL // Bytes
	Date    int32
}

type MessageViews

type MessageViews struct {
	Flags    int32
	Views    int32 // flag
	Forwards int32 // flag
	Replies  TL    // MessageReplies // flag
}

type MessagesAcceptEncryption

type MessagesAcceptEncryption struct {
	Peer           TL // InputEncryptedChat
	GB             []byte
	KeyFingerprint int64
}

type MessagesAcceptUrlAuth

type MessagesAcceptUrlAuth struct {
	Flags        int32
	WriteAllowed bool // flag
	Peer         TL   // InputPeer
	MsgID        int32
	ButtonID     int32
}

type MessagesAddChatUser

type MessagesAddChatUser struct {
	ChatID   int32
	UserID   TL // InputUser
	FwdLimit int32
}

type MessagesAffectedHistory

type MessagesAffectedHistory struct {
	Pts      int32
	PtsCount int32
	Offset   int32
}

type MessagesAffectedMessages

type MessagesAffectedMessages struct {
	Pts      int32
	PtsCount int32
}

type MessagesAllStickers

type MessagesAllStickers struct {
	Hash int32
	Sets []TL // StickerSet
}

type MessagesAllStickersNotModified

type MessagesAllStickersNotModified struct {
}

type MessagesArchivedStickers

type MessagesArchivedStickers struct {
	Count int32
	Sets  []TL // StickerSetCovered
}

type MessagesBotCallbackAnswer

type MessagesBotCallbackAnswer struct {
	Flags     int32
	Alert     bool   // flag
	HasUrl    bool   // flag
	NativeUi  bool   // flag
	Message   string // flag
	Url       string // flag
	CacheTime int32
}

type MessagesBotResults

type MessagesBotResults struct {
	Flags      int32
	Gallery    bool // flag
	QueryID    int64
	NextOffset string // flag
	SwitchPm   TL     // InlineBotSwitchPM // flag
	Results    []TL   // BotInlineResult
	CacheTime  int32
	Users      []TL // User
}

type MessagesChannelMessages

type MessagesChannelMessages struct {
	Flags    int32
	Inexact  bool // flag
	Pts      int32
	Count    int32
	Messages []TL // Message
	Chats    []TL // Chat
	Users    []TL // User
}

type MessagesChatFull

type MessagesChatFull struct {
	FullChat TL   // ChatFull
	Chats    []TL // Chat
	Users    []TL // User
}

type MessagesChats

type MessagesChats struct {
	Chats []TL // Chat
}

type MessagesChatsSlice

type MessagesChatsSlice struct {
	Count int32
	Chats []TL // Chat
}

type MessagesCheckChatInvite

type MessagesCheckChatInvite struct {
	Hash string
}

type MessagesClearAllDrafts

type MessagesClearAllDrafts struct {
}

type MessagesClearRecentStickers

type MessagesClearRecentStickers struct {
	Flags    int32
	Attached bool // flag
}

type MessagesCreateChat

type MessagesCreateChat struct {
	Users []TL // InputUser
	Title string
}

type MessagesDeleteChatUser

type MessagesDeleteChatUser struct {
	ChatID int32
	UserID TL // InputUser
}

type MessagesDeleteHistory

type MessagesDeleteHistory struct {
	Flags     int32
	JustClear bool // flag
	Revoke    bool // flag
	Peer      TL   // InputPeer
	MaxID     int32
}

type MessagesDeleteMessages

type MessagesDeleteMessages struct {
	Flags  int32
	Revoke bool // flag
	ID     []int32
}

type MessagesDeleteScheduledMessages

type MessagesDeleteScheduledMessages struct {
	Peer TL // InputPeer
	ID   []int32
}

type MessagesDhConfig

type MessagesDhConfig struct {
	G       int32
	P       []byte
	Version int32
	Random  []byte
}

type MessagesDhConfigNotModified

type MessagesDhConfigNotModified struct {
	Random []byte
}

type MessagesDialogs

type MessagesDialogs struct {
	Dialogs  []TL // Dialog
	Messages []TL // Message
	Chats    []TL // Chat
	Users    []TL // User
}

type MessagesDialogsNotModified

type MessagesDialogsNotModified struct {
	Count int32
}

type MessagesDialogsSlice

type MessagesDialogsSlice struct {
	Count    int32
	Dialogs  []TL // Dialog
	Messages []TL // Message
	Chats    []TL // Chat
	Users    []TL // User
}

type MessagesDiscardEncryption

type MessagesDiscardEncryption struct {
	ChatID int32
}

type MessagesDiscussionMessage

type MessagesDiscussionMessage struct {
	Flags           int32
	Messages        []TL  // Message
	MaxID           int32 // flag
	ReadInboxMaxID  int32 // flag
	ReadOutboxMaxID int32 // flag
	Chats           []TL  // Chat
	Users           []TL  // User
}

type MessagesEditChatAbout

type MessagesEditChatAbout struct {
	Peer  TL // InputPeer
	About string
}

type MessagesEditChatAdmin

type MessagesEditChatAdmin struct {
	ChatID  int32
	UserID  TL // InputUser
	IsAdmin TL // Bool
}

type MessagesEditChatDefaultBannedRights

type MessagesEditChatDefaultBannedRights struct {
	Peer         TL // InputPeer
	BannedRights TL // ChatBannedRights
}

type MessagesEditChatPhoto

type MessagesEditChatPhoto struct {
	ChatID int32
	Photo  TL // InputChatPhoto
}

type MessagesEditChatTitle

type MessagesEditChatTitle struct {
	ChatID int32
	Title  string
}

type MessagesEditInlineBotMessage

type MessagesEditInlineBotMessage struct {
	Flags       int32
	NoWebpage   bool   // flag
	ID          TL     // InputBotInlineMessageID
	Message     string // flag
	Media       TL     // InputMedia // flag
	ReplyMarkup TL     // ReplyMarkup // flag
	Entities    []TL   // MessageEntity // flag
}

type MessagesEditMessage

type MessagesEditMessage struct {
	Flags        int32
	NoWebpage    bool // flag
	Peer         TL   // InputPeer
	ID           int32
	Message      string // flag
	Media        TL     // InputMedia // flag
	ReplyMarkup  TL     // ReplyMarkup // flag
	Entities     []TL   // MessageEntity // flag
	ScheduleDate int32  // flag
}

type MessagesExportChatInvite

type MessagesExportChatInvite struct {
	Peer TL // InputPeer
}

type MessagesFaveSticker

type MessagesFaveSticker struct {
	ID     TL // InputDocument
	Unfave TL // Bool
}

type MessagesFavedStickers

type MessagesFavedStickers struct {
	Hash     int32
	Packs    []TL // StickerPack
	Stickers []TL // Document
}

type MessagesFavedStickersNotModified

type MessagesFavedStickersNotModified struct {
}

type MessagesFeaturedStickers

type MessagesFeaturedStickers struct {
	Hash   int32
	Count  int32
	Sets   []TL // StickerSetCovered
	Unread []int64
}

type MessagesFeaturedStickersNotModified

type MessagesFeaturedStickersNotModified struct {
	Count int32
}

type MessagesForwardMessages

type MessagesForwardMessages struct {
	Flags        int32
	Silent       bool // flag
	Background   bool // flag
	WithMyScore  bool // flag
	FromPeer     TL   // InputPeer
	ID           []int32
	RandomID     []int64
	ToPeer       TL    // InputPeer
	ScheduleDate int32 // flag
}

type MessagesFoundStickerSets

type MessagesFoundStickerSets struct {
	Hash int32
	Sets []TL // StickerSetCovered
}

type MessagesFoundStickerSetsNotModified

type MessagesFoundStickerSetsNotModified struct {
}

type MessagesGetAllChats

type MessagesGetAllChats struct {
	ExceptIds []int32
}

type MessagesGetAllDrafts

type MessagesGetAllDrafts struct {
}

type MessagesGetAllStickers

type MessagesGetAllStickers struct {
	Hash int32
}

type MessagesGetArchivedStickers

type MessagesGetArchivedStickers struct {
	Flags    int32
	Masks    bool // flag
	OffsetID int64
	Limit    int32
}

type MessagesGetAttachedStickers

type MessagesGetAttachedStickers struct {
	Media TL // InputStickeredMedia
}

type MessagesGetBotCallbackAnswer

type MessagesGetBotCallbackAnswer struct {
	Flags    int32
	Game     bool // flag
	Peer     TL   // InputPeer
	MsgID    int32
	Data     []byte // flag
	Password TL     // InputCheckPasswordSRP // flag
}

type MessagesGetChats

type MessagesGetChats struct {
	ID []int32
}

type MessagesGetCommonChats

type MessagesGetCommonChats struct {
	UserID TL // InputUser
	MaxID  int32
	Limit  int32
}

type MessagesGetDhConfig

type MessagesGetDhConfig struct {
	Version      int32
	RandomLength int32
}

type MessagesGetDialogFilters

type MessagesGetDialogFilters struct {
}

type MessagesGetDialogUnreadMarks

type MessagesGetDialogUnreadMarks struct {
}

type MessagesGetDialogs

type MessagesGetDialogs struct {
	Flags         int32
	ExcludePinned bool  // flag
	FolderID      int32 // flag
	OffsetDate    int32
	OffsetID      int32
	OffsetPeer    TL // InputPeer
	Limit         int32
	Hash          int32
}

type MessagesGetDiscussionMessage

type MessagesGetDiscussionMessage struct {
	Peer  TL // InputPeer
	MsgID int32
}

type MessagesGetDocumentByHash

type MessagesGetDocumentByHash struct {
	Sha256   []byte
	Size     int32
	MimeType string
}

type MessagesGetEmojiKeywords

type MessagesGetEmojiKeywords struct {
	LangCode string
}

type MessagesGetEmojiKeywordsDifference

type MessagesGetEmojiKeywordsDifference struct {
	LangCode    string
	FromVersion int32
}

type MessagesGetEmojiKeywordsLanguages

type MessagesGetEmojiKeywordsLanguages struct {
	LangCodes []string
}

type MessagesGetEmojiURL

type MessagesGetEmojiURL struct {
	LangCode string
}

type MessagesGetFavedStickers

type MessagesGetFavedStickers struct {
	Hash int32
}

type MessagesGetFeaturedStickers

type MessagesGetFeaturedStickers struct {
	Hash int32
}

type MessagesGetFullChat

type MessagesGetFullChat struct {
	ChatID int32
}

type MessagesGetGameHighScores

type MessagesGetGameHighScores struct {
	Peer   TL // InputPeer
	ID     int32
	UserID TL // InputUser
}

type MessagesGetHistory

type MessagesGetHistory struct {
	Peer       TL // InputPeer
	OffsetID   int32
	OffsetDate int32
	AddOffset  int32
	Limit      int32
	MaxID      int32
	MinID      int32
	Hash       int32
}

type MessagesGetInlineBotResults

type MessagesGetInlineBotResults struct {
	Flags    int32
	Bot      TL // InputUser
	Peer     TL // InputPeer
	GeoPoint TL // InputGeoPoint // flag
	Query    string
	Offset   string
}

type MessagesGetInlineGameHighScores

type MessagesGetInlineGameHighScores struct {
	ID     TL // InputBotInlineMessageID
	UserID TL // InputUser
}

type MessagesGetMaskStickers

type MessagesGetMaskStickers struct {
	Hash int32
}

type MessagesGetMessageEditData

type MessagesGetMessageEditData struct {
	Peer TL // InputPeer
	ID   int32
}

type MessagesGetMessages

type MessagesGetMessages struct {
	ID []TL // InputMessage
}

type MessagesGetMessagesViews

type MessagesGetMessagesViews struct {
	Peer      TL // InputPeer
	ID        []int32
	Increment TL // Bool
}

type MessagesGetOldFeaturedStickers

type MessagesGetOldFeaturedStickers struct {
	Offset int32
	Limit  int32
	Hash   int32
}

type MessagesGetOnlines

type MessagesGetOnlines struct {
	Peer TL // InputPeer
}

type MessagesGetPeerDialogs

type MessagesGetPeerDialogs struct {
	Peers []TL // InputDialogPeer
}

type MessagesGetPeerSettings

type MessagesGetPeerSettings struct {
	Peer TL // InputPeer
}

type MessagesGetPinnedDialogs

type MessagesGetPinnedDialogs struct {
	FolderID int32
}

type MessagesGetPollResults

type MessagesGetPollResults struct {
	Peer  TL // InputPeer
	MsgID int32
}

type MessagesGetPollVotes

type MessagesGetPollVotes struct {
	Flags  int32
	Peer   TL // InputPeer
	ID     int32
	Option []byte // flag
	Offset string // flag
	Limit  int32
}

type MessagesGetRecentLocations

type MessagesGetRecentLocations struct {
	Peer  TL // InputPeer
	Limit int32
	Hash  int32
}

type MessagesGetRecentStickers

type MessagesGetRecentStickers struct {
	Flags    int32
	Attached bool // flag
	Hash     int32
}

type MessagesGetReplies

type MessagesGetReplies struct {
	Peer       TL // InputPeer
	MsgID      int32
	OffsetID   int32
	OffsetDate int32
	AddOffset  int32
	Limit      int32
	MaxID      int32
	MinID      int32
	Hash       int32
}

type MessagesGetSavedGifs

type MessagesGetSavedGifs struct {
	Hash int32
}

type MessagesGetScheduledHistory

type MessagesGetScheduledHistory struct {
	Peer TL // InputPeer
	Hash int32
}

type MessagesGetScheduledMessages

type MessagesGetScheduledMessages struct {
	Peer TL // InputPeer
	ID   []int32
}

type MessagesGetSearchCounters

type MessagesGetSearchCounters struct {
	Peer    TL   // InputPeer
	Filters []TL // MessagesFilter
}

type MessagesGetSplitRanges

type MessagesGetSplitRanges struct {
}

type MessagesGetStatsURL

type MessagesGetStatsURL struct {
	Flags  int32
	Dark   bool // flag
	Peer   TL   // InputPeer
	Params string
}

type MessagesGetStickerSet

type MessagesGetStickerSet struct {
	Stickerset TL // InputStickerSet
}

type MessagesGetStickers

type MessagesGetStickers struct {
	Emoticon string
	Hash     int32
}

type MessagesGetSuggestedDialogFilters

type MessagesGetSuggestedDialogFilters struct {
}

type MessagesGetUnreadMentions

type MessagesGetUnreadMentions struct {
	Peer      TL // InputPeer
	OffsetID  int32
	AddOffset int32
	Limit     int32
	MaxID     int32
	MinID     int32
}

type MessagesGetWebPage

type MessagesGetWebPage struct {
	Url  string
	Hash int32
}

type MessagesGetWebPagePreview

type MessagesGetWebPagePreview struct {
	Flags    int32
	Message  string
	Entities []TL // MessageEntity // flag
}

type MessagesHidePeerSettingsBar

type MessagesHidePeerSettingsBar struct {
	Peer TL // InputPeer
}

type MessagesHighScores

type MessagesHighScores struct {
	Scores []TL // HighScore
	Users  []TL // User
}

type MessagesImportChatInvite

type MessagesImportChatInvite struct {
	Hash string
}

type MessagesInactiveChats

type MessagesInactiveChats struct {
	Dates []int32
	Chats []TL // Chat
	Users []TL // User
}

type MessagesInstallStickerSet

type MessagesInstallStickerSet struct {
	Stickerset TL // InputStickerSet
	Archived   TL // Bool
}

type MessagesMarkDialogUnread

type MessagesMarkDialogUnread struct {
	Flags  int32
	Unread bool // flag
	Peer   TL   // InputDialogPeer
}

type MessagesMessageEditData

type MessagesMessageEditData struct {
	Flags   int32
	Caption bool // flag
}

type MessagesMessageViews

type MessagesMessageViews struct {
	Views []TL // MessageViews
	Chats []TL // Chat
	Users []TL // User
}

type MessagesMessages

type MessagesMessages struct {
	Messages []TL // Message
	Chats    []TL // Chat
	Users    []TL // User
}

type MessagesMessagesNotModified

type MessagesMessagesNotModified struct {
	Count int32
}

type MessagesMessagesSlice

type MessagesMessagesSlice struct {
	Flags    int32
	Inexact  bool // flag
	Count    int32
	NextRate int32 // flag
	Messages []TL  // Message
	Chats    []TL  // Chat
	Users    []TL  // User
}

type MessagesMigrateChat

type MessagesMigrateChat struct {
	ChatID int32
}

type MessagesPeerDialogs

type MessagesPeerDialogs struct {
	Dialogs  []TL // Dialog
	Messages []TL // Message
	Chats    []TL // Chat
	Users    []TL // User
	State    TL   // updates_State
}

type MessagesReadDiscussion

type MessagesReadDiscussion struct {
	Peer      TL // InputPeer
	MsgID     int32
	ReadMaxID int32
}

type MessagesReadEncryptedHistory

type MessagesReadEncryptedHistory struct {
	Peer    TL // InputEncryptedChat
	MaxDate int32
}

type MessagesReadFeaturedStickers

type MessagesReadFeaturedStickers struct {
	ID []int64
}

type MessagesReadHistory

type MessagesReadHistory struct {
	Peer  TL // InputPeer
	MaxID int32
}

type MessagesReadMentions

type MessagesReadMentions struct {
	Peer TL // InputPeer
}

type MessagesReadMessageContents

type MessagesReadMessageContents struct {
	ID []int32
}

type MessagesReceivedMessages

type MessagesReceivedMessages struct {
	MaxID int32
}

type MessagesReceivedQueue

type MessagesReceivedQueue struct {
	MaxQts int32
}

type MessagesRecentStickers

type MessagesRecentStickers struct {
	Hash     int32
	Packs    []TL // StickerPack
	Stickers []TL // Document
	Dates    []int32
}

type MessagesRecentStickersNotModified

type MessagesRecentStickersNotModified struct {
}

type MessagesReorderPinnedDialogs

type MessagesReorderPinnedDialogs struct {
	Flags    int32
	Force    bool // flag
	FolderID int32
	Order    []TL // InputDialogPeer
}

type MessagesReorderStickerSets

type MessagesReorderStickerSets struct {
	Flags int32
	Masks bool // flag
	Order []int64
}

type MessagesReport

type MessagesReport struct {
	Peer   TL // InputPeer
	ID     []int32
	Reason TL // ReportReason
}

type MessagesReportEncryptedSpam

type MessagesReportEncryptedSpam struct {
	Peer TL // InputEncryptedChat
}

type MessagesReportSpam

type MessagesReportSpam struct {
	Peer TL // InputPeer
}

type MessagesRequestEncryption

type MessagesRequestEncryption struct {
	UserID   TL // InputUser
	RandomID int32
	GA       []byte
}

type MessagesRequestUrlAuth

type MessagesRequestUrlAuth struct {
	Peer     TL // InputPeer
	MsgID    int32
	ButtonID int32
}

type MessagesSaveDraft

type MessagesSaveDraft struct {
	Flags        int32
	NoWebpage    bool  // flag
	ReplyToMsgID int32 // flag
	Peer         TL    // InputPeer
	Message      string
	Entities     []TL // MessageEntity // flag
}

type MessagesSaveGif

type MessagesSaveGif struct {
	ID     TL // InputDocument
	Unsave TL // Bool
}

type MessagesSaveRecentSticker

type MessagesSaveRecentSticker struct {
	Flags    int32
	Attached bool // flag
	ID       TL   // InputDocument
	Unsave   TL   // Bool
}

type MessagesSavedGifs

type MessagesSavedGifs struct {
	Hash int32
	Gifs []TL // Document
}

type MessagesSavedGifsNotModified

type MessagesSavedGifsNotModified struct {
}

type MessagesSearch

type MessagesSearch struct {
	Flags     int32
	Peer      TL // InputPeer
	Q         string
	FromID    TL    // InputUser // flag
	TopMsgID  int32 // flag
	Filter    TL    // MessagesFilter
	MinDate   int32
	MaxDate   int32
	OffsetID  int32
	AddOffset int32
	Limit     int32
	MaxID     int32
	MinID     int32
	Hash      int32
}

type MessagesSearchCounter

type MessagesSearchCounter struct {
	Flags   int32
	Inexact bool // flag
	Filter  TL   // MessagesFilter
	Count   int32
}

type MessagesSearchGlobal

type MessagesSearchGlobal struct {
	Flags      int32
	FolderID   int32 // flag
	Q          string
	Filter     TL // MessagesFilter
	MinDate    int32
	MaxDate    int32
	OffsetRate int32
	OffsetPeer TL // InputPeer
	OffsetID   int32
	Limit      int32
}

type MessagesSearchStickerSets

type MessagesSearchStickerSets struct {
	Flags           int32
	ExcludeFeatured bool // flag
	Q               string
	Hash            int32
}

type MessagesSendEncrypted

type MessagesSendEncrypted struct {
	Flags    int32
	Silent   bool // flag
	Peer     TL   // InputEncryptedChat
	RandomID int64
	Data     []byte
}

type MessagesSendEncryptedFile

type MessagesSendEncryptedFile struct {
	Flags    int32
	Silent   bool // flag
	Peer     TL   // InputEncryptedChat
	RandomID int64
	Data     []byte
	File     TL // InputEncryptedFile
}

type MessagesSendEncryptedService

type MessagesSendEncryptedService struct {
	Peer     TL // InputEncryptedChat
	RandomID int64
	Data     []byte
}

type MessagesSendInlineBotResult

type MessagesSendInlineBotResult struct {
	Flags        int32
	Silent       bool  // flag
	Background   bool  // flag
	ClearDraft   bool  // flag
	HideVia      bool  // flag
	Peer         TL    // InputPeer
	ReplyToMsgID int32 // flag
	RandomID     int64
	QueryID      int64
	ID           string
	ScheduleDate int32 // flag
}

type MessagesSendMedia

type MessagesSendMedia struct {
	Flags        int32
	Silent       bool  // flag
	Background   bool  // flag
	ClearDraft   bool  // flag
	Peer         TL    // InputPeer
	ReplyToMsgID int32 // flag
	Media        TL    // InputMedia
	Message      string
	RandomID     int64
	ReplyMarkup  TL    // ReplyMarkup // flag
	Entities     []TL  // MessageEntity // flag
	ScheduleDate int32 // flag
}

type MessagesSendMessage

type MessagesSendMessage struct {
	Flags        int32
	NoWebpage    bool  // flag
	Silent       bool  // flag
	Background   bool  // flag
	ClearDraft   bool  // flag
	Peer         TL    // InputPeer
	ReplyToMsgID int32 // flag
	Message      string
	RandomID     int64
	ReplyMarkup  TL    // ReplyMarkup // flag
	Entities     []TL  // MessageEntity // flag
	ScheduleDate int32 // flag
}

type MessagesSendMultiMedia

type MessagesSendMultiMedia struct {
	Flags        int32
	Silent       bool  // flag
	Background   bool  // flag
	ClearDraft   bool  // flag
	Peer         TL    // InputPeer
	ReplyToMsgID int32 // flag
	MultiMedia   []TL  // InputSingleMedia
	ScheduleDate int32 // flag
}

type MessagesSendScheduledMessages

type MessagesSendScheduledMessages struct {
	Peer TL // InputPeer
	ID   []int32
}

type MessagesSendScreenshotNotification

type MessagesSendScreenshotNotification struct {
	Peer         TL // InputPeer
	ReplyToMsgID int32
	RandomID     int64
}

type MessagesSendVote

type MessagesSendVote struct {
	Peer    TL // InputPeer
	MsgID   int32
	Options []TL // Bytes
}

type MessagesSentEncryptedFile

type MessagesSentEncryptedFile struct {
	Date int32
	File TL // EncryptedFile
}

type MessagesSentEncryptedMessage

type MessagesSentEncryptedMessage struct {
	Date int32
}

type MessagesSetBotCallbackAnswer

type MessagesSetBotCallbackAnswer struct {
	Flags     int32
	Alert     bool // flag
	QueryID   int64
	Message   string // flag
	Url       string // flag
	CacheTime int32
}

type MessagesSetBotPrecheckoutResults

type MessagesSetBotPrecheckoutResults struct {
	Flags   int32
	Success bool // flag
	QueryID int64
	Error   string // flag
}

type MessagesSetBotShippingResults

type MessagesSetBotShippingResults struct {
	Flags           int32
	QueryID         int64
	Error           string // flag
	ShippingOptions []TL   // ShippingOption // flag
}

type MessagesSetEncryptedTyping

type MessagesSetEncryptedTyping struct {
	Peer   TL // InputEncryptedChat
	Typing TL // Bool
}

type MessagesSetGameScore

type MessagesSetGameScore struct {
	Flags       int32
	EditMessage bool // flag
	Force       bool // flag
	Peer        TL   // InputPeer
	ID          int32
	UserID      TL // InputUser
	Score       int32
}

type MessagesSetInlineBotResults

type MessagesSetInlineBotResults struct {
	Flags      int32
	Gallery    bool // flag
	Private    bool // flag
	QueryID    int64
	Results    []TL // InputBotInlineResult
	CacheTime  int32
	NextOffset string // flag
	SwitchPm   TL     // InlineBotSwitchPM // flag
}

type MessagesSetInlineGameScore

type MessagesSetInlineGameScore struct {
	Flags       int32
	EditMessage bool // flag
	Force       bool // flag
	ID          TL   // InputBotInlineMessageID
	UserID      TL   // InputUser
	Score       int32
}

type MessagesSetTyping

type MessagesSetTyping struct {
	Flags    int32
	Peer     TL    // InputPeer
	TopMsgID int32 // flag
	Action   TL    // SendMessageAction
}

type MessagesStartBot

type MessagesStartBot struct {
	Bot        TL // InputUser
	Peer       TL // InputPeer
	RandomID   int64
	StartParam string
}

type MessagesStickerSet

type MessagesStickerSet struct {
	Set       TL   // StickerSet
	Packs     []TL // StickerPack
	Documents []TL // Document
}

type MessagesStickerSetInstallResultArchive

type MessagesStickerSetInstallResultArchive struct {
	Sets []TL // StickerSetCovered
}

type MessagesStickerSetInstallResultSuccess

type MessagesStickerSetInstallResultSuccess struct {
}

type MessagesStickers

type MessagesStickers struct {
	Hash     int32
	Stickers []TL // Document
}

type MessagesStickersNotModified

type MessagesStickersNotModified struct {
}

type MessagesToggleDialogPin

type MessagesToggleDialogPin struct {
	Flags  int32
	Pinned bool // flag
	Peer   TL   // InputDialogPeer
}

type MessagesToggleStickerSets

type MessagesToggleStickerSets struct {
	Flags       int32
	Uninstall   bool // flag
	Archive     bool // flag
	Unarchive   bool // flag
	Stickersets []TL // InputStickerSet
}

type MessagesUninstallStickerSet

type MessagesUninstallStickerSet struct {
	Stickerset TL // InputStickerSet
}

type MessagesUpdateDialogFilter

type MessagesUpdateDialogFilter struct {
	Flags  int32
	ID     int32
	Filter TL // DialogFilter // flag
}

type MessagesUpdateDialogFiltersOrder

type MessagesUpdateDialogFiltersOrder struct {
	Order []int32
}

type MessagesUpdatePinnedMessage

type MessagesUpdatePinnedMessage struct {
	Flags  int32
	Silent bool // flag
	Peer   TL   // InputPeer
	ID     int32
}

type MessagesUploadEncryptedFile

type MessagesUploadEncryptedFile struct {
	Peer TL // InputEncryptedChat
	File TL // InputEncryptedFile
}

type MessagesUploadMedia

type MessagesUploadMedia struct {
	Peer  TL // InputPeer
	Media TL // InputMedia
}

type MessagesVotesList

type MessagesVotesList struct {
	Flags      int32
	Count      int32
	Votes      []TL   // MessageUserVote
	Users      []TL   // User
	NextOffset string // flag
}

type MsgContainer

type MsgContainer struct {
	Items []MTMessage
}

type MsgDetailedInfo

type MsgDetailedInfo struct {
	MsgID       int64
	AnswerMsgID int64
	Bytes       int32
	Status      int32
}

type MsgNewDetailedInfo

type MsgNewDetailedInfo struct {
	AnswerMsgID int64
	Bytes       int32
	Status      int32
}

type MsgResendReq

type MsgResendReq struct {
	MsgIds []int64
}

type MsgsAck

type MsgsAck struct {
	MsgIds []int64
}

type MsgsAllInfo

type MsgsAllInfo struct {
	MsgIds []int64
	Info   string
}

type MsgsStateInfo

type MsgsStateInfo struct {
	ReqMsgID int64
	Info     string
}

type MsgsStateReq

type MsgsStateReq struct {
	MsgIds []int64
}

type NearestDc

type NearestDc struct {
	Country   string
	ThisDc    int32
	NearestDc int32
}

type NewSessionCreated

type NewSessionCreated struct {
	FirstMsgID int64
	UniqueID   int64
	ServerSalt int64
}

type NotifyBroadcasts

type NotifyBroadcasts struct {
}

type NotifyChats

type NotifyChats struct {
}

type NotifyPeer

type NotifyPeer struct {
	Peer TL // Peer
}

type NotifyUsers

type NotifyUsers struct {
}

type PQInnerDataDc

type PQInnerDataDc struct {
	Pq          string
	P           string
	Q           string
	Nonce       []byte
	ServerNonce []byte
	NewNonce    []byte
	Dc          int32
}

type PQInnerDataTempDc

type PQInnerDataTempDc struct {
	Pq          string
	P           string
	Q           string
	Nonce       []byte
	ServerNonce []byte
	NewNonce    []byte
	Dc          int32
	ExpiresIn   int32
}

type Page

type Page struct {
	Flags     int32
	Part      bool // flag
	Rtl       bool // flag
	V2        bool // flag
	Url       string
	Blocks    []TL  // PageBlock
	Photos    []TL  // Photo
	Documents []TL  // Document
	Views     int32 // flag
}

type PageBlockAnchor

type PageBlockAnchor struct {
	Name string
}

type PageBlockAudio

type PageBlockAudio struct {
	AudioID int64
	Caption TL // PageCaption
}

type PageBlockAuthorDate

type PageBlockAuthorDate struct {
	Author        TL // RichText
	PublishedDate int32
}

type PageBlockBlockquote

type PageBlockBlockquote struct {
	Text    TL // RichText
	Caption TL // RichText
}

type PageBlockChannel

type PageBlockChannel struct {
	Channel TL // Chat
}

type PageBlockCollage

type PageBlockCollage struct {
	Items   []TL // PageBlock
	Caption TL   // PageCaption
}

type PageBlockCover

type PageBlockCover struct {
	Cover TL // PageBlock
}

type PageBlockDetails

type PageBlockDetails struct {
	Flags  int32
	Open   bool // flag
	Blocks []TL // PageBlock
	Title  TL   // RichText
}

type PageBlockDivider

type PageBlockDivider struct {
}

type PageBlockEmbed

type PageBlockEmbed struct {
	Flags          int32
	FullWidth      bool   // flag
	AllowScrolling bool   // flag
	Url            string // flag
	Html           string // flag
	PosterPhotoID  int64  // flag
	W              int32  // flag
	H              int32  // flag
	Caption        TL     // PageCaption
}

type PageBlockEmbedPost

type PageBlockEmbedPost struct {
	Url           string
	WebpageID     int64
	AuthorPhotoID int64
	Author        string
	Date          int32
	Blocks        []TL // PageBlock
	Caption       TL   // PageCaption
}

type PageBlockFooter

type PageBlockFooter struct {
	Text TL // RichText
}

type PageBlockHeader

type PageBlockHeader struct {
	Text TL // RichText
}

type PageBlockKicker

type PageBlockKicker struct {
	Text TL // RichText
}

type PageBlockList

type PageBlockList struct {
	Items []TL // PageListItem
}

type PageBlockMap

type PageBlockMap struct {
	Geo     TL // GeoPoint
	Zoom    int32
	W       int32
	H       int32
	Caption TL // PageCaption
}

type PageBlockOrderedList

type PageBlockOrderedList struct {
	Items []TL // PageListOrderedItem
}

type PageBlockParagraph

type PageBlockParagraph struct {
	Text TL // RichText
}

type PageBlockPhoto

type PageBlockPhoto struct {
	Flags     int32
	PhotoID   int64
	Caption   TL     // PageCaption
	Url       string // flag
	WebpageID int64  // flag
}

type PageBlockPreformatted

type PageBlockPreformatted struct {
	Text     TL // RichText
	Language string
}

type PageBlockPullquote

type PageBlockPullquote struct {
	Text    TL // RichText
	Caption TL // RichText
}

type PageBlockRelatedArticles

type PageBlockRelatedArticles struct {
	Title    TL   // RichText
	Articles []TL // PageRelatedArticle
}

type PageBlockSlideshow

type PageBlockSlideshow struct {
	Items   []TL // PageBlock
	Caption TL   // PageCaption
}

type PageBlockSubheader

type PageBlockSubheader struct {
	Text TL // RichText
}

type PageBlockSubtitle

type PageBlockSubtitle struct {
	Text TL // RichText
}

type PageBlockTable

type PageBlockTable struct {
	Flags    int32
	Bordered bool // flag
	Striped  bool // flag
	Title    TL   // RichText
	Rows     []TL // PageTableRow
}

type PageBlockTitle

type PageBlockTitle struct {
	Text TL // RichText
}

type PageBlockUnsupported

type PageBlockUnsupported struct {
}

type PageBlockVideo

type PageBlockVideo struct {
	Flags    int32
	Autoplay bool // flag
	Loop     bool // flag
	VideoID  int64
	Caption  TL // PageCaption
}

type PageCaption

type PageCaption struct {
	Text   TL // RichText
	Credit TL // RichText
}

type PageListItemBlocks

type PageListItemBlocks struct {
	Blocks []TL // PageBlock
}

type PageListItemText

type PageListItemText struct {
	Text TL // RichText
}

type PageListOrderedItemBlocks

type PageListOrderedItemBlocks struct {
	Num    string
	Blocks []TL // PageBlock
}

type PageListOrderedItemText

type PageListOrderedItemText struct {
	Num  string
	Text TL // RichText
}

type PageRelatedArticle

type PageRelatedArticle struct {
	Flags         int32
	Url           string
	WebpageID     int64
	Title         string // flag
	Description   string // flag
	PhotoID       int64  // flag
	Author        string // flag
	PublishedDate int32  // flag
}

type PageTableCell

type PageTableCell struct {
	Flags        int32
	Header       bool  // flag
	AlignCenter  bool  // flag
	AlignRight   bool  // flag
	ValignMiddle bool  // flag
	ValignBottom bool  // flag
	Text         TL    // RichText // flag
	Colspan      int32 // flag
	Rowspan      int32 // flag
}

type PageTableRow

type PageTableRow struct {
	Cells []TL // PageTableCell
}

type PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow

type PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow struct {
	Salt1 []byte
	Salt2 []byte
	G     int32
	P     []byte
}

type PasswordKdfAlgoUnknown

type PasswordKdfAlgoUnknown struct {
}

type PaymentCharge

type PaymentCharge struct {
	ID               string
	ProviderChargeID string
}

type PaymentRequestedInfo

type PaymentRequestedInfo struct {
	Flags           int32
	Name            string // flag
	Phone           string // flag
	Email           string // flag
	ShippingAddress TL     // PostAddress // flag
}

type PaymentSavedCredentialsCard

type PaymentSavedCredentialsCard struct {
	ID    string
	Title string
}

type PaymentsBankCardData

type PaymentsBankCardData struct {
	Title    string
	OpenUrls []TL // BankCardOpenUrl
}

type PaymentsClearSavedInfo

type PaymentsClearSavedInfo struct {
	Flags       int32
	Credentials bool // flag
	Info        bool // flag
}

type PaymentsGetBankCardData

type PaymentsGetBankCardData struct {
	Number string
}

type PaymentsGetPaymentForm

type PaymentsGetPaymentForm struct {
	MsgID int32
}

type PaymentsGetPaymentReceipt

type PaymentsGetPaymentReceipt struct {
	MsgID int32
}

type PaymentsGetSavedInfo

type PaymentsGetSavedInfo struct {
}

type PaymentsPaymentForm

type PaymentsPaymentForm struct {
	Flags              int32
	CanSaveCredentials bool // flag
	PasswordMissing    bool // flag
	BotID              int32
	Invoice            TL // Invoice
	ProviderID         int32
	Url                string
	NativeProvider     string // flag
	NativeParams       TL     // DataJSON // flag
	SavedInfo          TL     // PaymentRequestedInfo // flag
	SavedCredentials   TL     // PaymentSavedCredentials // flag
	Users              []TL   // User
}

type PaymentsPaymentReceipt

type PaymentsPaymentReceipt struct {
	Flags            int32
	Date             int32
	BotID            int32
	Invoice          TL // Invoice
	ProviderID       int32
	Info             TL // PaymentRequestedInfo // flag
	Shipping         TL // ShippingOption // flag
	Currency         string
	TotalAmount      int64
	CredentialsTitle string
	Users            []TL // User
}

type PaymentsPaymentResult

type PaymentsPaymentResult struct {
	Updates TL // Updates
}

type PaymentsPaymentVerificationNeeded

type PaymentsPaymentVerificationNeeded struct {
	Url string
}

type PaymentsSavedInfo

type PaymentsSavedInfo struct {
	Flags               int32
	HasSavedCredentials bool // flag
	SavedInfo           TL   // PaymentRequestedInfo // flag
}

type PaymentsSendPaymentForm

type PaymentsSendPaymentForm struct {
	Flags            int32
	MsgID            int32
	RequestedInfoID  string // flag
	ShippingOptionID string // flag
	Credentials      TL     // InputPaymentCredentials
}

type PaymentsValidateRequestedInfo

type PaymentsValidateRequestedInfo struct {
	Flags int32
	Save  bool // flag
	MsgID int32
	Info  TL // PaymentRequestedInfo
}

type PaymentsValidatedRequestedInfo

type PaymentsValidatedRequestedInfo struct {
	Flags           int32
	ID              string // flag
	ShippingOptions []TL   // ShippingOption // flag
}

type PeerBlocked

type PeerBlocked struct {
	PeerID TL // Peer
	Date   int32
}

type PeerChannel

type PeerChannel struct {
	ChannelID int32
}

type PeerChat

type PeerChat struct {
	ChatID int32
}

type PeerLocated

type PeerLocated struct {
	Peer     TL // Peer
	Expires  int32
	Distance int32
}

type PeerNotifySettings

type PeerNotifySettings struct {
	Flags        int32
	ShowPreviews TL     // Bool // flag
	Silent       TL     // Bool // flag
	MuteUntil    int32  // flag
	Sound        string // flag
}

type PeerSelfLocated

type PeerSelfLocated struct {
	Expires int32
}

type PeerSettings

type PeerSettings struct {
	Flags                 int32
	ReportSpam            bool  // flag
	AddContact            bool  // flag
	BlockContact          bool  // flag
	ShareContact          bool  // flag
	NeedContactsException bool  // flag
	ReportGeo             bool  // flag
	Autoarchived          bool  // flag
	GeoDistance           int32 // flag
}

type PeerUser

type PeerUser struct {
	UserID int32
}

type PhoneAcceptCall

type PhoneAcceptCall struct {
	Peer     TL // InputPhoneCall
	GB       []byte
	Protocol TL // PhoneCallProtocol
}

type PhoneCall

type PhoneCall struct {
	Flags          int32
	P2pAllowed     bool // flag
	Video          bool // flag
	ID             int64
	AccessHash     int64
	Date           int32
	AdminID        int32
	ParticipantID  int32
	GAOrB          []byte
	KeyFingerprint int64
	Protocol       TL   // PhoneCallProtocol
	Connections    []TL // PhoneConnection
	StartDate      int32
}

type PhoneCallAccepted

type PhoneCallAccepted struct {
	Flags         int32
	Video         bool // flag
	ID            int64
	AccessHash    int64
	Date          int32
	AdminID       int32
	ParticipantID int32
	GB            []byte
	Protocol      TL // PhoneCallProtocol
}

type PhoneCallDiscardReasonBusy

type PhoneCallDiscardReasonBusy struct {
}

type PhoneCallDiscardReasonDisconnect

type PhoneCallDiscardReasonDisconnect struct {
}

type PhoneCallDiscardReasonHangup

type PhoneCallDiscardReasonHangup struct {
}

type PhoneCallDiscardReasonMissed

type PhoneCallDiscardReasonMissed struct {
}

type PhoneCallDiscarded

type PhoneCallDiscarded struct {
	Flags      int32
	NeedRating bool // flag
	NeedDebug  bool // flag
	Video      bool // flag
	ID         int64
	Reason     TL    // PhoneCallDiscardReason // flag
	Duration   int32 // flag
}

type PhoneCallEmpty

type PhoneCallEmpty struct {
	ID int64
}

type PhoneCallProtocol

type PhoneCallProtocol struct {
	Flags           int32
	UdpP2p          bool // flag
	UdpReflector    bool // flag
	MinLayer        int32
	MaxLayer        int32
	LibraryVersions []string
}

type PhoneCallRequested

type PhoneCallRequested struct {
	Flags         int32
	Video         bool // flag
	ID            int64
	AccessHash    int64
	Date          int32
	AdminID       int32
	ParticipantID int32
	GAHash        []byte
	Protocol      TL // PhoneCallProtocol
}

type PhoneCallWaiting

type PhoneCallWaiting struct {
	Flags         int32
	Video         bool // flag
	ID            int64
	AccessHash    int64
	Date          int32
	AdminID       int32
	ParticipantID int32
	Protocol      TL    // PhoneCallProtocol
	ReceiveDate   int32 // flag
}

type PhoneConfirmCall

type PhoneConfirmCall struct {
	Peer           TL // InputPhoneCall
	GA             []byte
	KeyFingerprint int64
	Protocol       TL // PhoneCallProtocol
}

type PhoneConnection

type PhoneConnection struct {
	ID      int64
	Ip      string
	Ipv6    string
	Port    int32
	PeerTag []byte
}

type PhoneConnectionWebrtc

type PhoneConnectionWebrtc struct {
	Flags    int32
	Turn     bool // flag
	Stun     bool // flag
	ID       int64
	Ip       string
	Ipv6     string
	Port     int32
	Username string
	Password string
}

type PhoneDiscardCall

type PhoneDiscardCall struct {
	Flags        int32
	Video        bool // flag
	Peer         TL   // InputPhoneCall
	Duration     int32
	Reason       TL // PhoneCallDiscardReason
	ConnectionID int64
}

type PhoneGetCallConfig

type PhoneGetCallConfig struct {
}

type PhonePhoneCall

type PhonePhoneCall struct {
	PhoneCall TL   // PhoneCall
	Users     []TL // User
}

type PhoneReceivedCall

type PhoneReceivedCall struct {
	Peer TL // InputPhoneCall
}

type PhoneRequestCall

type PhoneRequestCall struct {
	Flags    int32
	Video    bool // flag
	UserID   TL   // InputUser
	RandomID int32
	GAHash   []byte
	Protocol TL // PhoneCallProtocol
}

type PhoneSaveCallDebug

type PhoneSaveCallDebug struct {
	Peer  TL // InputPhoneCall
	Debug TL // DataJSON
}

type PhoneSendSignalingData

type PhoneSendSignalingData struct {
	Peer TL // InputPhoneCall
	Data []byte
}

type PhoneSetCallRating

type PhoneSetCallRating struct {
	Flags          int32
	UserInitiative bool // flag
	Peer           TL   // InputPhoneCall
	Rating         int32
	Comment        string
}

type Photo

type Photo struct {
	Flags         int32
	HasStickers   bool // flag
	ID            int64
	AccessHash    int64
	FileReference []byte
	Date          int32
	Sizes         []TL // PhotoSize
	VideoSizes    []TL // VideoSize // flag
	DcID          int32
}

type PhotoCachedSize

type PhotoCachedSize struct {
	Type     string
	Location TL // FileLocation
	W        int32
	H        int32
	Bytes    []byte
}

type PhotoEmpty

type PhotoEmpty struct {
	ID int64
}

type PhotoSize

type PhotoSize struct {
	Type     string
	Location TL // FileLocation
	W        int32
	H        int32
	Size     int32
}

type PhotoSizeEmpty

type PhotoSizeEmpty struct {
	Type string
}

type PhotoSizeProgressive

type PhotoSizeProgressive struct {
	Type     string
	Location TL // FileLocation
	W        int32
	H        int32
	Sizes    []int32
}

type PhotoStrippedSize

type PhotoStrippedSize struct {
	Type  string
	Bytes []byte
}

type PhotosDeletePhotos

type PhotosDeletePhotos struct {
	ID []TL // InputPhoto
}

type PhotosGetUserPhotos

type PhotosGetUserPhotos struct {
	UserID TL // InputUser
	Offset int32
	MaxID  int64
	Limit  int32
}

type PhotosPhoto

type PhotosPhoto struct {
	Photo TL   // Photo
	Users []TL // User
}

type PhotosPhotos

type PhotosPhotos struct {
	Photos []TL // Photo
	Users  []TL // User
}

type PhotosPhotosSlice

type PhotosPhotosSlice struct {
	Count  int32
	Photos []TL // Photo
	Users  []TL // User
}

type PhotosUpdateProfilePhoto

type PhotosUpdateProfilePhoto struct {
	ID TL // InputPhoto
}

type PhotosUploadProfilePhoto

type PhotosUploadProfilePhoto struct {
	Flags        int32
	File         TL      // InputFile // flag
	Video        TL      // InputFile // flag
	VideoStartTs float64 // flag
}

type Ping

type Ping struct {
	PingID int64
}

type PingDelayDisconnect

type PingDelayDisconnect struct {
	PingID          int64
	DisconnectDelay int32
}

type Poll

type Poll struct {
	ID             int64
	Flags          int32
	Closed         bool // flag
	PublicVoters   bool // flag
	MultipleChoice bool // flag
	Quiz           bool // flag
	Question       string
	Answers        []TL  // PollAnswer
	ClosePeriod    int32 // flag
	CloseDate      int32 // flag
}

type PollAnswer

type PollAnswer struct {
	Text   string
	Option []byte
}

type PollAnswerVoters

type PollAnswerVoters struct {
	Flags   int32
	Chosen  bool // flag
	Correct bool // flag
	Option  []byte
	Voters  int32
}

type PollResults

type PollResults struct {
	Flags            int32
	Min              bool    // flag
	Results          []TL    // PollAnswerVoters // flag
	TotalVoters      int32   // flag
	RecentVoters     []int32 // flag
	Solution         string  // flag
	SolutionEntities []TL    // MessageEntity // flag
}

type Pong

type Pong struct {
	MsgID  int64
	PingID int64
}

type PopularContact

type PopularContact struct {
	ClientID  int64
	Importers int32
}

type PostAddress

type PostAddress struct {
	StreetLine1 string
	StreetLine2 string
	City        string
	State       string
	CountryIso2 string
	PostCode    string
}

type PrivacyKeyAddedByPhone

type PrivacyKeyAddedByPhone struct {
}

type PrivacyKeyChatInvite

type PrivacyKeyChatInvite struct {
}

type PrivacyKeyForwards

type PrivacyKeyForwards struct {
}

type PrivacyKeyPhoneCall

type PrivacyKeyPhoneCall struct {
}

type PrivacyKeyPhoneNumber

type PrivacyKeyPhoneNumber struct {
}

type PrivacyKeyPhoneP2P

type PrivacyKeyPhoneP2P struct {
}

type PrivacyKeyProfilePhoto

type PrivacyKeyProfilePhoto struct {
}

type PrivacyKeyStatusTimestamp

type PrivacyKeyStatusTimestamp struct {
}

type PrivacyValueAllowAll

type PrivacyValueAllowAll struct {
}

type PrivacyValueAllowChatParticipants

type PrivacyValueAllowChatParticipants struct {
	Chats []int32
}

type PrivacyValueAllowContacts

type PrivacyValueAllowContacts struct {
}

type PrivacyValueAllowUsers

type PrivacyValueAllowUsers struct {
	Users []int32
}

type PrivacyValueDisallowAll

type PrivacyValueDisallowAll struct {
}

type PrivacyValueDisallowChatParticipants

type PrivacyValueDisallowChatParticipants struct {
	Chats []int32
}

type PrivacyValueDisallowContacts

type PrivacyValueDisallowContacts struct {
}

type PrivacyValueDisallowUsers

type PrivacyValueDisallowUsers struct {
	Users []int32
}

type ReceivedNotifyMessage

type ReceivedNotifyMessage struct {
	ID    int32
	Flags int32
}

type RecentMeUrlChat

type RecentMeUrlChat struct {
	Url    string
	ChatID int32
}

type RecentMeUrlChatInvite

type RecentMeUrlChatInvite struct {
	Url        string
	ChatInvite TL // ChatInvite
}

type RecentMeUrlStickerSet

type RecentMeUrlStickerSet struct {
	Url string
	Set TL // StickerSetCovered
}

type RecentMeUrlUnknown

type RecentMeUrlUnknown struct {
	Url string
}

type RecentMeUrlUser

type RecentMeUrlUser struct {
	Url    string
	UserID int32
}

type ReplyInlineMarkup

type ReplyInlineMarkup struct {
	Rows []TL // KeyboardButtonRow
}

type ReplyKeyboardForceReply

type ReplyKeyboardForceReply struct {
	Flags     int32
	SingleUse bool // flag
	Selective bool // flag
}

type ReplyKeyboardHide

type ReplyKeyboardHide struct {
	Flags     int32
	Selective bool // flag
}

type ReplyKeyboardMarkup

type ReplyKeyboardMarkup struct {
	Flags     int32
	Resize    bool // flag
	SingleUse bool // flag
	Selective bool // flag
	Rows      []TL // KeyboardButtonRow
}

type ReqDHParams

type ReqDHParams struct {
	Nonce                []byte
	ServerNonce          []byte
	P                    string
	Q                    string
	PublicKeyFingerprint int64
	EncryptedData        string
}

type ReqPqMulti

type ReqPqMulti struct {
	Nonce []byte
}

type ResPQ

type ResPQ struct {
	Nonce                       []byte
	ServerNonce                 []byte
	Pq                          string
	ServerPublicKeyFingerprints []int64
}

type RestrictionReason

type RestrictionReason struct {
	Platform string
	Reason   string
	Text     string
}

type RpcAnswerDropped

type RpcAnswerDropped struct {
	MsgID int64
	SeqNo int32
	Bytes int32
}

type RpcAnswerDroppedRunning

type RpcAnswerDroppedRunning struct {
}

type RpcAnswerUnknown

type RpcAnswerUnknown struct {
}

type RpcDropAnswer

type RpcDropAnswer struct {
	ReqMsgID int64
}

type RpcError

type RpcError struct {
	ErrorCode    int32
	ErrorMessage string
}

type RpcResult

type RpcResult struct {
	// contains filtered or unexported fields
}

type SavedPhoneContact

type SavedPhoneContact struct {
	Phone     string
	FirstName string
	LastName  string
	Date      int32
}

type SecureCredentialsEncrypted

type SecureCredentialsEncrypted struct {
	Data   []byte
	Hash   []byte
	Secret []byte
}

type SecureData

type SecureData struct {
	Data     []byte
	DataHash []byte
	Secret   []byte
}

type SecureFile

type SecureFile struct {
	ID         int64
	AccessHash int64
	Size       int32
	DcID       int32
	Date       int32
	FileHash   []byte
	Secret     []byte
}

type SecureFileEmpty

type SecureFileEmpty struct {
}

type SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000

type SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 struct {
	Salt []byte
}

type SecurePasswordKdfAlgoSHA512

type SecurePasswordKdfAlgoSHA512 struct {
	Salt []byte
}

type SecurePasswordKdfAlgoUnknown

type SecurePasswordKdfAlgoUnknown struct {
}

type SecurePlainEmail

type SecurePlainEmail struct {
	Email string
}

type SecurePlainPhone

type SecurePlainPhone struct {
	Phone string
}

type SecureRequiredType

type SecureRequiredType struct {
	Flags               int32
	NativeNames         bool // flag
	SelfieRequired      bool // flag
	TranslationRequired bool // flag
	Type                TL   // SecureValueType
}

type SecureRequiredTypeOneOf

type SecureRequiredTypeOneOf struct {
	Types []TL // SecureRequiredType
}

type SecureSecretSettings

type SecureSecretSettings struct {
	SecureAlgo     TL // SecurePasswordKdfAlgo
	SecureSecret   []byte
	SecureSecretID int64
}

type SecureValue

type SecureValue struct {
	Flags       int32
	Type        TL   // SecureValueType
	Data        TL   // SecureData // flag
	FrontSide   TL   // SecureFile // flag
	ReverseSide TL   // SecureFile // flag
	Selfie      TL   // SecureFile // flag
	Translation []TL // SecureFile // flag
	Files       []TL // SecureFile // flag
	PlainData   TL   // SecurePlainData // flag
	Hash        []byte
}

type SecureValueError

type SecureValueError struct {
	Type TL // SecureValueType
	Hash []byte
	Text string
}

type SecureValueErrorData

type SecureValueErrorData struct {
	Type     TL // SecureValueType
	DataHash []byte
	Field    string
	Text     string
}

type SecureValueErrorFile

type SecureValueErrorFile struct {
	Type     TL // SecureValueType
	FileHash []byte
	Text     string
}

type SecureValueErrorFiles

type SecureValueErrorFiles struct {
	Type     TL   // SecureValueType
	FileHash []TL // Bytes
	Text     string
}

type SecureValueErrorFrontSide

type SecureValueErrorFrontSide struct {
	Type     TL // SecureValueType
	FileHash []byte
	Text     string
}

type SecureValueErrorReverseSide

type SecureValueErrorReverseSide struct {
	Type     TL // SecureValueType
	FileHash []byte
	Text     string
}

type SecureValueErrorSelfie

type SecureValueErrorSelfie struct {
	Type     TL // SecureValueType
	FileHash []byte
	Text     string
}

type SecureValueErrorTranslationFile

type SecureValueErrorTranslationFile struct {
	Type     TL // SecureValueType
	FileHash []byte
	Text     string
}

type SecureValueErrorTranslationFiles

type SecureValueErrorTranslationFiles struct {
	Type     TL   // SecureValueType
	FileHash []TL // Bytes
	Text     string
}

type SecureValueHash

type SecureValueHash struct {
	Type TL // SecureValueType
	Hash []byte
}

type SecureValueTypeAddress

type SecureValueTypeAddress struct {
}

type SecureValueTypeBankStatement

type SecureValueTypeBankStatement struct {
}

type SecureValueTypeDriverLicense

type SecureValueTypeDriverLicense struct {
}

type SecureValueTypeEmail

type SecureValueTypeEmail struct {
}

type SecureValueTypeIdentityCard

type SecureValueTypeIdentityCard struct {
}

type SecureValueTypeInternalPassport

type SecureValueTypeInternalPassport struct {
}

type SecureValueTypePassport

type SecureValueTypePassport struct {
}

type SecureValueTypePassportRegistration

type SecureValueTypePassportRegistration struct {
}

type SecureValueTypePersonalDetails

type SecureValueTypePersonalDetails struct {
}

type SecureValueTypePhone

type SecureValueTypePhone struct {
}

type SecureValueTypeRentalAgreement

type SecureValueTypeRentalAgreement struct {
}

type SecureValueTypeTemporaryRegistration

type SecureValueTypeTemporaryRegistration struct {
}

type SecureValueTypeUtilityBill

type SecureValueTypeUtilityBill struct {
}

type SendMessageCancelAction

type SendMessageCancelAction struct {
}

type SendMessageChooseContactAction

type SendMessageChooseContactAction struct {
}

type SendMessageGamePlayAction

type SendMessageGamePlayAction struct {
}

type SendMessageGeoLocationAction

type SendMessageGeoLocationAction struct {
}

type SendMessageRecordAudioAction

type SendMessageRecordAudioAction struct {
}

type SendMessageRecordRoundAction

type SendMessageRecordRoundAction struct {
}

type SendMessageRecordVideoAction

type SendMessageRecordVideoAction struct {
}

type SendMessageTypingAction

type SendMessageTypingAction struct {
}

type SendMessageUploadAudioAction

type SendMessageUploadAudioAction struct {
	Progress int32
}

type SendMessageUploadDocumentAction

type SendMessageUploadDocumentAction struct {
	Progress int32
}

type SendMessageUploadPhotoAction

type SendMessageUploadPhotoAction struct {
	Progress int32
}

type SendMessageUploadRoundAction

type SendMessageUploadRoundAction struct {
	Progress int32
}

type SendMessageUploadVideoAction

type SendMessageUploadVideoAction struct {
	Progress int32
}

type ServerDHInnerData

type ServerDHInnerData struct {
	Nonce       []byte
	ServerNonce []byte
	G           int32
	DhPrime     string
	GA          string
	ServerTime  int32
}

type ServerDHParamsFail

type ServerDHParamsFail struct {
	Nonce        []byte
	ServerNonce  []byte
	NewNonceHash []byte
}

type ServerDHParamsOk

type ServerDHParamsOk struct {
	Nonce           []byte
	ServerNonce     []byte
	EncryptedAnswer string
}

type Session

type Session struct {
	DcID        int32  `json:"dc_id"`
	AuthKey     []byte `json:"auth_key"`
	AuthKeyHash []byte `json:"auth_key_hash"`
	ServerSalt  int64  `json:"server_salt"`
	Addr        string `json:"addr"`
	// contains filtered or unexported fields
}

func LoadSession

func LoadSession(path string) (*Session, error)

func (*Session) Save

func (s *Session) Save(path string) (err error)

type SetClientDHParams

type SetClientDHParams struct {
	Nonce         []byte
	ServerNonce   []byte
	EncryptedData string
}

type ShippingOption

type ShippingOption struct {
	ID     string
	Title  string
	Prices []TL // LabeledPrice
}

type StatsAbsValueAndPrev

type StatsAbsValueAndPrev struct {
	Current  float64
	Previous float64
}

type StatsBroadcastStats

type StatsBroadcastStats struct {
	Period                    TL   // StatsDateRangeDays
	Followers                 TL   // StatsAbsValueAndPrev
	ViewsPerPost              TL   // StatsAbsValueAndPrev
	SharesPerPost             TL   // StatsAbsValueAndPrev
	EnabledNotifications      TL   // StatsPercentValue
	GrowthGraph               TL   // StatsGraph
	FollowersGraph            TL   // StatsGraph
	MuteGraph                 TL   // StatsGraph
	TopHoursGraph             TL   // StatsGraph
	InteractionsGraph         TL   // StatsGraph
	IvInteractionsGraph       TL   // StatsGraph
	ViewsBySourceGraph        TL   // StatsGraph
	NewFollowersBySourceGraph TL   // StatsGraph
	LanguagesGraph            TL   // StatsGraph
	RecentMessageInteractions []TL // MessageInteractionCounters
}

type StatsDateRangeDays

type StatsDateRangeDays struct {
	MinDate int32
	MaxDate int32
}

type StatsGetBroadcastStats

type StatsGetBroadcastStats struct {
	Flags   int32
	Dark    bool // flag
	Channel TL   // InputChannel
}

type StatsGetMegagroupStats

type StatsGetMegagroupStats struct {
	Flags   int32
	Dark    bool // flag
	Channel TL   // InputChannel
}

type StatsGetMessagePublicForwards

type StatsGetMessagePublicForwards struct {
	Channel    TL // InputChannel
	MsgID      int32
	OffsetRate int32
	OffsetPeer TL // InputPeer
	OffsetID   int32
	Limit      int32
}

type StatsGetMessageStats

type StatsGetMessageStats struct {
	Flags   int32
	Dark    bool // flag
	Channel TL   // InputChannel
	MsgID   int32
}

type StatsGraph

type StatsGraph struct {
	Flags     int32
	Json      TL     // DataJSON
	ZoomToken string // flag
}

type StatsGraphAsync

type StatsGraphAsync struct {
	Token string
}

type StatsGraphError

type StatsGraphError struct {
	Error string
}

type StatsGroupTopAdmin

type StatsGroupTopAdmin struct {
	UserID  int32
	Deleted int32
	Kicked  int32
	Banned  int32
}

type StatsGroupTopInviter

type StatsGroupTopInviter struct {
	UserID      int32
	Invitations int32
}

type StatsGroupTopPoster

type StatsGroupTopPoster struct {
	UserID   int32
	Messages int32
	AvgChars int32
}

type StatsLoadAsyncGraph

type StatsLoadAsyncGraph struct {
	Flags int32
	Token string
	X     int64 // flag
}

type StatsMegagroupStats

type StatsMegagroupStats struct {
	Period                  TL   // StatsDateRangeDays
	Members                 TL   // StatsAbsValueAndPrev
	Messages                TL   // StatsAbsValueAndPrev
	Viewers                 TL   // StatsAbsValueAndPrev
	Posters                 TL   // StatsAbsValueAndPrev
	GrowthGraph             TL   // StatsGraph
	MembersGraph            TL   // StatsGraph
	NewMembersBySourceGraph TL   // StatsGraph
	LanguagesGraph          TL   // StatsGraph
	MessagesGraph           TL   // StatsGraph
	ActionsGraph            TL   // StatsGraph
	TopHoursGraph           TL   // StatsGraph
	WeekdaysGraph           TL   // StatsGraph
	TopPosters              []TL // StatsGroupTopPoster
	TopAdmins               []TL // StatsGroupTopAdmin
	TopInviters             []TL // StatsGroupTopInviter
	Users                   []TL // User
}

type StatsMessageStats

type StatsMessageStats struct {
	ViewsGraph TL // StatsGraph
}

type StatsPercentValue

type StatsPercentValue struct {
	Part  float64
	Total float64
}

type StatsURL

type StatsURL struct {
	Url string
}

type StickerPack

type StickerPack struct {
	Emoticon  string
	Documents []int64
}

type StickerSet

type StickerSet struct {
	Flags         int32
	Archived      bool  // flag
	Official      bool  // flag
	Masks         bool  // flag
	Animated      bool  // flag
	InstalledDate int32 // flag
	ID            int64
	AccessHash    int64
	Title         string
	ShortName     string
	Thumb         TL    // PhotoSize // flag
	ThumbDcID     int32 // flag
	Count         int32
	Hash          int32
}

type StickerSetCovered

type StickerSetCovered struct {
	Set   TL // StickerSet
	Cover TL // Document
}

type StickerSetMultiCovered

type StickerSetMultiCovered struct {
	Set    TL   // StickerSet
	Covers []TL // Document
}

type StickersAddStickerToSet

type StickersAddStickerToSet struct {
	Stickerset TL // InputStickerSet
	Sticker    TL // InputStickerSetItem
}

type StickersChangeStickerPosition

type StickersChangeStickerPosition struct {
	Sticker  TL // InputDocument
	Position int32
}

type StickersCreateStickerSet

type StickersCreateStickerSet struct {
	Flags     int32
	Masks     bool // flag
	Animated  bool // flag
	UserID    TL   // InputUser
	Title     string
	ShortName string
	Thumb     TL   // InputDocument // flag
	Stickers  []TL // InputStickerSetItem
}

type StickersRemoveStickerFromSet

type StickersRemoveStickerFromSet struct {
	Sticker TL // InputDocument
}

type StickersSetStickerSetThumb

type StickersSetStickerSetThumb struct {
	Stickerset TL // InputStickerSet
	Thumb      TL // InputDocument
}

type StorageFileGif

type StorageFileGif struct {
}

type StorageFileJpeg

type StorageFileJpeg struct {
}

type StorageFileMov

type StorageFileMov struct {
}

type StorageFileMp3

type StorageFileMp3 struct {
}

type StorageFileMp4

type StorageFileMp4 struct {
}

type StorageFilePartial

type StorageFilePartial struct {
}

type StorageFilePdf

type StorageFilePdf struct {
}

type StorageFilePng

type StorageFilePng struct {
}

type StorageFileUnknown

type StorageFileUnknown struct {
}

type StorageFileWebp

type StorageFileWebp struct {
}

type TL

type TL interface {
	// contains filtered or unexported methods
}

func SliceToTL

func SliceToTL(slice interface{}) []TL

func SliceToTLStable

func SliceToTLStable(slice interface{}) []TL

type TLReq

type TLReq interface {
	TL
	// contains filtered or unexported methods
}

type TestUseConfigSimple

type TestUseConfigSimple struct {
}

type TestUseError

type TestUseError struct {
}

type TextAnchor

type TextAnchor struct {
	Text TL // RichText
	Name string
}

type TextBold

type TextBold struct {
	Text TL // RichText
}

type TextConcat

type TextConcat struct {
	Texts []TL // RichText
}

type TextEmail

type TextEmail struct {
	Text  TL // RichText
	Email string
}

type TextEmpty

type TextEmpty struct {
}

type TextFixed

type TextFixed struct {
	Text TL // RichText
}

type TextImage

type TextImage struct {
	DocumentID int64
	W          int32
	H          int32
}

type TextItalic

type TextItalic struct {
	Text TL // RichText
}

type TextMarked

type TextMarked struct {
	Text TL // RichText
}

type TextPhone

type TextPhone struct {
	Text  TL // RichText
	Phone string
}

type TextPlain

type TextPlain struct {
	Text string
}

type TextStrike

type TextStrike struct {
	Text TL // RichText
}

type TextSubscript

type TextSubscript struct {
	Text TL // RichText
}

type TextSuperscript

type TextSuperscript struct {
	Text TL // RichText
}

type TextUnderline

type TextUnderline struct {
	Text TL // RichText
}

type TextUrl

type TextUrl struct {
	Text      TL // RichText
	Url       string
	WebpageID int64
}

type Theme

type Theme struct {
	Flags         int32
	Creator       bool // flag
	Default       bool // flag
	ID            int64
	AccessHash    int64
	Slug          string
	Title         string
	Document      TL // Document // flag
	Settings      TL // ThemeSettings // flag
	InstallsCount int32
}

type ThemeSettings

type ThemeSettings struct {
	Flags              int32
	BaseTheme          TL // BaseTheme
	AccentColor        int32
	MessageTopColor    int32 // flag
	MessageBottomColor int32 // flag
	Wallpaper          TL    // WallPaper // flag
}

type TopPeer

type TopPeer struct {
	Peer   TL // Peer
	Rating float64
}

type TopPeerCategoryBotsInline

type TopPeerCategoryBotsInline struct {
}

type TopPeerCategoryBotsPM

type TopPeerCategoryBotsPM struct {
}

type TopPeerCategoryChannels

type TopPeerCategoryChannels struct {
}

type TopPeerCategoryCorrespondents

type TopPeerCategoryCorrespondents struct {
}

type TopPeerCategoryForwardChats

type TopPeerCategoryForwardChats struct {
}

type TopPeerCategoryForwardUsers

type TopPeerCategoryForwardUsers struct {
}

type TopPeerCategoryGroups

type TopPeerCategoryGroups struct {
}

type TopPeerCategoryPeers

type TopPeerCategoryPeers struct {
	Category TL // TopPeerCategory
	Count    int32
	Peers    []TL // TopPeer
}

type TopPeerCategoryPhoneCalls

type TopPeerCategoryPhoneCalls struct {
}

type True

type True struct {
}

type UpdateBotCallbackQuery

type UpdateBotCallbackQuery struct {
	Flags         int32
	QueryID       int64
	UserID        int32
	Peer          TL // Peer
	MsgID         int32
	ChatInstance  int64
	Data          []byte // flag
	GameShortName string // flag
}

type UpdateBotInlineQuery

type UpdateBotInlineQuery struct {
	Flags   int32
	QueryID int64
	UserID  int32
	Query   string
	Geo     TL // GeoPoint // flag
	Offset  string
}

type UpdateBotInlineSend

type UpdateBotInlineSend struct {
	Flags  int32
	UserID int32
	Query  string
	Geo    TL // GeoPoint // flag
	ID     string
	MsgID  TL // InputBotInlineMessageID // flag
}

type UpdateBotPrecheckoutQuery

type UpdateBotPrecheckoutQuery struct {
	Flags            int32
	QueryID          int64
	UserID           int32
	Payload          []byte
	Info             TL     // PaymentRequestedInfo // flag
	ShippingOptionID string // flag
	Currency         string
	TotalAmount      int64
}

type UpdateBotShippingQuery

type UpdateBotShippingQuery struct {
	QueryID         int64
	UserID          int32
	Payload         []byte
	ShippingAddress TL // PostAddress
}

type UpdateBotWebhookJSON

type UpdateBotWebhookJSON struct {
	Data TL // DataJSON
}

type UpdateBotWebhookJSONQuery

type UpdateBotWebhookJSONQuery struct {
	QueryID int64
	Data    TL // DataJSON
	Timeout int32
}

type UpdateChannel

type UpdateChannel struct {
	ChannelID int32
}

type UpdateChannelAvailableMessages

type UpdateChannelAvailableMessages struct {
	ChannelID      int32
	AvailableMinID int32
}

type UpdateChannelMessageForwards

type UpdateChannelMessageForwards struct {
	ChannelID int32
	ID        int32
	Forwards  int32
}

type UpdateChannelMessageViews

type UpdateChannelMessageViews struct {
	ChannelID int32
	ID        int32
	Views     int32
}

type UpdateChannelParticipant

type UpdateChannelParticipant struct {
	Flags           int32
	ChannelID       int32
	Date            int32
	UserID          int32
	PrevParticipant TL // ChannelParticipant // flag
	NewParticipant  TL // ChannelParticipant // flag
	Qts             int32
}

type UpdateChannelPinnedMessage

type UpdateChannelPinnedMessage struct {
	ChannelID int32
	ID        int32
}

type UpdateChannelReadMessagesContents

type UpdateChannelReadMessagesContents struct {
	ChannelID int32
	Messages  []int32
}

type UpdateChannelTooLong

type UpdateChannelTooLong struct {
	Flags     int32
	ChannelID int32
	Pts       int32 // flag
}

type UpdateChannelUserTyping

type UpdateChannelUserTyping struct {
	Flags     int32
	ChannelID int32
	TopMsgID  int32 // flag
	UserID    int32
	Action    TL // SendMessageAction
}

type UpdateChannelWebPage

type UpdateChannelWebPage struct {
	ChannelID int32
	Webpage   TL // WebPage
	Pts       int32
	PtsCount  int32
}

type UpdateChatDefaultBannedRights

type UpdateChatDefaultBannedRights struct {
	Peer                TL // Peer
	DefaultBannedRights TL // ChatBannedRights
	Version             int32
}

type UpdateChatParticipantAdd

type UpdateChatParticipantAdd struct {
	ChatID    int32
	UserID    int32
	InviterID int32
	Date      int32
	Version   int32
}

type UpdateChatParticipantAdmin

type UpdateChatParticipantAdmin struct {
	ChatID  int32
	UserID  int32
	IsAdmin TL // Bool
	Version int32
}

type UpdateChatParticipantDelete

type UpdateChatParticipantDelete struct {
	ChatID  int32
	UserID  int32
	Version int32
}

type UpdateChatParticipants

type UpdateChatParticipants struct {
	Participants TL // ChatParticipants
}

type UpdateChatPinnedMessage

type UpdateChatPinnedMessage struct {
	ChatID  int32
	ID      int32
	Version int32
}

type UpdateChatUserTyping

type UpdateChatUserTyping struct {
	ChatID int32
	UserID int32
	Action TL // SendMessageAction
}

type UpdateConfig

type UpdateConfig struct {
}

type UpdateContactsReset

type UpdateContactsReset struct {
}

type UpdateDcOptions

type UpdateDcOptions struct {
	DcOptions []TL // DcOption
}

type UpdateDeleteChannelMessages

type UpdateDeleteChannelMessages struct {
	ChannelID int32
	Messages  []int32
	Pts       int32
	PtsCount  int32
}

type UpdateDeleteMessages

type UpdateDeleteMessages struct {
	Messages []int32
	Pts      int32
	PtsCount int32
}

type UpdateDeleteScheduledMessages

type UpdateDeleteScheduledMessages struct {
	Peer     TL // Peer
	Messages []int32
}

type UpdateDialogFilter

type UpdateDialogFilter struct {
	Flags  int32
	ID     int32
	Filter TL // DialogFilter // flag
}

type UpdateDialogFilterOrder

type UpdateDialogFilterOrder struct {
	Order []int32
}

type UpdateDialogFilters

type UpdateDialogFilters struct {
}

type UpdateDialogPinned

type UpdateDialogPinned struct {
	Flags    int32
	Pinned   bool  // flag
	FolderID int32 // flag
	Peer     TL    // DialogPeer
}

type UpdateDialogUnreadMark

type UpdateDialogUnreadMark struct {
	Flags  int32
	Unread bool // flag
	Peer   TL   // DialogPeer
}

type UpdateDraftMessage

type UpdateDraftMessage struct {
	Peer  TL // Peer
	Draft TL // DraftMessage
}

type UpdateEditChannelMessage

type UpdateEditChannelMessage struct {
	Message  TL // Message
	Pts      int32
	PtsCount int32
}

type UpdateEditMessage

type UpdateEditMessage struct {
	Message  TL // Message
	Pts      int32
	PtsCount int32
}

type UpdateEncryptedChatTyping

type UpdateEncryptedChatTyping struct {
	ChatID int32
}

type UpdateEncryptedMessagesRead

type UpdateEncryptedMessagesRead struct {
	ChatID  int32
	MaxDate int32
	Date    int32
}

type UpdateEncryption

type UpdateEncryption struct {
	Chat TL // EncryptedChat
	Date int32
}

type UpdateFavedStickers

type UpdateFavedStickers struct {
}

type UpdateFolderPeers

type UpdateFolderPeers struct {
	FolderPeers []TL // FolderPeer
	Pts         int32
	PtsCount    int32
}

type UpdateGeoLiveViewed

type UpdateGeoLiveViewed struct {
	Peer  TL // Peer
	MsgID int32
}

type UpdateInlineBotCallbackQuery

type UpdateInlineBotCallbackQuery struct {
	Flags         int32
	QueryID       int64
	UserID        int32
	MsgID         TL // InputBotInlineMessageID
	ChatInstance  int64
	Data          []byte // flag
	GameShortName string // flag
}

type UpdateLangPack

type UpdateLangPack struct {
	Difference TL // LangPackDifference
}

type UpdateLangPackTooLong

type UpdateLangPackTooLong struct {
	LangCode string
}

type UpdateLoginToken

type UpdateLoginToken struct {
}

type UpdateMessageID

type UpdateMessageID struct {
	ID       int32
	RandomID int64
}

type UpdateMessagePoll

type UpdateMessagePoll struct {
	Flags   int32
	PollID  int64
	Poll    TL // Poll // flag
	Results TL // PollResults
}

type UpdateMessagePollVote

type UpdateMessagePollVote struct {
	PollID  int64
	UserID  int32
	Options []TL // Bytes
}

type UpdateNewChannelMessage

type UpdateNewChannelMessage struct {
	Message  TL // Message
	Pts      int32
	PtsCount int32
}

type UpdateNewEncryptedMessage

type UpdateNewEncryptedMessage struct {
	Message TL // EncryptedMessage
	Qts     int32
}

type UpdateNewMessage

type UpdateNewMessage struct {
	Message  TL // Message
	Pts      int32
	PtsCount int32
}

type UpdateNewScheduledMessage

type UpdateNewScheduledMessage struct {
	Message TL // Message
}

type UpdateNewStickerSet

type UpdateNewStickerSet struct {
	Stickerset TL // messages_StickerSet
}

type UpdateNotifySettings

type UpdateNotifySettings struct {
	Peer           TL // NotifyPeer
	NotifySettings TL // PeerNotifySettings
}

type UpdatePeerBlocked

type UpdatePeerBlocked struct {
	PeerID  TL // Peer
	Blocked TL // Bool
}

type UpdatePeerLocated

type UpdatePeerLocated struct {
	Peers []TL // PeerLocated
}

type UpdatePeerSettings

type UpdatePeerSettings struct {
	Peer     TL // Peer
	Settings TL // PeerSettings
}

type UpdatePhoneCall

type UpdatePhoneCall struct {
	PhoneCall TL // PhoneCall
}

type UpdatePhoneCallSignalingData

type UpdatePhoneCallSignalingData struct {
	PhoneCallID int64
	Data        []byte
}

type UpdatePinnedDialogs

type UpdatePinnedDialogs struct {
	Flags    int32
	FolderID int32 // flag
	Order    []TL  // DialogPeer // flag
}

type UpdatePrivacy

type UpdatePrivacy struct {
	Key   TL   // PrivacyKey
	Rules []TL // PrivacyRule
}

type UpdatePtsChanged

type UpdatePtsChanged struct {
}

type UpdateReadChannelDiscussionInbox

type UpdateReadChannelDiscussionInbox struct {
	Flags         int32
	ChannelID     int32
	TopMsgID      int32
	ReadMaxID     int32
	BroadcastID   int32 // flag
	BroadcastPost int32 // flag
}

type UpdateReadChannelDiscussionOutbox

type UpdateReadChannelDiscussionOutbox struct {
	ChannelID int32
	TopMsgID  int32
	ReadMaxID int32
}

type UpdateReadChannelInbox

type UpdateReadChannelInbox struct {
	Flags            int32
	FolderID         int32 // flag
	ChannelID        int32
	MaxID            int32
	StillUnreadCount int32
	Pts              int32
}

type UpdateReadChannelOutbox

type UpdateReadChannelOutbox struct {
	ChannelID int32
	MaxID     int32
}

type UpdateReadFeaturedStickers

type UpdateReadFeaturedStickers struct {
}

type UpdateReadHistoryInbox

type UpdateReadHistoryInbox struct {
	Flags            int32
	FolderID         int32 // flag
	Peer             TL    // Peer
	MaxID            int32
	StillUnreadCount int32
	Pts              int32
	PtsCount         int32
}

type UpdateReadHistoryOutbox

type UpdateReadHistoryOutbox struct {
	Peer     TL // Peer
	MaxID    int32
	Pts      int32
	PtsCount int32
}

type UpdateReadMessagesContents

type UpdateReadMessagesContents struct {
	Messages []int32
	Pts      int32
	PtsCount int32
}

type UpdateRecentStickers

type UpdateRecentStickers struct {
}

type UpdateSavedGifs

type UpdateSavedGifs struct {
}

type UpdateServiceNotification

type UpdateServiceNotification struct {
	Flags     int32
	Popup     bool  // flag
	InboxDate int32 // flag
	Type      string
	Message   string
	Media     TL   // MessageMedia
	Entities  []TL // MessageEntity
}

type UpdateShort

type UpdateShort struct {
	Update TL // Update
	Date   int32
}

type UpdateShortChatMessage

type UpdateShortChatMessage struct {
	Flags       int32
	Out         bool // flag
	Mentioned   bool // flag
	MediaUnread bool // flag
	Silent      bool // flag
	ID          int32
	FromID      int32
	ChatID      int32
	Message     string
	Pts         int32
	PtsCount    int32
	Date        int32
	FwdFrom     TL    // MessageFwdHeader // flag
	ViaBotID    int32 // flag
	ReplyTo     TL    // MessageReplyHeader // flag
	Entities    []TL  // MessageEntity // flag
}

type UpdateShortMessage

type UpdateShortMessage struct {
	Flags       int32
	Out         bool // flag
	Mentioned   bool // flag
	MediaUnread bool // flag
	Silent      bool // flag
	ID          int32
	UserID      int32
	Message     string
	Pts         int32
	PtsCount    int32
	Date        int32
	FwdFrom     TL    // MessageFwdHeader // flag
	ViaBotID    int32 // flag
	ReplyTo     TL    // MessageReplyHeader // flag
	Entities    []TL  // MessageEntity // flag
}

type UpdateShortSentMessage

type UpdateShortSentMessage struct {
	Flags    int32
	Out      bool // flag
	ID       int32
	Pts      int32
	PtsCount int32
	Date     int32
	Media    TL   // MessageMedia // flag
	Entities []TL // MessageEntity // flag
}

type UpdateStickerSets

type UpdateStickerSets struct {
}

type UpdateStickerSetsOrder

type UpdateStickerSetsOrder struct {
	Flags int32
	Masks bool // flag
	Order []int64
}

type UpdateTheme

type UpdateTheme struct {
	Theme TL // Theme
}

type UpdateUserName

type UpdateUserName struct {
	UserID    int32
	FirstName string
	LastName  string
	Username  string
}

type UpdateUserPhone

type UpdateUserPhone struct {
	UserID int32
	Phone  string
}

type UpdateUserPhoto

type UpdateUserPhoto struct {
	UserID   int32
	Date     int32
	Photo    TL // UserProfilePhoto
	Previous TL // Bool
}

type UpdateUserPinnedMessage

type UpdateUserPinnedMessage struct {
	UserID int32
	ID     int32
}

type UpdateUserStatus

type UpdateUserStatus struct {
	UserID int32
	Status TL // UserStatus
}

type UpdateUserTyping

type UpdateUserTyping struct {
	UserID int32
	Action TL // SendMessageAction
}

type UpdateWebPage

type UpdateWebPage struct {
	Webpage  TL // WebPage
	Pts      int32
	PtsCount int32
}

type Updates

type Updates struct {
	Updates []TL // Update
	Users   []TL // User
	Chats   []TL // Chat
	Date    int32
	Seq     int32
}

type UpdatesChannelDifference

type UpdatesChannelDifference struct {
	Flags        int32
	Final        bool // flag
	Pts          int32
	Timeout      int32 // flag
	NewMessages  []TL  // Message
	OtherUpdates []TL  // Update
	Chats        []TL  // Chat
	Users        []TL  // User
}

type UpdatesChannelDifferenceEmpty

type UpdatesChannelDifferenceEmpty struct {
	Flags   int32
	Final   bool // flag
	Pts     int32
	Timeout int32 // flag
}

type UpdatesChannelDifferenceTooLong

type UpdatesChannelDifferenceTooLong struct {
	Flags    int32
	Final    bool  // flag
	Timeout  int32 // flag
	Dialog   TL    // Dialog
	Messages []TL  // Message
	Chats    []TL  // Chat
	Users    []TL  // User
}

type UpdatesCombined

type UpdatesCombined struct {
	Updates  []TL // Update
	Users    []TL // User
	Chats    []TL // Chat
	Date     int32
	SeqStart int32
	Seq      int32
}

type UpdatesDifference

type UpdatesDifference struct {
	NewMessages          []TL // Message
	NewEncryptedMessages []TL // EncryptedMessage
	OtherUpdates         []TL // Update
	Chats                []TL // Chat
	Users                []TL // User
	State                TL   // updates_State
}

type UpdatesDifferenceEmpty

type UpdatesDifferenceEmpty struct {
	Date int32
	Seq  int32
}

type UpdatesDifferenceSlice

type UpdatesDifferenceSlice struct {
	NewMessages          []TL // Message
	NewEncryptedMessages []TL // EncryptedMessage
	OtherUpdates         []TL // Update
	Chats                []TL // Chat
	Users                []TL // User
	IntermediateState    TL   // updates_State
}

type UpdatesDifferenceTooLong

type UpdatesDifferenceTooLong struct {
	Pts int32
}

type UpdatesGetChannelDifference

type UpdatesGetChannelDifference struct {
	Flags   int32
	Force   bool // flag
	Channel TL   // InputChannel
	Filter  TL   // ChannelMessagesFilter
	Pts     int32
	Limit   int32
}

type UpdatesGetDifference

type UpdatesGetDifference struct {
	Flags         int32
	Pts           int32
	PtsTotalLimit int32 // flag
	Date          int32
	Qts           int32
}

type UpdatesGetState

type UpdatesGetState struct {
}

type UpdatesState

type UpdatesState struct {
	Pts         int32
	Qts         int32
	Date        int32
	Seq         int32
	UnreadCount int32
}

type UpdatesTooLong

type UpdatesTooLong struct {
}

type UploadCdnFile

type UploadCdnFile struct {
	Bytes []byte
}

type UploadCdnFileReuploadNeeded

type UploadCdnFileReuploadNeeded struct {
	RequestToken []byte
}

type UploadFile

type UploadFile struct {
	Type  TL // storage_FileType
	Mtime int32
	Bytes []byte
}

type UploadFileCdnRedirect

type UploadFileCdnRedirect struct {
	DcID          int32
	FileToken     []byte
	EncryptionKey []byte
	EncryptionIv  []byte
	FileHashes    []TL // FileHash
}

type UploadGetCdnFile

type UploadGetCdnFile struct {
	FileToken []byte
	Offset    int32
	Limit     int32
}

type UploadGetCdnFileHashes

type UploadGetCdnFileHashes struct {
	FileToken []byte
	Offset    int32
}

type UploadGetFile

type UploadGetFile struct {
	Flags        int32
	Precise      bool // flag
	CdnSupported bool // flag
	Location     TL   // InputFileLocation
	Offset       int32
	Limit        int32
}

type UploadGetFileHashes

type UploadGetFileHashes struct {
	Location TL // InputFileLocation
	Offset   int32
}

type UploadGetWebFile

type UploadGetWebFile struct {
	Location TL // InputWebFileLocation
	Offset   int32
	Limit    int32
}

type UploadReuploadCdnFile

type UploadReuploadCdnFile struct {
	FileToken    []byte
	RequestToken []byte
}

type UploadSaveBigFilePart

type UploadSaveBigFilePart struct {
	FileID         int64
	FilePart       int32
	FileTotalParts int32
	Bytes          []byte
}

type UploadSaveFilePart

type UploadSaveFilePart struct {
	FileID   int64
	FilePart int32
	Bytes    []byte
}

type UploadWebFile

type UploadWebFile struct {
	Size     int32
	MimeType string
	FileType TL // storage_FileType
	Mtime    int32
	Bytes    []byte
}

type UrlAuthResultAccepted

type UrlAuthResultAccepted struct {
	Url string
}

type UrlAuthResultDefault

type UrlAuthResultDefault struct {
}

type UrlAuthResultRequest

type UrlAuthResultRequest struct {
	Flags              int32
	RequestWriteAccess bool // flag
	Bot                TL   // User
	Domain             string
}

type User

type User struct {
	Flags                int32
	Self                 bool // flag
	Contact              bool // flag
	MutualContact        bool // flag
	Deleted              bool // flag
	Bot                  bool // flag
	BotChatHistory       bool // flag
	BotNochats           bool // flag
	Verified             bool // flag
	Restricted           bool // flag
	Min                  bool // flag
	BotInlineGeo         bool // flag
	Support              bool // flag
	Scam                 bool // flag
	ApplyMinPhoto        bool // flag
	ID                   int32
	AccessHash           int64  // flag
	FirstName            string // flag
	LastName             string // flag
	Username             string // flag
	Phone                string // flag
	Photo                TL     // UserProfilePhoto // flag
	Status               TL     // UserStatus // flag
	BotInfoVersion       int32  // flag
	RestrictionReason    []TL   // RestrictionReason // flag
	BotInlinePlaceholder string // flag
	LangCode             string // flag
}

type UserEmpty

type UserEmpty struct {
	ID int32
}

type UserFull

type UserFull struct {
	Flags               int32
	Blocked             bool   // flag
	PhoneCallsAvailable bool   // flag
	PhoneCallsPrivate   bool   // flag
	CanPinMessage       bool   // flag
	HasScheduled        bool   // flag
	VideoCallsAvailable bool   // flag
	User                TL     // User
	About               string // flag
	Settings            TL     // PeerSettings
	ProfilePhoto        TL     // Photo // flag
	NotifySettings      TL     // PeerNotifySettings
	BotInfo             TL     // BotInfo // flag
	PinnedMsgID         int32  // flag
	CommonChatsCount    int32
	FolderID            int32 // flag
}

type UserProfilePhoto

type UserProfilePhoto struct {
	Flags      int32
	HasVideo   bool // flag
	PhotoID    int64
	PhotoSmall TL // FileLocation
	PhotoBig   TL // FileLocation
	DcID       int32
}

type UserProfilePhotoEmpty

type UserProfilePhotoEmpty struct {
}

type UserStatusEmpty

type UserStatusEmpty struct {
}

type UserStatusLastMonth

type UserStatusLastMonth struct {
}

type UserStatusLastWeek

type UserStatusLastWeek struct {
}

type UserStatusOffline

type UserStatusOffline struct {
	WasOnline int32
}

type UserStatusOnline

type UserStatusOnline struct {
	Expires int32
}

type UserStatusRecently

type UserStatusRecently struct {
}

type UsersGetFullUser

type UsersGetFullUser struct {
	ID TL // InputUser
}

type UsersGetUsers

type UsersGetUsers struct {
	ID []TL // InputUser
}

type UsersSetSecureValueErrors

type UsersSetSecureValueErrors struct {
	ID     TL   // InputUser
	Errors []TL // SecureValueError
}

type VectorInt

type VectorInt []int32

type VectorLong

type VectorLong []int64

type VectorObject

type VectorObject []TL

type VideoSize

type VideoSize struct {
	Flags        int32
	Type         string
	Location     TL // FileLocation
	W            int32
	H            int32
	Size         int32
	VideoStartTs float64 // flag
}

type WallPaper

type WallPaper struct {
	ID         int64
	Flags      int32
	Creator    bool // flag
	Default    bool // flag
	Pattern    bool // flag
	Dark       bool // flag
	AccessHash int64
	Slug       string
	Document   TL // Document
	Settings   TL // WallPaperSettings // flag
}

type WallPaperNoFile

type WallPaperNoFile struct {
	Flags    int32
	Default  bool // flag
	Dark     bool // flag
	Settings TL   // WallPaperSettings // flag
}

type WallPaperSettings

type WallPaperSettings struct {
	Flags                 int32
	Blur                  bool  // flag
	Motion                bool  // flag
	BackgroundColor       int32 // flag
	SecondBackgroundColor int32 // flag
	Intensity             int32 // flag
	Rotation              int32 // flag
}

type WebAuthorization

type WebAuthorization struct {
	Hash        int64
	BotID       int32
	Domain      string
	Browser     string
	Platform    string
	DateCreated int32
	DateActive  int32
	Ip          string
	Region      string
}

type WebDocument

type WebDocument struct {
	Url        string
	AccessHash int64
	Size       int32
	MimeType   string
	Attributes []TL // DocumentAttribute
}

type WebDocumentNoProxy

type WebDocumentNoProxy struct {
	Url        string
	Size       int32
	MimeType   string
	Attributes []TL // DocumentAttribute
}

type WebPage

type WebPage struct {
	Flags       int32
	ID          int64
	Url         string
	DisplayUrl  string
	Hash        int32
	Type        string // flag
	SiteName    string // flag
	Title       string // flag
	Description string // flag
	Photo       TL     // Photo // flag
	EmbedUrl    string // flag
	EmbedType   string // flag
	EmbedWidth  int32  // flag
	EmbedHeight int32  // flag
	Duration    int32  // flag
	Author      string // flag
	Document    TL     // Document // flag
	CachedPage  TL     // Page // flag
	Attributes  []TL   // WebPageAttribute // flag
}

type WebPageAttributeTheme

type WebPageAttributeTheme struct {
	Flags     int32
	Documents []TL // Document // flag
	Settings  TL   // ThemeSettings // flag
}

type WebPageEmpty

type WebPageEmpty struct {
	ID int64
}

type WebPageNotModified

type WebPageNotModified struct {
	Flags           int32
	CachedPageViews int32 // flag
}

type WebPagePending

type WebPagePending struct {
	ID   int64
	Date int32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL